Commit graph

899,416 commits

Author SHA1 Message Date
qctecmdr
32fa4672a0 Merge "pci: msm: Update NTN3 de-emphasis values via I2C" 2021-07-15 22:42:49 -07:00
Subramanian Ananthanarayanan
71cb759242 pci: msm: Update NTN3 de-emphasis values via I2C
Change is to update the de-emphasis value of NTN3
via i2c register writes to resolve link failure
issues seen on MBB platforms.

Change-Id: If90e5efc19691a14c3d5f12af78df9ff5c2b2a25
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
2021-07-15 02:16:06 -07:00
Paolo Abeni
a864e70eef udp: fix race between close() and udp_abort()
Kaustubh reported and diagnosed a panic in udp_lib_lookup().
The root cause is udp_abort() racing with close(). Both
racing functions acquire the socket lock, but udp{v6}_destroy_sock()
release it before performing destructive actions.

We can't easily extend the socket lock scope to avoid the race,
instead use the SOCK_DEAD flag to prevent udp_abort from doing
any action when the critical race happens.

Change-Id: I8ec3f73ed5f8324722b29450c37b4ae23a81c0f3
Diagnosed-and-tested-by: Kaustubh Pandey <kapandey@codeaurora.org>
Fixes: 5d77dca828 ("net: diag: support SOCK_DESTROY for UDP sockets")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-Commit: a8b897c7bcd47f4147d066e22cc01d1026d7640e
Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/netdev/net.git
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
2021-07-14 05:28:07 -07:00
qctecmdr
3ea3b05116 Merge "smcinvoke: Add retry mechanism for scm calls" 2021-07-13 19:54:04 -07:00
qctecmdr
75f42fe3ce Merge "msm: ipa3: add v2x ethernet support" 2021-07-13 19:54:03 -07:00
qctecmdr
fe311b837c Merge "net: usb: ax88179: Change to check if the packets are coming from gsb" 2021-07-13 19:54:03 -07:00
qctecmdr
706d4a2ae6 Merge "mhi: core: Fix find_last_bit() usage" 2021-07-13 19:54:02 -07:00
qctecmdr
e00d05cb12 Merge "icnss2: Send ICNSS_SMMU_FAULT uevent to host driver" 2021-07-13 19:54:02 -07:00
Pooja Kumari
4350ddc2c4 msm: ipa3: add v2x ethernet support
Add the v2x ethernet pipe connect support
for offloading v2x traffic.

Change-Id: I5e84f7e1d07722eeb5a7b9fbfbccb69451c72934
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2021-07-13 01:20:16 -07:00
Mohammed Javid
74ab1d4b33 net: usb: ax88179: Change to check if the packets are coming from gsb
Packets from gsb are cloned packets, which has been done
to optimize the dl data path. The check for cloned skb
calls pskb_expand_head which gives penalty in the throughput.
GSB driver data path does not consume the skb so, reallocation
of skb is not necessary here. For that reason the check for
all packets from gsb is introduced here. This check improves
the throughput to about 150 Mbps.

Change-Id: Ic1d7cc9c94605f1902ba212aac52d535d0ff84a7
Acked-by: Rishav LNU <rna@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2021-07-12 23:11:35 -07:00
Naman Padhiar
ed992c7a17 icnss2: Send ICNSS_SMMU_FAULT uevent to host driver
On detection of SMMU fault, platform driver send
SMMU_FAULT and FW_DOWN event to Host driver.

Change-Id: I623522231b5ee7ab0b03b8c1b25993395b7f3a2d
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-07-12 22:54:23 -07:00
Anmolpreet Kaur
d2bf6fd5b9 smcinvoke: Add retry mechanism for scm calls
This chage adds retry mechanism to smcinvoke driver
in case when secure side is busy. Driver will wait for
30 milliseconds before retrying the scm call. This
change also makes smcinvoke driver at par with qseecom
in terms of trying for around 2 seconds before sending
EBUSY error back to client.

Change-Id: Ie9523bc81f3aa03497836f06180c9d3f8a8efc99
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2021-07-12 22:14:00 -07:00
qctecmdr
0149a80bda Merge "usb: gadget: f_serial: Add support for DUN" 2021-07-12 19:22:29 -07:00
Hemant Kumar
36a30662f5 mhi: core: Fix find_last_bit() usage
find_last_bit() relies on unsigned long pointer arguments. Driver
uses a type cast that generates the KASAN warning. Replace
find_last_bit() with __fls() to pass the value and avoid casting
pointer to make the warning go away.

Change-Id: I247e5c425ba0c44d04b518bd6d4f351f9c700b29
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-07-12 19:04:21 -07:00
qctecmdr
d2da670e5e Merge "mmc: host: Add recovery_finish crypto vops" 2021-07-12 09:52:24 -07:00
qctecmdr
f1a9ffedcd Merge "msm: kgsl: Support QDSS_STM based on QCOM_KGSL_QDSS_STM config" 2021-07-12 09:52:23 -07:00
Hemant Kumar
e96fc1eeb8 usb: gadget: f_serial: Add support for DUN
Currently driver only support generic serial interface.
Adding communication device class specific descriptors
and notification endpoint support required for the
enumeration of a DUN interface. Add control transfer
APIs to send and receive serial line state.

