Commit graph

904,710 commits

Author SHA1 Message Date
qctecmdr
8a7cea516a Merge "msm: npu: fix driver warnings" 2021-12-23 02:30:42 -08:00
qctecmdr
ab87e2bacc Merge "mtd: msm_qpic_nand: Enable clocks while accessing BAM registers" 2021-12-21 22:52:31 -08:00
qctecmdr
c744619c9b Merge "net: macsec: allow multiple macsec devices with offload" 2021-12-21 22:52:31 -08:00
qctecmdr
c2c11092c7 Merge "f2fs: don't sleep while grabing nat_tree_lock" 2021-12-21 22:52:30 -08:00
Jaegeuk Kim
a3aabaa61d f2fs: don't sleep while grabing nat_tree_lock
This tries to fix priority inversion in the below condition resulting in
long checkpoint delay.

f2fs_get_node_info()
 - nat_tree_lock
  -> sleep to grab journal_rwsem by contention

                                     checkpoint
                                     - waiting for nat_tree_lock

In order to let checkpoint go, let's release nat_tree_lock, if there's a
journal_rwsem contention.

Change-Id: I72ca6cf52908a08976c200be32a09fb3105e726e
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 2eeb0dce728a7eac3e4dfe355d98af40d61f7a26
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-12-19 22:19:48 -08:00
qctecmdr
b02a89590b Merge "pci: msm: Return -EDEFER when i2c is not probed" 2021-12-19 20:08:35 -08:00
Jilai Wang
f4c81064a7 msm: npu: fix driver warnings
This change is to fix warnings generated when running sparse check.

Change-Id: I67bc66d1fc6d3fe39cd3d566e00b67e14e61bb7d
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-12-19 11:46:51 -08:00
qctecmdr
7fbe930d38 Merge "msm: npu: fix network and misc commands race condition problem" 2021-12-19 03:19:34 -08:00
Pradeep P V K
3e1f68e991 mtd: msm_qpic_nand: Enable clocks while accessing BAM registers
A NOC was seen while dumping BAM registers information. To avoid this,
always enable qpic clocks before accessing BAM registers.

Change-Id: I7a8799d742dc1fcc066512aba1537d7d48797a73
Signed-off-by: Pradeep P V K <quic_pragalla@quicinc.com>
2021-12-16 03:21:47 -08:00
Jilai Wang
90811ee5b8 msm: npu: fix network and misc commands race condition problem
misc command doesn't do npu_init before sending to firmware, so
it's possible that npu will be turned off while npu firmware is
handling misc commands which causes times out in host driver.
To fix this issue, npu_init/npu_deinit need to be called before
and after misc commands are handled. In addition, only one misc
command should be handled at any moment. The misc command should
be failed right away while the other one is being handled.

Change-Id: I523255da15fa4e3b8b21d74b28f90d3458ebeb3c
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-12-15 06:45:10 -08:00
qctecmdr
e4c620112c Merge "usb: f_cdev: Handle the serial state properly" 2021-12-15 05:53:08 -08:00
Subramanian Ananthanarayanan
8bf3347530 pci: msm: Return -EDEFER when i2c is not probed
Change is to reutrn -EDEFER error when i2c is not probed and delay
PCIE probe. I2C probe is gettting called post pcie enumeration
and this results in i2c de-emphasis settings not being applied.
Pine doesn't enumerate as these settings are not applied.

Change-Id: I1ac966b26c65f44afb32987927558209bf8787a7
Signed-off-by: Subramanian Ananthanarayanan <quic_skananth@quicinc.com>
2021-12-15 12:47:03 +05:30
qctecmdr
78d3775595 Merge "i2c: i2c-msm-geni: Change the high and low time for SCL" 2021-12-13 20:43:36 -08:00
qctecmdr
83f68ed045 Merge "msm: synx: Prevent accessing valid but released handles" 2021-12-13 20:43:35 -08:00
Dmitry Bogdanov
93e3092501 net: macsec: allow multiple macsec devices with offload
Offload engine can setup several SecY. Each macsec interface shall have
its own mac address. It will filter a traffic by dest mac address.

Change-Id: Ic0e971c8061eb7ce74e1ddab4b76374571da5a8c
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: A249f8050624f92f844605274de3367e2c8ac706
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:35 -08:00
Dmitry Bogdanov
ac0f651428 net: macsec: init secy pointer in macsec_context
This patch adds secy pointer initialization in the macsec_context.
It will be used by MAC drivers in offloading operations.

