Add support for Ravelin pin configuration and control
via pinctrl framework.
Change-Id: I83f911e359a0c63d7010273355fbb24301507564
Signed-off-by: Yue Liu <quic_yueliu@quicinc.com>
This change fixes NULL pointer dereference for the cases when channel name
invalid is invalid: wrong channel name or usage control channel device as
spcom channel to receive message.
Change-Id: I7bce7dd7da1d7c3984d49a042661b199babf5145
Signed-off-by: Konstantin Dorfman <quic_kdorfman@quicinc.com>
Make enable_spm_voting as 0, when user space
set spm_thres to default values.
Initially enable_spm_voting is 0, it is enabled
when spm_thres is changed to a value less than
MAX_SPM_THRES.
But it is never disabled once it is enabled,
which have some overhead.
Change-Id: I54d38b1ac8bea4a7360945d9f7ac23e98bd2a6de
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
When call __tmc_etr_enable_hw fail in tmc_etr_enable_hw, need set
drvdata->etr_buf = NULL, Otherwise, the later call tmc_etr_enable_hw
will fail.
Change-Id: I3078ba15997ea1a21e3bea231c5c27b730d389ac
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
Validate the incoming packet size when trying to process the message
received on the transport.
Change-Id: If7ea95180a2b04be4832e771013b9e4342118b4c
Signed-off-by: Tao Zhang <quic_taozhan@quicinc.com>
qtb500 needs additional timeout to acknowledge halt in rumi
environment. Increase the timeout for qtb500 halt
acknowledgment to cater to rumi environment. This
will likely have minimal impact in production as well.
Change-Id: I911f192c22bdfad1592d1ad1e80edb73a7f8f5d4
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
Currently, the name of ELF remain same whether it is subsystem's
minidump or full dump and it was difficult for parsing tool to
identify the elf's between them.
As previous patch adds the support of creation of ramdump device
with a given name, now we would be creating separate dummy
minidump device for a subsystem with a name appended by _md.
which will help us in creating different name for subsystem's
minidump e.g remoteproc-adsp-md_2022-05-08_18-19-32.elf .
Change-Id: I6b49532b425b480e7351b7d1c86bb0ce29b09e1a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
There was a requirement from client drivers to create ramdump
device with a given name so that they control the name of the elf.
This change adds the support to create/destroy ramdump device.
Change-Id: I411cc92a1b41d44e8b6fef95d383613280dae0c2
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Possible unsafe locking scenario:
init/1 is trying to acquire lock:
cpu_hotplug_lock){++++}-{0:0}, at: __cpuhp_setup_state+0x38/0x7c
but task is already holding lock:
(cpu_hotplug_lock){++++}-{0:0}, at: setup_events+0x68/0x3e4 [qcom_pmu_lib]
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(cpu_hotplug_lock);
lock(cpu_hotplug_lock);
*** DEADLOCK ***
get_online_cpus() acquires cpu_hotplug_lock.
Then qcom_pmu_cpu_hp_init() -> __cpuhp_setup_state() tries
to acquire the same lock again.
Use cpuslocked version of __cpuhp_setup_state() to avoid this warning.
Change-Id: I107c47d739b62f112074890d2bf758489d4dc454
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
On certain targets after wake up from cxsd the completion IRQ is
spuriously sent. Add a check if no TCS were in use then log the
spurious IRQ and clear the irq status.
This reverts commit 7efbef7302.
Change-Id: Ia27ff0f9d102ee70f7f070bc89ed855630181f13
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
BT host is unaware when manual flow is turned on by
serial core driver. Due to this BT host is expecting
response for Tx and timing out.
As part of get_mctrl use TIOCM_RTS to indicate if
flow is on/off.
Introduced new error code UART_ERROR_FLOW_OFF to
indicate BT host if manual flow was turned on.
Change-Id: Ibcc0ef6a2c69b3df6507a06cbb4770e32c41c0c0
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
icnss APIs are used to power on/off Yoda.
This will enable concurrent BT/WLAN operations.
Change-Id: I5afcea1a68bac0913b31b300360d784bb42cad08
Signed-off-by: Madhvapathi Sriram <quic_msriram@quicinc.com>
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
We check pending_free flag when pages are reclaimed and
when they restored. This is problematic because, it is
possible to set pending_free flag after reclaim but before
restore. This will result in reclaimed page not being
restored. This will cause page faults. Ignore pending_free
flag for process reclaim so that every page that is
reclaimed would be restored regardless of pending_free flag.
Change-Id: Icb61936ecd8b1b844fb65bf0ca5ecae731713238
Signed-off-by: Pranav Patel <quic_pranavp@quicinc.com>
Adding support for qcom_hwspinlock, socinfo driver
for Anorak.
Change-Id: I4183ef176a4213f2c07afc2e9e47f316b3b4309a
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
* refs/heads/tmp-ac14ef0:
BACKPORT: can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
ANDROID: GKI: Update symbols to symbol list
ANDROID: oplus: Update the ABI xml and symbol list
UPSTREAM: remoteproc: Fix count check in rproc_coredump_write()
BACKPORT: esp: Fix possible buffer overflow in ESP transformation
ANDROID: Fix the drain_all_pages default condition broken by a hook
UPSTREAM: Revert "xfrm: xfrm_state_mtu should return at least 1280 for ipv6"
UPSTREAM: xfrm: fix MTU regression
ANDROID: signal: Add vendor hook for memory reaping
FROMGIT: usb: gadget: uvc: allow for application to cleanly shutdown
FROMGIT: usb: dwc3: gadget: increase tx fifo size for ss isoc endpoints
UPSTREAM: usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind()
FROMGIT: usb: gadget: uvc: remove pause flag use
FROMGIT: usb: gadget: uvc: allow changing interface name via configfs
UPSTREAM: usb: gadget: uvc: Fix crash when encoding data for usb request
UPSTREAM: usb: gadget: uvc: test if ep->desc is valid on ep_queue
UPSTREAM: usb: gadget: uvc: only pump video data if necessary
UPSTREAM: usb: gadget: uvc: only schedule stream in streaming state
UPSTREAM: usb: dwc3: gadget: Give some time to schedule isoc
UPSTREAM: usb: gadget: uvc: make uvc_num_requests depend on gadget speed
UPSTREAM: usb: gadget: composite: Show warning if function driver's descriptors are incomplete.
FROMLIST: kbuild: Add environment variables for userprogs flags
ANDROID: dm-bow: Protect Ranges fetched and erased from the RB tree
BACKPORT: staging: ion: Prevent incorrect reference counting behavour
FROMGIT: net: fix wrong network header length
UPSTREAM: mm: fix unexpected zeroed page mapping with zram swap
ANDROID: vendor_hooks: Add hooks for mutex
UPSTREAM: usb: dwc3: gadget: Replace list_for_each_entry_safe() if using giveback
UPSTREAM: usb: dwc3: Issue core soft reset before enabling run/stop
UPSTREAM: usb: dwc3: gadget: Wait for ep0 xfers to complete during dequeue
ANDROID: Update QCOM symbol list for trace_map/unmap
ANDROID: fix KCFLAGS override by __ANDROID_COMMON_KERNEL__
ANDROID: vendor_hooks: tune reclaim scan type for specified mem_cgroup
ANDROID: vendor_hooks: Add hooks for rwsem
ANDROID: Add flag to indicate compiling against ACK
ANDROID: GKI: build damon reclaim
FROMLIST: mm/damon/reclaim: Fix the timer always stays active
BACKPORT: treewide: Add missing includes masked by cgroup -> bpf dependency
UPSTREAM: mm/damon: modify damon_rand() macro to static inline function
UPSTREAM: mm/damon: add 'age' of region tracepoint support
UPSTREAM: mm/damon: hide kernel pointer from tracepoint event
UPSTREAM: mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log
UPSTREAM: mm/damon/vaddr: use pr_debug() for damon_va_three_regions() failure logging
UPSTREAM: mm/damon/dbgfs: remove an unnecessary variable
UPSTREAM: mm/damon: move the implementation of damon_insert_region to damon.h
UPSTREAM: mm/damon: add access checking for hugetlb pages
UPSTREAM: mm/damon/dbgfs: support all DAMOS stats
UPSTREAM: mm/damon/reclaim: provide reclamation statistics
UPSTREAM: mm/damon/schemes: account how many times quota limit has exceeded
UPSTREAM: mm/damon/schemes: account scheme actions that successfully applied
UPSTREAM: mm/damon: convert macro functions to static inline functions
UPSTREAM: mm/damon: move damon_rand() definition into damon.h
UPSTREAM: mm/damon/schemes: add the validity judgment of thresholds
UPSTREAM: mm/damon/vaddr: remove swap_ranges() and replace it with swap()
UPSTREAM: mm/damon: remove some unneeded function definitions in damon.h
UPSTREAM: mm/damon/core: use abs() instead of diff_of()
UPSTREAM: mm/damon: unified access_check function naming rules
UPSTREAM: mm/damon/dbgfs: fix 'struct pid' leaks in 'dbgfs_target_ids_write()'
UPSTREAM: mm/damon/dbgfs: protect targets destructions with kdamond_lock
UPSTREAM: mm/damon/vaddr-test: remove unnecessary variables
UPSTREAM: mm/damon/vaddr-test: split a test function having >1024 bytes frame size
UPSTREAM: mm/damon/vaddr: remove an unnecessary warning message
UPSTREAM: mm/damon/core: remove unnecessary error messages
UPSTREAM: mm/damon/dbgfs: remove an unnecessary error message
UPSTREAM: mm/damon/core: use better timer mechanisms selection threshold
UPSTREAM: mm/damon/core: fix fake load reports due to uninterruptible sleeps
BACKPORT: timers: implement usleep_idle_range()
UPSTREAM: mm/damon/dbgfs: fix missed use of damon_dbgfs_lock
UPSTREAM: mm/damon/dbgfs: use '__GFP_NOWARN' for user-specified size buffer allocation
UPSTREAM: mm/damon: remove return value from before_terminate callback
UPSTREAM: mm/damon: fix a few spelling mistakes in comments and a pr_debug message
UPSTREAM: mm/damon: simplify stop mechanism
UPSTREAM: mm/damon/dbgfs: add adaptive_targets list check before enable monitor_on
UPSTREAM: mm/damon: remove unnecessary variable initialization
UPSTREAM: mm/damon: introduce DAMON-based Reclamation (DAMON_RECLAIM)
UPSTREAM: selftests/damon: support watermarks
UPSTREAM: mm/damon/dbgfs: support watermarks
UPSTREAM: mm/damon/schemes: activate schemes based on a watermarks mechanism
UPSTREAM: tools/selftests/damon: update for regions prioritization of schemes
UPSTREAM: mm/damon/dbgfs: support prioritization weights
UPSTREAM: mm/damon/vaddr,paddr: support pageout prioritization
UPSTREAM: mm/damon/schemes: prioritize regions within the quotas
UPSTREAM: mm/damon/selftests: support schemes quotas
UPSTREAM: mm/damon/dbgfs: support quotas of schemes
UPSTREAM: mm/damon/schemes: implement time quota
UPSTREAM: mm/damon/schemes: skip already charged targets and regions
UPSTREAM: mm/damon/schemes: implement size quota for schemes application speed control
UPSTREAM: mm/damon/paddr: support the pageout scheme
UPSTREAM: mm/damon/dbgfs: remove unnecessary variables
UPSTREAM: mm/damon/vaddr: constify static mm_walk_ops
UPSTREAM: mm/damon/dbgfs: support physical memory monitoring
UPSTREAM: mm/damon: implement primitives for physical address space monitoring
UPSTREAM: mm/damon/vaddr: separate commonly usable functions
UPSTREAM: mm/damon/dbgfs-test: add a unit test case for 'init_regions'
UPSTREAM: mm/damon/dbgfs: allow users to set initial monitoring target regions
UPSTREAM: selftests/damon: add 'schemes' debugfs tests
UPSTREAM: mm/damon/schemes: implement statistics feature
UPSTREAM: mm/damon/dbgfs: support DAMON-based Operation Schemes
UPSTREAM: mm/damon/vaddr: support DAMON-based Operation Schemes
UPSTREAM: mm/damon/core: implement DAMON-based Operation Schemes (DAMOS)
UPSTREAM: mm/damon/core: account age of target regions
UPSTREAM: mm/damon/core: nullify pointer ctx->kdamond with a NULL
UPSTREAM: mm/damon: needn't hold kdamond_lock to print pid of kdamond
UPSTREAM: mm/damon: remove unnecessary do_exit() from kdamond
UPSTREAM: mm/damon/core: print kdamond start log in debug mode only
UPSTREAM: include/linux/damon.h: fix kernel-doc comments for 'damon_callback'
UPSTREAM: mm/damon: grammar s/works/work/
UPSTREAM: mm/damon/core-test: fix wrong expectations for 'damon_split_regions_of()'
UPSTREAM: mm/damon: don't use strnlen() with known-bogus source length
UPSTREAM: mm/damon: add kunit tests
UPSTREAM: mm/damon: add user space selftests
UPSTREAM: mm/damon/dbgfs: support multiple contexts
UPSTREAM: mm/damon/dbgfs: export kdamond pid to the user space
UPSTREAM: mm/damon: implement a debugfs-based user space interface
UPSTREAM: mm/damon: add a tracepoint
UPSTREAM: mm/damon: implement primitives for the virtual memory address spaces
UPSTREAM: mm/idle_page_tracking: make PG_idle reusable
UPSTREAM: mm/damon: adaptively adjust regions
UPSTREAM: mm/damon/core: implement region-based sampling
UPSTREAM: mm: introduce Data Access MONitor (DAMON)
BACKPORT: net/packet: fix slab-out-of-bounds access in packet_recvmsg()
BACKPORT: fuse: fix pipe buffer lifetime for direct_io
BACKPORT: dm: fix NULL pointer issue when free bio
UPSTREAM: kfence, x86: fix preemptible warning on KPTI-enabled systems
ANDROID: ABI: Update allowed list for galaxy
ANDROID: abi_gki_aarch64.xml: update based on proper LTO=full setting
BACKPORT: virtio-blk: Use blk_validate_block_size() to validate block size
ANDROID: add for tuning readahead size
BACKPORT: media: v4l2-mem2mem: Apply DST_QUEUE_OFF_BASE on MMAP buffers across ioctls
BACKPORT: nl80211: correctly check NL80211_ATTR_REG_ALPHA2 size
BACKPORT: ext4: don't BUG if someone dirty pages without asking ext4 first
ANDROID: GKI: Update symbols to abi_gki_aarch64_oplus
BACKPORT: iommu: Extend mutex lock scope in iommu_probe_device()
BACKPORT: iommu: Fix race condition during default domain allocation
ANDROID: GKI: Update symbols to symbol list
Conflicts:
build.config.common
Change-Id: I30e0e3ce2527d66896add9fe45d71924557a46f2
Signed-off-by: Sivasri Kumar, Vanka <quic_svanka@quicinc.com>
iommu->user_context can get detached in kgsl_iommu_close and later
get accessed in the deferred_destroy path. Flush the workqueue to
ensure pagetables are destroyed before proceeding for context detach.
Also handle set_ttbr0_cfg properly in the close path.
Change-Id: Idd936957e9c7617d978056604241e2e24dac8af4
Signed-off-by: Harshitha Sai Neelati <quic_hsaineel@quicinc.com>
Add SOC ID to support socinfo for ParrotP platform.
Change-Id: Ice1fe74d96440011d385ab4d575e0b0303e5f0e3
Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com>
Some platforms require PMIC GPIO control to trigger the
PON/POFF sequence of the WLAN chip.
Change-Id: I24023694ecb5579bc84cd897a99596fd57fa5eee
CRs-Fixed: 3209939
Signed-off-by: nakul kachhwaha <quic_nkachhwa@quicinc.com>
Signed-off-by: Madhvapathi Sriram <quic_msriram@quicinc.com>
During hiberantion/suspend, freezer process sends
fake signals to all running processes to put the
device into system wide sleep, which leads to
ungraceful exit of I2c read thread leaving the
upper layer retry the I2C access & ends up with
excessive error logging on the console.
Modified code to set/unset the no-freeze flag to
ensure such freezer fake signals can be avoided
when NFC is enabled & vice versa.
Change-Id: I773fcc8e9fc145ce9e2e564982bd38cd1f5d6be7
Signed-off-by: Tapas Dey <quic_c_tdey@quicinc.com>
Add additional placeholder for sdr sensors to make common TS list
compatible with all the targets.
Change-Id: Ifbf1c18c821f176edbe2747e8b5ea31bd684e236
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
* keystone/mirror-android12-5.10-2022-05: (135 commits)
BACKPORT: can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
ANDROID: GKI: Update symbols to symbol list
ANDROID: oplus: Update the ABI xml and symbol list
UPSTREAM: remoteproc: Fix count check in rproc_coredump_write()
BACKPORT: esp: Fix possible buffer overflow in ESP transformation
ANDROID: Fix the drain_all_pages default condition broken by a hook
UPSTREAM: Revert "xfrm: xfrm_state_mtu should return at least 1280 for ipv6"
UPSTREAM: xfrm: fix MTU regression
ANDROID: signal: Add vendor hook for memory reaping
FROMGIT: usb: gadget: uvc: allow for application to cleanly shutdown
FROMGIT: usb: dwc3: gadget: increase tx fifo size for ss isoc endpoints
UPSTREAM: usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind()
FROMGIT: usb: gadget: uvc: remove pause flag use
FROMGIT: usb: gadget: uvc: allow changing interface name via configfs
UPSTREAM: usb: gadget: uvc: Fix crash when encoding data for usb request
UPSTREAM: usb: gadget: uvc: test if ep->desc is valid on ep_queue
UPSTREAM: usb: gadget: uvc: only pump video data if necessary
UPSTREAM: usb: gadget: uvc: only schedule stream in streaming state
UPSTREAM: usb: dwc3: gadget: Give some time to schedule isoc
UPSTREAM: usb: gadget: uvc: make uvc_num_requests depend on gadget speed
...
Change-Id: I438ffbf5441deb75dadf2150e235232bc53c37ea
Enable panic on LLCC correctable error for Waipio and its
derivatives.
Change-Id: Ibfd942db65337f3f63a2cbb6e42ef5c5a916ef1f
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
In qrtr_get_service_id, use xa_load instead of node_get to check
if the node exists or not. Calling node_get from interrupt context
can cause potential deadlock since it calls into xa_store to
allocate the node if it does not exist.
Change-Id: Ida9f7a113417f0d184c0903004d94dd2eca6c472
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
Add xarray database to log both skb allocation failed packets
and skb allocation success packets when cf flag bit is set in
the packet.
Change-Id: Iafc4c781e7fde37b8d19fc050dc9d769b31c306e
Signed-off-by: Sivaji Boddupilli <quic_boddupil@quicinc.com>