Commit graph

889,574 commits

Author SHA1 Message Date
Maulik Shah
ffedc6cbb5 cpuidle: lpm-levels: Track and predict next rescheduling ipi
Add changes to track and predict next rescheduling ipi
based on past history. Add a module param to control enabling
it.

Change-Id: Ie495d8906288ee410708693ee15ed51643aefb44
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-06-03 23:50:44 -07:00
Surendar Karka
dfb2b57cdb uapi: sound: add support for TTP render mode
TTP render mode is used to enable TTP module
in DSP. Add macro for TTP render mode.

Change-Id: I6afb3cf3e5169603b1befec69807d80fb028b437
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-06-03 23:36:33 -07:00
Greg Kroah-Hartman
f520ca124c This is the 5.4.44 stable release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAl7XQXMACgkQONu9yGCS
 aT4OHw//YYuI/61rkff6/3qAE4gDwTZolVywu5HHzT5W7t7qeHPzJin2u04RBiS8
 4S8Mut0RUSK/0IyB0B3S342ntia1v41Q04veWm0K90iAScScjjUapLDXC/P3StA0
 iitGKJ8QFDS49+PFKFYkyXEsv6HYlDbtTmS0yxVoooSr+uqeR7m6rS1jsDsfUTaR
 T4tvfX8VPHkgfkfkOKCUq8/rM3uDW3lSk3JflIbPwRBQo9KvNPnfBetU9p//dCHG
 CB1K9K3sB6xLkKe7Ut7PlwoTq/Lc8qOma535xy3A8Iv6fVq4+hPE2jsB93WGI270
 WoEZbHpon7W6g/bU+C+CGfov2zBtz1dKHfWNcK5+dEkEQjjzKvvigfUvaKjyUUKB
 Vo5rQ3GZQ4JsMkHEJaLOlp3/SkdRd6RV/E0YErBISNeswzqsOgTrX8mz6wfQInwd
 Ww7V9LKdwSD6h2DuzutUbEm1X8i8glXammWEOUuh6zzQ3+WS57R1L+Nkr/6WxpgN
 w2g7F0+5enUbE1kIdq5OCzY1D0gBpT1o5YlrZgdL2GF5lU1b/lhsGhV6P83fl2Mf
 rTGFtg5M1pNgjbUkSH3VHHof35PM9vQZ6lrYbKMCjwymVY+BcR6nsCadfLqjMGnW
 NCYeiAmoIVCJX7q0hONww+TevZ3T+SLUjQ2os3WzooPC51MPOAQ=
 =5p6V
 -----END PGP SIGNATURE-----

Merge 5.4.44 into android-5.4-stable