Change-Id: I59c0d751f2b026096dcbe57355b47d7f940b0a94
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 182879f89b858fede98136ea3ad45fe9c7178387
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:29 -08:00
Era Mayflower
d02cb3a2fb macsec: Netlink support of XPN cipher suites (IEEE 802.1AEbw)
Netlink support of extended packet number cipher suites,
allows adding and updating XPN macsec interfaces.

Added support in:
    * Creating interfaces with GCM-AES-XPN-128 and GCM-AES-XPN-256 suites.
    * Setting and getting 64bit packet numbers with of SAs.
    * Setting (only on SA creation) and getting ssci of SAs.
    * Setting salt when installing a SAK.

Added 2 cipher suite identifiers according to 802.1AE-2018 table 14-1:
    * MACSEC_CIPHER_ID_GCM_AES_XPN_128
    * MACSEC_CIPHER_ID_GCM_AES_XPN_256

In addition, added 2 new netlink attribute types:
    * MACSEC_SA_ATTR_SSCI
    * MACSEC_SA_ATTR_SALT

Depends on: macsec: Support XPN frame handling - IEEE 802.1AEbw.

Change-Id: Ia7efe40e1c9f7434a025faec075020717220327d
Signed-off-by: Era Mayflower <mayflowerera@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 48ef50fa866aae087f63c7de8a47e76537f88691
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:24 -08:00
Era Mayflower
db4d38d32f macsec: Support XPN frame handling - IEEE 802.1AEbw
Support extended packet number cipher suites (802.1AEbw) frames handling.
This does not include the needed netlink patches.

    * Added xpn boolean field to `struct macsec_secy`.
    * Added ssci field to `struct_macsec_tx_sa` (802.1AE figure 10-5).
    * Added ssci field to `struct_macsec_rx_sa` (802.1AE figure 10-5).
    * Added salt field to `struct macsec_key` (802.1AE 10.7 NOTE 1).
    * Created pn_t type for easy access to lower and upper halves.
    * Created salt_t type for easy access to the "ssci" and "pn" parts.
    * Created `macsec_fill_iv_xpn` function to create IV in XPN mode.
    * Support in PN recovery and preliminary replay check in XPN mode.

In addition, according to IEEE 802.1AEbw figure 10-5, the PN of incoming
frame can be 0 when XPN cipher suite is used, so fixed the function
`macsec_validate_skb` to fail on PN=0 only if XPN is off.

Change-Id: I2558cd6ecfbfac3a183095278bcaafc6e8b19f23
Signed-off-by: Era Mayflower <mayflowerera@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: a21ecf0e033807b976967286e6c392f48ee2049f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:18 -08:00
Taehee Yoo
64e3a0682c net: macsec: fix using wrong structure in macsec_changelink()
In the macsec_changelink(), "struct macsec_tx_sa tx_sc" is used to
store "macsec_secy.tx_sc".
But, the struct type of tx_sc is macsec_tx_sc, not macsec_tx_sa.
So, the macsec_tx_sc should be used instead.

Test commands:
    ip link add dummy0 type dummy
    ip link add macsec0 link dummy0 type macsec
    ip link set macsec0 type macsec encrypt off

Splat looks like:
[61119.963483][ T9335] ==================================================================
[61119.964709][ T9335] BUG: KASAN: slab-out-of-bounds in macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.965787][ T9335] Read of size 160 at addr ffff888020d69c68 by task ip/9335
[61119.966699][ T9335]
[61119.966979][ T9335] CPU: 0 PID: 9335 Comm: ip Not tainted 5.6.0+ #503
[61119.967791][ T9335] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[61119.968914][ T9335] Call Trace:
[61119.969324][ T9335]  dump_stack+0x96/0xdb
[61119.969809][ T9335]  ? macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.970554][ T9335]  print_address_description.constprop.5+0x1be/0x360
[61119.971294][ T9335]  ? macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.971973][ T9335]  ? macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.972703][ T9335]  __kasan_report+0x12a/0x170
[61119.973323][ T9335]  ? macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.973942][ T9335]  kasan_report+0xe/0x20
[61119.974397][ T9335]  check_memory_region+0x149/0x1a0
[61119.974866][ T9335]  memcpy+0x1f/0x50
[61119.975209][ T9335]  macsec_changelink.part.34+0xb6/0x200 [macsec]
[61119.975825][ T9335]  ? macsec_get_stats64+0x3e0/0x3e0 [macsec]
[61119.976451][ T9335]  ? kernel_text_address+0x111/0x120
[61119.976990][ T9335]  ? pskb_expand_head+0x25f/0xe10
[61119.977503][ T9335]  ? stack_trace_save+0x82/0xb0
[61119.977986][ T9335]  ? memset+0x1f/0x40
[61119.978397][ T9335]  ? __nla_validate_parse+0x98/0x1ab0
[61119.978936][ T9335]  ? macsec_alloc_tfm+0x90/0x90 [macsec]
[61119.979511][ T9335]  ? __kasan_slab_free+0x111/0x150
[61119.980021][ T9335]  ? kfree+0xce/0x2f0
[61119.980700][ T9335]  ? netlink_trim+0x196/0x1f0
[61119.981420][ T9335]  ? nla_memcpy+0x90/0x90
[61119.982036][ T9335]  ? register_lock_class+0x19e0/0x19e0
[61119.982776][ T9335]  ? memcpy+0x34/0x50
[61119.983327][ T9335]  __rtnl_newlink+0x922/0x1270
[ ... ]

