OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agomsm: ipa: Fix use after free issue
Mohammed Javid [Tue, 3 Oct 2017 07:40:05 +0000 (13:10 +0530)]
msm: ipa: Fix use after free issue

Added code changes to avoid use after free
by having local copy and
cache it upon successful return.

Change-Id: Iffac9ba89658b986bd8b630d22af619300e0ff5d
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:51 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3"

6 years agoMerge "ASoC: sdm660_cdc: Fix HPH CnP and kernel panic issue on sdm660-internal"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:50 +0000 (03:06 -0700)]
Merge "ASoC: sdm660_cdc: Fix HPH CnP and kernel panic issue on sdm660-internal"

6 years agoMerge "msm: ipa: prevent string buffer overflows"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:49 +0000 (03:06 -0700)]
Merge "msm: ipa: prevent string buffer overflows"

6 years agoMerge "msm: kgsl: Use a lock when updating the sparse bindings"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:47 +0000 (03:06 -0700)]
Merge "msm: kgsl: Use a lock when updating the sparse bindings"

6 years agoMerge "scsi: ufs: Change power mode on line reset"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:46 +0000 (03:06 -0700)]
Merge "scsi: ufs: Change power mode on line reset"

6 years agoMerge "usb: gadget: gsi: Avoid spinlock lockup"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:45 +0000 (03:06 -0700)]
Merge "usb: gadget: gsi: Avoid spinlock lockup"

6 years agoMerge "ARM: dts: msm: Add fastrpc vmid flag for sdm660"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:44 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Add fastrpc vmid flag for sdm660"

6 years agoMerge "ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:43 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP"

6 years agoMerge "usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:42 +0000 (03:06 -0700)]
Merge "usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM"

6 years agoMerge "platform: msm: Fix USB device does not enumerate in SS mode"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:41 +0000 (03:06 -0700)]
Merge "platform: msm: Fix USB device does not enumerate in SS mode"

6 years agoMerge "msm: camera: Add support for plain16 mode"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:40 +0000 (03:06 -0700)]
Merge "msm: camera: Add support for plain16 mode"

6 years agoMerge "diag: Add NULL pointer checks for mask info"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:39 +0000 (03:06 -0700)]
Merge "diag: Add NULL pointer checks for mask info"

6 years agoMerge "ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:37 +0000 (03:06 -0700)]
Merge "ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes"

6 years agoMerge "defconfig: msm-auto: Enable CNSS2 platform driver"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:36 +0000 (03:06 -0700)]
Merge "defconfig: msm-auto: Enable CNSS2 platform driver"

6 years agoMerge "msm: mdss: check the length of the external input buffer properly"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:35 +0000 (03:06 -0700)]
Merge "msm: mdss: check the length of the external input buffer properly"

6 years agoMerge "clk: msm: mdss: add support for chip serial number in dfps info"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:34 +0000 (03:06 -0700)]
Merge "clk: msm: mdss: add support for chip serial number in dfps info"

6 years agoMerge "ASoC: msm: qdsp6v2: primary plus 8 interactive stream playback fix"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:33 +0000 (03:06 -0700)]
Merge "ASoC: msm: qdsp6v2: primary plus 8 interactive stream playback fix"

6 years agoARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3
Sathish Kumar [Tue, 15 Nov 2016 06:44:36 +0000 (12:14 +0530)]
ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3

GPU speed-bin 2 supports fmax of 560MHz and DDR 1555MHz.
Add this config to MSM8996v3 to support required GPU fmax.

Change-Id: Ibdf9bb63c7d8f0e980fbf3c192d536adeaeec52d
Signed-off-by: Dumpeti Sathish Kumar <sathyanov14@codeaurora.org>
6 years agomsm: kgsl: Use a lock when updating the sparse bindings
Lynus Vaz [Fri, 8 Sep 2017 13:02:53 +0000 (18:32 +0530)]
msm: kgsl: Use a lock when updating the sparse bindings

Use the appropriate lock when adding sparse bindings, to protect the
list of sparse bindings from concurrent updates by multiple threads.

Change-Id: Ice9750c96fca42f4049ed352533f4722b5166221
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agomsm: kgsl: Bail out when two threads add sparse bindings
Lynus Vaz [Fri, 8 Sep 2017 11:57:56 +0000 (17:27 +0530)]
msm: kgsl: Bail out when two threads add sparse bindings

