Commit graph

884,198 commits

Author SHA1 Message Date
Vipin Deep Kaur
e9b202cb6d i2c: i2c-msm-geni: Add per session lock/unlock support in i2c
Add per session lock/unlock support in i2c.

Change-Id: I1a7b8e5992aad473364a0c92a41986fa9680120f
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
2020-06-11 22:39:30 -07:00
qctecmdr
dfc8288102 Merge "scsi: ufs: Enable WriteBooster" 2020-06-11 10:59:15 -07:00
qctecmdr
e56575eaad Merge "coresight: byte-cnter: Add ETR status check in bypass notifier" 2020-06-11 10:59:14 -07:00
qctecmdr
7c93753e20 Merge "smcinvoke: Move error message to debug" 2020-06-11 10:59:14 -07:00
qctecmdr
dedd7a1e0b Merge "devfreq: memlat: fix potential deadlock during CPU hotplug" 2020-06-11 10:59:14 -07:00
qctecmdr
7aab4d7c7d Merge "PM / devfreq: memlat: increase ratio_ceil limit" 2020-06-11 10:59:14 -07:00
qctecmdr
5963622ada Merge "usb: xhci: Don't check for USB_STATE_NOTATTACHED in sec_event_ring_cleanup" 2020-06-11 10:59:13 -07:00
qctecmdr
33371193a7 Merge "usb: typec: ucsi: Modify IPC log string" 2020-06-11 10:59:13 -07:00
qctecmdr
1b5b9c4b20 Merge "sound: usb: Increase upper bound check for bInterval to 16" 2020-06-11 10:59:13 -07:00
qctecmdr
6a7962bf50 Merge "msm: ipa: Add support to notify wan upstream iface info" 2020-06-11 10:59:13 -07:00
qctecmdr
086b1556d5 Merge "ANDROID: scs: fix recursive spinlock in scs_check_usage" 2020-06-11 10:59:12 -07:00
qctecmdr
c2d54934ff Merge "dwc3-msm: Add support to vote USB FORCE_MEM_CORE_ON" 2020-06-11 10:59:12 -07:00
qctecmdr
8958166013 Merge "soc: qcom: mem-buf: Fix error handling when releasing memory" 2020-06-11 10:59:12 -07:00
Hemant Kumar
3c1d70e5e7 sound: usb: Increase upper bound check for bInterval to 16
Driver currently restrict upper bound check for bInterval
to 4 which corresponds to 1 ms. Fix the bInterval range
check as per the USB spec for ISOC endpoint.

Change-Id: I580e1fdfab0eeb1231642b920239691e7af67727
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-06-10 12:46:56 -07:00
Jack Pham
da53231c3f usb: xhci: Don't check for USB_STATE_NOTATTACHED in sec_event_ring_cleanup
Similar to xhci_stop_endpoint(), this API is called when a device
is removed. The check for udev->state == USB_STATE_NOTATTACHED
was added by mistake and should be removed.

Change-Id: Ie0df67c3139bd585f098215d093169c961710349
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-06-10 11:53:54 -07:00
qctecmdr
1d46207553 Merge "sched: Improve the scheduler" 2020-06-10 11:30:47 -07:00
AnilKumar Chimata
42915e55d6 smcinvoke: Move error message to debug
Most of the times mink returns response type as inbound
request needed, which is nothing but call back object
requests. While decoding the response type it should
provide as info or debug message instead of error message.

Change-Id: I7eac9f6ae779b4c3d952fac38880cf4a658428c5
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-06-10 20:45:38 +05:30
Tao,Zhang
89ac6c47b8 coresight: byte-cnter: Add ETR status check in bypass notifier
It is possible that notify call is called after etr is disabled or
after mode switch from usb to etr. Add etr status check to avoid
exception.

Change-Id: I65e81e5ec01ebb3747936cdd81f886632c5419f1
Signed-off-by: Tao,Zhang <taozha@codeaurora.org>
2020-06-10 06:26:29 -07:00
Sami Tolvanen
42dd9451e6 ANDROID: scs: fix recursive spinlock in scs_check_usage
Use cmpxchg instead of a spinlock in scs_check_usage() to avoid
deadlocks.

