Commit graph

893,362 commits

Author SHA1 Message Date
Jordan Crouse
1afcce83a6 msm: kgsl: Add three shader blocks for a6xx snapshot
Add three more shader blocks to capture in the snapshot and remove some
unused blocks.

Change-Id: Ic0dedbad82f2fa98926740fb91354de30799f20b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-11-03 14:25:13 -07:00
Jordan Crouse
d78d728d1b msm: kgsl: Remove unused GMU idle levels
Remove unused GMU idle levels as we only support ACTIVE and IFPC on all
known targets.

Change-Id: Ic0dedbadf9743bff4092ff61fa587750186be3c1
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-11-03 14:25:13 -07:00
Jordan Crouse
d346840cf5 msm: kgsl: Fixup 5xx perfcounter update
Almost all the a5xx perfcounters have to go through a inline GPU command
to be enabled but that little detail got missed in commit cbc0071600
("msm: kgsl: Move a5xx perfcounters to target specific code").

Fixes: cbc0071600 ("msm: kgsl: Move a5xx perfcounters to target specific code")
Change-Id: Ic0dedbad1ba51382e3d4f900ee39759e1548570e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-11-03 14:25:12 -07:00
Chenggang Wang
c47964c5dd ANDROID: GKI: Add some symbols to symbol list
Leaf changes summary: 7 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 7 Added
functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added
variable

7 Added functions:
  [A] 'function int class_for_each_device(class*, device*, void*, int
(device*, void*)*)'
  [A] 'function void device_set_of_node_from_dev(device*, const device*)'
  [A] 'function void devm_led_classdev_unregister(device*,
led_classdev*)'
  [A] 'function void pinctrl_gpio_free(unsigned int)'
  [A] 'function void sha_init(unsigned int*)'
  [A] 'function void sha_transform(unsigned int*, const char*, unsigned
int*)'
  [A] 'function int typec_partner_set_identity(typec_partner*)'

Bug: 172305305
Change-Id: I88de74a1eaa097392f7a29f3cf4c8cc55115c968
Signed-off-by: Chenggang Wang <wangchenggang@vivo.com>
2020-11-03 20:45:33 +00:00
Paras Singh Jain
a809d69a40 Netfilter: IRC: Copy nickname to proper address
Fix to copy nickname to address provided by
nickname pointer and avoid overwriting
pointer value.

Change-Id: I8746d8249e807299ae3bec36f6ed9934d8c1628a
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-11-03 10:25:10 -08:00
Gaurav Singh
1a96b0ead8 drivers: soc: qcom: initial support for plh scmi client driver
Add initial support for plh scmi client driver which registers
into scmi framework for plh vendor protocol extension.
Also registers with plh interface driver msm_performance.

Change-Id: I448a714486ff4c7ea38cbeeec1ddb5e183b76e65
Signed-off-by: Gaurav Singh <sgaurav@codeaurora.org>
2020-11-03 06:44:11 -08:00
Gaurav Singh
1efbc7e966 Firmware: arm_scmi: initial support for plh vendor protocol
The perf lock hardening protocol is intended for the management
of perf lock hardening on RIMPS.
The commands in this protocol provide functionality to configure
plh details, plh tunables, configuring the log levels and
debugging support.

Change-Id: I9f5292ee3e32a038160e66d38ec15637a55458fd
Signed-off-by: Gaurav Singh <sgaurav@codeaurora.org>
2020-11-03 06:43:46 -08:00
Archana Sriram
d35d5ad9ea msm: kgsl: Compare pid pointer instead of TGID for a new process
There is a possibility of sharing process_private between two unrelated
processes due to PID wrapping. In kgsl_process_private_new(), instead
of checking numeric TGID, compare the unique pid pointer of the current
process with that of the existing processes in kgsl process list to
allow sharing of process_private data judiciously. Also, in all required
functions get TGID/PID of a process from its struct pid.

Change-Id: I0e3d5d79275cdb3f3c304fb36322ad56b0d0b227
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2020-11-03 20:02:16 +05:30
Rohith Kollalsi
3bb697514e usb: dwc3: Add support for nominal elastic buffer
This patch adds support for nominal elastic buffer where elastic
buffer mode in GUSB3PIPE_CTRL(0) register will be cleared if
nominal elastic buffer is not present. This is done to avoid
high link error rates and superspeed mode transfer failures if
VDDCX is at super turbo mode voltage 1.05V.

Change-Id: Ifc21077c3009e025fb979132c7fd10b135bf69bb
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2020-11-03 19:44:35 +05:30
Jagadeesh Kona
3cfd42d4b6 dt-bindings: clock: Update clock ids of GPUCC for YUPIK
Add support for GPUCC_GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK.

