OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge android-4.4@a8935c9 (v4.4.87) into msm-4.4
Blagovest Kolenichev [Thu, 21 Sep 2017 20:19:38 +0000 (13:19 -0700)]
Merge android-4.4@a8935c9 (v4.4.87) into msm-4.4

* refs/heads/tmp-a8935c9:
  Linux 4.4.87
  crypto: algif_skcipher - only call put_page on referenced and used pages
  epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()
  kvm: arm/arm64: Force reading uncached stage2 PGD
  kvm: arm/arm64: Fix race in resetting stage2 PGD
  drm/ttm: Fix accounting error when fail to get pages for pool
  xfrm: policy: check policy direction value
  wl1251: add a missing spin_lock_init()
  CIFS: remove endian related sparse warning
  CIFS: Fix maximum SMB2 header size
  alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
  cpuset: Fix incorrect memory_pressure control file mapping
  cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs
  ceph: fix readpage from fscache
  i2c: ismt: Return EMSGSIZE for block reads with bogus length
  i2c: ismt: Don't duplicate the receive length for block reads
  irqchip: mips-gic: SYNC after enabling GIC region
  ANDROID: cpufreq-dt: Set sane defaults for schedutil rate limits
  BACKPORT: cpufreq: schedutil: Use policy-dependent transition delays
  FROMLIST: binder: fix an ret value override
  FROMLIST: binder: fix memory corruption in binder_transaction binder
  Linux 4.4.86
  drm/i915: fix compiler warning in drivers/gpu/drm/i915/intel_uncore.c
  scsi: sg: reset 'res_in_use' after unlinking reserved array
  scsi: sg: protect accesses to 'reserved' page array
  arm64: fpsimd: Prevent registers leaking across exec
  x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
  arm64: mm: abort uaccess retries upon fatal signal
  lpfc: Fix Device discovery failures during switch reboot test.
  p54: memset(0) whole array
  lightnvm: initialize ppa_addr in dev_to_generic_addr()
  gcov: support GCC 7.1
  gcov: add support for gcc version >= 6
  i2c: jz4780: drop superfluous init
  btrfs: remove duplicate const specifier
  ALSA: au88x0: Fix zero clear of stream->resources
  scsi: isci: avoid array subscript warning
  sched: WALT: fix window mis-alignment
  sched: EAS: kill incorrect nohz idle cpu kick
  sched: EAS: fix incorrect energy delta calculation due to rounding error
  sched: EAS/WALT: take into account of waking task's load
  cpufreq: sched: WALT: don't apply capacity margin twice
  sched: WALT: fix potential overflow
  sched: EAS: schedfreq: fix CPU util over estimation
  sched: EAS/WALT: use cr_avg instead of prev_runnable_sum
  sched: WALT: fix broken cumulative runnable average accounting
  sched: deadline: WALT: account cumulative runnable avg
  FROMLIST: android: binder: Add page usage in binder stats
  FROMLIST: android: binder: Add shrinker tracepoints
  FROMLIST: android: binder: Add global lru shrinker to binder
  FROMLIST: android: binder: Move buffer out of area shared with user space
  FROMLIST: android: binder: Add allocator selftest
  FROMLIST: android: binder: Refactor prev and next buffer into a helper function
  android: android-base.config: enable IP6_NF_MATCH_RPFILTER
  UPSTREAM: cpufreq: schedutil: Use unsigned int for iowait boost
  UPSTREAM: cpufreq: schedutil: Make iowait boost more energy efficient

Conflicts:
drivers/cpufreq/cpufreq-dt.c
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/sched.h

Change-Id: Iee31db3fd1a0d1650ebf3d6de307a4e4637120b4
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
6 years agoMerge "wil6210: refresh FW capabilities during interface up"
Linux Build Service Account [Mon, 18 Sep 2017 08:31:44 +0000 (01:31 -0700)]
Merge "wil6210: refresh FW capabilities during interface up"

6 years agoMerge "usb: gadget: f_fs: Do not free IPC log buffer when free instance"
Linux Build Service Account [Sat, 16 Sep 2017 01:12:40 +0000 (18:12 -0700)]
Merge "usb: gadget: f_fs: Do not free IPC log buffer when free instance"

6 years agoMerge "ath10k: synchronize WLAN ON/OFF cmd during system suspend"
Linux Build Service Account [Sat, 16 Sep 2017 01:12:38 +0000 (18:12 -0700)]
Merge "ath10k: synchronize WLAN ON/OFF cmd during system suspend"

6 years agoMerge "cfg80211: Include length of kek in rekey data"
Linux Build Service Account [Sat, 16 Sep 2017 01:12:37 +0000 (18:12 -0700)]
Merge "cfg80211: Include length of kek in rekey data"

