msm: gdsc: Separate CORE and PERIPH memory retention control

Currently, a single device tree property determines whether core
memory and peripheral memory should be collapsed along with the
core's logic. For greater flexibility, split this into two device
tree properties.  The functionality that was previously part of
'qcom,retain-mems' is split into 'qcom,retain-mem' and
'qcom,retain-periph'.

Current users of 'qcom,retain-mems' are updated accordingly.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
(cherry picked from commit 1c90aa88cde52b224c3542b7659a4557d94ed0e2)

Change-Id: Ia335d16aa375188aa6eaafbb12c67b5377eb950c
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
arm/dt: msm8974: Enable MDSS periph memory retention

For potentially-improved system stability, disable MDSS
peripheral memory collapse.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
(cherry picked from commit b83249524697c43c4f3fb2ef05597d306f34cbc3)

Change-Id: Ia82ad4dffbd43eadf3bf7ba07306a0ceb4c4cdfc
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
ARM: dts: msm: Remove power down sequence in L2 memory.

Remove L2 memory array power control from the SPM sequences,
To fix droop issues seen on the memory rails.

Signed-off-by: Karthik Parsha <kparsha@codeaurora.org>
(cherry picked from commit 7911ecf3e4618250a6f1c1ac9dc3edc0d06ad59a)

Change-Id: Ib32e08a3ed770206c78bc36178bae9fd734e1cb7
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
Merge "msm: gdsc: Separate CORE and PERIPH memory retention control"
Merge "arm/dt: msm8974: Enable MDSS periph memory retention"
Merge "ARM: dts: msm: Remove power down sequence in L2 memory."
arm: dts: msm8974: Enable L2 power collapse during sleep

The L2 power collapse was removed to address DDR corruption associated
with voltage droop on the MX rail. Power collapsing the MX rail doesn't
cause the Voltage to droop on the MX rail

CRs-fixed: 497712
Change-Id: Ie44b1f7cb0c36453c7cdcd479be79fde5d3ecbee
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Merge "arm: dts: msm8974: Enable L2 power collapse during sleep"
msm: mdss: enable content protection on unsecure domain

Implement protection on MDP unsecure context bank (CB0). This implies
all the buffers that MDP can write into must be secured; if this is not
the case then writeback should fail.

Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
(cherry picked from commit 5db34357e9d99fc0006b1910921a90db82e9a5ec)

Conflicts:

	drivers/video/msm/mdss/mdss_mdp_util.c

Change-Id: Id72fd2899fd03772fe3267153bff0b6580431654
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
mdss: hdmi: sysfs node for hdcp status

The change provides the sysfs node to query hdcp authentication
status. "status" node under hdcp folder will be:
not available: if target doesn't support HDCP
0: inactive
1: authenticating
2: authentication pass
3: authentication fail

Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
(cherry picked from commit 3aafa731f8eb6687f3d456d46746f4abf2eee65b)

Change-Id: I1a927155235ede431a9285f9fa6d758642580360
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
msm: vidc: Make msm_vidc_mode bitwise

Making msm_vidc_mode bitwise in preparation for additional modes to be
added.

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit 9d04c329f2a25fbd34f94c79efe00fc8fa6bc99a)

Change-Id: I2ec2b5468e9f8e3388b3911ffe78719a9cc04d3f
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
msm: vidc: Add support for V4L2_CID_MPEG_VIDC_SET_PERF_LEVEL

V4L2_CID_MPEG_VIDC_SET_PERF_LEVEL allows for clients to request higher
than normal performance from the core.

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit 60a472d3b2fef8ea1ff221d0e7ef32aa6db31ff0)

Change-Id: If67f55b16e751f35a1b0ddfb5c9a9f1e7bfd2b78
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
msm: vidc/wfd: Prevent concurrent non-secure wfd & secure vidc sessions

Non-secure WFD won't start if another secure decode/encode session is
already running.

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit dbee6e37d692ae5251bdacdc51c4605b4ce44d04)

Change-Id: I82932a5e7f56aff62a6b4c9a72388714d785ce23
Signed-off-by: Sunil Joseph <jsunil@codeaurora.org>
Merge "msm: mdss: enable content protection on unsecure domain"
Merge "mdss: hdmi: sysfs node for hdcp status"
Merge "msm: vidc: Make msm_vidc_mode bitwise"
Merge "msm: vidc: Add support for V4L2_CID_MPEG_VIDC_SET_PERF_LEVEL"
Merge "msm: vidc/wfd: Prevent concurrent non-secure wfd & secure vidc sessions"