Change-Id: I30310e3ae6d40bd458aaf63b63afa312f46462c0
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-03 15:41:08 +05:30
qctecmdr
8c86f95982 Merge "drm/bridge: lt9611uxc: add hpd support for lt9611uxc" 2020-11-02 20:59:38 -08:00
qctecmdr
c0d9738fcd Merge "Merge android11-5.4.61+ (874de1d) into msm-5.4" 2020-11-02 20:59:38 -08:00
qctecmdr
160bf6e6d6 Merge "pci: msm: Add support to handle DRV power collapse" 2020-11-02 20:59:38 -08:00
qctecmdr
770c7141e8 Merge "arm: defconfig: Enable TSENS driver for sdxlemur" 2020-11-02 20:59:37 -08:00
qctecmdr
6da09c4559 Merge "clk: qcom: gdsc-regulator: Extend the support for ACD reset" 2020-11-02 20:59:37 -08:00
qctecmdr
e43996e3bb Merge "msm: kgsl: Don't skip gmufw preallocations during firmware read" 2020-11-02 20:59:37 -08:00
qctecmdr
69a33a0555 Merge "mtd: msm_qpic_nand: Add a check to read an ONFI parameter page" 2020-11-02 20:59:36 -08:00
Jishnu Prakash
9922278e37 power: qpnp-smb5: Update legacy cable detection logic in bootup
If the target is rebooted with standard USB Type-C cable connected,
it may be detected wrongly as legacy cable. Fix the wrong detection
by resetting TypeC mode. In addition, correct logic to avoid early
return when setting TypeC mode to NONE during probe, due to enum
value for NONE matching with uninitialized variable value of 0.

Change-Id: I84de500a33eb9fa82617422b03d7f277253846e6
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-11-02 20:26:40 -08:00
Monika Singh
d189e4ea6d ANDROID: scsi: ufs: Handle double release of clocks
Remove double release of UFS clocks when
ufshcd_prepare_lrbp_crypto fails for any reason.

Change-Id: Icf427330a08d1841ade1724322885be765102a79
Signed-off-by: Monika Singh <monising@codeaurora.org>
2020-11-03 09:43:05 +05:30
Cheng Jui Wang
ee9ce093d6 ANDROID: arm64: smp: fix Lockdep warning: RCU used illegally from idle CPU.
This problem will happened if handle_IPI is called from idle CPU.
Use trace_android_vh_ipi_stop_rcuidle() to fix this issue

Bug: 171683158
Change-Id: Ic49fc1ddc19a54415dec3f28b68f42fa258ffeea
Signed-off-by: Cheng Jui Wang <cheng-jui.wang@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
2020-11-03 11:08:15 +08:00
Biao Long
cebe8679d5 sched: fix compile issue
Root_task_group is acessed outside CONFIG_SCHED_CGROUP
and it results in compilation error.so add macro check
here to avoid compile issue.

Change-Id: Ic3ce1962236f8114f8b03aca8ebd1c8fbd42a076
Signed-off-by: Biao Long <blong@codeaurora.org>
2020-11-03 10:20:17 +08:00
Melody Olvera
ad32423a0a ARM: io: Add __raw_readq and __raw_writeq functions
Added definitions for __raw_readq and __raw_writeq. These are
necessary for the RTB macros to work correctly.

Change-Id: I14fc23d3c30fae26adf1ec554f70171a3f839a51
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-11-02 17:55:37 -08:00
Melody Olvera
4cfe19352f drivers: soc: qcom: Check if readq_relaxed macro is defined
Two drivers define their own readq_relaxed macro. This is
redefined by the RTB to allow for register logging, so these
drivers must ensure it is not already defined before
overwriting it.

Change-Id: I81dcb29fdbe55b933ff74c24d879ac9361619a8c
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-11-02 17:55:36 -08:00
Ziqi Chen
8586ea7063 scsi: ufs: Fix ufs power down/on specs violation
As per specs, while powering off/on the ufs device, RST_N signal and
REF_CLK signal should be between VSS(Ground) and VCCQ/VCCQ2.

Power down:
1. Assert RST_N low
2. Turn-off REF_CLK
3. Turn-off VCC
4. Turn-off VCCQ/VCCQ2.
power on:
1. Turn-on VCC
2. Turn-on VCCQ/VCCQ2
3. Turn-On REF_CLK
4. Deassert RST_N high.