Fixes: 3cf3227a21d1 ("net: macsec: hardware offloading infrastructure")

Change-Id: I56ffe532f51b66f3201b206ef1b0d5bbea54b72e
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 022e9d6090599c0593c78e87dc9ba98a290e6bc4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:13 -08:00
Antoine Tenart
473bba83f2 net: macsec: PN wrap callback
Allow to call macsec_pn_wrapped from hardware drivers to notify when a
PN rolls over. Some drivers might used an interrupt to implement this.

Change-Id: Icf37413f1c35a78f3edaecbf514a7cd85d3bdbe9
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 5c937de78b39e47ce9924fc4b863c5b727edc328
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:05 -08:00
Antoine Tenart
a3430cfbac net: macsec: add nla support for changing the offloading selection
MACsec offloading to underlying hardware devices is disabled by default
(the software implementation is used). This patch adds support for
changing this setting through the MACsec netlink interface. Many checks
are done when enabling offloading on a given MACsec interface as there
are limitations (it must be supported by the hardware, only a single
interface can be offloaded on a given physical device at a time, rules
can't be moved for now).

Change-Id: Ia0b0898e7972f24e79eefcd65ff480ac819a4bb9
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: dcb780fb279514f268826f2e9f4df3bc75610703
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:48:59 -08:00
Karthik Rudrapatna
865de9354e net: macsec: hardware offloading infrastructure
This patch introduces the MACsec hardware offloading infrastructure.

The main idea here is to re-use the logic and data structures of the
software MACsec implementation. This allows not to duplicate definitions
and structure storing the same kind of information. It also allows to
use a unified genlink interface for both MACsec implementations (so that
the same userspace tool, `ip macsec`, is used with the same arguments).
The MACsec offloading support cannot be disabled if an interface
supports it at the moment.

The MACsec configuration is passed to device drivers supporting it
through macsec_ops which are called from the MACsec genl helpers. Those
functions call the macsec ops of PHY and Ethernet drivers in two steps:
a preparation one, and a commit one. The first step is allowed to fail
and should be used to check if a provided configuration is compatible
with the features provided by a MACsec engine, while the second step is
not allowed to fail and should only be used to enable a given MACsec
configuration. Two extra calls are made: when a virtual MACsec interface
is created and when it is deleted, so that the hardware driver can stay
in sync.

The Rx and TX handlers are modified to take in account the special case
were the MACsec transformation happens in the hardware, whether in a PHY
or in a MAC, as the packets seen by the networking stack on both the
physical and MACsec virtual interface are exactly the same. This leads
to some limitations: the hardware and software implementations can't be
used on the same physical interface, as the policies would be impossible
to fulfill (such as strict validation of the frames). Also only a single
virtual MACsec interface can be offloaded to a physical port supporting
hardware offloading as it would be impossible to guess onto which
interface a given packet should go (for ingress traffic).

Another limitation as of now is that the counters and statistics are not
reported back from the hardware to the software MACsec implementation.
This isn't an issue when using offloaded MACsec transformations, but it
should be added in the future so that the MACsec state can be reported
to the user (which would also improve the debug).

Change-Id: Ie705609ae0d11797e6f7adb203739958287a419c
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 3cf3227a21d1fb020fe26128e60321bd2151e922
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_krudrapa@quicinc.com: Fixed Merge conflicts ]
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:48:52 -08:00
Antoine Tenart
1b6505aa49 net: phy: add MACsec ops in phy_device
This patch adds a reference to MACsec ops in the phy_device, to allow
PHYs to support offloading MACsec operations. The phydev lock will be
held while calling those helpers.

Change-Id: I7076430d419c1ff260380e42f48d6077d673ba3f
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 2e18135845b359f26c37df38ba56565496517c10
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_krudrapa@quicinc.com: Fixed Merge conflicts ]
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:48:46 -08:00
Antoine Tenart
090a240d7f net: macsec: introduce MACsec ops
This patch introduces MACsec ops for drivers to support offloading
MACsec operations.