If we find that a different thread has already added bindings at the
same offset we wanted to add to the sparse object, don't get stuck in
an infinite loop, and return with an error.

Change-Id: I6b17c91eccb14c07e13cae24135dfe7b13f3301d
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agomsm: ipa: prevent string buffer overflows
Mohammed Javid [Tue, 26 Sep 2017 07:21:14 +0000 (12:51 +0530)]
msm: ipa: prevent string buffer overflows

In WAN ioctls user-supplied data structures
contain string members,but there's no guarantee
they're null-terminated, add the string terminator
to prevent vulnerability of string buffer overflows.

Change-Id: I17c06c94aa619a2cd3a678c495a31541a65a7741
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoARM: dts: msm: Add fastrpc vmid flag for sdm660
Tharun Kumar Merugu [Tue, 3 Oct 2017 07:24:36 +0000 (12:54 +0530)]
ARM: dts: msm: Add fastrpc vmid flag for sdm660

Add device specific flag for new vmid heap shared feature.

Change-Id: I35cc0073a5fa10c715d520ebb9d77936a6820aa9
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agousb: gadget: gsi: Avoid spinlock lockup
Pratham Pratap [Tue, 12 Sep 2017 06:41:48 +0000 (12:11 +0530)]
usb: gadget: gsi: Avoid spinlock lockup

In this case gsi_ctrl_clear_cpkt_queues function is called
which is holding spinlock and in the meantime dwc3_interrupt
occurred on same CPU which in turn is calling gsi_ctrl_clear_cpkt_queues
function and it is trying to acquire the same spinlock causing
deadlock.

This change disables the interrupts when spinlock is acquired
in gsi_ctrl_clear_cpkt_queues function.

Change-Id: Ia87a0a283ca6b6298083dddb448e4d649a4f8e89
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
6 years agoscsi: ufs: Change power mode on line reset
Asutosh Das [Fri, 15 Sep 2017 10:44:26 +0000 (16:14 +0530)]
scsi: ufs: Change power mode on line reset

Line reset can occur during hibernate enter, exit or
during PA_INIT. In some cases, system slowness problem
is observed when line reset happened during hibernate
enter process in auto hibernate mode of operation as
link remains in PWM-G1 mode. To fix this problem, read
PA_PWRmode, PA_TxGear and PA_RxGear if line reset is
detected and if link is in PWM-G1 mode, initiate power
mode change to expected HS gear.

Change-Id: Ic06a11c917e8954743c4dcf80b89fedeec4584ed
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agoMerge "msm: wlan: Update regulatory database"
Linux Build Service Account [Fri, 29 Sep 2017 13:47:29 +0000 (06:47 -0700)]
Merge "msm: wlan: Update regulatory database"

6 years agomsm: camera: Add support for plain16 mode
Samyukta Mogily [Thu, 20 Jul 2017 10:07:52 +0000 (15:37 +0530)]
msm: camera: Add support for plain16 mode

Add sensor formats for 10 bit csid plain16.

Change-Id: Ib9477f59803f5a14dfd42dfda016e090fada3028
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes
Varun Balaraj [Fri, 22 Sep 2017 14:34:49 +0000 (20:04 +0530)]
ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes

Change the downmix/pan_scale control data type from integer to bytes
to make it compatible across different archs.

Change-Id: I9282673dc1e124185d7c545206bba31966b803dc
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
6 years agoMerge "msm: Add CLD80211_ATTR_META_DATA vendor attribute"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:49 +0000 (20:05 -0700)]
Merge "msm: Add CLD80211_ATTR_META_DATA vendor attribute"

6 years agoMerge "power: smb-lib: Disable USB IRQs during high duty cycle"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:48 +0000 (20:05 -0700)]
Merge "power: smb-lib: Disable USB IRQs during high duty cycle"

6 years agoMerge "soc: qcom: pil: Avoid possible buffer overflow"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:46 +0000 (20:05 -0700)]
Merge "soc: qcom: pil: Avoid possible buffer overflow"

6 years agoMerge "pwm: pwm-qpnp: Fix uninitialized variable use"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:45 +0000 (20:05 -0700)]
Merge "pwm: pwm-qpnp: Fix uninitialized variable use"