Change-Id: I602e632d284a9d78431bf897558a4b8300ad3611
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
2020-11-03 09:22:56 +08:00
qctecmdr
b728422299 Merge "usb: gadget: configfs: Correct usb functions order for UDC gadget bind" 2020-11-02 17:15:19 -08:00
qctecmdr
19a1e02a64 Merge "coresight-tmc-etr: Check if page is valid before dma_map_page" 2020-11-02 17:15:19 -08:00
qctecmdr
c648646142 Merge "msm: kgsl: Granule Fill Override Enable" 2020-11-02 17:15:18 -08:00
Mayank Rana
8b51dad4aa usb: gadget: qdss: Add NULL check against channel with usb_qdss_free_req()
USB requests are being freed from 2 context from Linux QDSS driver:
1. usb_qdss_close()
2. explicitly calling usb_free_request() on receiving USB_QDSS_DISCONNECT

usb_qdss_close() is setting drvdata->usbch to NULL. Hence it ends up
passing usbch as NULL while calling usb_free_request() when handling
USB_QDSS_DISCONNECT. Fix this NULL pointer dereference issue by explicitly
checking USB channel against NULL with usb_qdss_free_req().

Change-Id: Ia55a30b09ab1f94db15947b984fd232a33da7788
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-11-02 16:32:09 -08:00
Todd Kjos
7a0b784363 ANDROID: Fix build-break caused by android_rvh_nf_conn_alloc hook
The new android_rvh_nf_conn_alloc hook was not declared properly
so kernelci builds break if !CONFIG_ANDROID_VENDOR_HOOKS.

Fixes: 01435b2e91 ("ANDROID: GKI: net: add vendor hooks
for 'struct nf_conn' lifecycle")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I1208dc440836687a9c5621323ff1cf5a5bec862b
2020-11-02 23:40:43 +00:00
Michael Adisumarta
7fd9068d97 linux: rmnet: add RMNET IOCTL for set MTU
Add a new define for rmnet ioctl for setting MTU.

Change-Id: Ia3575605fc5066d0b98f1da252742e52ecbc3f11
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-11-02 14:43:37 -08:00
qctecmdr
244ab508be Merge "cnss2: Donot reserve TCS register space for WLAN" 2020-11-02 14:03:14 -08:00
qctecmdr
bad0254793 Merge "Bluetooth: Don't reserve TCS register address" 2020-11-02 14:03:12 -08:00
Alistair Delva
23277e6506 ANDROID: GKI: Enable DEBUG_INFO_DWARF4
This is useful for debuggers, and is already the default for clang
(incidentally). Make sure it is on for all users/compilers.

Bug: 160841764
Change-Id: Ibb9a0c6900728d4cce3eccb57fb4c38268a89f24
Signed-off-by: Alistair Delva <adelva@google.com>
2020-11-02 19:24:27 +00:00
Sami Tolvanen
d0dc5d8586 ANDROID: cfi: ensure RCU is watching in __cfi_slowpath
Indirect calls can happen when RCU is not watching, so we need to wake
it up again for the CFI shadow and __module_address. As these calls can
happen anywhere, use rcu_nmi_enter() similarly to kernel_text_address(),
and switch to rcu_read_lock_sched() for shadow access.

Bug: 169017431
Change-Id: Iebb857df898e644b4952a62d86fa5ff9852b5711
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-11-02 18:55:52 +00:00
Shaik Sajida Bhanu
a72067580f defconfig: msm: Enable IPC logging
Enable IPC logging for holi and lahaina.

Change-Id: Id56a4ec6dbdf3a07207d7dca05f1824f8272bf6f
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
2020-11-02 22:09:51 +05:30
Daniel Vetter
77bc008d89 UPSTREAM: mm/sl[uo]b: export __kmalloc_track(_node)_caller
slab does this already, and I want to use this in a memory allocation
tracker in drm for stuff that's tied to the lifetime of a drm_device,
not the underlying struct device. Kinda like devres, but for drm.

Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-2-daniel.vetter@ffwll.ch
(cherry picked from commit fd7cb5753ef49964ea9db5121c3fc9a4ec21ed8e)
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I10790befc779311a5f2ee441e4d073e51a5a7a62
2020-11-02 16:12:00 +00:00
Dmitry Safonov
a7982ced0c BACKPORT: xfrm/compat: Translate 32-bit user_policy from sockptr
Provide compat_xfrm_userpolicy_info translation for xfrm setsocketopt().
Reallocate buffer and put the missing padding for 64-bit message.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit 96392ee5a13b992563cfe07d23ee30d333b89126)
[adelva: Edited around removed compat check in Android kernels]
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I32a6495cd92fa13c956fca88aa5d80716155b8ae
2020-11-02 15:48:58 +00:00
Dmitry Safonov
6a2b428110 UPSTREAM: xfrm/compat: Add 32=>64-bit messages translator
Provide the user-to-kernel translator under XFRM_USER_COMPAT, that
creates for 32-bit xfrm-user message a 64-bit translation.
The translation is afterwards reused by xfrm_user code just as if
userspace had sent 64-bit message.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit 5106f4a8acff480e244300bc5097c0ad7048c3a2)
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: If15999b86e4704b75307fbcc3d7f0c8d8bc89e7a
2020-11-02 15:48:50 +00:00
Dmitry Safonov
da1cd0d7ab UPSTREAM: xfrm/compat: Attach xfrm dumps to 64=>32 bit translator
Currently nlmsg_unicast() is used by functions that dump structures that
can be different in size for compat tasks, see dump_one_state() and
dump_one_policy().