6 years agoMerge "nl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS"
Linux Build Service Account [Fri, 15 Sep 2017 16:14:13 +0000 (09:14 -0700)]
Merge "nl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS"

6 years agoMerge "msm: kgsl: Do not crash on context detach timeout failure"
Linux Build Service Account [Fri, 15 Sep 2017 16:14:12 +0000 (09:14 -0700)]
Merge "msm: kgsl: Do not crash on context detach timeout failure"

6 years agocfg80211: Include length of kek in rekey data
Vidyullatha Kanchanapally [Thu, 25 May 2017 14:50:41 +0000 (20:20 +0530)]
cfg80211: Include length of kek in rekey data

With support for new AKM suites (example FILS-SHA256), the KEK length
can now be more than NL80211_KEK_LEN and the KCK length can be zero.
Add changes in cfg80211 to specify the length of KEK, and make KCK
optional. Make NL80211_REKEY_DATA_KEK as NLA_BINARY to enforce a maximum
length check.
Also add macro CFG80211_REKEY_DATA_KEK_LEN to indicate support for
including KEK length in rekey data.

CRs-Fixed: 2087759
Change-Id: Ica8dbb8614e0a9c3905e125b4a5254e43821984e
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
6 years agoath10k: synchronize WLAN ON/OFF cmd during system suspend
Sarada Prasanna Garnayak [Wed, 6 Sep 2017 16:46:24 +0000 (22:16 +0530)]
ath10k: synchronize WLAN ON/OFF cmd during system suspend

During system suspend/resume or WLAN interface up/down
by the network subsystem the ath10k SNOC WLAN driver
configure WLAN enable/disable cmd with the WLAN firmware
over QMI interface. The WLAN enable/disable cmd configuration
with the WLAN firmware during system suspend is preventing
the system suspend.

Register PM event notifier for the ath10k SNOC platform
driver and synchronize the WLAN HIF power down/up
configuration, WLAN enable/disable cmd configuration
with WLAN firmware according to the system power state.

CRs-Fixed: 2110607
Change-Id: I5eeda967ae11c21ab5164c18b3e0a3bf668c916a
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoMerge "msm: kgsl: Fixing an uninitialized variable in _gpuobj_map_useraddr()"
Linux Build Service Account [Fri, 15 Sep 2017 08:10:53 +0000 (01:10 -0700)]
Merge "msm: kgsl: Fixing an uninitialized variable in _gpuobj_map_useraddr()"

6 years agonl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS
Vidyullatha Kanchanapally [Wed, 2 Aug 2017 11:01:40 +0000 (16:31 +0530)]
nl80211: Update ERP info using NL80211_CMD_UPDATE_CONNECT_PARAMS

Use NL80211_CMD_UPDATE_CONNECT_PARAMS to update new ERP information,
Association IEs and the Authentication type to driver / firmware which
will be used in subsequent roamings.

CRs-Fixed: 2087764
Change-Id: Ic296b66a39b9ceb8de992a9f37112439389946a2
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
6 years agoMerge "soc: qcom: pil: set device dma mask as 32 bit"
Linux Build Service Account [Fri, 15 Sep 2017 00:08:03 +0000 (17:08 -0700)]
Merge "soc: qcom: pil: set device dma mask as 32 bit"

6 years agoMerge "msm: ais: Synchronize camera open/close calls"
Linux Build Service Account [Fri, 15 Sep 2017 00:08:01 +0000 (17:08 -0700)]
Merge "msm: ais: Synchronize camera open/close calls"

6 years agoMerge "USB: dwc3-msm: Protect enabling phy irqs with mutex"
Linux Build Service Account [Fri, 15 Sep 2017 00:08:00 +0000 (17:08 -0700)]
Merge "USB: dwc3-msm: Protect enabling phy irqs with mutex"

6 years agoMerge "scsi: ufs: Get TX and RX FSM states for debug purpose"
Linux Build Service Account [Thu, 14 Sep 2017 14:38:08 +0000 (07:38 -0700)]
Merge "scsi: ufs: Get TX and RX FSM states for debug purpose"

6 years agoMerge "USB: composite: Use snprintf instead of sprintf"
Linux Build Service Account [Thu, 14 Sep 2017 14:38:07 +0000 (07:38 -0700)]
Merge "USB: composite: Use snprintf instead of sprintf"

6 years agoMerge "mmc: core: Correct the checks while setting clock scaling frequencies"
Linux Build Service Account [Thu, 14 Sep 2017 14:38:03 +0000 (07:38 -0700)]
Merge "mmc: core: Correct the checks while setting clock scaling frequencies"

