Merge 4.19.272 into android-4.19-stable
Linux 4.19.272
* usb: host: xhci-plat: add wakeup entry at sysfs
drivers/usb/host/xhci-plat.c
* ipv6: ensure sane device mtu in tunnels
net/ipv6/ip6_tunnel.c
net/ipv6/sit.c
* exit: Use READ_ONCE() for all oops/warn limit reads
kernel/exit.c
kernel/panic.c
docs: Fix path paste-o for /sys/kernel/warn_count
* panic: Expose "warn_count" to sysfs
kernel/panic.c
* panic: Introduce warn_limit
kernel/panic.c
* panic: Consolidate open-coded panic_on_warn checks
include/linux/kernel.h
kernel/panic.c
kernel/sched/core.c
* exit: Allow oops_limit to be disabled
kernel/exit.c
* exit: Expose "oops_count" to sysfs
kernel/exit.c
* exit: Put an upper limit on how often we can oops
kernel/exit.c
ia64: make IA64_MCA_RECOVERY bool instead of tristate
h8300: Fix build errors from do_exit() to make_task_dead() transition
hexagon: Fix function name in die()
objtool: Add a missing comma to avoid string concatenation
* exit: Add and use make_task_dead.
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c
include/linux/sched/task.h
kernel/exit.c
* panic: unset panic_on_warn inside panic()
kernel/panic.c
* sysctl: add a new register_sysctl_init() interface
fs/proc/proc_sysctl.c
include/linux/sysctl.h
dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
ARM: dts: imx: Fix pca9547 i2c-mux node name
x86/entry/64: Add instruction suffix to SYSRET
x86/asm: Fix an assembler warning with current binutils
drm/i915/display: fix compiler warning about array overrun
x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL
Revert "Input: synaptics - switch touchpad on HP Laptop 15-da3001TU to RMI mode"
net/tg3: resolve deadlock in tg3_reset_task() during EEH
net: ravb: Fix possible hang if RIS2_QFF1 happen
* sctp: fail if no bound addresses can be used for a given scope
net/sctp/bind_addr.c
netrom: Fix use-after-free of a listening socket.
* netfilter: conntrack: fix vtag checks for ABORT/SHUTDOWN_COMPLETE
net/netfilter/nf_conntrack_proto_sctp.c
* ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
net/ipv4/metrics.c
* netlink: annotate data races around sk_state
net/netlink/af_netlink.c
* netlink: annotate data races around dst_portid and dst_group
net/netlink/af_netlink.c
* netlink: annotate data races around nlk->portid
net/netlink/af_netlink.c
* netlink: remove hash::nelems check in netlink_insert
net/netlink/af_netlink.c
netfilter: nft_set_rbtree: skip elements in transaction from garbage collection
* net: fix UaF in netns ops registration error path
net/core/net_namespace.c
* EDAC/device: Respect any driver-supplied workqueue polling value
drivers/edac/edac_device.c
ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
cifs: Fix oops due to uncleared server->smbd_conn in reconnect
smbd: Make upper layer decide when to destroy the transport
trace_events_hist: add check for return value of 'create_hist_field'
* tracing: Make sure trace_printk() can output as soon as it can be used
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_output.c
* module: Don't wait for GOING modules
kernel/module.c
scsi: hpsa: Fix allocation size for scsi_host_alloc()
* Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
net/bluetooth/hci_core.c
fs: reiserfs: remove useless new_opts in reiserfs_remount
perf env: Do not return pointers to local variables
* block: fix and cleanup bio_check_ro
block/blk-core.c
* netfilter: conntrack: do not renew entry stuck in tcp SYN_SENT state
net/netfilter/nf_conntrack_proto_tcp.c
w1: fix WARNING after calling w1_process()
w1: fix deadloop in __w1_remove_master_device()
* tcp: avoid the lookup process failing to get sk in ehash table
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling
dmaengine: xilinx_dma: program hardware supported buffer length
dmaengine: xilinx_dma: commonize DMA copy size calculation
HID: betop: check shape of output reports
net: macb: fix PTP TX timestamp failure due to packet padding
* dmaengine: Fix double increment of client_count in dma_chan_get()
drivers/dma/dmaengine.c
net: mlx5: eliminate anonymous module_init & module_exit
* usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
drivers/usb/gadget/function/f_fs.c
* usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
drivers/usb/gadget/function/f_fs.c
* HID: check empty report_list in hid_validate_values()
drivers/hid/hid-core.c
* net: mdio: validate parameter addr in mdiobus_get_phy()
drivers/net/phy/mdio_bus.c
net: usb: sr9700: Handle negative len
wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid
net: nfc: Fix use-after-free in local_cleanup()
phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
* bpf: Fix pointer-leak due to insufficient speculative store bypass mitigation
kernel/bpf/verifier.c
amd-xgbe: Delay AN timeout during KR training
amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent
affs: initialize fsdata in affs_truncate()
IB/hfi1: Fix expected receive setup error exit issues
IB/hfi1: Reserve user expected TIDs
IB/hfi1: Reject a zero-length user expected buffer
tomoyo: fix broken dependency on *.conf.default
EDAC/highbank: Fix memory leak in highbank_mc_probe()
HID: intel_ish-hid: Add check for ishtp_dma_tx_map
ARM: dts: imx6qdl-gw560x: Remove incorrect 'uart-has-rtscts'
UPSTREAM: tcp: fix tcp_rmem documentation
* UPSTREAM: nvmem: core: skip child nodes not matching binding
drivers/nvmem/core.c
* BACKPORT: nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of()
drivers/nvmem/core.c
* UPSTREAM: sched/eas: Don't update misfit status if the task is pinned
kernel/sched/fair.c
* BACKPORT: arm64: link with -z norelro for LLD or aarch64-elf
arch/arm64/Makefile
* UPSTREAM: driver: core: Fix list corruption after device_del()
drivers/base/core.c
* UPSTREAM: coresight: tmc-etr: Fix barrier packet insertion for perf buffer
drivers/hwtracing/coresight/coresight-tmc-etr.c
* UPSTREAM: f2fs: fix double free of unicode map
fs/f2fs/super.c
* BACKPORT: net: xfrm: fix memory leak in xfrm_user_policy()
net/xfrm/xfrm_state.c
UPSTREAM: xfrm/compat: Don't allocate memory with __GFP_ZERO
UPSTREAM: xfrm/compat: memset(0) 64-bit padding at right place
UPSTREAM: xfrm/compat: Translate by copying XFRMA_UNSPEC attribute
* UPSTREAM: scsi: ufs: Fix missing brace warning for old compilers
drivers/scsi/ufs/ufshcd-crypto.c
* UPSTREAM: arm64: vdso32: make vdso32 install conditional
arch/arm64/Makefile
* UPSTREAM: loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE
drivers/block/loop.c
BACKPORT: drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()
* BACKPORT: sched/uclamp: Protect uclamp fast path code with static key
kernel/sched/core.c
kernel/sched/cpufreq_schedutil.c
kernel/sched/sched.h
* BACKPORT: sched/uclamp: Fix initialization of struct uclamp_rq
kernel/sched/core.c
* UPSTREAM: coresight: etmv4: Fix CPU power management setup in probe() function
drivers/hwtracing/coresight/coresight-etm4x.c
* UPSTREAM: arm64: vdso: Add --eh-frame-hdr to ldflags
arch/arm64/kernel/vdso/Makefile
* BACKPORT: arm64: vdso: Add '-Bsymbolic' to ldflags
arch/arm64/kernel/vdso/Makefile
UPSTREAM: drm/virtio: fix a wait_event condition
* BACKPORT: sched/topology: Don't try to build empty sched domains
kernel/cgroup/cpuset.c
kernel/sched/topology.c
* BACKPORT: binder: prevent UAF read in print_binder_transaction_log_entry()
drivers/android/binder.c
drivers/android/binder_internal.h
* BACKPORT: copy_process(): don't use ksys_close() on cleanups
kernel/fork.c
* BACKPORT: arm64: vdso: Remove unnecessary asm-offsets.c definitions
arch/arm64/kernel/asm-offsets.c
* UPSTREAM: locking/lockdep, cpu/hotplug: Annotate AP thread
kernel/cpu.c
* Revert "xhci: Add a flag to disable USB3 lpm on a xhci root port level."
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h
Merge 4.19.271 into android-4.19-stable
BACKPORT: mac80211_hwsim: add concurrent channels scanning support over virtio
* BACKPORT: mac80211_hwsim: add frame transmission support over virtio This allows communication with external entities.
include/uapi/linux/virtio_ids.h
* BACKPORT: driver core: Skip unnecessary work when device doesn't have sync_state()
drivers/base/core.c
Linux 4.19.271
x86/fpu: Use _Alignof to avoid undefined behavior in TYPE_ALIGN
* Revert "ext4: generalize extents status tree search functions"
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h
* Revert "ext4: add new pending reservation mechanism"
fs/ext4/ext4.h
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/super.c
* Revert "ext4: fix reserved cluster accounting at delayed write time"
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h
* Revert "ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline"
fs/ext4/extents.c
gsmi: fix null-deref in gsmi_get_variable
serial: atmel: fix incorrect baudrate setup
serial: pch_uart: Pass correct sg to dma_unmap_sg()
usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210
* usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()
drivers/usb/gadget/function/f_ncm.c
usb: gadget: g_webcam: Send color matching descriptor per frame
usb: typec: altmodes/displayport: Fix pin assignment calculation
usb: typec: altmodes/displayport: Add pin assignment helper
usb: host: ehci-fsl: Fix module alias
USB: serial: cp210x: add SCALANCE LPE-9000 device id
cifs: do not include page data when checking signature
mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
comedi: adv_pci1760: Fix PWM instruction handling
* usb: core: hub: disable autosuspend for TI TUSB8041
drivers/usb/core/hub.c
USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100
USB: serial: option: add Quectel EM05CN modem
USB: serial: option: add Quectel EM05CN (SG) modem
USB: serial: option: add Quectel EC200U modem
USB: serial: option: add Quectel EM05-G (RS) modem
USB: serial: option: add Quectel EM05-G (CS) modem
USB: serial: option: add Quectel EM05-G (GR) modem
* prlimit: do_prlimit needs to have a speculation check
kernel/sys.c
* xhci: Add a flag to disable USB3 lpm on a xhci root port level.
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h
* xhci: Fix null pointer dereference when host dies
drivers/usb/host/xhci.c
* usb: xhci: Check endpoint is valid before dereferencing it
drivers/usb/host/xhci-ring.c
* xhci-pci: set the dma max_seg_size
drivers/usb/host/xhci-pci.c
nilfs2: fix general protection fault in nilfs_btree_insert()
Add exception protection processing for vd in axi_chan_handle_err function
* f2fs: let's avoid panic if extent_tree is not created
fs/f2fs/extent_cache.c
RDMA/srp: Move large values to a new enum for gcc13
* net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
net/core/ethtool.c
pNFS/filelayout: Fix coalescing test for single DS
* ANDROID: usb: f_accessory: Check buffer size when initialised via composite
drivers/usb/gadget/configfs.c
drivers/usb/gadget/function/f_accessory.c
Merge 4.19.270 into android-4.19-stable
Linux 4.19.270
serial: tegra: Change lower tolerance baud rate limit for tegra20 and tegra30
serial: tegra: Only print FIFO error message when an error occurs
tty: serial: tegra: Handle RX transfer in PIO mode if DMA wasn't started
Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
efi: fix NULL-deref in init error path
* arm64: cmpxchg_double*: hazard against entire exchange variable
arch/arm64/include/asm/atomic_ll_sc.h
arch/arm64/include/asm/atomic_lse.h
drm/virtio: Fix GEM handle creation UAF
x86/resctrl: Fix task CLOSID/RMID update race
x86/resctrl: Use task_curr() instead of task_struct->on_cpu to prevent unnecessary IPI
iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
iommu/mediatek-v1: Add error handle for mtk_iommu_probe
net/mlx5: Fix ptp max frequency adjustment range
net/mlx5: Rename ptp clock info
nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
hvc/xen: lock console list traversal
regulator: da9211: Use irq handler when ready
* EDAC/device: Fix period calculation in edac_device_reset_delay_period()
drivers/edac/edac_device.c
drivers/edac/edac_module.h
x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
* ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline
fs/ext4/exten Conflicts:
drivers/edac/edac_device.c
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/usb/core/hub.c
drivers/usb/gadget/function/f_fs.c
drivers/usb/gadget/function/f_hid.c
kernel/panic.c
mm/kasan/report.cts.c
* ext4: fix reserved cluster accounting at delayed write time
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h
* ext4: add new pending reservation mechanism
fs/ext4/ext4.h
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/super.c
* ext4: generalize extents status tree search functions
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h
* ext4: fix uninititialized value in 'ext4_evict_inode'
fs/ext4/super.c
* ext4: fix use-after-free in ext4_orphan_cleanup
fs/ext4/inode.c
* ext4: lost matching-pair of trace in ext4_truncate
fs/ext4/inode.c
* ext4: fix bug_on in __es_tree_search caused by bad quota inode
fs/quota/dquot.c
* quota: Factor out setup of quota inode
fs/quota/dquot.c
include/linux/quotaops.h
usb: ulpi: defer ulpi_register on ulpi_read_id timeout
kest.pl: Fix grub2 menu handling for rebooting
ktest.pl: Fix incorrect reboot for grub2bls
ktest: introduce grub2bls REBOOT_TYPE option
ktest: cleanup get_grub_index
ktest: introduce _get_grub_index
ktest: Add support for meta characters in GRUB_MENU
ALSA: hda/hdmi: fix failures at PCM open on Intel ICL and later
wifi: wilc1000: sdio: fix module autoloading
* ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
net/ipv6/raw.c
platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe
cifs: Fix uninitialized memory read for smb311 posix symlink create
* ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF
sound/core/control_compat.c
* net/ulp: prevent ULP without clone op from entering the LISTEN status
net/ipv4/inet_connection_sock.c
s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()
perf auxtrace: Fix address filter duplicate symbol selection
docs: Fix the docs build with Sphinx 6.0
* net: sched: disallow noqueue for qdisc classes
net/sched/sch_api.c
* driver core: Fix bus_type.match() error handling in __driver_attach()
drivers/base/dd.c
parisc: Align parisc MADV_XXX constants with all other architectures
* mbcache: Avoid nesting of cache->c_list_lock under bit locks
fs/mbcache.c
hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
hfs/hfsplus: use WARN_ON for sanity check
* ext4: don't allow journal inode to have encrypt flag
fs/ext4/super.c
riscv: uaccess: fix type of 0 variable on error in get_user()
nfsd: fix handling of readdir in v4root vs. mount upcall timeout
x86/bugs: Flush IBP in ib_prctl_set()
ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
udf: Fix extension of the last extent in the file
caif: fix memory leak in cfctrl_linkup_request()
usb: rndis_host: Secure rndis_query check against int overflow
net: sched: atm: dont intepret cls results when asked to drop
RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe
net: amd-xgbe: add missed tasklet_kill
nfc: Fix potential resource leaks
qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure
* bpf: pull before calling skb_postpull_rcsum()
net/core/filter.c
* SUNRPC: ensure the matching upcall is in-flight upon downcall
include/linux/sunrpc/rpc_pipe_fs.h
* ext4: fix deadlock due to mbcache entry corruption
fs/ext4/xattr.c
fs/mbcache.c
include/linux/mbcache.h
* mbcache: automatically delete entries from cache on freeing
fs/mbcache.c
include/linux/mbcache.h
* ext4: fix race when reusing xattr blocks
fs/ext4/xattr.c
* ext4: unindent codeblock in ext4_xattr_block_set()
fs/ext4/xattr.c
* ext4: remove EA inode entry from mbcache on inode eviction
fs/ext4/inode.c
fs/ext4/xattr.c
fs/ext4/xattr.h
* mbcache: add functions to delete entry if unused
fs/mbcache.c
include/linux/mbcache.h
* mbcache: don't reclaim used entries
fs/mbcache.c
* ext4: use kmemdup() to replace kmalloc + memcpy
fs/ext4/xattr.c
* ext4: correct inconsistent error msg in nojournal mode
fs/ext4/super.c
* ext4: goto right label 'failed_mount3a'
fs/ext4/super.c
* driver core: Set deferred_probe_timeout to a longer default if CONFIG_MODULES is set
drivers/base/dd.c
ravb: Fix "failed to switch device to config mode" message during unbind
perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data
perf probe: Use dwarf_attr_integrate as generic DWARF attr accessor
dm thin: resume even if in FAIL mode
media: s5p-mfc: Fix in register read and write for H264
media: s5p-mfc: Clear workbit to handle error condition
media: s5p-mfc: Fix to handle reference queue during finishing
btrfs: replace strncpy() with strscpy()
btrfs: send: avoid unnecessary backref lookups when finding clone source
* ext4: allocate extended attribute value in vmalloc area
fs/ext4/xattr.c
* ext4: avoid unaccounted block allocation when expanding inode
fs/ext4/inode.c
* ext4: initialize quota before expanding inode in setproject ioctl
fs/ext4/ioctl.c
* ext4: fix inode leak in ext4_xattr_inode_create() on an error path
fs/ext4/xattr.c
* ext4: avoid BUG_ON when creating xattrs
fs/ext4/xattr.c
* ext4: fix error code return to user-space in ext4_get_branch()
fs/ext4/indirect.c
* ext4: fix corruption when online resizing a 1K bigalloc fs
fs/ext4/resize.c
* ext4: init quota for 'old.inode' in 'ext4_rename'
fs/ext4/namei.c
* ext4: fix bug_on in __es_tree_search caused by bad boot loader inode
fs/ext4/ioctl.c
* ext4: add helper to check quota inums
fs/ext4/super.c
* ext4: fix undefined behavior in bit shift for ext4_check_flag_values
fs/ext4/ext4.h
* ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
fs/ext4/inode.c
drm/vmwgfx: Validate the box size for the snooped cursor
* drm/connector: send hotplug uevent on connector cleanup
drivers/gpu/drm/drm_connector.c
device_cgroup: Roll back to original exceptions after copy failure
parisc: led: Fix potential null-ptr-deref in start_task()
iommu/amd: Fix ivrs_acpihid cmdline parsing code
crypto: n2 - add missing hash statesize
* PCI/sysfs: Fix double free in error path
drivers/pci/pci-sysfs.c
* PCI: Fix pci_device_is_present() for VFs by checking PF
drivers/pci/pci.c
ipmi: fix use after free in _ipmi_destroy_user()
ima: Fix a potential NULL pointer access in ima_restore_measurement_list
ipmi: fix long wait in unload when IPMI disconnect
md/bitmap: Fix bitmap chunk size overflow issues
cifs: fix confusing debug message
media: dvb-core: Fix UAF due to refcount races at releasing
media: dvb-core: Fix double free in dvb_register_device()
ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod
* tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
kernel/trace/trace.c
x86/microcode/intel: Do not retry microcode reloading on the APs
dm cache: set needs_check flag after aborting metadata
dm cache: Fix UAF in destroy()
dm thin: Fix UAF in run_timer_softirq()
dm thin: Use last transaction's pmd->root when commit failed
dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
binfmt: Fix error return code in load_elf_fdpic_binary()
binfmt: Move install_exec_creds after setup_new_exec to match binfmt_elf
selftests: Use optional USERCFLAGS and USERLDFLAGS
ARM: ux500: do not directly dereference __iomem
ktest.pl minconfig: Unset configs instead of just removing them
* soc: qcom: Select REMAP_MMIO for LLCC driver
drivers/soc/qcom/Kconfig
media: stv0288: use explicitly signed char
SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
md: fix a crash in mempool_free
* pnode: terminate at peers of source
fs/pnode.c
ALSA: line6: fix stack overflow in line6_midi_transmit
ALSA: line6: correct midi status byte when receiving data from podxt
* ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
fs/overlayfs/dir.c
hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
* HID: plantronics: Additional PIDs for double volume key presses quirk
drivers/hid/hid-ids.h
drivers/hid/hid-plantronics.c
powerpc/rtas: avoid scheduling in rtas_os_term()
powerpc/rtas: avoid device tree lookups in rtas_os_term()
ata: ahci: Fix PCS quirk application for suspend
media: dvbdev: fix refcnt bug
* media: dvbdev: fix build warning due to comments
include/media/dvbdev.h
gcov: add support for checksum field
iio: adc: ad_sigma_delta: do not use internal iio_dev lock
reiserfs: Add missing calls to reiserfs_security_free()
* HID: wacom: Ensure bootloader PID is usable in hidraw mode
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h
* usb: dwc3: core: defer probe on ulpi_read_id timeout
drivers/usb/dwc3/core.c
* pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
fs/pstore/Kconfig
* pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
fs/pstore/pmsg.c
ASoC: rt5670: Remove unbalanced pm_runtime_put()
ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
ASoC: wm8994: Fix potential deadlock
ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()
ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()
orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()
drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()
clk: st: Fix memory leak in st_of_quadfs_setup()
media: si470x: Fix use-after-free in si470x_int_in_callback()
mmc: f-sdh30: Add quirks for broken timeout clock capability
* regulator: core: fix use_count leakage when handling boot-on
drivers/regulator/core.c
* blk-mq: fix possible memleak when register 'hctx' failed
block/blk-mq-sysfs.c
media: dvb-usb: fix memory leak in dvb_usb_adapter_init()
* media: dvbdev: adopts refcnt to avoid UAF
include/media/dvbdev.h
media: dvb-frontends: fix leak of memory fw
* ppp: associate skb with a device at tx
drivers/net/ppp/ppp_generic.c
* mrp: introduce active flags to prevent UAF when applicant uninit
include/net/mrp.h
md/raid1: stop mdx_raid1 thread when raid1 array run failed
drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
drm/sti: Use drm_mode_copy()
s390/lcs: Fix return type of lcs_start_xmit()
s390/netiucv: Fix return type of netiucv_tx()
s390/ctcm: Fix return type of ctc{mp,}m_tx()
drm/amdgpu: Fix type of second parameter in trans_msg() callback
igb: Do not free q_vector unless new one was allocated
wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()
hamradio: baycom_epp: Fix return type of baycom_send_packet()
net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()
* bpf: make sure skb->len != 0 when redirecting to a tunneling device
net/core/filter.c
ipmi: fix memleak when unload ipmi driver
ASoC: codecs: rt298: Add quirk for KBL-R RVP platform
wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out
wifi: ath9k: verify the expected usb_endpoints are present
hfs: fix OOB Read in __hfs_brec_find
acct: fix potential integer overflow in encode_comp_t()
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
ACPICA: Fix error code path in acpi_ds_call_control_method()
fs: jfs: fix shift-out-of-bounds in dbDiscardAG
udf: Avoid double brelse() in udf_rename()
fs: jfs: fix shift-out-of-bounds in dbAllocAG
binfmt_misc: fix shift-out-of-bounds in check_special_flags
* net: stream: purge sk_error_queue in sk_stream_kill_queues()
net/core/stream.c
myri10ge: Fix an error handling path in myri10ge_probe()
rxrpc: Fix missing unlock in rxrpc_do_sendmsg()
* net_sched: reject TCF_EM_SIMPLE case for complex ematch module
net/sched/ematch.c
* skbuff: Account for tail adjustment during pull operations
net/core/skbuff.c
openvswitch: Fix flow lookup to use unmasked key
rtc: mxc_v2: Add missing clk_disable_unprepare()
r6040: Fix kmemleak in probe and remove
nfc: pn533: Clear nfc_target before being used
mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()
selftests/powerpc: Fix resource leaks
powerpc/hv-gpci: Fix hv_gpci event list
powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
powerpc/perf: callchain validate kernel stack pointer bounds
powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()
cxl: Fix refcount leak in cxl_calc_capp_routing
powerpc/52xx: Fix a resource leak in an error handling path
macintosh/macio-adb: check the return value of ioremap()
macintosh: fix possible memory leak in macio_add_one_device()
iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()
iommu/amd: Fix pci device refcount leak in ppr_notifier()
rtc: snvs: Allow a time difference on clock register read
* include/uapi/linux/swab: Fix potentially missing __always_inline
include/uapi/linux/swab.h
HSI: omap_ssi_core: Fix error handling in ssi_init()
perf symbol: correction while adjusting symbol
* power: supply: fix residue sysfs file in error handle route of __power_supply_register()
drivers/power/supply/power_supply_core.c
HSI: omap_ssi_core: fix possible memory leak in ssi_probe()
HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
fbdev: vermilion: decrease reference count in error path
fbdev: via: Fix error in via_core_init()
fbdev: pm2fb: fix missing pci_disable_device()
* fbdev: ssd1307fb: Drop optional dependency
drivers/video/fbdev/Kconfig
samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()
tracing/hist: Fix issue of losting command info in error_log
usb: storage: Add check for kcalloc
i2c: ismt: Fix an out-of-bounds bug in ismt_access()
vme: Fix error not catched in fake_init()
staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()
staging: rtl8192u: Fix use after free in ieee80211_rx()
i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
* chardev: fix error handling in cdev_device_add()
fs/char_dev.c
mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
drivers: mcb: fix resource leak in mcb_probe()
* usb: gadget: f_hid: fix refcount leak on error path
drivers/usb/gadget/function/f_hid.c
* usb: gadget: f_hid: fix f_hidg lifetime vs cdev
drivers/usb/gadget/function/f_hid.c
* usb: gadget: f_hid: optional SETUP/SET_REPORT mode
drivers/usb/gadget/function/f_hid.c
drivers/usb/gadget/function/u_hid.h
cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
test_firmware: fix memory leak in test_firmware_init()
serial: sunsab: Fix error handling in sunsab_init()
serial: altera_uart: fix locking in polling mode
tty: serial: altera_uart_{r,t}x_chars() need only uart_port
tty: serial: clean up stop-tx part in altera_uart_tx_chars()
serial: pch: Fix PCI device refcount leak in pch_request_dma()
serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
serial: amba-pl011: avoid SBSA UART accessing DMACR register
* usb: typec: Check for ops->exit instead of ops->enter in altmode_exit
drivers/usb/typec/bus.c
staging: vme_user: Fix possible UAF in tsi148_dma_list_add
usb: fotg210-udc: Fix ages old endianness issues
uio: uio_dmem_genirq: Fix deadlock between irq config and handling
uio: uio_dmem_genirq: Fix missing unlock in irq configuration
vfio: platform: Do not pass return buffer to ACPI _RST method
* class: fix possible memory leak in __class_register()
drivers/base/class.c
serial: tegra: Read DMA status before terminating
tty: serial: tegra: Activate RX DMA transfer by request
serial: tegra: Add PIO mode support
serial: tegra: report clk rate errors
serial: tegra: add support to adjust baud rate
serial: tegra: add support to use 8 bytes trigger
serial: tegra: set maximum num of uart ports to 8
serial: tegra: check for FIFO mode enabled status
serial: tegra: avoid reg access when clk disabled
drivers: dio: fix possible memory leak in dio_init()
IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
hwrng: geode - Fix PCI device refcount leak
hwrng: amd - Fix PCI device refcount leak
crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
orangefs: Fix sysfs not cleanup when dev init failed
RDMA/hfi1: Fix error return code in parse_platform_config()
scsi: snic: Fix possible UAF in snic_tgt_create()
scsi: fcoe: Fix transport not deattached when fcoe_if_init() fails
scsi: ipr: Fix WARNING in ipr_init()
scsi: fcoe: Fix possible name leak when device_register() fails
scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()
scsi: hpsa: Fix error handling in hpsa_add_sas_host()
crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
scsi: hpsa: Fix possible memory leak in hpsa_init_one()
scsi: hpsa: use local workqueues instead of system workqueues
RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed
crypto: ccree - Make cc_debugfs_global_fini() available for module init function
RDMA/hfi: Decrease PCI device reference count in error path
* PCI: Check for alloc failure in pci_request_irq()
drivers/pci/irq.c
scsi: scsi_debug: Fix a warning in resp_write_scat()
RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port
* f2fs: fix normal discard process
fs/f2fs/segment.c
apparmor: Fix abi check to include v8 abi
apparmor: fix lockdep warning when removing a namespace
apparmor: fix a memleak in multi_transaction_new()
stmmac: fix potential division by 0
Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
* Bluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()
net/bluetooth/hci_core.c
Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()
Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()
ntb_netdev: Use dev_kfree_skb_any() in interrupt context
net: lan9303: Fix read error execution path
net: amd-xgbe: Check only the minimum speed for active/passive cables
net: amd-xgbe: Fix logic around active and passive cables
net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()
hamradio: don't call dev_kfree_skb() under spin_lock_irqsave()
net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()
net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()
net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()
net: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()
* net/tunnel: wait until all sk_user_data reader finish before releasing the sock
net/ipv4/udp_tunnel.c
net: farsync: Fix kmemleak when rmmods farsync
ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
net: defxx: Fix missing err handling in dfx_init()
net: vmw_vsock: vmci: Check memcpy_from_msg()
clk: socfpga: use clk_hw_register for a5/c5
clk: socfpga: clk-pll: Remove unused variable 'rc'
* blktrace: Fix output non-blktrace event when blk_classic option enabled
kernel/trace/blktrace.c
wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()
rtl8xxxu: add enumeration for channel bandwidth
wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
clk: samsung: Fix memory leak in _samsung_clk_register_pll()
media: coda: Add check for kmalloc
media: coda: Add check for dcoda_iram_alloc
media: c8sectpfe: Add of_node_put() when breaking out of loop
mmc: mmci: fix return value check of mmc_add_host()
mmc: wbsd: fix return value check of mmc_add_host()
mmc: via-sdmmc: fix return value check of mmc_add_host()
mmc: meson-gx: fix return value check of mmc_add_host()
mmc: atmel-mci: fix return value check of mmc_add_host()
mmc: wmt-sdmmc: fix return value check of mmc_add_host()
mmc: vub300: fix return value check of mmc_add_host()
mmc: toshsd: fix return value check of mmc_add_host()
mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()
mmc: mxcmmc: fix return value check of mmc_add_host()
mmc: moxart: fix return value check of mmc_add_host()
NFSv4.x: Fail client initialisation if state manager thread can't run
SUNRPC: Fix missing release socket in rpc_sockname()
ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt
media: saa7164: fix missing pci_disable_device()
* regulator: core: fix module refcount leak in set_supply()
drivers/regulator/core.c
* wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails
net/wireless/reg.c
* bonding: uninitialized variable in bond_miimon_inspect()
drivers/net/bonding/bond_main.c
ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
ALSA: asihpi: fix missing pci_disable_device()
NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn
NFSv4.2: Fix a memory stomp in decode_attr_security_label
drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC
media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()
media: dvb-core: Fix ignored return value in dvb_register_frontend()
* pinctrl: pinconf-generic: add missing of_node_put()
drivers/pinctrl/pinconf-generic.c
media: imon: fix a race condition in send_packet()
drbd: remove call to memset before free device/resource/connection
mtd: maps: pxa2xx-flash: fix memory leak in probe
* bonding: Export skip slave logic to function
drivers/net/bonding/bond_main.c
clk: rockchip: Fix memory leak in rockchip_clk_register_pll()
* ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT
include/uapi/sound/asequencer.h
HID: hid-sensor-custom: set fixed size for custom attributes
media: platform: exynos4-is: Fix error handling in fimc_md_init()
media: solo6x10: fix possible memory leak in solo_sysfs_init()
Input: elants_i2c - properly handle the reset GPIO when power is off
mtd: lpddr2_nvm: Fix possible null-ptr-deref
wifi: ath10k: Fix return value in ath10k_pci_init()
ima: Fix misuse of dereference of pointer in template_desc_init_fields()
* regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
drivers/regulator/core.c
ASoC: pxa: fix null-pointer dereference in filter()
drm/radeon: Add the missed acpi_put_table() to fix memory leak
* net, proc: Provide PROC_FS=n fallback for proc_create_net_single_write()
include/linux/proc_fs.h
media: camss: Clean up received buffers on failed start of streaming
wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port
mtd: Fix device name leak when register device failed in add_mtd_device()
media: vivid: fix compose size exceed boundary
spi: Update reference to struct spi_controller
can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming
can: kvaser_usb: Add struct kvaser_usb_busparams
can: kvaser_usb_leaf: Fix bogus restart events
can: kvaser_usb_leaf: Fix wrong CAN state after stopping
can: kvaser_usb_leaf: Fix improved state not being reported
can: kvaser_usb_leaf: Set Warning state even without bus errors
can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT
can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event
can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device
can: kvaser_usb: do not increase tx statistics when sending error message frames
media: i2c: ad5820: Fix error path
pata_ipx4xx_cf: Fix unsigned comparison with less than zero
wifi: rtl8xxxu: Fix reading the vendor of combo chips
wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()
rapidio: devices: fix missing put_device in mport_cdev_open
hfs: Fix OOB Write in hfs_asc2mac
relay: fix type mismatch when allocating memory in relay_create_buf()
* eventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD
include/linux/eventfd.h
rapidio: fix possible UAF when kfifo_alloc() fails
fs: sysv: Fix sysv_nblocks() returns wrong value
MIPS: BCM63xx: Add check for NULL for clk in clk_enable
platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()
* PM: runtime: Do not call __rpm_callback() from rpm_idle()
drivers/base/power/runtime.c
* PM: runtime: Improve path in rpm_idle() when no callback
drivers/base/power/runtime.c
xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
x86/xen: Fix memory leak in xen_init_lock_cpu()
x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
xen/events: only register debug interrupt for 2-level events
uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix
ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()
clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
rapidio: rio: fix possible name leak in rio_register_mport()
rapidio: fix possible name leaks when rio_add_device() fails
* debugfs: fix error when writing negative value to atomic_t debugfs file
fs/debugfs/file.c
include/linux/debugfs.h
lib/notifier-error-inject: fix error when writing -errno to debugfs file
* libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value
fs/libfs.c
include/linux/fs.h
cpufreq: amd_freq_sensitivity: Add missing pci_dev_put()
irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()
PNP: fix name memory leak in pnp_alloc_dev()
MIPS: vpe-cmp: fix possible memory leak while module exiting
MIPS: vpe-mt: fix possible memory leak while module exiting
ocfs2: fix memory leak in ocfs2_stack_glue_init()
proc: fixup uptime selftest
* timerqueue: Use rb_entry_safe() in timerqueue_getnext()
include/linux/timerqueue.h
* perf: Fix possible memleak in pmu_dev_alloc()
kernel/events/core.c
selftests/ftrace: event_triggers: wait longer for test_event_enable
* fs: don't audit the capability check in simple_xattr_list()
fs/xattr.c
alpha: fix syscall entry in !AUDUT_SYSCALL case
* cpuidle: dt: Return the correct numbers of parsed idle states
drivers/cpuidle/dt_idle_states.c
tpm/tpm_crb: Fix error message in __crb_relinquish_locality()
* pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP
fs/pstore/ram_core.c
ARM: mmp: fix timer_read delay
* pstore/ram: Fix error return code in ramoops_probe()
fs/pstore/ram.c
ARM: dts: turris-omnia: Add switch port 6 node
ARM: dts: turris-omnia: Add ethernet aliases
ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port
ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port
ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port
ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port
ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port
ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port
arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name
arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names
arm64: dts: mt2712e: Fix unit address for pinctrl node
arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators
perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()
soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe
arm: dts: spear600: Fix clcd interrupt
drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static
ARM: dts: qcom: apq8064: fix coresight compatible
usb: musb: remove extra check in musb_gadget_vbus_draw
* net: loopback: use NET_NAME_PREDICTABLE for name_assign_type
drivers/net/loopback.c
* Bluetooth: L2CAP: Fix u8 overflow
net/bluetooth/l2cap_core.c
igb: Initialize mailbox message for VF reset
USB: serial: f81534: fix division by zero on line-speed change
USB: serial: cp210x: add Kamstrup RF sniffer PIDs
USB: serial: option: add Quectel EM05-G modem
usb: gadget: uvc: Prevent buffer overflow in setup handler
udf: Fix extending file within last block
udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size
udf: Fix preallocation discarding at indirect extent boundary
udf: Discard preallocation before extending file with a hole
perf script python: Remove explicit shebang from tests/attr.c
* ASoC: ops: Correct bounds check for second channel on SX controls
sound/soc/soc-ops.c
can: mcba_usb: Fix termination command argument
* can: sja1000: fix size of OCR_MODE_MASK define
include/linux/can/platform/sja1000.h
pinctrl: meditatek: Startup with the IRQs disabled
* ASoC: ops: Check bounds for second channel in snd_soc_put_volsw_sx()
sound/soc/soc-ops.c
nfp: fix use-after-free in area_cache_get()
* block: unhash blkdev part inode when the part is deleted
block/partition-generic.c
mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths
* mm/khugepaged: fix GUP-fast interaction by sending IPI
include/asm-generic/tlb.h
mm/memory.c
ANDROID: Add more hvc devices for virtio-console.
ANDROID: Add allowed symbols required from Qualcomm drivers
* BACKPORT: lib: introduce copy_struct_from_user() helper
include/linux/bitops.h
include/linux/uaccess.h
lib/strnlen_user.c
lib/usercopy.c
* ANDROID: fix BIT() redefinition
include/linux/bits.h
include/vdso/bits.h
Bug: 268137599
Change-Id: I1ae5c7cfdd0387ced375d87341327c27bd3ae454
Signed-off-by: JohnnLee <johnnlee@google.com>
999 lines
35 KiB
Plaintext
999 lines
35 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# QCOM Soc drivers
|
|
#
|
|
menu "Qualcomm SoC drivers"
|
|
config QCOM_COMMAND_DB
|
|
tristate "Qualcomm Command DB"
|
|
depends on ARCH_QCOM || COMPILE_TEST
|
|
depends on OF_RESERVED_MEM
|
|
help
|
|
Command DB queries shared memory by key string for shared system
|
|
resources. Platform drivers that require to set state of a shared
|
|
resource on a RPM-hardened platform must use this database to get
|
|
SoC specific identifier and information for the shared resources.
|
|
|
|
config QCOM_MEM_OFFLINE
|
|
tristate "Dynamic Memory Region Offline driver"
|
|
depends on MEMORY_HOTPLUG
|
|
help
|
|
Add support for DDR Self-Refresh power management through the dynamic
|
|
memory offline framework. This driver interfaces between the memory
|
|
hotplug subsystem and AOP which hot adds or removes memory blocks and
|
|
controls the start/stop of self-refresh of these DDR regions. This
|
|
helps reduce power consumption during idle mode of the system.
|
|
If unsure, say N
|
|
|
|
config BUG_ON_HW_MEM_ONLINE_FAIL
|
|
bool "Trigger a BUG when HW memory online fails"
|
|
depends on QCOM_MEM_OFFLINE
|
|
help
|
|
Select this option if kernel should BUG when the hardware
|
|
onlining of memory hotplug blocks fails. This helps to catch
|
|
online failures much quicker and avoids the later side effects
|
|
of such memory online failures.
|
|
If unsure, say N
|
|
|
|
config QCOM_GENI_SE
|
|
tristate "QCOM GENI Serial Engine Driver"
|
|
depends on ARCH_QCOM || COMPILE_TEST
|
|
select REGMAP_MMIO
|
|
help
|
|
This driver is used to manage Generic Interface (GENI) firmware based
|
|
Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This
|
|
driver is also used to manage the common aspects of multiple Serial
|
|
Engines present in the QUP.
|
|
|
|
config OVERRIDE_MEMORY_LIMIT
|
|
bool "Override memory limit set by the kernel boot parameter"
|
|
depends on QCOM_MEM_OFFLINE
|
|
help
|
|
Override any memory limit set by the kernel boot parameter with
|
|
limit set by mem-offline dt entry so that memory offline framework
|
|
can initialize remaining memory with movable pages for memory
|
|
hot-plugging.
|
|
If unsure, say N
|
|
|
|
config QCOM_GLINK_SSR
|
|
tristate "Qualcomm Glink SSR driver"
|
|
depends on RPMSG
|
|
depends on QCOM_RPROC_COMMON
|
|
help
|
|
Say y here to enable GLINK SSR support. The GLINK SSR driver
|
|
implements the SSR protocol for notifying the remote processor about
|
|
neighboring subsystems going up or down.
|
|
|
|
config QCOM_CPUSS_DUMP
|
|
tristate "CPU Subsystem Dumping support"
|
|
help
|
|
Add support to dump various hardware entities such as the instruction
|
|
and data tlb's as well as the unified tlb, which are a part of the
|
|
cpu subsystem to an allocated buffer. This allows for analysis of the
|
|
the entities if corruption is suspected.
|
|
If unsure, say N
|
|
|
|
config QCOM_RUN_QUEUE_STATS
|
|
tristate "Enable collection and exporting of QTI Run Queue stats to userspace"
|
|
help
|
|
This option enables the driver to periodically collecting the statistics
|
|
of kernel run queue information and calculate the load of the system.
|
|
This information is exported to usespace via sysfs entries and userspace
|
|
algorithms uses info and decide when to turn on/off the cpu cores.
|
|
|
|
config MSM_QBT_HANDLER
|
|
bool "Event Handler for QTI Ultrasonic Fingerprint Sensor"
|
|
help
|
|
This driver acts as a interrupt handler, where the interrupt is generated
|
|
by the QTI Ultrasonic Fingerprint Sensor. It queues the events for each
|
|
interrupt in an event queue and notifies the userspace to read the events
|
|
from the queue. It also creates an input device to send key events such as
|
|
KEY_POWER, KEY_HOME.
|
|
|
|
config QCOM_GSBI
|
|
tristate "QCOM General Serial Bus Interface"
|
|
depends on ARCH_QCOM
|
|
select MFD_SYSCON
|
|
help
|
|
Say y here to enable GSBI support. The GSBI provides control
|
|
functions for connecting the underlying serial UART, SPI, and I2C
|
|
devices to the output pins.
|
|
|
|
config QCOM_IPCC
|
|
tristate "Qualcomm Technologies, Inc. IPCC driver"
|
|
depends on MAILBOX
|
|
help
|
|
Qualcomm Technologies, Inc. IPCC driver for MSM devices. The drivers
|
|
acts as an interrupt controller for the clients interested in
|
|
talking to the IPCC (inbound-communication). On the other hand, the
|
|
driver also provides a mailbox channel for outbound-communications.
|
|
Say Y here to compile the driver as a part of kernel or M to compile
|
|
as a module.
|
|
|
|
config QCOM_LLCC
|
|
tristate "Qualcomm Technologies, Inc. LLCC driver"
|
|
depends on ARCH_QCOM
|
|
help
|
|
Qualcomm Technologies, Inc. platform specific
|
|
Last Level Cache Controller(LLCC) driver. This provides interfaces
|
|
to clients that use the LLCC. Say yes here to enable LLCC slice
|
|
driver.
|
|
|
|
config QCOM_KONA_LLCC
|
|
tristate "Qualcomm Technologies, Inc. KONA LLCC driver"
|
|
depends on QCOM_LLCC
|
|
help
|
|
Say yes here to enable the LLCC driver for KONA. This provides
|
|
data required to configure LLCC so that clients can start using the
|
|
LLCC slices.
|
|
|
|
config QCOM_LITO_LLCC
|
|
tristate "Qualcomm Technologies, Inc. LITO LLCC driver"
|
|
depends on QCOM_LLCC
|
|
help
|
|
Say yes here to enable the LLCC driver for LITO. This provides
|
|
data required to configure LLCC so that clients can start using the
|
|
LLCC slices.
|
|
|
|
config QCOM_LAGOON_LLCC
|
|
tristate "Qualcomm Technologies, Inc. LAGOON LLCC driver"
|
|
depends on QCOM_LLCC
|
|
help
|
|
Qualcomm Technologies, Inc. platform specific LLCC driver for LAGOON.
|
|
Say yes here to enable the LLCC driver for LAGOON. This provides
|
|
data required to configure LLCC so that clients can start using the
|
|
LLCC slices.
|
|
|
|
config QCOM_SDM845_LLCC
|
|
tristate "Qualcomm Technologies, Inc. SDM845 LLCC driver"
|
|
depends on QCOM_LLCC
|
|
help
|
|
Say yes here to enable the LLCC driver for SDM845. This provides
|
|
data required to configure LLCC so that clients can start using the
|
|
LLCC slices.
|
|
|
|
config QCOM_LLCC_PERFMON
|
|
tristate "Qualcomm Technologies, Inc. LLCC Perfmon driver"
|
|
depends on QCOM_LLCC
|
|
help
|
|
This option enables driver for LLCC Performance monitor block. Using
|
|
this various events in different LLCC sub ports can be monitored.
|
|
This is used for performance and debug activity and exports sysfs
|
|
interface. sysfs interface is used to configure and dump the LLCC
|
|
performance events.
|
|
|
|
config QCOM_MDT_LOADER
|
|
tristate "Qualcomm Technologies, Inc. Firmware parser for MDT format"
|
|
select QCOM_SCM
|
|
help
|
|
Firmware parser driver parsers the MDT format and loads peripheral
|
|
images into pre-allocated buffers. It uses the firmware loader
|
|
framework available for loading firmware.
|
|
|
|
config QPNP_PBS
|
|
tristate "PBS trigger support for QPNP PMIC"
|
|
depends on SPMI
|
|
help
|
|
This driver supports configuring software PBS trigger event through PBS
|
|
RAM on Qualcomm Technologies, Inc. QPNP PMICs. This module provides
|
|
the APIs to the client drivers that wants to send the PBS trigger
|
|
event to the PBS RAM.
|
|
|
|
config QCOM_PM
|
|
bool "Qualcomm Power Management"
|
|
depends on ARCH_QCOM && !ARM64
|
|
select ARM_CPU_SUSPEND
|
|
select QCOM_SCM
|
|
help
|
|
QCOM Platform specific power driver to manage cores and L2 low power
|
|
modes. It interface with various system drivers to put the cores in
|
|
low power modes.
|
|
|
|
config QCOM_QMI_HELPERS
|
|
tristate "QTI QMI Helpers"
|
|
depends on QRTR
|
|
help
|
|
Helper library for handling QMI encoded messages. QMI encoded
|
|
messages are used in communication between the majority of QRTR
|
|
clients and this helpers provide the common functionality needed for
|
|
doing this from a kernel driver.
|
|
|
|
config QCOM_QMI_RMNET
|
|
tristate "QTI QMI Rmnet Helpers"
|
|
depends on QCOM_QMI_HELPERS
|
|
depends on RMNET
|
|
help
|
|
Helper for handling interfaces between kernel clients and rmnet
|
|
driver. It enables the rmnet driver to create/delete DFC/WDA
|
|
clients and provides the common functionality for data flow control
|
|
and power save features.
|
|
|
|
config QCOM_QMI_DFC
|
|
tristate "Enable burst mode flow control"
|
|
depends on QCOM_QMI_RMNET
|
|
help
|
|
Say y here to enable support for burst mode data flow control.
|
|
DFC client provides an interface to the modem dfc service and
|
|
does burst mode flow control. It enables the flow on receiving flow
|
|
status indication and disables flows while grant size is reached.
|
|
If unsure or not use burst mode flow control, say 'N'.
|
|
|
|
source "drivers/soc/qcom/rmnet_ctl/Kconfig"
|
|
|
|
config QCOM_QMI_POWER_COLLAPSE
|
|
tristate "Enable power save features"
|
|
depends on QCOM_QMI_RMNET
|
|
help
|
|
Say y here to enable support for power save features.
|
|
It provides an interface to offload uplink flow control based on
|
|
detected flow status.
|
|
If unsure or not use power save feature, say 'N'.
|
|
|
|
|
|
config QCOM_RMTFS_MEM
|
|
tristate "Qualcomm Remote Filesystem memory driver"
|
|
depends on ARCH_QCOM
|
|
select QCOM_SCM
|
|
help
|
|
The Qualcomm remote filesystem memory driver is used for allocating
|
|
and exposing regions of shared memory with remote processors for the
|
|
purpose of exchanging sector-data between the remote filesystem
|
|
service and its clients.
|
|
|
|
Say y here if you intend to boot the modem remoteproc.
|
|
|
|
config QCOM_RPMH
|
|
tristate "Qualcomm RPM-Hardened (RPMH) Communication"
|
|
depends on ARCH_QCOM && ARM64 && OF || COMPILE_TEST
|
|
help
|
|
Support for communication with the hardened-RPM blocks in
|
|
Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
|
|
internal bus to transmit state requests for shared resources. A set
|
|
of hardware components aggregate requests for these resources and
|
|
help apply the aggregated state on the resource.
|
|
|
|
config QCOM_SMEM
|
|
tristate "Qualcomm Shared Memory Manager (SMEM)"
|
|
depends on ARCH_QCOM
|
|
depends on HWSPINLOCK
|
|
help
|
|
Say y here to enable support for the Qualcomm Shared Memory Manager.
|
|
The driver provides an interface to items in a heap shared among all
|
|
processors in a Qualcomm platform.
|
|
|
|
config QCOM_SMD_RPM
|
|
tristate "Qualcomm Resource Power Manager (RPM) over SMD"
|
|
depends on ARCH_QCOM
|
|
depends on RPMSG && OF
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
Resource Power Manager system found in the Qualcomm 8974 based
|
|
devices.
|
|
|
|
This is required to access many regulators, clocks and bus
|
|
frequencies controlled by the RPM on these devices.
|
|
|
|
Say M here if you want to include support for the Qualcomm RPM as a
|
|
module. This will build a module called "qcom-smd-rpm".
|
|
|
|
config MSM_SPM
|
|
bool "Driver support for SPM and AVS wrapper hardware"
|
|
help
|
|
Enables the support for SPM and AVS wrapper hardware on MSMs. SPM
|
|
hardware is used to manage the processor power during sleep. The
|
|
driver allows configuring SPM to allow different low power modes for
|
|
both core and L2.
|
|
|
|
config MSM_L2_SPM
|
|
bool "SPM support for L2 cache"
|
|
help
|
|
Enable SPM driver support for L2 cache. Some MSM chipsets allow
|
|
control of L2 cache low power mode with a Subsystem Power manager.
|
|
Enabling this driver allows configuring L2 SPM for low power modes
|
|
on supported chipsets.
|
|
|
|
config QCOM_SCM
|
|
tristate "Secure Channel Manager (SCM) support"
|
|
default n
|
|
help
|
|
Say y here to enable Secure Channel Mananger(SCM) support for SoC.
|
|
SCM provides communication channel to communicate with secure
|
|
world(EL2 and EL3) by using smc call.
|
|
SCM driver provides the support for atomic scm calls also.
|
|
|
|
config QCOM_EARLY_RANDOM
|
|
tristate "Initialize random pool very early"
|
|
help
|
|
The standard random pool may not initialize until late in the boot
|
|
process which means that any calls to get random numbers before then
|
|
may not be truly random. Select this option to make an early call
|
|
to get some random data to put in the pool. If unsure, say N.
|
|
|
|
config QCOM_MEMORY_DUMP_V2
|
|
tristate "QCOM Memory Dump V2 Support"
|
|
help
|
|
This enables memory dump feature. It allows various client
|
|
subsystems to register respective dump regions. At the time
|
|
of deadlocks or cpu hangs these dump regions are captured to
|
|
give a snapshot of the system at the time of the crash.
|
|
|
|
config MSM_DEBUG_LAR_UNLOCK
|
|
bool "MSM Debug LAR Unlock Support"
|
|
depends on QCOM_MEMORY_DUMP_V2
|
|
help
|
|
This allows unlocking Core Debug lock to allow capture
|
|
of upper 32 bits of program counter at the time of
|
|
system crash. This is useful in getting correct crash
|
|
location.
|
|
|
|
config QCOM_SMEM_STATE
|
|
tristate
|
|
|
|
config QCOM_SMP2P
|
|
tristate "Qualcomm Shared Memory Point to Point support"
|
|
depends on MAILBOX
|
|
depends on QCOM_SMEM
|
|
select QCOM_SMEM_STATE
|
|
help
|
|
Say yes here to support the Qualcomm Shared Memory Point to Point
|
|
protocol.
|
|
|
|
config QCOM_SMSM
|
|
tristate "Qualcomm Shared Memory State Machine"
|
|
depends on QCOM_SMEM
|
|
select QCOM_SMEM_STATE
|
|
help
|
|
Say yes here to support the Qualcomm Shared Memory State Machine.
|
|
The state machine is represented by bits in shared memory.
|
|
|
|
config QCOM_WCNSS_CTRL
|
|
tristate "Qualcomm WCNSS control driver"
|
|
depends on ARCH_QCOM
|
|
depends on RPMSG
|
|
help
|
|
Client driver for the WCNSS_CTRL SMD channel, used to download nv
|
|
firmware to a newly booted WCNSS chip.
|
|
|
|
config MSM_PIL_MSS_QDSP6V5
|
|
tristate "MSS QDSP6v5 (Hexagon) Boot Support"
|
|
depends on MSM_PIL && MSM_SUBSYSTEM_RESTART
|
|
help
|
|
Support for booting and shutting down QDSP6v5 (Hexagon) processors
|
|
in modem subsystems. If you would like to make or receive phone
|
|
calls then say Y here.
|
|
If unsure, say N.
|
|
|
|
config SETUP_SSR_NOTIF_TIMEOUTS
|
|
bool "Set timeouts on SSR sysmon notifications and notifier callbacks"
|
|
help
|
|
Setup timers prior to initiating communication between
|
|
subsystems through sysmon, and prior to sending notifications
|
|
to drivers in the kernel that have registered callbacks with the
|
|
subsystem notifier framework for a particular subsystem. This
|
|
is a debugging feature.
|
|
|
|
config SSR_SYSMON_NOTIF_TIMEOUT
|
|
depends on SETUP_SSR_NOTIF_TIMEOUTS
|
|
int "SSR Sysmon notifications timeout in ms"
|
|
default 10000
|
|
help
|
|
The amount of time, in milliseconds, that should elapse between
|
|
the start and end of sysmon SSR notifications, before a warning
|
|
is emitted.
|
|
|
|
config SSR_SUBSYS_NOTIF_TIMEOUT
|
|
depends on SETUP_SSR_NOTIF_TIMEOUTS
|
|
int "SSR Subsystem notifier timeout in ms"
|
|
default 10000
|
|
help
|
|
The amount of time, in milliseconds, that should elapse between
|
|
the start and end of SSR notifications through the subsystem
|
|
notifier, before a warning is emitted.
|
|
|
|
config PANIC_ON_SSR_NOTIF_TIMEOUT
|
|
bool "Trigger kernel panic when notification timeout expires"
|
|
depends on SETUP_SSR_NOTIF_TIMEOUTS
|
|
help
|
|
Trigger a kernel panic when communication between subsystems
|
|
through sysmon is taking too long. Also trigger a kernel panic
|
|
if invoking the callbacks registered with a particular subsystem's
|
|
notifications by the subsystem notifier framework is taking too long.
|
|
This is a debugging feature.
|
|
|
|
config QCOM_SECURE_BUFFER
|
|
tristate "Helper functions for securing buffers through TZ"
|
|
help
|
|
Say 'Y' here for targets that need to call into TZ to secure
|
|
memory buffers. This ensures that only the correct clients can
|
|
use this memory and no unauthorized access is made to the
|
|
buffer
|
|
|
|
config MSM_REMOTEQDSS
|
|
bool "Allow debug tools to enable events on other processors"
|
|
depends on QCOM_SCM && DEBUG_FS
|
|
help
|
|
Other onchip processors/execution environments may support debug
|
|
events. Provide a sysfs interface for debug tools to dynamically
|
|
enable/disable these events. Interface located in
|
|
/sys/class/remoteqdss.
|
|
|
|
config MSM_TZ_SMMU
|
|
depends on ARCH_MSM8953 || ARCH_QCS405 || ARCH_MSM8917 || ARCH_MSM8937
|
|
tristate "Helper functions for SMMU configuration through TZ"
|
|
help
|
|
Say 'Y' here for targets that need to call into TZ to configure
|
|
SMMUs for any reason (for example, for errata workarounds or
|
|
configuration of SMMU virtualization).
|
|
|
|
If unsure, say N.
|
|
|
|
config MSM_SERVICE_LOCATOR
|
|
tristate "Service Locator"
|
|
depends on QCOM_QMI_HELPERS
|
|
help
|
|
The Service Locator provides a library to retrieve location
|
|
information given a service identifier. Location here translates
|
|
to what process domain exports the service, and which subsystem
|
|
that process domain will execute in.
|
|
|
|
config MSM_SERVICE_NOTIFIER
|
|
tristate "Service Notifier"
|
|
depends on MSM_SERVICE_LOCATOR && MSM_SUBSYSTEM_RESTART
|
|
help
|
|
The Service Notifier provides a library for a kernel client to
|
|
register for state change notifications regarding a remote service.
|
|
A remote service here refers to a process providing certain services
|
|
like audio, the identifier for which is provided by the service
|
|
locator.
|
|
|
|
config MSM_SUBSYSTEM_RESTART
|
|
tristate "MSM Subsystem Restart"
|
|
help
|
|
This option enables the MSM subsystem restart framework.
|
|
|
|
The MSM subsystem restart framework provides support to boot,
|
|
shutdown, and restart subsystems with a reference counted API.
|
|
It also notifies userspace of transitions between these states via
|
|
sysfs.
|
|
|
|
config MSM_PIL
|
|
tristate "Peripheral image loading"
|
|
depends on FW_LOADER
|
|
depends on MSM_SUBSYSTEM_RESTART
|
|
help
|
|
Some peripherals need to be loaded into memory before they can be
|
|
brought out of reset.
|
|
|
|
Say yes to support these devices.
|
|
|
|
config MSM_SYSMON_GLINK_COMM
|
|
bool "MSM System Monitor communication support using GLINK transport"
|
|
depends on MSM_GLINK && MSM_SUBSYSTEM_RESTART
|
|
help
|
|
This option adds support for MSM System Monitor APIs using the GLINK
|
|
transport layer. The APIs provided may be used for notifying
|
|
subsystems within the SoC about other subsystems' power-up/down
|
|
state-changes.
|
|
|
|
config MSM_SYSMON_QMI_COMM
|
|
tristate "MSM System Monitor communication support using QMI transport"
|
|
depends on QCOM_QMI_HELPERS && MSM_SUBSYSTEM_RESTART
|
|
help
|
|
This option adds support for MSM System Monitor APIs using the
|
|
QMI layer. The APIs provided may be used for notifying
|
|
subsystems within the SoC about other subsystems' power-up/down
|
|
state-changes.
|
|
|
|
config MSM_PIL_SSR_GENERIC
|
|
tristate "MSM Subsystem Boot Support"
|
|
depends on MSM_PIL && MSM_SUBSYSTEM_RESTART
|
|
help
|
|
Support for booting and shutting down MSM Subsystem processors.
|
|
This driver also monitors the SMSM status bits and the watchdog
|
|
interrupt for the subsystem and restarts it on a watchdog bite
|
|
or a fatal error. Subsystems include LPASS, Venus, VPU, WCNSS and
|
|
BCSS.
|
|
config MSM_BOOT_STATS
|
|
bool "Use MSM boot stats reporting"
|
|
help
|
|
Use this to report msm boot stats such as bootloader throughput,
|
|
display init, total boot time.
|
|
This figures are reported in mpm sleep clock cycles and have a
|
|
resolution of 31 bits as 1 bit is used as an overflow check.
|
|
|
|
config QCOM_DCC_V2
|
|
tristate "Qualcomm Technologies Data Capture and Compare enigne support for V2"
|
|
help
|
|
This option enables driver for Data Capture and Compare engine. DCC
|
|
driver provides interface to configure DCC block and read back
|
|
captured data from DCC's internal SRAM.
|
|
|
|
config QCOM_EUD
|
|
tristate "QTI Embedded USB Debugger (EUD)"
|
|
depends on ARCH_QCOM
|
|
select SERIAL_CORE
|
|
help
|
|
The EUD (Embedded USB Debugger) is a mini-USB hub implemented
|
|
on chip to support the USB-based debug and trace capabilities.
|
|
This module enables support for Qualcomm Technologies, Inc.
|
|
Embedded USB Debugger (EUD).
|
|
If unsure, say N.
|
|
|
|
config QCOM_MINIDUMP
|
|
tristate "QCOM Minidump Support"
|
|
depends on QCOM_SMEM
|
|
help
|
|
This enables minidump feature. It allows various clients to
|
|
register to dump their state at system bad state (panic/WDT,etc.,).
|
|
Minidump would dump all registered entries, only when DLOAD mode
|
|
is enabled.
|
|
|
|
config QCOM_DYN_MINIDUMP_STACK
|
|
bool "QTI Dynamic Minidump Stack Registration Support"
|
|
depends on QCOM_MINIDUMP
|
|
help
|
|
This enables minidump dynamic current stack registration feature.
|
|
It allows current task stack to be available in minidump, for cases
|
|
where CPU is unable to register it from IPI_CPU_STOP. The stack data
|
|
can be used to unwind stack frames.
|
|
|
|
config MINIDUMP_MAX_ENTRIES
|
|
int "Minidump Maximum num of entries"
|
|
default 200
|
|
depends on QCOM_MINIDUMP
|
|
help
|
|
This defines maximum number of entries to be allocated for application
|
|
subsytem in Minidump table.
|
|
|
|
config QCOM_APR
|
|
tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
|
|
depends on ARCH_QCOM
|
|
depends on RPMSG
|
|
help
|
|
Enable APR IPC protocol support between
|
|
application processor and QDSP6. APR is
|
|
used by audio driver to configure QDSP6
|
|
ASM, ADM and AFE modules.
|
|
|
|
config MSM_CORE_HANG_DETECT
|
|
tristate "MSM Core Hang Detection Support"
|
|
help
|
|
This enables the core hang detection module. It causes SoC
|
|
reset on core hang detection and collects the core context
|
|
for hang. By using sysfs entries core hang detection can be
|
|
enabled or disabled dynamically.
|
|
|
|
config MSM_GLADIATOR_HANG_DETECT
|
|
tristate "MSM Gladiator Hang Detection Support"
|
|
help
|
|
This enables the gladiator hang detection module.
|
|
If the configured threshold is reached, it causes SoC reset on
|
|
gladiator hang detection and collects the context for the
|
|
gladiator hang.
|
|
|
|
config MSM_GLADIATOR_ERP
|
|
tristate "GLADIATOR coherency interconnect error reporting driver"
|
|
help
|
|
Support dumping debug information for the GLADIATOR
|
|
cache interconnect in the error interrupt handler.
|
|
Meant to be used for debug scenarios only.
|
|
|
|
If unsure, say N.
|
|
|
|
config PANIC_ON_GLADIATOR_ERROR
|
|
depends on MSM_GLADIATOR_ERP
|
|
bool "Panic on GLADIATOR error report"
|
|
help
|
|
Panic upon detection of an Gladiator coherency interconnect error
|
|
in order to support dumping debug information.
|
|
Meant to be used for debug scenarios only.
|
|
|
|
If unsure, say N.
|
|
|
|
config QCOM_FSA4480_I2C
|
|
tristate "Fairchild FSA4480 chip with I2C"
|
|
select REGMAP_I2C
|
|
depends on I2C
|
|
help
|
|
Support for the Fairchild FSA4480 IC switch chip controlled
|
|
using I2C. This driver provides common support
|
|
for accessing the device, switching between USB and Audio
|
|
modes, changing orientation.
|
|
|
|
config QCOM_WATCHDOG_V2
|
|
tristate "QTI Watchdog Support"
|
|
depends on ARCH_QCOM
|
|
help
|
|
This enables the watchdog module. It causes kernel panic if the
|
|
watchdog times out. It allows for detection of cpu hangs and
|
|
deadlocks. It does not run during the bootup process, so it will
|
|
not catch any early lockups.
|
|
|
|
config QCOM_INITIAL_LOGBUF
|
|
bool "QCOM save initial log_buf"
|
|
depends on QCOM_WATCHDOG_V2
|
|
help
|
|
This enables to keep copy of initial log_buf at 100 second from
|
|
bootup.It can help in debugging issues which are manifestation of
|
|
failure during initial bootup.
|
|
|
|
config QCOM_FORCE_WDOG_BITE_ON_PANIC
|
|
bool "QCOM force watchdog bite"
|
|
depends on QCOM_WATCHDOG_V2=y || QCOM_WATCHDOG_V2=m
|
|
help
|
|
This forces a watchdog bite when the device restarts due to a
|
|
kernel panic. On certain MSM SoCs, this provides us
|
|
additional debugging information.
|
|
|
|
|
|
config QCOM_WDOG_IPI_ENABLE
|
|
bool "Qcom WDT pet optimization"
|
|
depends on QCOM_WATCHDOG_V2=y || QCOM_WATCDHOG_V2=m
|
|
default n
|
|
help
|
|
When this option is enabled, watchdog sends IPI to cores in low power
|
|
mode also. For power optimizations, by default watchdog don't ping
|
|
cores in low power mode at pettime.
|
|
|
|
To track CPUs health on LPM, or on debug builds enable it.
|
|
|
|
config QCOM_BUS_SCALING
|
|
tristate "Bus scaling driver"
|
|
help
|
|
This option enables bus scaling on MSM devices. Bus scaling
|
|
allows devices to request the clocks be set to rates sufficient
|
|
for the active devices needs without keeping the clocks at max
|
|
frequency when a slower speed is sufficient.
|
|
|
|
config QCOM_BUS_CONFIG_RPMH
|
|
tristate "RPMH Bus scaling driver"
|
|
depends on QCOM_BUS_SCALING
|
|
help
|
|
This option enables bus scaling using QCOM specific hardware
|
|
accelerators. It enables the translation of bandwidth requests
|
|
from logical nodes to hardware nodes controlled by the BCM (Bus
|
|
Clock Manager)
|
|
|
|
config MSM_SPCOM
|
|
depends on QCOM_GLINK
|
|
tristate "Secure Processor Communication over GLINK"
|
|
help
|
|
spcom driver allows loading Secure Processor Applications and
|
|
sending messages to Secure Processor Applications.
|
|
spcom provides interface to both user space app and kernel driver.
|
|
It is using glink as the transport layer, which provides multiple
|
|
logical channels over single physical channel.
|
|
The physical layer is based on shared memory and interrupts.
|
|
spcom provides clients/server API, although currently only one client
|
|
or server is allowed per logical channel.
|
|
|
|
config QSEE_IPC_IRQ
|
|
bool "QSEE interrupt manager"
|
|
help
|
|
The QSEE IPC IRQ controller manages the interrupts from the QTI
|
|
secure execution environment. This interrupt controller will use
|
|
the registers in the spcs region to mask and clear interrupts.
|
|
Clients can use this driver to avoid adding common interrupt handling
|
|
code.
|
|
|
|
config MSM_SPSS_UTILS
|
|
depends on MSM_PIL
|
|
tristate "Secure Processor Utilities"
|
|
help
|
|
spss-utils driver selects Secure Processor firmware file name.
|
|
The firmware file name for dev, test or production is selected
|
|
based on two fuses.
|
|
Different file name is used for differnt SPSS HW versions,
|
|
because the SPSS firmware size is too small to support multiple
|
|
HW versions.
|
|
|
|
config QSEE_IPC_IRQ_BRIDGE
|
|
tristate "QSEE IPC Interrupt Bridge"
|
|
select QSEE_IPC_IRQ
|
|
help
|
|
This module enables bridging an Inter-Processor Communication(IPC)
|
|
interrupt from a remote subsystem directed towards
|
|
Qualcomm Technologies, Inc. Secure Execution Environment(QSEE) to
|
|
userspace. The interrupt will be propagated through a character device
|
|
that userspace clients can poll on.
|
|
|
|
config QCOM_GLINK
|
|
tristate "GLINK Probe Helper"
|
|
depends on RPMSG_QCOM_GLINK_SMEM
|
|
help
|
|
This enables the GLINK Probe module. The GLINK RPMSG Plugin is
|
|
currently designed to plugin with the remote proc framework as a
|
|
subdev. This module is responsible for creating the glink transports
|
|
when remote proc is disabled.
|
|
|
|
config QCOM_GLINK_PKT
|
|
tristate "Enable device interface for GLINK packet channels"
|
|
depends on QCOM_GLINK
|
|
help
|
|
G-link packet driver provides the interface for the userspace
|
|
clients to communicate over G-Link via device nodes.
|
|
This enable the userspace clients to read and write to
|
|
some glink packets channel.
|
|
|
|
config QCOM_SMP2P_SLEEPSTATE
|
|
tristate "SMP2P Sleepstate notifier"
|
|
depends on QCOM_SMP2P
|
|
help
|
|
When this option is enabled, notifications are sent to remote procs
|
|
for the power state changes on the local processor. The notifications
|
|
are sent through the smp2p framework. This driver can also receive
|
|
notifications from the remote to prevent suspend on the local
|
|
processor.
|
|
|
|
config QCOM_QDSS_BRIDGE
|
|
tristate "Configure bridge driver for QTI/Qualcomm Technologies, Inc. MDM"
|
|
depends on MHI_BUS
|
|
help
|
|
The driver will help route diag traffic from modem side over the QDSS
|
|
sub-system to USB on APSS side. The driver acts as a bridge between the
|
|
MHI and USB interface.
|
|
If unsure, say N.
|
|
|
|
config MSM_CDSP_LOADER
|
|
tristate "CDSP loader support"
|
|
help
|
|
This enables the CDSP loader driver that loads the CDSP
|
|
firmware images and brings the compute DSP out of reset
|
|
for platforms that have one.
|
|
Say M if you want to enable this module.
|
|
|
|
config QTI_SYSTEM_PM
|
|
tristate
|
|
|
|
config QCOM_SMCINVOKE
|
|
tristate "Secure QSEE Support"
|
|
help
|
|
Enable SMCInvoke driver which supports capability based secure
|
|
communication between QTI Secure Execution Environment (QSEE)
|
|
and high level operating system. It exposes APIs for both
|
|
userspace and kernel clients.
|
|
|
|
config MSM_EVENT_TIMER
|
|
tristate "Event timer"
|
|
help
|
|
This option enables a modules that manages a list of event timers
|
|
that need to be monitored by the PM. The enables the PM code to
|
|
monitor events that require the core to be awake and ready to
|
|
handle the event.
|
|
|
|
config MSM_PM
|
|
depends on PM
|
|
select MSM_IDLE_STATS if DEBUG_FS
|
|
select CPU_IDLE_MULTIPLE_DRIVERS
|
|
select QTI_SYSTEM_PM if QCOM_RPMH
|
|
tristate "Qualcomm Technologies, Inc. (QTI) Power Management Drivers"
|
|
help
|
|
Platform specific power driver to manage cores and l2 low power
|
|
modes. It interface with various system driver and put the cores
|
|
into low power modes. It implements OS initiated scheme and
|
|
determines last CPU to call into PSCI for cluster Low power
|
|
modes.
|
|
|
|
if MSM_PM
|
|
menuconfig MSM_IDLE_STATS
|
|
tristate "Collect idle statistics"
|
|
help
|
|
Collect cores various low power mode idle statistics
|
|
and export them in proc/msm_pm_stats. User can read
|
|
this data and determine what low power modes and how
|
|
many times cores have entered into LPM modes.
|
|
|
|
if MSM_IDLE_STATS
|
|
|
|
config MSM_IDLE_STATS_FIRST_BUCKET
|
|
int "First bucket time"
|
|
default 62500
|
|
help
|
|
Upper time limit in nanoseconds of first bucket.
|
|
|
|
config MSM_IDLE_STATS_BUCKET_SHIFT
|
|
int "Bucket shift"
|
|
default 2
|
|
|
|
config MSM_IDLE_STATS_BUCKET_COUNT
|
|
int "Bucket count"
|
|
default 10
|
|
|
|
config MSM_SUSPEND_STATS_FIRST_BUCKET
|
|
int "First bucket time for suspend"
|
|
default 1000000000
|
|
help
|
|
Upper time limit in nanoseconds of first bucket of the
|
|
histogram. This is for collecting statistics on suspend.
|
|
|
|
endif # MSM_IDLE_STATS
|
|
endif # MSM_PM
|
|
|
|
config QTI_L2_REUSE
|
|
bool "Qualcomm Technologies Inc (QTI) L2 reuse"
|
|
depends on ARCH_QCOM
|
|
help
|
|
This module allows to configure the L2 reuse feature dynamically
|
|
to let the power collapsed cluster's L2 cache usage by the active
|
|
cluster cpu. Use sysfs interface to control enabling this feature.
|
|
|
|
config QCOM_DCC
|
|
bool "QCOM Data Capture and Compare engine support"
|
|
help
|
|
This option enables driver for Data Capture and Compare engine. DCC
|
|
driver provides interface to configure DCC block and read back
|
|
captured data from DCC's internal SRAM.
|
|
|
|
config QTI_RPM_STATS_LOG
|
|
tristate "Qualcomm Technologies RPM Stats Driver"
|
|
depends on QCOM_RPMH || MSM_RPM_SMD
|
|
help
|
|
This option enables a driver which reads RPM messages from a shared
|
|
memory location. These messages provide statistical information about
|
|
the low power modes that RPM enters. The drivers outputs the message
|
|
via a sysfs node.
|
|
|
|
config QTI_DDR_STATS_LOG
|
|
tristate "Qualcomm Technologies Inc (QTI) DDR Stats Driver"
|
|
depends on QCOM_RPMH
|
|
help
|
|
This option enables a driver which reads DDR statistical information
|
|
from AOP shared memory location such as DDR low power modes and DDR
|
|
frequency residency and counts. The driver outputs information using
|
|
sysfs.
|
|
|
|
config MSM_JTAGV8
|
|
tristate "Debug and ETM trace support across power collapse for ARMv8"
|
|
default y if CORESIGHT_SOURCE_ETM4X
|
|
depends on QCOM_SOCINFO
|
|
help
|
|
Enables support for debugging (specifically breakpoints) and ETM
|
|
processor tracing across power collapse both for JTag and OS hosted
|
|
software running on ARMv8 target. Enabling this will ensure debug
|
|
and ETM registers are saved and restored across power collapse.
|
|
If unsure, say 'N' here to avoid potential power, performance and
|
|
memory penalty.
|
|
config QTEE_SHM_BRIDGE
|
|
tristate "QTI TEE shared memory bridge"
|
|
help
|
|
QTEE shared memory bridge driver provides kernel APIs to share
|
|
memory between trustzone & other VMs through shared memory bridge.
|
|
It allows kernel clients to create bridge, delete bridge, and do
|
|
memory sub-allocation and free from the default kernel bridge
|
|
created by bridge driver.
|
|
|
|
source "drivers/soc/qcom/memshare/Kconfig"
|
|
config MSM_PERFORMANCE
|
|
tristate "msm performance driver to support userspace fmin/fmax request"
|
|
default n
|
|
help
|
|
This driver can restrict max freq or min freq of cpu cluster
|
|
when requested by the userspace by changing the cpufreq policy
|
|
fmin and fmax. The user space can request the cpu freq change by
|
|
writing cpu#:freq values
|
|
config QMP_DEBUGFS_CLIENT
|
|
bool "Debugfs Client to communicate with AOP using QMP protocol"
|
|
depends on DEBUG_FS
|
|
help
|
|
This options enables a driver which allows clients to send messages
|
|
to Alway On processor using QMP transport.
|
|
|
|
config QCOM_CDSP_RM
|
|
tristate "CDSP request manager"
|
|
depends on QCOM_GLINK
|
|
help
|
|
This driver serves CDSP requests for CPU L3 clock and CPU QoS thus
|
|
improving CDSP performance. Using this driver, CDSP can set appropriate
|
|
CPU L3 clock for improving IO-Coherent throughput and opt for QoS mode
|
|
to improve RPC latency. The driver also registers cooling devices for
|
|
CDSP subsystem and implements Cx ipeak limit management.
|
|
|
|
config QCOM_QHEE_ENABLE_MEM_PROTECTION
|
|
bool "QHEE enable kernel memory protection"
|
|
depends on QCOM_SCM
|
|
help
|
|
When this option is enabled, an SCM call will be invoked to enable
|
|
kernel memory protection in stage 2 memory mappings on kernel boot.
|
|
This is part of a security feature in QHEE and need to be enabled by
|
|
default.
|
|
|
|
config QCOM_CX_IPEAK
|
|
bool "Common driver to handle Cx iPeak limitation"
|
|
help
|
|
Cx ipeak HW module is used to limit the current drawn by various
|
|
subsystem blocks on Cx power rail. Each client needs to set their
|
|
bit in tcsr register if it is going to cross its own threshold.
|
|
If all clients are going to cross their thresholds then Cx ipeak
|
|
hw module will raise an interrupt to cDSP block to throttle cDSP fmax.
|
|
|
|
config QTI_CRYPTO_COMMON
|
|
tristate "Enable common crypto functionality used for FBE"
|
|
depends on BLK_INLINE_ENCRYPTION
|
|
help
|
|
Say 'Y' to enable the common crypto implementation to be used by
|
|
different storage layers such as UFS and EMMC for file based hardware
|
|
encryption. This library implements API to program and evict
|
|
keys using Trustzone or Hardware Key Manager.
|
|
|
|
config QTI_CRYPTO_TZ
|
|
tristate "Enable Trustzone to be used for FBE"
|
|
depends on QTI_CRYPTO_COMMON
|
|
help
|
|
Say 'Y' to enable routing crypto requests to Trustzone while
|
|
performing hardware based file encryption. This means keys are
|
|
programmed and managed through SCM calls to TZ where ICE driver
|
|
will configure keys.
|
|
|
|
config MSM_BAM_DMUX
|
|
bool "BAM Data Mux Driver"
|
|
depends on SPS
|
|
help
|
|
Support Muxed Data Channels over BAM interface.
|
|
BAM has a limited number of pipes. This driver
|
|
provides a means to support more logical channels
|
|
via muxing than BAM could without muxing.
|
|
|
|
endmenu
|
|
|
|
config QCOM_HYP_CORE_CTL
|
|
bool "CPU reservation scheme for Hypervisor"
|
|
depends on OKL4_GUEST
|
|
help
|
|
This driver reserve the specified CPUS by isolating them. The reserved
|
|
CPUs can be assigned to the other guest OS by the hypervisor.
|
|
An offline CPU is considered as a reserved CPU since this OS can't use
|
|
it.
|
|
|
|
config QTI_HW_KEY_MANAGER
|
|
tristate "Enable QTI Hardware Key Manager for storage encryption"
|
|
default n
|
|
help
|
|
Say 'Y' to enable the hardware key manager driver used to operate
|
|
and access key manager hardware block. This is used to interface with
|
|
HWKM hardware to perform key operations from the kernel which will
|
|
be used for storage encryption.
|
|
|
|
source "drivers/soc/qcom/icnss2/Kconfig"
|
|
|
|
config ICNSS
|
|
tristate "Platform driver for Q6 integrated connectivity"
|
|
select CNSS_UTILS
|
|
help
|
|
This module adds support for Q6 integrated WLAN connectivity
|
|
subsystem. This module is responsible for communicating WLAN on/off
|
|
control messages to FW over QMI channel. It is also responsible for
|
|
handling WLAN PD restart notifications.
|
|
|
|
config ICNSS_DEBUG
|
|
bool "ICNSS debug support"
|
|
depends on ICNSS
|
|
help
|
|
Say 'Y' here to enable ICNSS driver debug support. Debug support
|
|
primarily consists of logs consisting of information related to
|
|
hardware register access and enabling BUG_ON for certain cases to aid
|
|
the debugging.
|
|
|
|
config ICNSS_QMI
|
|
bool "ICNSS QMI support"
|
|
depends on ICNSS
|
|
help
|
|
Say 'Y' here to enable ICNSS QMI support. ICNSS driver will use
|
|
QMI framework to communicate with WLAN FW. It will send coldboot
|
|
handshake messages to WLAN FW, which includes hardware capabilities
|
|
and configurations. It also send WLAN on/off control message to FW
|
|
over QMI channel.
|
|
|
|
config MODEMSMEM
|
|
tristate "Modem SMEM driver"
|
|
default N
|
|
---help---
|
|
Enable to pass device information and other data to shared memory for
|
|
the modem subsystem
|
|
|
|
config QCOM_SOCINFO
|
|
tristate "Qualcomm socinfo driver"
|
|
depends on SOC_BUS
|
|
default ARCH_QCOM
|
|
|
|
source "drivers/soc/qcom/wcnss/Kconfig"
|
|
|