Change-Id: I860013e7872f19f0611d07dfd9d69284076c45fd
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 0830e20b62ad156f7df5ff5b9c4cea280ebe8fef
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:48:42 -08:00
Antoine Tenart
e593865416 net: macsec: introduce the macsec_context structure
This patch introduces the macsec_context structure. It will be used
in the kernel to exchange information between the common MACsec
implementation (macsec.c) and the MACsec hardware offloading
implementations. This structure contains pointers to MACsec specific
structures which contain the actual MACsec configuration, and to the
underlying device (phydev for now).

Change-Id: Ib7d4e6f1667c2f4679e4d51d68671075462237db
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 76564261a7db80c5f5c624e0122a28787f266bdf
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:48:34 -08:00
Antoine Tenart
859afae329 net: macsec: move some definitions in a dedicated header
This patch moves some structure, type and identifier definitions into a
MACsec specific header. This patch does not modify how the MACsec code
is running and only move things around. This is a preparation for the
future MACsec hardware offloading support, which will re-use those
definitions outside macsec.c.

Change-Id: If052b8bf048951d915ea9def85512adb41b20520
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: c0e4eadfb8daf2e9557c7450f9b237c08b404419
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_krudrapa@quicinc.com: Fixed merge conflicts]
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:46:41 -08:00
Rohith Kollalsi
08122aebc0 usb: f_cdev: Handle the serial state properly
Currently when dtr high is send by the host, dsr high should be
sent by the device by performing a term io to acm conversion.
But if dtr high is received twice, serial state which is converted
to acm signal is again converted, leading to serial state becoming
null. Fix this by clearing ACM bits from previous conversion before
performing uart to acm conversion.

Change-Id: Iaad3f200599f6bd4224db0c3987420cc022b34ef
Signed-off-by: Rohith Kollalsi <quic_rkollals@quicinc.com>
2021-12-12 20:29:53 -08:00
qctecmdr
631faf6b17 Merge "msm: mhi_dev: Don't process any other interrupts during M0 processing" 2021-12-06 21:22:42 -08:00
qctecmdr
4e09fbde44 Merge "msm: mhi_dev: Checking the out channel status directly" 2021-12-06 21:22:42 -08:00
qctecmdr
80f48a5524 Merge "clk: qcom: gpucc-blair: Scale both cx and gx rails for gfx3d clock" 2021-12-06 16:31:47 -08:00
qctecmdr
b05a0f59ef Merge "power: supply: qcom: Disable suspend on collapse on USB removal" 2021-12-06 07:44:17 -08:00
Taniya Das
1cdfc65d53 clk: qcom: gpucc-blair: Scale both cx and gx rails for gfx3d clock
There is a requirement to scale both CX and GX rails during the gpu core
clock scaling, thus add the corresponding vdd data.

Change-Id: Ib27f4697a84ece1d0d1ce2b5297c03bf8ed955c6
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
2021-12-06 02:06:18 -08:00
Pratham Pratap
63b8a425d9 USB: dwc3: remove debugfs root dentry storage
There is no need to keep around the debugfs "root" directory for the
dwc3 device.  Instead, look it up anytime we need to find it.  This will
help when callers get out-of-order and we had the potential to have a
"stale" pointer around for the root dentry, as has happened in the past.

Change-Id: I7fd1973704cd2a9e193fd77e01f7e09236f41117
Tested-by: Jack Pham <jackp@codeaurora.org>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Acked-by: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20210609093924.3293230-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 8562d5bfc0fcdfd3aef32991e17dca585ae5ae7d
Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_ppratap@quicinc.com: resolved trivial merge conflicts]
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2021-12-06 02:01:41 -08:00
Sai Chaitanya Kaveti
52f01ef023 msm: mhi_dev: Checking the out channel status directly
If the net dev init process is scheduled out in between registering
a callback for in-channel and out-channel and start command for these
channels gets processed at this time (after registering the callback
for out channel but before registeringthe callback for in-channel)
then with existing logic, we never register with the network interface.

Checking the out channel status directly rather than using local bool
variable out_channel_started before calling
mhi_dev_net_open_chan_create_netif API. If out channel status is
connected the mhi_dev_net_open_chan_create_netif API is called.

Change-Id: I69af6c49ee565ffd04c4d0ac22b686ff986b7bc7
Signed-off-by: Sai Chaitanya Kaveti <quic_skaveti@quicinc.com>
2021-12-05 21:16:56 -08:00
Veerabhadrarao Badiganti
570829fbc1 msm: mhi_dev: Don't process any other interrupts during M0 processing
M0 (mhi resume) processing and doorbell interrupt processing are done
in different contexts. And there can be a chance that DB processing
can proceed even before the resume is completely done.