The following nlmsg_unicast() users exist today in xfrm:

         Function                          |    Message can be different
                                           |       in size on compat
-------------------------------------------|------------------------------
    xfrm_get_spdinfo()                     |               N
    xfrm_get_sadinfo()                     |               N
    xfrm_get_sa()                          |               Y
    xfrm_alloc_userspi()                   |               Y
    xfrm_get_policy()                      |               Y
    xfrm_get_ae()                          |               N

Besides, dump_one_state() and dump_one_policy() can be used by filtered
netlink dump for XFRM_MSG_GETSA, XFRM_MSG_GETPOLICY.

Just as for xfrm multicast, allocate frag_list for compat skb journey
down to recvmsg() which will give user the desired skb according to
syscall bitness.

Signed-off-by: Dmitry Safonov <dima@arista.com>

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit 5f3eea6b7e8f58cf5c8a9d4b9679dc19e9e67ba3)
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Id1a606ddd9d7dfe73a448eeb252b1bfd8dbd2fcb
2020-11-02 15:48:41 +00:00
Dmitry Safonov
1d5f89e524 UPSTREAM: xfrm/compat: Add 64=>32-bit messages translator
Provide the kernel-to-user translator under XFRM_USER_COMPAT, that
creates for 64-bit xfrm-user message a 32-bit translation and puts it
in skb's frag_list. net/compat.c layer provides MSG_CMSG_COMPAT to
decide if the message should be taken from skb or frag_list.
(used by wext-core which has also an ABI difference)

Kernel sends 64-bit xfrm messages to the userspace for:
- multicast (monitor events)
- netlink dumps

Wire up the translator to xfrm_nlmsg_multicast().

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit 5461fc0c8d9f23956b99f5907f69726a293ccb67)
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Id8b59587d60feb9b9f0ce96be9d140d694573fe3
2020-11-02 15:48:33 +00:00
qctecmdr
eb72ab27a7 Merge "mmc: core: Fix clk scaling deadlock with irqsave" 2020-11-02 07:48:27 -08:00
qctecmdr
b5b0299091 Merge "usb: dwc3: Stop active transfer on control endpoints" 2020-11-02 07:48:27 -08:00
qctecmdr
30a9d161da Merge "qcom: qcom_ipcc: request ipcc irq IRQF_NO_SUSPEND" 2020-11-02 07:48:27 -08:00
qctecmdr
a40869b2ca Merge "defconfig: holi: Enable Incremental FS as module" 2020-11-02 07:48:26 -08:00
qctecmdr
6e0ca20610 Merge "serial: msm_geni_serial: memset RX buffer to Zero" 2020-11-02 07:48:26 -08:00
qctecmdr
bf4800b509 Merge "input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration" 2020-11-02 07:48:26 -08:00
qctecmdr
67a8905131 Merge "mm: oom: wait for exit of killed current task" 2020-11-02 07:48:26 -08:00
qctecmdr
e2ad70a354 Merge "NFC: Add fix for CTS issue of IPC log file creation failed" 2020-11-02 07:48:25 -08:00
Dmitry Safonov
1fa8e68398 BACKPORT: xfrm: Provide API to register translator module
Add a skeleton for xfrm_compat module and provide API to register it in
xfrm_state.ko. struct xfrm_translator will have function pointers to
translate messages received from 32-bit userspace or to be sent to it
from 64-bit kernel.
module_get()/module_put() are used instead of rcu_read_lock() as the
module will vmalloc() memory for translation.
The new API is registered with xfrm_state module, not with xfrm_user as
the former needs translator for user_policy set by setsockopt() and
xfrm_user already uses functions from xfrm_state.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit c9e7c76d70fa50582ca96759829c93d0dd024662)
[adelva: Edited around some context changes]
Bug: 163141236
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Ic825c6a0367fa192cc3f7af6b7d2682ef8f9d58b
2020-11-02 15:48:23 +00:00
Shaik Sajida Bhanu
f48bc0a386 mmc: core: Enable force hw reset
During error recovery set need hw reset to handle
ICE error where cqe reset is must.

Change-Id: I198cc06c18910c48b85a5298aebb9024b94d2470
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
2020-11-02 20:21:55 +05:30