6 years agoMerge "mmc: block: Add error handling in mmc_blk_cmdq_part_switch"
Linux Build Service Account [Thu, 14 Sep 2017 14:38:02 +0000 (07:38 -0700)]
Merge "mmc: block: Add error handling in mmc_blk_cmdq_part_switch"

6 years agoMerge "power: qpnp-fg-gen3: Get the raw MSOC directly from FG register"
Linux Build Service Account [Thu, 14 Sep 2017 14:38:01 +0000 (07:38 -0700)]
Merge "power: qpnp-fg-gen3: Get the raw MSOC directly from FG register"

6 years agomsm: ais: Synchronize camera open/close calls
Sankalp Sharma [Wed, 13 Sep 2017 12:31:10 +0000 (18:01 +0530)]
msm: ais: Synchronize camera open/close calls

Synchronize camera_v4l2_open and camera_v4l2_close to avoid use
after free.

Change-Id: I4055f00ff30408cc0469015b3e49d877632726bf
CRs-fixed: 2048964
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoUSB: dwc3-msm: Protect enabling phy irqs with mutex
Vijayavardhan Vennapusa [Fri, 8 Sep 2017 07:21:25 +0000 (12:51 +0530)]
USB: dwc3-msm: Protect enabling phy irqs with mutex

Currently driver is enabling hsphy_irq and ssphy_irq at the end
of dwc3_msm_suspend() without any spinlock/mutex protection. But
if it happens that hsphy_irq or ssphy_irq gets fired right after
enablement of irqs, there is a chance that we might see warnings
related to unbalanced irq enable. This could happen due to flag
is not yet set to indicate phy irqs enabled in suspend(). This
might cause phy irq left enabled after resume and could cause
crash due to unclocked access in host mode. Fix the unbalance irq
enable by having mutex protection and also extend mutex protection
for dwc3_msm_suspend() and dwc3_msm_resume().

Change-Id: I8c2d26f82feb235add64305c1d0e5b686993e9e9
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agosoc: qcom: pil: set device dma mask as 32 bit
Arun KS [Tue, 12 Sep 2017 09:46:01 +0000 (15:16 +0530)]
soc: qcom: pil: set device dma mask as 32 bit

APPS interact with MPSS through 32 bit register interface.
Set dma mask for 32 bit so that mba and mdt memory are allocated
from 32 bit physical address range.

Change-Id: I623f00097d464b1bdd8f609e2d6c9a126f4bea4d
Signed-off-by: Arun KS <arunks@codeaurora.org>
6 years agommc: block: Add error handling in mmc_blk_cmdq_part_switch
Sayali Lokhande [Wed, 9 Aug 2017 10:08:28 +0000 (15:38 +0530)]
mmc: block: Add error handling in mmc_blk_cmdq_part_switch

mmc_blk_cmdq_part_switch always returned 0 even in case of
failures as errors are not handled in this function.
We need to un-halt cmdq in case it's in halt state when
mmc_switch fails. This change adds error handling code and
returns error in case of any failure.

Change-Id: Icd7ec4b7b53fc56d39dbcea195ae44bf08de17e5
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agoscsi: ufs: Get TX and RX FSM states for debug purpose
Sayali Lokhande [Tue, 12 Sep 2017 09:14:46 +0000 (14:44 +0530)]
scsi: ufs: Get TX and RX FSM states for debug purpose

In case of any UFS error or aborts, read TX and RX
FSM states which can be used for debugging purpose.

Change-Id: I24a989a9e1b07ba904ec639e26736a01769f0593
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agoMerge "msm: vidc: Do a proper clean-up in case of session abort"
Linux Build Service Account [Thu, 14 Sep 2017 01:59:43 +0000 (18:59 -0700)]
Merge "msm: vidc: Do a proper clean-up in case of session abort"

6 years agoMerge "msm: ipa: Add new API to check for ipa uC readiness"
Linux Build Service Account [Thu, 14 Sep 2017 01:59:42 +0000 (18:59 -0700)]
Merge "msm: ipa: Add new API to check for ipa uC readiness"

6 years agoMerge "msm: mdss: disable HDMI block before HDMI core off"
Linux Build Service Account [Thu, 14 Sep 2017 01:59:41 +0000 (18:59 -0700)]
Merge "msm: mdss: disable HDMI block before HDMI core off"

6 years agoMerge "msm: camera: isp: Check null pointer for VFE0 base"
Linux Build Service Account [Thu, 14 Sep 2017 01:59:40 +0000 (18:59 -0700)]
Merge "msm: camera: isp: Check null pointer for VFE0 base"