Say while processing M0, MHI has issued M0-ack but not updated channel
state to running state for *all* channels yet. The host can start ringing
DB the moment it sees M0-ack and it's the channel is in running state.

To avoid this race condition, ensure MHI doesn't process any CHDB
interrupt until it's completely done with the resume.

Change-Id: Ie8f7fec034be6b17c71e3b7437ab8e6effb63365
Signed-off-by: Veerabhadrarao Badiganti <quic_vbadigan@quicinc.com>
2021-12-06 09:56:16 +05:30
qctecmdr
97db20de99 Merge "msm: kgsl: Signal fence only if last fence refcount was not put" 2021-12-03 04:17:08 -08:00
qctecmdr
abef4d28a3 Merge "byte-cntr: Compatible with ETR sg buff mode" 2021-12-03 04:17:08 -08:00
qctecmdr
da4fb4a3e3 Merge "icnss2: Show QMI timeout value in millisecond" 2021-12-03 04:17:07 -08:00
qctecmdr
7bcbd2b4b1 Merge "arm64: defconfig: holi-qgki: enable devfreq vdd cdev driver" 2021-12-03 04:17:07 -08:00
qctecmdr
b1d4c68617 Merge "msm: adsprpc: Handle UAF in process shell memory" 2021-12-03 04:17:07 -08:00
qctecmdr
f41fdcc116 Merge "defconfig: sdxlemur: Enable CTR crypto in kernel" 2021-12-03 04:17:06 -08:00
qctecmdr
7f0235fa21 Merge "usb: pd: Do not respond to SVDM messages in PD 2.0" 2021-12-03 04:17:05 -08:00
qctecmdr
9ea9441514 Merge "usb: pd: Clear vdm_tx if SVDM message is sent on SOP'" 2021-12-03 04:17:05 -08:00
qctecmdr
f51f324009 Merge "usb: pd: Reset pd protocol during cable disconnect" 2021-12-03 04:17:04 -08:00
qctecmdr
fdc7322f76 Merge "Merge android11-5.4.147+ (e785a25) into msm-5.4" 2021-12-03 00:18:06 -08:00
Puranam V G Tejaswi
339824df70 msm: kgsl: Signal fence only if last fence refcount was not put
Currently there is a chance that release for the fence was already called
before we call dma_fence_get during kgsl_timeline_signal and
kgsl_ioctl_timeline_destroy. This can cause use-after-free issue as we can
access fence after release. Fix this by signalling fence only if the last
refcount on the fence was not yet put. This makes sure that release for the
fence will not be called until we are done signalling.

Change-Id: I6bdcefa1f128febb7a0f7aef133757268a3b9ae3
Signed-off-by: Puranam V G Tejaswi <quic_pvgtejas@quicinc.com>
2021-12-02 21:27:14 +05:30
Yuanfang Zhang
a1b161fca6 byte-cntr: Compatible with ETR sg buff mode
In ETR sg buff mode, at most 4K data can be obtained
at a time. This change to support this mode.

Change-Id: I26da71e7210f0a85dbd969c6ff047598a1cbddcd
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
2021-12-01 03:30:40 -08:00
Vijay Patil
033f3443e3 icnss2: Show QMI timeout value in millisecond
Show QMI timeout value in millisecond.

Change-Id: I696d381a6c9a8a652266056e39eb82281dcda916
Signed-off-by: Vijay Patil <quic_vijaylil@quicinc.com>
2021-12-01 15:41:36 +05:30
Priyansh Jain
3fccafbea3 arm64: defconfig: holi-qgki: enable devfreq vdd cdev driver
Enable devfreq vdd cdev driver to set minimum operating
level to gpu devfreq during cold thermal condition.

Change-Id: I81c934921138d29766c1c0cfb9e481045b2ce167
Signed-off-by: Priyansh Jain <priyjain@codeaurora.org>
2021-11-30 09:55:33 -08:00
Liangwei Dong
036089f311 defconfig: sdxlemur: Enable CTR crypto in kernel
CTR crypto is used in FILS (Fast Initial Link Setup - 802.11ai) AEAD
Encryption and Decryption. Hence add changes to enable CTR crypto in
kernel.

Change-Id: I223b8323362a2dcaf88a40a902f43279ba0fd86e
Signed-off-by: Liangwei Dong <quic_liangwei@quicinc.com>
2021-11-30 18:20:20 +08:00