6 years agosoc: qcom: pil: Avoid possible buffer overflow
Kaushal Kumar [Tue, 26 Sep 2017 14:28:48 +0000 (19:58 +0530)]
soc: qcom: pil: Avoid possible buffer overflow

MBA image size comparison check is currently being
done with a signed count whose value can possibly be
negative. If count value is negative then comparison
will always succeed and invoke memcpy with incorrect
value of count leading to buffer overflow. Fix this
by not using signed comparison.

Change-Id: Id2d0cafae01f940f36cfd559d4656fc0f022d6a5
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
6 years agoARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP
Ajay Agarwal [Tue, 19 Sep 2017 11:09:16 +0000 (16:39 +0530)]
ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP

This change adds device tree flag to allow system suspend
on automotive platform with USB devices connected that do
not support runtime suspend.

Change-Id: I3ddda5052c866e16c46e5a46255acc28ab6f9363
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agousb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM
Ajay Agarwal [Thu, 17 Aug 2017 13:17:19 +0000 (18:47 +0530)]
usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM

DWC3 driver uses wakeup_source and allows pm_suspend only after
entering low power mode as part of runtime suspend. This prevents
PM suspend in host mode if connected device's driver doesn't
support runtime or selective suspend.
Add support in driver where user can specify using dtsi attribute
to not use wakeup source in host mode. It will allow system to enter
deep sleep or pm_suspend irrespective of runtime PM state of XHCI.
On high level below are the changes in default behavior:
 -Do not use wakeup_source for DWC3 when operating in host mode.
 -For host mode, devices will suspend upon PM suspend and resumed
  after PM resume.

Change-Id: Ia1d450e6dd99e094e48caf9723a355b7870b54dd
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "scsi: ufshcd: Flush exception event before suspend"
Linux Build Service Account [Wed, 27 Sep 2017 04:50:09 +0000 (21:50 -0700)]
Merge "scsi: ufshcd: Flush exception event before suspend"

6 years agoMerge "mdss: mdp: Validate null commit for secure display"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:58 +0000 (21:49 -0700)]
Merge "mdss: mdp: Validate null commit for secure display"

6 years agoMerge "msm: kgsl: Don't read stale crashdumper data"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:57 +0000 (21:49 -0700)]
Merge "msm: kgsl: Don't read stale crashdumper data"

6 years agoMerge "ath10k: Fix unwanted probe requests sent during p2p scan"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:55 +0000 (21:49 -0700)]
Merge "ath10k: Fix unwanted probe requests sent during p2p scan"

6 years agoMerge "ARM: dts: msm: disable secondary adv7533 on msm8996 lite board"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:54 +0000 (21:49 -0700)]
Merge "ARM: dts: msm: disable secondary adv7533 on msm8996 lite board"

6 years agoMerge "battery: reduce SMB only for taper stepper"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:52 +0000 (21:49 -0700)]
Merge "battery: reduce SMB only for taper stepper"

6 years agoMerge "drm/msm: add HDCP_VERSION property for connector"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:51 +0000 (21:49 -0700)]
Merge "drm/msm: add HDCP_VERSION property for connector"

6 years agoMerge "qseecom: check return value of __qseecom_process_reentrancy"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:50 +0000 (21:49 -0700)]
Merge "qseecom: check return value of __qseecom_process_reentrancy"

6 years agoMerge "ARM: dts: msm: Add laser LED support on MSM8998 MTP"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:49 +0000 (21:49 -0700)]
Merge "ARM: dts: msm: Add laser LED support on MSM8998 MTP"

6 years agopwm: pwm-qpnp: Fix uninitialized variable use
Fenglin Wu [Wed, 27 Sep 2017 04:28:39 +0000 (12:28 +0800)]
pwm: pwm-qpnp: Fix uninitialized variable use

Fix uninitialized variable use which would cause unexpected return
value.

CRs-Fixed: 2070945
Change-Id: I874ec28904149061246fb4c2b24444a4c33e0116
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
6 years agoplatform: msm: Fix USB device does not enumerate in SS mode
Sriharsha Allenki [Tue, 26 Sep 2017 12:56:44 +0000 (18:26 +0530)]
platform: msm: Fix USB device does not enumerate in SS mode

The max speed for the USB device is high speed. So
the device is always enumerated in high speed indpendent
of the connection. Fix this by setting the EXTCON_USB_SPEED
to 1 which in turn sets the max speed as super speed.

