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>
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>
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>
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>
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>
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>
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>
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>
Add support for GPUCC_GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK.
Change-Id: I30310e3ae6d40bd458aaf63b63afa312f46462c0
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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
Add a new define for rmnet ioctl for setting MTU.
Change-Id: Ia3575605fc5066d0b98f1da252742e52ecbc3f11
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
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>
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>
Enable IPC logging for holi and lahaina.
Change-Id: Id56a4ec6dbdf3a07207d7dca05f1824f8272bf6f
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
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
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
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
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
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
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>