Bug: 157781894
Change-Id: I1701ccaf25fdbd34ce4798c6f93e220b1565fb34
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Git-commit: e467b8c7db
Git-repo: https://android.googlesource.com/kernel/common
[jshriram@codeaurora.org: cherry-pick]
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-09 23:39:55 -07:00
Jack Pham
5d938924f9 usb: xhci: Don't check for USB_STATE_NOTATTACHED in xhci_stop_endpoint
This API can be called by the QMI sound driver precisely when a
device is disconnected in order to issue a stop endpoint command
to properly halt the transfer ring. With this check the function
silently bails, so the XHCI controller hardware may continue to
be accessing the buffers on the transfer ring; meanwhile the
QMI sound driver proceeds to unmap the buffers from DMA
resulting in an SMMU fault. Remove the check to allow the
endpoint to be properly stopped.

Change-Id: I80315c31d9b1685ac4375c1da051a8e22cab07ca
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-06-09 23:30:41 -07:00
Guru Das Srinagesh
394335503c usb: typec: ucsi: Modify IPC log string
Remove redundant function name information from the log string, and add
a word to help in readability.

Change-Id: I464b7c8e60771ea06744ef910c525c6dd664492e
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-06-09 20:41:42 -07:00
Asutosh Das
7e584e6331 scsi: ufs: Enable WriteBooster
The write performance of TLC NAND is considerably lower than SLC NAND.
Using SLC NAND as a WriteBooster Buffer enables the write request to be
processed with lower latency and improves the overall write
performance.

Adds support for shared-buffer mode WriteBooster.

WriteBooster enable:
SW enables it when clocks are scaled up, thus it's
enabled only in high load conditions.

WriteBooster disable:
SW will disable the feature, when clocks are scaled
down. Thus writes would go as normal writes.

To keep the endurance of the WriteBooster Buffer at a maximum, this
load-based toggling is adopted.

Change-Id: I55a348f17e2d29b46ed9b29960254937c146f147
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-06-09 20:40:19 -07:00
Amir Vajid
d0142cbf68 devfreq: memlat: fix potential deadlock during CPU hotplug
The cpu_grp->mons_lock is acquired in the memlat hotplug notifier
callbacks to prevent races within the driver. The cpus_read_lock is
inherently acquired as well since it is in the middle of a hotplug
event. In parallel, stop_hwmon() could unregister from the hotplug
notifier (i.e. when last memlat mon in system is removed). However,
unregistering the hotplug notifier also requires the cpus_read_lock
and is done with the cpu_grp->mons_lock held as well which would lead
to a deadlock if a hotplug is currently in progress with the memlat
notifier callback waiting for the cpu_grp->mons_lock.

To fix this, release the cpu_grp->mons_lock in stop_hwmon() before
unregistering with the hotplug notifier. Also, make sure the memlat
hotplug notifier callbacks check cpu_grp->num_active_mons before
restarting events since that work won't be necessary if there are no
active memlat mons in the system.

Change-Id: I401639a6e28a472a64a96456d2c06f57b35dbc0d
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2020-06-09 16:46:50 -07:00
qctecmdr
063759141a Merge "aarch64: ABI: Update the QCOM whitelist" 2020-06-09 14:37:35 -07:00
qctecmdr
f5090438b6 Merge "interconnect: qcom: Add check to return status of clk_bulk_prepare_enable" 2020-06-09 14:25:01 -07:00
qctecmdr
f6564e6eb6 Merge "input: qcom-hv-haptics: update drive waveform data format" 2020-06-09 14:25:01 -07:00
qctecmdr
ff0bdab35c Merge "taskstats: add support for system stats" 2020-06-09 14:25:01 -07:00
qctecmdr
af1c8b84de Merge "interconnect: qcom: Fix the link error on 32bit architecture" 2020-06-09 14:25:00 -07:00
Raghavendra Rao Ananta
4dde087f1c aarch64: ABI: Update the QCOM whitelist
Update yet another batch of QCOM whitelist file with additional
symbols and regenerate the snapshot accordingly.

Change-Id: I0997a786fd50180744f1eb8fc9b0a817c589eb5e
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-09 06:37:53 -07:00
Stephen Dickey
b2cc9bc552 sched: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I6dc8fd228ca34fd36cdbaf58c42812bae3dcff7d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2020-06-08 23:52:52 -07:00
Siddharth Gupta
a74880d61c ANDROID: GKI: Enable SYS_HYPERVISOR
Used by some Linux hypervisor support to tell userspace which hypervisor
it is being run under.