6 years agomsm: ipa: Add new API to check for ipa uC readiness
Skylar Chang [Tue, 12 Sep 2017 18:48:06 +0000 (11:48 -0700)]
msm: ipa: Add new API to check for ipa uC readiness

Adding new API for IPA clients to check for IPA
uC ready before bringing up IPA uC offload data path.

CRs-Fixed: 2030217
Change-Id: I0328658cba829cacc89b7c0b8edf7e52aa16e45c
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
6 years agoMerge "msm: mdss: dp: fix wdog_bite while disconnecting DP cable"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:19 +0000 (10:58 -0700)]
Merge "msm: mdss: dp: fix wdog_bite while disconnecting DP cable"

6 years agoMerge "msm: mdss: hdmi: correctly validate the cec msg frame size"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:18 +0000 (10:58 -0700)]
Merge "msm: mdss: hdmi: correctly validate the cec msg frame size"

6 years agoMerge "msm: ais: isp: Reducing ISPIF stop waiting time"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:17 +0000 (10:58 -0700)]
Merge "msm: ais: isp: Reducing ISPIF stop waiting time"

6 years agoMerge "msm: mdss: hdmi: fix no audio over HDMI on device bootup"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:15 +0000 (10:58 -0700)]
Merge "msm: mdss: hdmi: fix no audio over HDMI on device bootup"

6 years agoMerge "msm: mdss: Increase the max layer count to 13"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:14 +0000 (10:58 -0700)]
Merge "msm: mdss: Increase the max layer count to 13"

6 years agoMerge "adv7481: return error when PLL lock fails"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:13 +0000 (10:58 -0700)]
Merge "adv7481:  return error when PLL lock fails"

6 years agoMerge "ARM: dts: msm: Early init changes for vendor image on msm8996"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:13 +0000 (10:58 -0700)]
Merge "ARM: dts: msm: Early init changes for vendor image on msm8996"

6 years agoMerge "mmc: host: Update the USE_PIO_FOR_EMMC_TUNING quirk value"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:12 +0000 (10:58 -0700)]
Merge "mmc: host: Update the USE_PIO_FOR_EMMC_TUNING quirk value"

6 years agoMerge "cgroup/cpuset: remove circular dependency deadlock"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:10 +0000 (10:58 -0700)]
Merge "cgroup/cpuset: remove circular dependency deadlock"

6 years agoMerge "power: smblib: correct PD voting when inactive"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:09 +0000 (10:58 -0700)]
Merge "power: smblib: correct PD voting when inactive"

6 years agoMerge "adv7481: Add support for CSI 4 lane for ADV7481"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:08 +0000 (10:58 -0700)]
Merge "adv7481: Add support for CSI 4 lane for ADV7481"

6 years agoMerge "msm: camera: fix off-by-one overflow in msm_isp_get_bufq"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:08 +0000 (10:58 -0700)]
Merge "msm: camera: fix off-by-one overflow in msm_isp_get_bufq"

6 years agoMerge "msm: ais: sensor: flash: add conditional check for ioctl"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:07 +0000 (10:58 -0700)]
Merge "msm: ais: sensor: flash: add conditional check for ioctl"

6 years agoMerge "msm: ais: Return -NOTTY on invalid ioctl command"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:06 +0000 (10:58 -0700)]
Merge "msm: ais: Return -NOTTY on invalid ioctl command"

6 years agoMerge "msm: mdss: hdmi: configure hdcp feature support"
Linux Build Service Account [Wed, 13 Sep 2017 17:58:05 +0000 (10:58 -0700)]
Merge "msm: mdss: hdmi: configure hdcp feature support"

6 years agomsm: mdss: disable HDMI block before HDMI core off
Yuan Zhao [Mon, 17 Jul 2017 04:48:36 +0000 (12:48 +0800)]
msm: mdss: disable HDMI block before HDMI core off

Switching HDMI display mode many times, could find
sometimes color distortion or no signal display.
If disable HDMI block before setting HDMI core off,
that could be fixed.

Change-Id: Ib0e8002f59e017a81298d4a5a39736a7516e3435
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
6 years agoUSB: composite: Use snprintf instead of sprintf
Vijayavardhan Vennapusa [Wed, 13 Sep 2017 10:11:20 +0000 (15:41 +0530)]
USB: composite: Use snprintf instead of sprintf

composite driver is using sprintf() function to expose value to
userspace. This sprintf() is banned function and instead required
to use snprintf() function. Hence replace sprintf() with snprintf()
function to fix static analysis tool error.