CRs-Fixed: 2108100
Change-Id: I8f313cc3ee015a1340ab78650e17334ca85ddd27
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
6 years agoplatform: msm: Check USB ID state on probe
Sriharsha Allenki [Tue, 26 Sep 2017 12:39:32 +0000 (18:09 +0530)]
platform: msm: Check USB ID state on probe

If the device is booted up with OTG cable connected,
the device does not switch to host mode. The trigger
is lost because the irqs are enabled at a later time.
Fix this by checking the ID state during probe.

CRs-Fixed: 2106351
Change-Id: I742d0839832219e757348e102252f97d95a8335b
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
6 years agoath10k: Fix unwanted probe requests sent during p2p scan
Rakesh Pillai [Sat, 19 Aug 2017 06:20:23 +0000 (11:50 +0530)]
ath10k: Fix unwanted probe requests sent during p2p scan

During p2p find unwanted probe requests with broadcast SSID is
sent along with the probe requests with p2p wildcard SSID.

The addition of survey report flag in scan flags initiates an
active scan along with the p2p scan, due to which we see probe
requests with broadcast SSID along with the probe requests having
p2p wildcard SSID.

Fix the flags sent during scan command for p2p scan.

CRs-Fixed: 2093805
Change-Id: I7c2a1502ef86bc5151e8c86f4a89f073e75a925d
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agoath10k: Fix p2p_listen for wcn3990
Rakesh Pillai [Fri, 18 Aug 2017 15:14:51 +0000 (20:44 +0530)]
ath10k: Fix p2p_listen for wcn3990

p2p_listen not working due to inncorrect scan flags
passed to firmware.

Disable the fitlering out of probe request flag in
scan flag during remain on channel in p2p listen.

CRs-Fixed: 2095628
Change-Id: Ie39222c487160ba4001771fc8e1c6f6f161dfb65
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agoMerge "drm/msm: fix zero device count HDCP repeater test cases"
Linux Build Service Account [Tue, 26 Sep 2017 03:52:54 +0000 (20:52 -0700)]
Merge "drm/msm: fix zero device count HDCP repeater test cases"

6 years agoMerge "ath10k: skip sending default IE in scan request added by firmware"
Linux Build Service Account [Tue, 26 Sep 2017 03:52:53 +0000 (20:52 -0700)]
Merge "ath10k: skip sending default IE in scan request added by firmware"

6 years agoMerge "battery: wait 500mS between steps for taper stepper"
Linux Build Service Account [Tue, 26 Sep 2017 03:52:52 +0000 (20:52 -0700)]
Merge "battery: wait 500mS between steps for taper stepper"

6 years agoMerge "smb-lib: allow reading vbus without presence"
Linux Build Service Account [Tue, 26 Sep 2017 03:52:51 +0000 (20:52 -0700)]
Merge "smb-lib: allow reading vbus without presence"

6 years agodrm/msm: add HDCP_VERSION property for connector
Abhinav Kumar [Wed, 20 Sep 2017 03:37:31 +0000 (20:37 -0700)]
drm/msm: add HDCP_VERSION property for connector

Expose a HDCP_VERSION property for the connector.
This property is used by the userspace to decide the
proper handling of secure streams based on HDCP version
of the sink.

This also guarantees that sinks do not receive
secure content higher than their capability.

Change-Id: Ia4ada2f26a5cde088b24c8792c10c9f9097602b1
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
6 years agoqseecom: check return value of __qseecom_process_reentrancy
Zhen Kong [Tue, 19 Sep 2017 21:34:16 +0000 (14:34 -0700)]
qseecom: check return value of __qseecom_process_reentrancy

make change to check return value of __qseecom_process_reentrancy,
and modify error processing.

Change-Id: I6a37de79f6c6b4245b9654ea9724b51e62b8e7a2
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agodrm/msm: fix zero device count HDCP repeater test cases
Abhinav Kumar [Tue, 12 Sep 2017 05:27:27 +0000 (22:27 -0700)]
drm/msm: fix zero device count HDCP repeater test cases

Fix the handling of HDCP repeaters to mark part II
of the authentication as failure if they do not have
any devices connected to them.