Change-Id: I8d50495ad51797dfc8b3e77464474d9fe70d8636
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-07-12 09:03:54 -07:00
qctecmdr
9afb01b56b Merge "input: qcom-hv-haptics: Toggle RC_CAL_EN mode only for PM8350B" 2021-07-12 05:44:41 -07:00
Harshitha Sai Neelati
8310064815 msm: kgsl: Support QDSS_STM based on QCOM_KGSL_QDSS_STM config
Support QDSS_STM and vote for apb_pclk when QCOM_KGSL_QDSS_STM
config is enabled.

Change-Id: Ibe70585044e369ff9af2854b8fb5c10d860c40e7
Signed-off-by: Harshitha Sai Neelati <hsaineel@codeaurora.org>
2021-07-12 16:41:06 +05:30
Vaibhav Agrawal
1e2b270925 mmc: host: Add recovery_finish crypto vops
Define recovery_finish crypto vops to support
MMC CQE recovery handler path.

Test: Initiate CQE recovery, which calls into crypto
specific recovery method. If the crypto vops are
registered on the device, this flow does not lead to
a null pointer dereference with this fix included.

Change-Id: I6dfaf52a303b9ffa71b6b65779f8e657d6ca051a
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2021-07-12 02:31:20 -07:00
Kiran Gunda
d09360cb99 input: qcom-hv-haptics: Toggle RC_CAL_EN mode only for PM8350B
The incorrect first cycle vibration issue is applicable only
for PM8350B PMIC. Hence, make the SW W/A to toggle the CAL_EN mode
from disabled to auto mode specific for PM8350B PMIC. Introduce
a "wa_flags" variable to handle the SW W/A in a cleaner way.

Change-Id: I8f0c31fd21681274081a4d58d589b4ed9a188f34
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-07-12 02:24:10 -07:00
Hui Liu
c4e2bcf66f power: qcom: qbg: add jeita/step-chg parameters for QBG algorithm
Parse JEITA and step charging settings from battery
profile and send them to userspace algorithm for
TTF calculation.

Change-Id: I6250b34ecdca0d94d672f5859843cc4c54923412
Signed-off-by: Hui Liu <huliu@codeaurora.org>
2021-07-12 10:08:44 +08:00
qctecmdr
fca1612fcf Merge "soc: qcom: Return correct error code when program_key fails fails" 2021-07-11 07:42:48 -07:00
qctecmdr
6392f903e7 Merge "power: supply: qbg: Fixes in QBG driver" 2021-07-11 07:42:48 -07:00
qctecmdr
304bff3f76 Merge "cnss2: Add more debug info in ipc_log" 2021-07-11 07:42:48 -07:00
qctecmdr
8e3080036b Merge "Merge android11-5.4.86+ (fe9e863) into msm-5.4" 2021-07-11 07:42:47 -07:00
Vaibhav Agrawal
175aff99f1 soc: qcom: Return correct error code when program_key fails fails
When we call crypto_qti_program_key to program the key, and
it fails due to trustzone busy issue, we try to call invalidate
key method just after that, and in the process, overwrite the
error code returned by the program key failure. Fix this by handling
the errors from both program key and invalidate key separately,
and return the program key error code to caller.

Test: Verified device boot up and reboot.

Change-Id: Iaff0844f68b4886c23e1840d7e0e4a404d38fc96
Signed-off-by: Vaibhav Agrawal <vagrawa@codeaurora.org>
2021-07-10 02:34:11 -07:00
Rohith Kollalsi
e3d4ff77a7 usb: f_cdev: USB remote wake up feature implementation for DUN
Implement usb remote wake up feature for dun on sdx12.
For super speed this feature supports wake up of a
particular function from suspend, where as for high speed,
remote wakeup doesn't support wakeup of a particular function
from suspend, but entire usb bus needs to wakeup. When usb_func_wakeup
in composite driver fails because it needs to wake usb bus before
function wakeup is triggered, -EAGAIN is returned which cannot be
considered as a function wakeup failure. Hence add proper handling
in function driver for EAGAIN return case.