Change-Id: I85f38fe3f2121f6a0cb76b7178a3e699ba1dc7f2
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agocgroup/cpuset: remove circular dependency deadlock
Prateek Sood [Fri, 8 Sep 2017 07:40:55 +0000 (13:10 +0530)]
cgroup/cpuset: remove circular dependency deadlock

Remove circular dependency deadlock in a scenario where hotplug of CPU is
being done while there is updation in cgroup and cpuset triggered from
userspace.

Process A => kthreadd => Process B => Process C => Process A

Process A
cpu_subsys_offline();
   cpu_down();
     _cpu_down();
       mutex_lock(&cpuhotplug.lock); //held
       __cpu_notify();
         workqueue_cpu_down_callback();
           queue_work_on(system_highpri_wq);
             __queue_work();
               insert_work();
                 wake_up_worker(); //pool->nr_running = 0
           flush_work();
           wait_for_completion();

worker_thread();
  need_more_worker(); // returns true
  manage_workers();
    maybe_create_worker();
  create_worker();
    kthread_create_on_node();
  wake_up_process(kthreadd_task);

kthreadd
kthreadd();
  kernel_thread();
    do_fork();
      copy_process();
        percpu_down_read(&cgroup_threadgroup_rwsem);
          __rwsem_down_read_failed_common(); //waiting

Process B
kernfs_fop_write();
  cgroup_file_write();
    cgroup_tasks_write();
      percpu_down_write(&cgroup_threadgroup_rwsem); //held
      cgroup_attach_task();
        cgroup_migrate();
          cgroup_taskset_migrate();
            cpuset_can_attach();
              mutex_lock(&cpuset_mutex); //waiting

Process C
kernfs_fop_write();
  cgroup_file_write();
    cpuset_write_resmask();
      mutex_lock(&cpuset_mutex); //held
      update_cpumask();
        update_cpumasks_hier();
          rebuild_sched_domains_locked();
            get_online_cpus();
              mutex_lock(&cpuhotplug.lock); //waiting

Eliminate this dependecy by reordering locking of cpuset_mutex
and cpuhotplug.lock.

Change-Id: Ifd76373d717c53b531623a3be76b7d32e0d959fd
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
6 years agoMerge "power: qcom: smb135x: change OTG regulator ops to static"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:51 +0000 (00:17 -0700)]
Merge "power: qcom: smb135x: change OTG regulator ops to static"

6 years agoMerge "power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:51 +0000 (00:17 -0700)]
Merge "power: qpnp-fg-gen3: adjust ki coefficient for full soc dynamically"

6 years agoMerge "usb: gadget: u_ether: Add NULL check in helper APIs"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:50 +0000 (00:17 -0700)]
Merge "usb: gadget: u_ether: Add NULL check in helper APIs"

6 years agoMerge "usb: gadget: Update default class subclass and protocol for rndis"
Linux Build Service Account [Wed, 13 Sep 2017 07:17:49 +0000 (00:17 -0700)]
Merge "usb: gadget: Update default class subclass and protocol for rndis"

6 years agomsm: ais: isp: Reducing ISPIF stop waiting time
Rahul Sharma [Tue, 5 Sep 2017 11:14:07 +0000 (16:44 +0530)]
msm: ais: isp: Reducing ISPIF stop waiting time

 Initial ISPIF waiting was one second which causes
 hang for one second in case of sensor removal hence
 wait is reduced to 200ms.

Change-Id: I531a880435983fe2e1e4f0f7616c6a6b1632dac8
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomsm: mdss: Increase the max layer count to 13
Krishna Chaitanya Devarakonda [Mon, 4 Sep 2017 10:13:55 +0000 (15:43 +0530)]
msm: mdss: Increase the max layer count to 13

The maximum number of layers could be 13 including the
cursor layer. Increasing the maximum layer count to
accommodate cursor layer.

Change-Id: I907feb14fbd2d2ab5de66b4dee83d90d94c59595
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
6 years agoadv7481: return error when PLL lock fails
Jaiju Yesudasan [Mon, 31 Jul 2017 10:37:38 +0000 (16:07 +0530)]
adv7481:  return error when PLL lock fails

Return error instead of default width and height when PLL lock fails.

Suggested-by: Suprith Malligere <c_suprit@qti.qualcomm.com>
Change-Id: I80880e9d1f6bcd5d6df87f74d005f9c79f91f096
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
6 years agoadv7481: Add support for CSI 4 lane for ADV7481
Jaiju Yesudasan [Mon, 31 Jul 2017 10:51:58 +0000 (16:21 +0530)]
adv7481: Add support for CSI 4 lane for ADV7481

Enable CSI 4 lane in adv7481 to support 1080p and 60fps.