Change-Id: I6b21ed2ce9a280f7e200404b05d111508a6d3dd8
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
6 years agoscsi: ufshcd: Flush exception event before suspend
Sayali Lokhande [Wed, 23 Aug 2017 14:14:14 +0000 (19:44 +0530)]
scsi: ufshcd: Flush exception event before suspend

Exception event can be raised by the device when system
suspend is in progress. This will result in unclocked
register access in exception event handler as clocks will
be turned off during suspend. This change makes sure to flush
exception event handler work in suspend before disabling
clocks to avoid unclocked register access issue.

Change-Id: I5a089a0387790a12f4cc3213c75e9677467a2a07
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agomsm: kgsl: Don't read stale crashdumper data
Lynus Vaz [Wed, 13 Sep 2017 14:51:07 +0000 (20:21 +0530)]
msm: kgsl: Don't read stale crashdumper data

After the crashdumper runs once, and the user sets the
snapshot_crashdumper sysfs node to 0, it is possible that stale data
is saved off into the snapshot. Check the value of the sysfs node at
the appropriate place to force a re-read of the data through the
legacy path.

Change-Id: Icf27c39b68d786003c33fd0eb22bd3e8b9a036be
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agoMerge "SoC: msm: change the MAX value of "App Type Config" kcontrol"
Linux Build Service Account [Mon, 25 Sep 2017 02:54:04 +0000 (19:54 -0700)]
Merge "SoC: msm: change the MAX value of "App Type Config" kcontrol"

6 years agoMerge "ALSA: info: Protect list access of new entry"
Linux Build Service Account [Sun, 24 Sep 2017 18:54:02 +0000 (11:54 -0700)]
Merge "ALSA: info: Protect list access of new entry"

6 years agoMerge "ASoc: msm: Support primary TDM interface"
Linux Build Service Account [Sun, 24 Sep 2017 18:54:01 +0000 (11:54 -0700)]
Merge "ASoc: msm: Support primary TDM interface"

6 years agoMerge "drm:msm:sde: enable sde client customization"
Linux Build Service Account [Sun, 24 Sep 2017 18:54:00 +0000 (11:54 -0700)]
Merge "drm:msm:sde: enable sde client customization"

6 years agoMerge "ARM: dts: msm: Override GPU speed bin 2 for MSM8996Pro"
Linux Build Service Account [Sun, 24 Sep 2017 11:37:31 +0000 (04:37 -0700)]
Merge "ARM: dts: msm: Override GPU speed bin 2 for MSM8996Pro"

6 years agoMerge "ARM: dts: msm: update PCIe WAKE for msm8998 to be pull-up"
Linux Build Service Account [Sun, 24 Sep 2017 11:37:30 +0000 (04:37 -0700)]
Merge "ARM: dts: msm: update PCIe WAKE for msm8998 to be pull-up"

6 years agomdss: mdp: Validate null commit for secure display
Animesh Kishore [Sat, 23 Sep 2017 16:38:10 +0000 (22:08 +0530)]
mdss: mdp: Validate null commit for secure display

Secure display entry/exit should be accompanied
by null commit in video mode to make sure there is
no non secure access.

Change-Id: I7928a2465de9c46f69e963977931f7a6618f01fb
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
6 years agoMerge "msm: ais: Instead of read_lock use read_lock_irqsave"
Linux Build Service Account [Sun, 24 Sep 2017 04:05:46 +0000 (21:05 -0700)]
Merge "msm: ais: Instead of read_lock use read_lock_irqsave"

6 years agoMerge "msm: camera: Add laser LED support for depth sensor"
Linux Build Service Account [Sat, 23 Sep 2017 18:51:01 +0000 (11:51 -0700)]
Merge "msm: camera: Add laser LED support for depth sensor"

6 years agoMerge "cnss2: Set debug state when using debugfs dev_boot node"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:55 +0000 (17:26 -0700)]
Merge "cnss2: Set debug state when using debugfs dev_boot node"

6 years agoMerge "mhi: core: move mhi_states_transition_str out of stack"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:55 +0000 (17:26 -0700)]
Merge "mhi: core: move mhi_states_transition_str out of stack"

6 years agoMerge "cnss2: Return proper error code for nonsupported devices"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:54 +0000 (17:26 -0700)]
Merge "cnss2: Return proper error code for nonsupported devices"