Change-Id: I15c18a4a7203e82c74ad1b4905c08eff91d91b4f
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-07-09 13:29:30 -07:00
qctecmdr
de4a213901 Merge "clk: qcom: debugcc: Add missing measure only clocks" 2021-07-09 06:01:38 -07:00
qctecmdr
d7e3014dc0 Merge "input: qcom-hv-haptics: Update the VMAX configuration" 2021-07-09 06:01:37 -07:00
qctecmdr
ddbef40a73 Merge "msm: kgsl: Retry process private open in a special failure case" 2021-07-09 06:01:36 -07:00
qctecmdr
cae2be6e8e Merge "clk: qcom: clk-alpha-pll: Update the steps to slew the Lucid PLL" 2021-07-09 06:01:36 -07:00
qctecmdr
a757adffe8 Merge "soc: qcom: Correct the modem data for wdog bite handler" 2021-07-09 06:01:35 -07:00
Taniya Das
fd141c2398 clk: qcom: clk-alpha-pll: Update the steps to slew the Lucid PLL
When PLL HW_UPDATE_LOGIC_BYPASS bit is not set then PLL can be
updated dynamically by setting the PLL_UPDATE bit in mode register
and hardware would clear the PLL_UPDATE automatically when
PLL_ACK_LATCH is asserted.

Change-Id: I1c568c9fdd37a554d71fc5c3d840a71e983baf60
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2021-07-09 02:32:00 -07:00
Srinivasarao P
1154cfab73 Merge android11-5.4.86+ (fe9e863) into msm-5.4
* refs/heads/tmp-fe9e863:
  FROMGIT: bpf: Do not change gso_size during bpf_skb_change_proto()
  ANDROID: selinux: modify RTM_GETNEIGH{TBL}

Change-Id: I02fcc7795c4380aafb293dd8f575cccdc8e86825
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-07-09 14:55:35 +05:30
Deepak Kumar
65e208cf89 msm: kgsl: Retry process private open in a special failure case
Currently, process private open/kgsl_open fails in case same pid
previous process private refcount is zero but destroy didn't
complete yet. In this failure case, as we are sure that destroy
is triggered and just pending to finish, retry process private
open again after some delay to ensure process private open is
successful.

Change-Id: I7cd8a2b7d64d9472121ffa8633d0621923f5ec89
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-07-09 14:36:28 +05:30
qctecmdr
821dd9939b Merge "msm: sps: Correct descriptor fifo address to dump contents" 2021-07-09 01:51:15 -07:00
lijuang
dcb104f131 soc: qcom: Correct the modem data for wdog bite handler
Correct the modem data for wdog bite handler, otherwise it will access
a invalid subsys.

Change-Id: Iedd7b85597fa95d283d3a7b9bdd59c8a7c765792
Signed-off-by: lijuang <lijuang@codeaurora.org>
2021-07-08 23:54:59 -07:00
Kiran Gunda
bce19700f7 input: qcom-hv-haptics: Update the VMAX configuration
The VMAX_STEP value is different for HV and MV haptics.
Update the VMAX configuration accordingly.

Change-Id: I5d0f00e9a07e76b01b16539d79897675ddd63117
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-07-08 23:51:25 -07:00
Madhuri Medasani
a155840f63 clk: qcom: debugcc: Add missing measure only clocks
Add missing clocks having measure only support for BLAIR.

Change-Id: I005d3d7853dbdaddcce82a844ee61341981eb501
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-07-08 20:27:17 -07:00
qctecmdr
c76c741a86 Merge "icnss2: Add Null check before dereferencing variables" 2021-07-08 18:06:02 -07:00
qctecmdr
38f07e2e36 Merge "msm: synx: Fix accessing uninitialized variable" 2021-07-08 18:06:02 -07:00
qctecmdr
581bc36999 Merge "mmc: core: Remove unnecessary scale debugfs entry" 2021-07-08 08:24:31 -07:00
qctecmdr
891649f939 Merge "usb: fix various gadget panics on 10gbps cabling" 2021-07-08 08:24:31 -07:00
qctecmdr
c519e10445 Merge "msm: pcie: update RC MPS based on MPSS" 2021-07-08 08:24:30 -07:00
qctecmdr
0889086dbb Merge "power: qpnp-qg: Add support to clear soh upon first profile load" 2021-07-08 08:24:30 -07:00
Rama Krishna Phani A
c76ce6f848 msm: sps: Correct descriptor fifo address to dump contents
Few clients of BAM will use SMMU for data transfers.
Assign correct descriptor fifo address for SMMU clients
of BAM while dumping contents.

Change-Id: I21584e6778315f51cac0d202d41f4c81a56fcbf0
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2021-07-08 18:50:27 +05:30
Ajay Prathi
f094710be7 msm: sps: Use iomem attribute for base address
Clients may use ioremap api to obtain the bam base address.
Add iomem attribute to the base address field
in the public SPS structure to avoid type casts.

Change-Id: Iba2ec1a9d84c3d57e2ce314ba9dc0b81644db2fb
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
2021-07-08 18:50:19 +05:30
qctecmdr
5b3872731b Merge "sched: Improve the scheduler" 2021-07-07 23:18:38 -07:00
Sumukh Hallymysore Ravindra
1e954f343d msm: synx: Fix accessing uninitialized variable
Change fixes accessing possible uninitialized
variable in an error log.

Change-Id: Ibc72faddb7073c0408c2c822991b9835992dffaf
Signed-off-by: Sumukh Hallymysore Ravindra <shallymy@codeaurora.org>
2021-07-07 22:01:14 -07:00