Suggested-by: Suprith Malligere <c_suprit@qti.qualcomm.com>
Change-Id: I053602fc73fe300cff780dfe75c546ff3768ee3c
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
6 years agomsm: camera: fix off-by-one overflow in msm_isp_get_bufq
Gaoxiang Chen [Wed, 17 May 2017 07:14:36 +0000 (15:14 +0800)]
msm: camera: fix off-by-one overflow in msm_isp_get_bufq

In msm_isp_get_bufq, if bufq_index == buf_mgr->num_buf_q,
it will pass the check, leading to off-by-one overflow
(exceed the length of array by one element).

CRs-Fixed: 2031677
Change-Id: I7ea465897e2c37de6ca0155c3e225f1444b3cf13
Signed-off-by: Gaoxiang Chen <gaochen@codeaurora.org>
6 years agomsm: kgsl: Do not crash on context detach timeout failure
Hareesh Gundu [Thu, 24 Aug 2017 17:41:09 +0000 (23:11 +0530)]
msm: kgsl: Do not crash on context detach timeout failure

If context wait for global timeouts in detach path there is
no use to process its pending commands. Hence to handle context
detach timeout failure,invalidate the context and remove all
the pending commands from that context. So that other context
commands proceed successfully after the context detach timeout
fault recovery.

Change-Id: Ie4ff0ed5d08312d345b248a2404ce085552b0b09
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agoARM: dts: msm: Early init changes for vendor image on msm8996
Anthony Mah [Tue, 22 Aug 2017 23:36:35 +0000 (16:36 -0700)]
ARM: dts: msm: Early init changes for vendor image on msm8996

For use with A/B partition feature, remove early mount of system
image.  Change fs mgr flags from verify to slotselect.
System image is to be mounted in the lk when enabling A/B.

Change-Id: I4fc2ac5f5bd22dea2fd6ff832cd31d1f3697b4d4
Signed-off-by: Anthony Mah <amah@codeaurora.org>
6 years agoMerge "Merge android-4.4@610af85 (v4.4.85) into msm-4.4"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:59 +0000 (14:41 -0700)]
Merge "Merge android-4.4@610af85 (v4.4.85) into msm-4.4"

6 years agoMerge "msm: kgsl: Protect the bind object against bad dereference"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:58 +0000 (14:41 -0700)]
Merge "msm: kgsl: Protect the bind object against bad dereference"

6 years agoMerge "msm: ipa: ipa_usb: teth_prot and ttype validation"
Linux Build Service Account [Tue, 12 Sep 2017 21:41:48 +0000 (14:41 -0700)]
Merge "msm: ipa: ipa_usb: teth_prot and ttype validation"

6 years agopower: smblib: correct PD voting when inactive
Harry Yang [Tue, 12 Sep 2017 18:15:04 +0000 (11:15 -0700)]
power: smblib: correct PD voting when inactive

Currently, when becoming inactive, PD leaves the HDC and input
limited interrupt enabled.

Correct it by disabling it.

Change-Id: I62a1d837f6126951cb428a982fe1d8876f1d5bdc
Signed-off-by: Harry Yang <harryy@codeaurora.org>
6 years agomsm: ais: sensor: flash: add conditional check for ioctl
Rahul Sharma [Tue, 12 Sep 2017 05:31:57 +0000 (11:01 +0530)]
msm: ais: sensor: flash: add conditional check for ioctl

Add conditional check when sending VIDIOC_MSM_FLASH_CFG
in 32-bit process.

Change-Id: Ia4255aba26c634018163e2cc3c1170f71b1eb661
CRs-Fixed: 2092793
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agommc: core: Correct the checks while setting clock scaling frequencies
Veerabhadrarao Badiganti [Tue, 12 Sep 2017 09:32:01 +0000 (15:02 +0530)]
mmc: core: Correct the checks while setting clock scaling frequencies

Correct the checks while setting the max scaling frequency supported
by the card. With the present checks, even for HS card max frequency
would set as max frequency of HS200 card.

Change-Id: Ie8b42229ef189e591f49b227d043f6186aa7e205
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
6 years agommc: sdhci-msm: Don't enable PWRSAVE_DLL for all latest sdhc hosts
Veerabhadrarao Badiganti [Tue, 12 Sep 2017 11:54:09 +0000 (17:24 +0530)]
mmc: sdhci-msm: Don't enable PWRSAVE_DLL for all latest sdhc hosts

SDHC core with 14lpp tech DLL should not enable PWRSAVE_DLL since
such controller's internal gating cannot meet following MCLK requirement:
when MCLK is gated OFF, it is not gated for less than 0.5us and MCLK must
be switched on for at-least 1us before DATA starts coming.