6 years agoMerge "Revert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups""
Linux Build Service Account [Sat, 23 Sep 2017 00:26:53 +0000 (17:26 -0700)]
Merge "Revert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups""

6 years agoMerge "serial: msm_serial_hs: Keep Rx and Tx path clean while going inactive"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:52 +0000 (17:26 -0700)]
Merge "serial: msm_serial_hs: Keep Rx and Tx path clean while going inactive"

6 years agoMerge "ARM: dts: msm: reserve memory for early-audio on msm8996"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:51 +0000 (17:26 -0700)]
Merge "ARM: dts: msm: reserve memory for early-audio on msm8996"

6 years agoMerge "arm/arm64: Define backport flag for save_stack_trace_tsk()"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:50 +0000 (17:26 -0700)]
Merge "arm/arm64: Define backport flag for save_stack_trace_tsk()"

6 years agoMerge "drm/msm: Add save/restore functions for perfcounters"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:46 +0000 (17:26 -0700)]
Merge "drm/msm: Add save/restore functions for perfcounters"

6 years agoMerge "power: qpnp-fg-gen3: synchronize ESR extraction control configuration"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:45 +0000 (17:26 -0700)]
Merge "power: qpnp-fg-gen3: synchronize ESR extraction control configuration"

6 years agoMerge "vidc: Enable skip output buffers for video encoder"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:45 +0000 (17:26 -0700)]
Merge "vidc: Enable skip output buffers for video encoder"

6 years agoMerge "udpv6: Fix the checksum computation when HW checksum does not apply"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:44 +0000 (17:26 -0700)]
Merge "udpv6: Fix the checksum computation when HW checksum does not apply"

6 years agoMerge "ASoC: msm: qdsp6v2: change to no-wait command for RTIC event"
Linux Build Service Account [Sat, 23 Sep 2017 00:26:43 +0000 (17:26 -0700)]
Merge "ASoC:  msm: qdsp6v2: change to no-wait command for RTIC event"

6 years agomhi: core: move mhi_states_transition_str out of stack
Sujeev Dias [Fri, 15 Sep 2017 22:50:06 +0000 (15:50 -0700)]
mhi: core: move mhi_states_transition_str out of stack

To prevent un-initialized address returning from MHI
state transition lookup table, move mhi_states_transition_str
array out of stack

CRs-Fixed: 2111049
Change-Id: Ife5f907a711cc0c615161f2b2a677275d6773686
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
6 years agocnss2: Set debug state when using debugfs dev_boot node
Yue Ma [Fri, 22 Sep 2017 19:49:15 +0000 (12:49 -0700)]
cnss2: Set debug state when using debugfs dev_boot node

When using debugfs dev_boot node to trigger firmware download,
debug state should be set as well so that subsequence shutdown
and powerup can be handled correctly.

Change-Id: Id85d28dca104f8938d78655d682a0a7d1491c04c
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoMerge "msm: camera: sensor: Add OIS read functionality"
Linux Build Service Account [Fri, 22 Sep 2017 16:13:45 +0000 (09:13 -0700)]
Merge "msm: camera: sensor: Add OIS read functionality"

6 years agoMerge "ion: fix the return value of shrinkers"
Linux Build Service Account [Fri, 22 Sep 2017 16:13:44 +0000 (09:13 -0700)]
Merge "ion: fix the return value of shrinkers"

6 years agoMerge "arm64: stacktrace: avoid listing stacktrace functions in stacktrace"
Linux Build Service Account [Fri, 22 Sep 2017 16:13:42 +0000 (09:13 -0700)]
Merge "arm64: stacktrace: avoid listing stacktrace functions in stacktrace"

6 years agoMerge "msm: mdss: Fix potential race condition in rotator"
Linux Build Service Account [Fri, 22 Sep 2017 16:13:42 +0000 (09:13 -0700)]
Merge "msm: mdss: Fix potential race condition in rotator"

6 years agoMerge "ASoC: msm: qdsp6v2: Fix dangling pointer access"
Linux Build Service Account [Fri, 22 Sep 2017 16:13:41 +0000 (09:13 -0700)]
Merge "ASoC: msm: qdsp6v2: Fix dangling pointer access"

6 years agoRevert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups"
Vikram Mulukutla [Fri, 22 Sep 2017 00:24:24 +0000 (17:24 -0700)]
Revert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups"