Changes in 5.4.44
	ax25: fix setsockopt(SO_BINDTODEVICE)
	dpaa_eth: fix usage as DSA master, try 3
	net: don't return invalid table id error when we fall back to PF_UNSPEC
	net: dsa: mt7530: fix roaming from DSA user ports
	net: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during suspend
	__netif_receive_skb_core: pass skb by reference
	net: inet_csk: Fix so_reuseport bind-address cache in tb->fast*
	net: ipip: fix wrong address family in init error path
	net/mlx5: Add command entry handling completion
	net: mvpp2: fix RX hashing for non-10G ports
	net: nlmsg_cancel() if put fails for nhmsg
	net: qrtr: Fix passing invalid reference to qrtr_local_enqueue()
	net: revert "net: get rid of an signed integer overflow in ip_idents_reserve()"
	net sched: fix reporting the first-time use timestamp
	net/tls: fix race condition causing kernel panic
	nexthop: Fix attribute checking for groups
	r8152: support additional Microsoft Surface Ethernet Adapter variant
	sctp: Don't add the shutdown timer if its already been added
	sctp: Start shutdown on association restart if in SHUTDOWN-SENT state and socket is closed
	tipc: block BH before using dst_cache
	net/mlx5e: kTLS, Destroy key object after destroying the TIS
	net/mlx5e: Fix inner tirs handling
	net/mlx5: Fix memory leak in mlx5_events_init
	net/mlx5e: Update netdev txq on completions during closure
	net/mlx5: Fix error flow in case of function_setup failure
	net/mlx5: Annotate mutex destroy for root ns
	net/tls: fix encryption error checking
	net/tls: free record only on encryption error
	net: sun: fix missing release regions in cas_init_one().
	net/mlx4_core: fix a memory leak bug.
	mlxsw: spectrum: Fix use-after-free of split/unsplit/type_set in case reload fails
	ARM: dts: rockchip: fix phy nodename for rk3228-evb
	ARM: dts: rockchip: fix phy nodename for rk3229-xms6
	arm64: dts: rockchip: fix status for &gmac2phy in rk3328-evb.dts
	arm64: dts: rockchip: swap interrupts interrupt-names rk3399 gpu node
	ARM: dts: rockchip: swap clock-names of gpu nodes
	ARM: dts: rockchip: fix pinctrl sub nodename for spi in rk322x.dtsi
	gpio: tegra: mask GPIO IRQs during IRQ shutdown
	ALSA: usb-audio: add mapping for ASRock TRX40 Creator
	net: microchip: encx24j600: add missed kthread_stop
	gfs2: move privileged user check to gfs2_quota_lock_check
	gfs2: Grab glock reference sooner in gfs2_add_revoke
	drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate
	drm/amd/powerplay: perform PG ungate prior to CG ungate
	drm/amdgpu: Use GEM obj reference for KFD BOs
	cachefiles: Fix race between read_waiter and read_copier involving op->to_do
	usb: dwc3: pci: Enable extcon driver for Intel Merrifield
	usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()'
	usb: gadget: legacy: fix redundant initialization warnings
	net: freescale: select CONFIG_FIXED_PHY where needed
	IB/i40iw: Remove bogus call to netdev_master_upper_dev_get()
	riscv: stacktrace: Fix undefined reference to `walk_stackframe'
	clk: ti: am33xx: fix RTC clock parent
	csky: Fixup msa highest 3 bits mask
	csky: Fixup perf callchain unwind
	csky: Fixup remove duplicate irq_disable
	hwmon: (nct7904) Fix incorrect range of temperature limit registers
	cifs: Fix null pointer check in cifs_read
	csky: Fixup raw_copy_from_user()
	samples: bpf: Fix build error
	drivers: net: hamradio: Fix suspicious RCU usage warning in bpqether.c
	Input: usbtouchscreen - add support for BonXeon TP
	Input: evdev - call input_flush_device() on release(), not flush()
	Input: xpad - add custom init packet for Xbox One S controllers
	Input: dlink-dir685-touchkeys - fix a typo in driver name
	Input: i8042 - add ThinkPad S230u to i8042 reset list
	Input: synaptics-rmi4 - really fix attn_data use-after-free
	Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()
	ARM: 8970/1: decompressor: increase tag size
	ARM: uaccess: consolidate uaccess asm to asm/uaccess-asm.h
	ARM: uaccess: integrate uaccess_save and uaccess_restore
	ARM: uaccess: fix DACR mismatch with nested exceptions
	gpio: exar: Fix bad handling for ida_simple_get error path
	arm64: dts: mt8173: fix vcodec-enc clock
	soc: mediatek: cmdq: return send msg error code
	gpu/drm: Ingenic: Fix opaque pointer casted to wrong type
	IB/qib: Call kobject_put() when kobject_init_and_add() fails
	ARM: dts/imx6q-bx50v3: Set display interface clock parents
	ARM: dts: bcm2835-rpi-zero-w: Fix led polarity
	ARM: dts: bcm: HR2: Fix PPI interrupt types
	mmc: block: Fix use-after-free issue for rpmb
	gpio: pxa: Fix return value of pxa_gpio_probe()
	gpio: bcm-kona: Fix return value of bcm_kona_gpio_probe()
	RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe()
	ALSA: hwdep: fix a left shifting 1 by 31 UB bug
	ALSA: hda/realtek - Add a model for Thinkpad T570 without DAC workaround
	ALSA: usb-audio: mixer: volume quirk for ESS Technology Asus USB DAC
	exec: Always set cap_ambient in cap_bprm_set_creds
	clk: qcom: gcc: Fix parent for gpll0_out_even
	ALSA: usb-audio: Quirks for Gigabyte TRX40 Aorus Master onboard audio
	ALSA: hda/realtek - Add new codec supported for ALC287
	libceph: ignore pool overlay and cache logic on redirects
	ceph: flush release queue when handling caps for unknown inode
	RDMA/core: Fix double destruction of uobject
	drm/amd/display: drop cursor position check in atomic test
	IB/ipoib: Fix double free of skb in case of multicast traffic in CM mode
	mm,thp: stop leaking unreleased file pages
	mm: remove VM_BUG_ON(PageSlab()) from page_mapcount()
	fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()
	include/asm-generic/topology.h: guard cpumask_of_node() macro argument
	Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"
	gpio: fix locking open drain IRQ lines
	iommu: Fix reference count leak in iommu_group_alloc.
	parisc: Fix kernel panic in mem_init()
	cfg80211: fix debugfs rename crash
	x86/syscalls: Revert "x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long"
	mac80211: mesh: fix discovery timer re-arming issue / crash
	x86/dma: Fix max PFN arithmetic overflow on 32 bit systems
	copy_xstate_to_kernel(): don't leave parts of destination uninitialized
	xfrm: allow to accept packets with ipv6 NEXTHDR_HOP in xfrm_input
	xfrm: do pskb_pull properly in __xfrm_transport_prep
	xfrm: remove the xfrm_state_put call becofe going to out_reset
	xfrm: call xfrm_output_gso when inner_protocol is set in xfrm_output
	xfrm interface: fix oops when deleting a x-netns interface
	xfrm: fix a warning in xfrm_policy_insert_list
	xfrm: fix a NULL-ptr deref in xfrm_local_error
	xfrm: fix error in comment
	ip_vti: receive ipip packet by calling ip_tunnel_rcv
	netfilter: nft_reject_bridge: enable reject with bridge vlan
	netfilter: ipset: Fix subcounter update skip
	netfilter: conntrack: make conntrack userspace helpers work again
	netfilter: nfnetlink_cthelper: unbreak userspace helper support
	netfilter: nf_conntrack_pptp: prevent buffer overflows in debug code
	esp6: get the right proto for transport mode in esp6_gso_encap
	bnxt_en: Fix accumulation of bp->net_stats_prev.
	ieee80211: Fix incorrect mask for default PE duration
	xsk: Add overflow check for u64 division, stored into u32
	qlcnic: fix missing release in qlcnic_83xx_interrupt_test.
	crypto: chelsio/chtls: properly set tp->lsndtime
	nexthops: Move code from remove_nexthop_from_groups to remove_nh_grp_entry
	nexthops: don't modify published nexthop groups
	nexthop: Expand nexthop_is_multipath in a few places
	ipv4: nexthop version of fib_info_nh_uses_dev
	net: dsa: declare lockless TX feature for slave ports
	bonding: Fix reference count leak in bond_sysfs_slave_add.
	netfilter: conntrack: comparison of unsigned in cthelper confirmation
	netfilter: conntrack: Pass value of ctinfo to __nf_conntrack_update
	netfilter: nf_conntrack_pptp: fix compilation warning with W=1 build
	perf: Make perf able to build with latest libbfd
	Linux 5.4.44

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Idd547df1abb0bea116f30e3224a80387529adb0b
2020-06-04 08:23:35 +02:00
Mohammed Nayeem Ur Rahman
39bab9b845 msm: ADSPRPC: Fix to avoid race condition and use after free
Current mmap and munmap use same mutex but munmap_fd does not
use the same. This can introduce race condition between mmap
and munmap_fd. Also there is a use after free scenario in get_args
and init_process as only mmap_create is protected and the map can
be freed after this. Unifying mutex to avoid race condition.
Restricting munmap_fd only for persist bufs to avoid this.

Change-Id: I2adf631b1e61c2274a14a3645a5e555f5d248645
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-06-03 22:06:16 -07:00
Suresh Vankadara
a32228d0c9 msm: camera: Add camera dt binding definitions
Define camera OPE cpas path definitions to be used in
device tree and driver for bandwidth consolidation.

Change-Id: Iedc8157c1ac999999152588acdab44fecc7f1aeb
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
2020-06-04 07:42:25 +05:30
Sai Harshini Nimmala
e2ac811691 sched/walt: Consolidate WALT parameters
Create specific structures to hold all WALT related parameters used in the
scheduler.
This is to separate WALT functionality from scheduler code for GKI
purposes.

Change-Id: I6013883c00f2089dba3e5d0890c9abf5f57b3da6
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:19:06 -07:00
Sai Harshini Nimmala
3804c2a592 sched/walt: Create WALT specific datatype
Consolidate WALT variables present in the
task_struct in a separate WALT specific datatype.

Change-Id: I6efd71d9f8cfeeb4d1417a6cdcac6cbda2175999
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:19:05 -07:00
Sai Harshini Nimmala
d318d39f9c sched/walt: Cleanup cpu_util_freq
Minor cleanup involving the cpu_util_freq_walt/pelt function to help
simplify consolidation of WALT parameters for GKI.
Currently, we have a cpu_util_freq function that calls cpu_util in non-WALT
cases and cpu_util_freq_walt with an additional parameter for WALT cases.
The additional parameter is a WALT related structure. This change removes
the dependency of a non-WALT function on a WALT parameter.

Change-Id: Id2fa2b36abcd019c902b530304e58f85b1c70234
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-06-03 17:18:45 -07:00
qctecmdr
0f30cf7e56 Merge "drivers: irqchip: mpm: Add QTI SoC interrupt controller" 2020-06-03 17:08:18 -07:00
qctecmdr
b1d9b568be Merge "msm: kgsl: Add a flag for guard page allocation" 2020-06-03 17:08:18 -07:00
qctecmdr
92fe4104ee Merge "msm: kgsl: 'qcom,kgsl-3d0' device does not need to get regulators" 2020-06-03 17:08:17 -07:00
qctecmdr
3fbf87d4db Merge "msm: kgsl: Add GPU_RBBM_GBIF_CLIENT_QOS_CNTL to powerup register list" 2020-06-03 17:08:17 -07:00
qctecmdr
623d5c8266 Merge "clk: qcom: clk-rcg2: Fix possible dereference of clk parent for dfs clocks" 2020-06-03 17:08:17 -07:00
Yu SI
927d34f7ac msm: cvp: poll on cvp lpi status during power down
polling on cvp lpi status check during power down

Change-Id: I21129746cd4841af7e7a577946c543146bc9d6fc
Signed-off-by: Yu SI <ysi@codeaurora.org>
2020-06-03 16:16:08 -07:00
Raghu Ananya Arabolu
9d0942b552 msm: kgsl: Disable UCHE dual command queue
UCHE dual command queue configuration is resulting in a GPU hang.
Set UCHE_CMDQ_CONFIG to disable dual command queue.

Change-Id: I67daf5cbda1c170c5658c1e2308b8c0fd00540d6
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-06-03 15:29:13 -07:00
Bao D. Nguyen
ff32c4b41f mmc: sdhci_msm: keep a reference to the sdhc host instance
Keep a reference to the sdhc host instance to retrieve all the
necessary data structures in case of a crash for debugging.

Change-Id: I151b160ffbd6a02edea022ae7b970241dedce031
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2020-06-03 15:23:29 -07:00
Manikandan Mohan
f6efedba75 cnss2: Allow WLAN driver register after cold boot calibration
When cold boot calibration is enabled, it is the first step in
WLAN initialization. Cold boot calibration is started post file
system mount from init.target.rc and wlan driver is
loaded after that.
This update is to reject wlan driver register if it is loaded
before cold boot calibration is complete. This ensures WLAN
init sequence triggered from init.target.rc is followed and wlan
driver load from early boot is rejected.

Change-Id: Id2d7b6f9ceed0d6d648012ad6d0c24bba4d09854
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-06-03 14:48:47 -07:00
qctecmdr
b89d97ac1d Merge "scsi: ufshcd: Move to ufshcd core" 2020-06-03 12:43:50 -07:00
qctecmdr
77b4d787a9 Merge "arm64: defconfig: Add support for Global clock controller for SHIMA" 2020-06-03 12:43:50 -07:00
qctecmdr
043aeefccb Merge "NFC: Add support for LDO voting" 2020-06-03 12:43:49 -07:00
qctecmdr
bfaa5be36f Merge "ion: Use kthread_run for ion heap pool kworker threads" 2020-06-03 12:43:49 -07:00
qctecmdr
ff7503297c Merge "drivers: qcom: rpmh_master_stat: Remove unused size for SMEM item" 2020-06-03 12:43:49 -07:00
qctecmdr
058b018317 Merge "soc: qcom: mem-buf: Fix compilation errors when hotplug is disabled" 2020-06-03 12:43:49 -07:00
qctecmdr
66d77773c6 Merge "config: Enable TOS and DSCP target support" 2020-06-03 12:43:48 -07:00
Mahesh Kumar Sharma
c37f9da43d bluetooth: Vote VREG_L7E_2P8 from BT driver
Vote to enable L7E as switchable extractor
in RF card requires 2.7V on HP01.

Change-Id: I489aa7fca4bbeb4f53a7f9762cd092e35a5d79c2
Signed-off-by: Mahesh kumar sharma <smahesh@codeaurora.org>
2020-06-03 10:45:33 -07:00
Sriharsha Allenki
78635f8c56 usb: dwc3: gsi: Disable GSI wrapper on clearing run_stop
Disable GSI wrapper on clearing run_stop to prevent
unnecessary access by GSI wrapper because of the
pending GEVNTCOUNT on the GSI interrupters.

Change-Id: I8ee7fe25d33713487b74044a3a02deff0b7057aa
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-06-03 10:19:31 -07:00
Dinesh K Garg
a23a0f3316 qseecom: Enable APIs only when module is enabled
Enable QSEECom API only when this module is enabled. Otherwise,
it could give error.

Change-Id: I8f499528a4e7e531cd4763693aec86737845b528
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2020-06-03 10:18:02 -07:00
Vivek Aknurwar
7c45d69c58 clk: qcom: lahaina: Add pll test ctl regs
Add pll test ctl regs and general update for clk frequency
plan for Lahaina.

Change-Id: I0b08fff9990a6b7739bfbc4f8abed89d1be87cc1
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-06-03 08:50:37 -07:00
qctecmdr
e5734f3793 Merge "tty: hvc_console, fix crashes on parallel open/close" 2020-06-03 08:19:41 -07:00
qctecmdr
d140c01429 Merge "scsi: ufs: Don't update urgent bkops level when toggle auto bkops" 2020-06-03 08:19:41 -07:00
qctecmdr
2f215da25d Merge "msm: adsprpc: use persistent header buffers" 2020-06-03 08:19:40 -07:00
qctecmdr
d62ef4bce4 Merge "usb: phy: qmp: Call chain notifier for cable connect/disconnect" 2020-06-03 08:19:40 -07:00
qctecmdr
1e6d5a8199 Merge "input: qcom-hv-haptics: adjust T_LRA for auto RC CLK calibration case" 2020-06-03 08:19:39 -07:00
Greg Kroah-Hartman
9f12374175 ANDROID: GKI: remove netfilter apis from supported symbols
All of the required netfilter and fib functions should already be built
into the base GKI kernel, so nothing should need to be exported.  If
there are missing modules that are required for the base to work
properly, we can update the kernel configuration to properly refect that
instead of trying to support random filter modules.

Bug: 157965270
Cc: Liangcai Fan <liangcai.fan@unisoc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ia070ce5dc415d09b57e43e7a9ea6d9804ed2876b
2020-06-03 13:25:27 +02:00
qctecmdr
832413cfd4 Merge "cnss2: Save PCIe GEN speed and width changed from device" 2020-06-03 04:18:28 -07:00
qctecmdr
321b58ecd6 Merge "msm: cvp: Support new HFI FLUSH MSG value" 2020-06-03 04:18:27 -07:00
qctecmdr
99dd2f918c Merge "msm: kgsl: Fix gpu boot ab vote" 2020-06-03 04:18:27 -07:00
qctecmdr
0a29599df4 Merge "dwc3-msm: Force USB speed as high speed if SS release lane is called" 2020-06-03 04:18:27 -07:00
qctecmdr
dab6ee24ea Merge "xhci-plat: Mark usb1 and usb2 devices as wakeup source" 2020-06-03 04:18:26 -07:00
Pavankumar Kondeti
bcc14b586c sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Ifffa83691bb23fe78dab5ae606939649d1b18777
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-03 14:18:27 +05:30
Pavankumar Kondeti
72a3871cee sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Icf76108b3ac676e7687848cb991ea9caf67962d0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-03 14:17:47 +05:30
qctecmdr
2e914316cc Merge "defconfig: holi: Enable GPU driver" 2020-06-03 00:09:15 -07:00
qctecmdr
ea7101c01d Merge "Revert "usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE"" 2020-06-03 00:09:15 -07:00
qctecmdr
7903d82108 Merge "i2c: i2c-msm-geni: Do I2C configurations during resume" 2020-06-03 00:09:14 -07:00
qctecmdr
205bf79fed Merge "defconfig: msm: enable remote debugger driver on Lahaina" 2020-06-03 00:09:14 -07:00
qctecmdr
63ca758bd8 Merge "msm: synx: support for external dma fence" 2020-06-03 00:09:13 -07:00
qctecmdr
f96edb22b9 Merge "msm: kgsl: Do not program CP_LPAC_ROQ_THRESHOLDS registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ff478e8d76 Merge "mhi: core: Do a null pointer check before reading debug registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ab69e75913 Merge "mhi: core: expose soc reset and register dump debugfs entries" 2020-06-03 00:09:13 -07:00
qctecmdr
dfb22cb268 Merge ".gitignore: Ignore vendor devicetree directories from git" 2020-06-03 00:09:12 -07:00