Since all the latest versions of sdhc host has this 14lpp tech DLL
Don't set PWRSAVE_DLL bit accordingly.

Change-Id: I7cccc79a79b32a33e74212fc5f41408c2e07b5cb
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
6 years agoMerge "msm: camera: isp: Avoid stats data corruption."
Linux Build Service Account [Tue, 12 Sep 2017 12:25:47 +0000 (05:25 -0700)]
Merge "msm: camera: isp: Avoid stats data corruption."

6 years agoMerge "drm/msm/sde: remove out of bound access for qos lut parsing"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:46 +0000 (05:25 -0700)]
Merge "drm/msm/sde: remove out of bound access for qos lut parsing"

6 years agoMerge "drm/msm: fix non-zero offset register dumping"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:45 +0000 (05:25 -0700)]
Merge "drm/msm: fix non-zero offset register dumping"

6 years agoMerge "msm: vidc: Avoid adding failed instance into list"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:44 +0000 (05:25 -0700)]
Merge "msm: vidc: Avoid adding failed instance into list"

6 years agoMerge "ARM: dts: msm: add dummy SPSS ETM device for msm8998"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:35 +0000 (05:25 -0700)]
Merge "ARM: dts: msm: add dummy SPSS ETM device for msm8998"

6 years agoMerge "ASoc: msm: Add pm_qos_request_active condition check"
Linux Build Service Account [Tue, 12 Sep 2017 12:25:34 +0000 (05:25 -0700)]
Merge "ASoc: msm: Add pm_qos_request_active condition check"

6 years agommc: host: sdhci-msm: Enable SDHC FIFO explicitly
Veerabhadrarao Badiganti [Tue, 12 Sep 2017 09:11:39 +0000 (14:41 +0530)]
mmc: host: sdhci-msm: Enable SDHC FIFO explicitly

Enable SDHC FIFO explicitly by disabling the alternative FIFO.

The boot-loaders might use alternative FIFO instead of HC FIFO.
And the vendor specific register which has this setting won't get
reset with controller reset. So the FIFO setting done by the
bootloader would remain as it is unless its explicitly cleared.
Without clearing this setting, mmc driver can't make use of regular
FIFO mode.

Change-Id: I8c7ff9b20c33518fb9013cce2f9284117fc2ce3c
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
6 years agomsm: mdss: hdmi: fix no audio over HDMI on device bootup
Narender Ankam [Mon, 24 Jul 2017 12:56:12 +0000 (18:26 +0530)]
msm: mdss: hdmi: fix no audio over HDMI on device bootup

In case of HDMI interface as primary, if device boots up with
HDMI connected, external interface driver is unable to notify
audio events as audio codec is getting registered later.
Add change to send audio event once audio codec gets registered.

Change-Id: I8d630adf892714ff2eb4d6039dc058b54c425b83
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
6 years agomsm: mdss: hdmi: notify hdmi audio event after video is up
Narender Ankam [Mon, 24 Jul 2017 11:58:46 +0000 (17:28 +0530)]
msm: mdss: hdmi: notify hdmi audio event after video is up

Modify HDMI driver so that video and audio events are notified
separately. Notify video events asynchronously. send audio
events only after video is up.

Change-Id: Ie6e4e564456d65f6b6d733b8accd14b9ce4c7e15
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
6 years agomsm: camera: isp: Avoid stats data corruption.
Ramesh V [Mon, 4 Sep 2017 11:50:15 +0000 (17:20 +0530)]
msm: camera: isp: Avoid stats data corruption.

When several threads permanently, e.g., read/write the debugfs
file that triggers vfe_debugfs_statistics_read(), the content of
stats will be modified in an unintended manner, add spin_lock
to protect that.

Change-Id: I15d46498e669132ef1d1f5ad9c4305ee5fdb0da4
Signed-off-by: Ramesh V <ramev@codeaurora.org>
6 years agoMerge "msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:16 +0000 (19:13 -0700)]
Merge "msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area()"

6 years agoMerge "usb_bam: Delete IPA resources in usb_bam_remove()"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:15 +0000 (19:13 -0700)]
Merge "usb_bam: Delete IPA resources in usb_bam_remove()"

6 years agoMerge "scripts: correct cflags for kasan"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:06 +0000 (19:13 -0700)]
Merge "scripts: correct cflags for kasan"

6 years agoMerge "ASoC: sdm660_cdc: Fix mute if compander is disabled"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:05 +0000 (19:13 -0700)]
Merge "ASoC: sdm660_cdc: Fix mute if compander is disabled"

