android/lowmemorykiller: Ignore tasks with freed mm

A killed task can stay in the task list long after its
memory has been returned to the system, therefore
ignore any tasks whose mm struct has been freed.

Change-Id: I76394b203b4ab2312437c839976f0ecb7b6dde4e
CRs-fixed: 450383
Signed-off-by: Liam Mark <lmark@codeaurora.org>
msm_fb: display: calculate mdp clock including borderfill pipe

For hdmi case, mdp clock calculation needs including borderfill
pipe to prevent dtv underrun while system is in suspend.

Change-Id: Ibf6d9ab05b4f2d0666df9d82f8e9bd79b41bafbf
Crs-fixed: 449027
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Merge "android/lowmemorykiller: Ignore tasks with freed mm"
Merge "msm_fb: display: calculate mdp clock including borderfill pipe"
Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.173' into HEAD

* commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.173': (47 commits)
  ASoC: msm: Add support to fix up the channels for HDMI
  msm: clock-8960: Correctly measure KPSS pass3 debug clocks
  ASoC: wcd9310: Reset OTHR_RESET_CTR before power down
  msm: kgsl: Always send fence sync the timestamp it expects
  USB: android: Rate limit android enable warning
  USB: Rate limit adb open and release messages
  USB: mdm_bridge: Fix control bridge suspend
  USB: mdm_bridge: Simplify data bridge suspend/resume path
  msm_fb: display: balance secure map and unmap in each mfd
  msm:camera: Add new vfe32 commands
  msm_fb: Update MDP fence wait behaviour
  misc: isa1200: properly disable clocks
  misc: isa1200: add device tree support
  media: dvb: Fix secure demux application load check
  wcnss: Add support for nv bin download at coldboot
  msm: audio: qdsp6v2: Add support to configure ISO and ARIB coefficients
  ASoC: msm: qdsp6: Add support to configure ISO and ARIB coefficients
  msm_fb: display: fix fence fd list be put twice
  ASoC: msm: Mixer control to update the sample rate of HDMI interface
  msm: Add null pointer checks
  ...

Change-Id: Ib3c203fc14760f185b85d2ded827bc66a549c2d8
Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
Merge "Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.173' into HEAD"
Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.184' into HEAD

* commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.184': (62 commits)
  ASoC: msm: qdsp6: Check copp_id's array index
  msm_serial_hs_lite: Don't set UART clock to zero always
  msm: 8064: Add support for GSBI4 based UARTDM
  usb: f_serial: Remove unnecessary return statements in gport_setup
  wcnss: Configure bite interrupt as edge triggered
  mobicore: t-base-200 Engineering Release.
  mobicore: t-base-200 Engineering Release.
  msm: 8064: add platform device info for the sglte2 target
  msm: socinfo: add new subtype definition for the SGLTE2 target
  qup_i2c: Update clock ready check condition
  msm: kgsl: Add event tracepoints
  msm: kgsl: Resolve a potential race in the interrupt handler
  msm: kgsl: Check the current interrupt status before power operations
  power: pm8921-charger: Make charger removal detection workaround optional
  mobicore: statically assign minor device numbers
  mobicore: t-base-200 Engineering Release
  mobicore: MobiCore 1.2 kernel module Changes to MC11
  mobicore: New branch incorporating QC code review suggestions.
  net: usb: Add MUX support in embedded rmnet driver
  power: pm8921-charger: get rid of using LPM
  ...

Change-Id: I1e03b74fb1a49294563e31b9a8ac6e80477c2405
Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
Merge "Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.184' into HEAD"
msm: pm: Update spm retention sequence to support per core retention

On krait revision < 3, power driver is not using full spm sequence and
calling into trustzone as a part of executing krait retention.
Also krait retention is not supported on secondary cores.

krait pass3 is upgraded to use full spm sequence, hence add support
for per core retention and avoid calling into trustzone
while executing retention.

CRs-fixed: 437281
Change-Id: I6a2b3d7c4d0fd5b9a340957b16b940b7a09bbd91
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
msm: pm: Add support for retention on each core

Allow each core on 8974 to enter retention and retain
the state of the CPU. On 8960 as hardware restriction does
not permit all cores to enter retention at the same time,
allow only core 0 to enter retention when all other cores
are offline to maintain backward compatibility.

CRs-fixed: 437281
Change-Id: I6690e901afc9fa3a27010c264fa3acc9a0722c1a
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
Merge "msm: pm: Update spm retention sequence to support per core retention"
Merge "msm: pm: Add support for retention on each core"
msm: kgsl: Delete the context event while the context is still valid

Make sure that the context is freed only after the event is deleted
from the list to avoid accessing invalid list pointers. This makes
sure that the context memory is not accessed after being freed.

Change-Id: I9196219f1472396c0063dbeaa5351f66e6e5648f
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Uma Maheshwari Bhiram <ubhira@codeaurora.org>
Merge "msm: kgsl: Delete the context event while the context is still valid"
msm_fb: display: delay commit video tile frame size register

Video tile frame size register is NOT double buffered.
when this register updated, it kicks in immediatly.
During transition from smaller resolution to higher
resolution  it may have possibility that mdp still fetch
from smaller resolution buffer with new higher resolution
frame size. This will cause iommu page fault. This patch
delay commit frame size register until next frame update
if it is necessary.

CRs-fixed: 450126, 461598
Change-Id: I0339100b8b2d76adf2b4b4206d1942effae55e0a
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Merge "msm_fb: display: delay commit video tile frame size register"
ASoc: msm: update the pending buffer flags in underrun

Update the pending buffer flag on a driver underrun.
This causes a drain call to be rejected if the underrun
happens immediately after an EOS buffer has been given to the DSP
following a flush

CRs-Fixed: 463332
Change-Id: I2ba224a49e5af14ca909300afc0788cb4b21eb16
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
Merge "ASoc: msm: update the pending buffer flags in underrun"
Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.206'

Conflicts:
	arch/arm/mach-msm/board-8960.c

Change-Id: I7a70109ec4b9f7dc9eb7aaf793d1e164194bcc2a
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
Merge "Merge commit 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.206'"