This reverts commit c5616f2f874faa20b59b116177b99bf3948586df.

If we re-init the per-cpu boostgroup spinlock every time that
we add a new boosted cgroup, we can easily wipe out (reinit)
a spinlock struct while in a critical section. We should only
be setting up the per-cpu boostgroup data, and the spin_lock
initialization need only happen once - which we're already
doing in a postcore_initcall.

For example:

     -------- CPU 0 --------   | -------- CPU1 --------
cgroupX boost group added      |
schedtune_enqueue_task         |
  acquires(bg->lock)           | cgroupY boost group added
                               |  for_each_cpu()
                               |    raw_spin_lock_init(bg->lock)
  releases(bg->lock)           |
      BUG (already unlocked)   |
       |

This results in the following BUG from the debug spinlock code:
BUG: spinlock already unlocked on CPU#5, rcuop/6/68

CRs-fixed: 2113062
Change-Id: I1cd780d9ba5801cf99bfe46504b18a88e45f17a8
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
6 years agoARM: dts: msm: disable secondary adv7533 on msm8996 lite board
Guchun Chen [Fri, 22 Sep 2017 07:11:00 +0000 (15:11 +0800)]
ARM: dts: msm: disable secondary adv7533 on msm8996 lite board

Msm8996 adp lite board has two displays, native HDMI display and one
DSI-HDMI display through ADV7533 bridge chip. So only one ADV7533
instance is needed here. And at the meanwhile, total sde_kms components
need to match the configuration, otherwise, display driver probe will be
skipped due to this mismatch.

Change-Id: If596a64a9e47416e0810039914a958cae61c7e3e
CRs-Fixed: 2113147
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agomsm: camera: sensor: Add OIS read functionality
Xu Han [Wed, 4 Jan 2017 18:43:47 +0000 (10:43 -0800)]
msm: camera: sensor: Add OIS read functionality

Adding capability to read OIS data, provided in the driver
register settings.

CRs-Fixed: 2114654
Change-Id: Ie10b55f597a4daa29267c6d4333ce9d9c7702d63
Signed-off-by: Xu Han <hanxu@codeaurora.org>
6 years agovidc: Enable skip output buffers for video encoder
Shiju Mathew [Tue, 1 Aug 2017 14:34:53 +0000 (10:34 -0400)]
vidc: Enable skip output buffers for video encoder

Added feature to configure video h/w to send empty output buffer
for skipped frame due to rate control.

Change-Id: Id47344c3bae216fec6384ff205bcb658ec27cb06
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
6 years agoASoc: msm: Support primary TDM interface
Cong Tang [Wed, 31 May 2017 08:05:25 +0000 (16:05 +0800)]
ASoc: msm: Support primary TDM interface

Support primary TDM interface dai link and export kcontrols to update
primary TDM interface slot configuration.

CRs-fixed: 2095930
Change-Id: I693b99f295f6476c96d681e10459842c0011467f
Signed-off-by: Cong Tang <congt@codeaurora.org>
6 years agocnss2: Return proper error code for nonsupported devices
Yue Ma [Thu, 21 Sep 2017 20:55:53 +0000 (13:55 -0700)]
cnss2: Return proper error code for nonsupported devices

Platform driver only forces FW assert for supported devices.
Return proper error code for nonsupported devices so that WLAN
host driver can handle properly.

Change-Id: Iaf88f64564b14425404404db6a7789a7913db74f
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agomsm: Add CLD80211_ATTR_META_DATA vendor attribute
Naveen Rawat [Mon, 18 Sep 2017 19:20:20 +0000 (12:20 -0700)]
msm: Add CLD80211_ATTR_META_DATA vendor attribute

Add CLD80211_ATTR_META_DATA vendor attribute, which will be used by
userspace RTT application to send meta data to wlan driver allowing
it to peek into RTT request message without opening up complete
definition of RTT message.

Change-Id: If2f8253b59c6860fbaecab05f1b76f11da1ddb6f
CRs-Fixed: 2114181
Signed-off-by: Naveen Rawat <naveenrawat@codeaurora.org>
6 years agodefconfig: msm-auto: Enable CNSS2 platform driver
Yue Ma [Wed, 12 Jul 2017 18:28:55 +0000 (11:28 -0700)]
defconfig: msm-auto: Enable CNSS2 platform driver