6 years agoMerge "dts: msm: Add QSEECOM heap node on msm8996 lfv platform"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:04 +0000 (19:13 -0700)]
Merge "dts: msm: Add QSEECOM heap node on msm8996 lfv platform"

6 years agoMerge "msm: thermal: Check cpu variables are initialized before setting threshold"
Linux Build Service Account [Tue, 12 Sep 2017 02:13:03 +0000 (19:13 -0700)]
Merge "msm: thermal: Check cpu variables are initialized before setting threshold"

6 years agoMerge "wil6210: ensure P2P device is stopped before removing interface"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:59 +0000 (19:12 -0700)]
Merge "wil6210: ensure P2P device is stopped before removing interface"

6 years agoMerge "wil6210: increase connect timeout"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:58 +0000 (19:12 -0700)]
Merge "wil6210: increase connect timeout"

6 years agoMerge "wil6210: clear PAL_UNIT_ICR part of device reset"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:58 +0000 (19:12 -0700)]
Merge "wil6210: clear PAL_UNIT_ICR part of device reset"

6 years agoMerge "wil6210: move pre-FW configuration to separate function"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:57 +0000 (19:12 -0700)]
Merge "wil6210: move pre-FW configuration to separate function"

6 years agoMerge "msm: ipa: Cache CNE event"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:56 +0000 (19:12 -0700)]
Merge "msm: ipa: Cache CNE event"

6 years agoMerge "msm: kgsl: Do not allocate scratch memory for A3xx"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:55 +0000 (19:12 -0700)]
Merge "msm: kgsl: Do not allocate scratch memory for A3xx"

6 years agoMerge "ath10k: Destroy QMI handle during driver unload"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:54 +0000 (19:12 -0700)]
Merge "ath10k: Destroy QMI handle during driver unload"

6 years agoMerge "msm: sensor: flash: add conditional check for ioctl"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:53 +0000 (19:12 -0700)]
Merge "msm: sensor: flash: add conditional check for ioctl"

6 years agoMerge "msm: kgsl: Fix gpu fault issue while enabling stall on page fault"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:52 +0000 (19:12 -0700)]
Merge "msm: kgsl: Fix gpu fault issue while enabling stall on page fault"

6 years agoMerge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:51 +0000 (19:12 -0700)]
Merge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"

6 years agoMerge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:50 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"

6 years agoMerge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:48 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"

6 years agoMerge "msm: ais: isp: Check null pointer for VFE0 base"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:47 +0000 (19:12 -0700)]
Merge "msm: ais: isp: Check null pointer for VFE0 base"

6 years agoMerge "ARM: dts: msm: enable camera on SDM636 MTP"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:46 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: enable camera on SDM636 MTP"

6 years agoMerge "mmc: core: enable async suspend of card"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:44 +0000 (19:12 -0700)]
Merge "mmc: core: enable async suspend of card"

6 years agoMerge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""
Linux Build Service Account [Tue, 12 Sep 2017 02:12:43 +0000 (19:12 -0700)]
Merge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""

6 years agomsm: vidc: Avoid adding failed instance into list
Yigang Zheng [Fri, 28 Jul 2017 09:34:34 +0000 (17:34 +0800)]
msm: vidc: Avoid adding failed instance into list

Fix system crash bug when run multiple vidc instances

Change-Id: I7716854c210bf8d1191e2744e555d42f42e4a1f5
Signed-off-by: Yigang Zheng <yigangz@codeaurora.org>
6 years agomsm: vidc: Do a proper clean-up in case of session abort
Praveen Kumar Dwivedi [Mon, 11 Sep 2017 19:25:36 +0000 (12:25 -0700)]
msm: vidc: Do a proper clean-up in case of session abort

A ctrl-c while the venus session is on causes WARN_ON
from function __vb2_queue_cancel. This fix will ensure that
all buffers are returned to vb2 when a stream off is called.
Also there is no need to process release reference event in
the case of session stop.

Change-Id: Id7bf05a17efe237791ad17585d04b59a16bd76d8
Signed-off-by: Praveen Kumar Dwivedi <pkd@codeaurora.org>
6 years agodrm/msm: fix non-zero offset register dumping
Abhinav Kumar [Thu, 31 Aug 2017 22:29:55 +0000 (15:29 -0700)]
drm/msm: fix non-zero offset register dumping

Remove format identifiers in the register dumping
function which incorrectly recognizes the offset and
the count of the registers to be dumped.

Also, reduce the chunk of memory copied from the SDE
hardware register range to align with the existing
register dumping mechanism.

Change-Id: I1ce7148275f5287e568fe6efc8774f4d495cdaa4
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>