Bug: 157224726
Change-Id: Ia1cb56e665af6b60f6a51b5e81dd7abed240f812
Signed-off-by: Alistair Delva <adelva@google.com>
Git-repo: https://android.googlesource.com/kernel/common/
Git-commit: f8aa5f514ccb2ded066fe47f6fd571fe016ca648
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-06-08 21:33:05 -07:00
qctecmdr
ad191fdc0c Merge "mm/memory_hotplug: Rate limit page migration warnings" 2020-06-08 17:54:16 -07:00
qctecmdr
36b26404a3 Merge "net: qrtr: Handle error from skb_put_padto" 2020-06-08 17:54:16 -07:00
qctecmdr
60794f6c20 Merge "arm64: defconfig: Reduce default CMA pool from to 8 MB for trusted VM" 2020-06-08 17:54:15 -07:00
qctecmdr
64159ee1f0 Merge "msm: adsprpc: ignoring error messages for duplicate RPC respond packets" 2020-06-08 17:54:15 -07:00
qctecmdr
d4c0865117 Merge "haven: dbl: Fix use-after-free in tx/rx unregister" 2020-06-08 17:54:15 -07:00
qctecmdr
38951e4b2f Merge "msm:adsprpc: Fix 32 bit error in capability API" 2020-06-08 17:54:15 -07:00
qctecmdr
247b2c85d3 Merge "msm: kgsl: Disable UCHE dual command queue" 2020-06-08 17:54:14 -07:00
qctecmdr
7b52053b50 Merge "arm64: defconfig: Enable SMCInvoke for GKI based config" 2020-06-08 17:54:14 -07:00
qctecmdr
6e7311054a Merge "soc: qcom: mem-offline: Restore page table mappings properly in online path" 2020-06-08 17:54:13 -07:00
Dinesh K Garg
a6a7e18beb arm64: defconfig: Enable SMCInvoke for GKI based config
Enabling SMCInvoke for GKI based configuration

Change-Id: I377a14fb295b0c99d41867b89e79c2669d7d2982
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2020-06-08 09:48:30 -07:00
qctecmdr
24ed5bd0dd Merge "ANDROID: GKI: mm: add struct vm_fault fields for SPECULATIVE_PAGE_FAULTS" 2020-06-08 08:54:29 -07:00
qctecmdr
328be0c51b Merge "RTIC: Move selinux_state to a separate 4k" 2020-06-08 08:54:29 -07:00
Naveen Yadav
281d369bca interconnect: qcom: Add check to return status of clk_bulk_prepare_enable
Since clk_bulk_prepare_enable function is defined with __must_check option,
add check to return status of clk_bulk_prepare_enable in qcom_icc_set
function.

Change-Id: I69fed5bdda38edfa89af3d899333d6e6f9f939f9
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-06-08 19:42:28 +05:30
qctecmdr
6a326ce1dc Merge "msm: adsprpc: Check size with length passed by client" 2020-06-08 04:30:43 -07:00
qctecmdr
bf2d916a9f Merge "soc: qcom: smd-rpm: Support new clocks resources" 2020-06-08 04:30:43 -07:00
qctecmdr
d2340decfd Merge "msm: kgsl: Make GPU core initialization consistent across the list" 2020-06-08 04:30:42 -07:00
qctecmdr
240ed0260c Merge "power: supply: qcom: Add snapshot of SMB5 charger driver" 2020-06-08 04:30:42 -07:00
Naveen Yadav
b3cf25f2a8 interconnect: qcom: Fix the link error on 32bit architecture
Update the bcm_div function to use do_div() to prevent compiler
from generating undefined reference to `__aeabi_uldivmod' warnings
on 32bit architecture.

Change-Id: Iba37b5f286e76b0ce903b6e0e0344e9659b0004f
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-06-08 16:52:23 +05:30
Preeti Nagar
55c09c9b96 RTIC: Move selinux_state to a separate 4k
We need to relocate selinux_state to a separate 4k page
to enable EL2 Hypervisor to monitor changes to this
variable using ARM stage 2 MMU. We will avoid getting
page faults from un-related data as the MMU granularity
is configured to 4k.

Change-Id: I7d0e5c9eae0a2a65ca9db73e85283e164e20c11c
Signed-off-by: Preeti Nagar <pnagar@codeaurora.org>
2020-06-08 15:49:07 +05:30