Use CNSS2 platform driver instead of CNSS in AUTO platforms.

Change-Id: I0b5df067d05ceafd759b3cefab1b506a659af50e
CRs-fixed: 2071634
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoASoC: msm: Add pan/scale & downmix control as platform mixer controls
Varun Balaraj [Thu, 7 Sep 2017 14:25:39 +0000 (19:55 +0530)]
ASoC: msm: Add pan/scale & downmix control as platform mixer controls

During soundcard deregistration, free_chmap() is called as part of
pcm_free. This only frees downmix kcontrol as pcm has reference
only to downmix kcontrol followed by freeing of pcm pointer. The
other two kcontrol are freed as part of snd_ctl_remove(). However,
while freeing other two kcontrols, pcm_usr_ctl_private_free()
accesses pcm->streams which are already freed causing crash.
Fix is to add pan/scale & downmix controls as platform controls
instead of user control.

Change-Id: Ib2890122d079201e02c4b7839694d2e7618037b7
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
6 years agoion: fix the return value of shrinkers
Vinayak Menon [Tue, 19 Sep 2017 09:34:09 +0000 (15:04 +0530)]
ion: fix the return value of shrinkers

ION page pool and cma shrinkers return the total pooled
memory instead of the freed. This can result in an early
exit of ION page pool shrinker thus giving back less memory
to the system. For cma shrinker this change doesn't have an
effect since the callers of shrink_slab currently ignores
the return value.

Change-Id: I0b3727807d9a5f020623766d27da360d077395f3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agodrm:msm:sde: enable sde client customization
Guchun Chen [Thu, 21 Sep 2017 07:15:47 +0000 (15:15 +0800)]
drm:msm:sde: enable sde client customization

Sde client customization is disabled by previous commit which
is propagated from other branch. After disabling this, 4K display
on HDMI can not be up. This is because when creating drm plane in kernel,
sde client customization will directly set possible_crtcs per plane
reporting to user space. When disabling it, user space's sdm strategy
could not get and assign correct pipes for 4K display.

Change-Id: Ie6a870c352533060f7c810bdb5c99b7c1534117d
CRs-fixed: 2107328
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agoserial: msm_serial_hs: Keep Rx and Tx path clean while going inactive
Mukesh Kumar Savaliya [Fri, 1 Sep 2017 12:20:08 +0000 (17:50 +0530)]
serial: msm_serial_hs: Keep Rx and Tx path clean while going inactive

This patch disables Rx and Tx engine properly while going to suspend or
shutdown. There are chances when BT SOC or client is going bad and
disrupts the UART SW state machine.

1.Do not allow double resource_vote and hence pipe connect at port open.
2.While going to suspend, close the HW resources forcibly to prevent
  UART from going bad for the subsequent resume cycle.
3.Stop Rx engine gracefully even if clocks are off to obey the framework.
4.During resource unvote, if runtime PM is disabled then go for forced
  suspend.
5.In case of fatal error, stop further IPC logging.
6.Add relevant log if the Rx pipe is not empty at the time disconnecting.
7.Prevent Rx byte entering in case of back to back loopback test, as
  this causes data mismatch.
8.Add the logs correctly just after reading the status instead doing it
  later which doesn't get logged in case of any failure.

Change-Id: I9426e9ae8c5b07d74e95ec37651ece0d46928104
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
6 years agopower: smb-lib: Disable USB IRQs during high duty cycle
Fenglin Wu [Thu, 24 Aug 2017 06:28:54 +0000 (14:28 +0800)]
power: smb-lib: Disable USB IRQs during high duty cycle

Disable USB IRQs after high duty cycle IRQ triggered and re-enable
them in the delay worker. This helps to avoid the high duty cycle
IRQ storming.

CRs-Fixed: 2094725
Change-Id: Iba22a7402692b5ee5f738cc17ed9c214f6014ac0
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
6 years agosmb-lib: allow reading vbus without presence
Abhijeet Dharmapurikar [Wed, 20 Sep 2017 01:04:15 +0000 (18:04 -0700)]
smb-lib: allow reading vbus without presence

Currently the driver skips invoking adc api's if usb is not
present i.e. vbus has fallen below 3.3V.

This presence check is not required for the vbus. Skip that
check.

Change-Id: I4a2dd91109a308b553b7407618ee8f3221127f61
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>