Commit graph

895,202 commits

Author SHA1 Message Date
qctecmdr
dc5fcb928e Merge "f2fs: allow to change discard policy based on cached discard cmds" 2021-03-26 01:27:19 -07:00
qctecmdr
65ef1dac1f Merge "Defconfig: sdxnightjar: Disable serial console on sdxnightjar perf" 2021-03-26 01:27:19 -07:00
qctecmdr
c593b69707 Merge "sched/walt: Improve the scheduler" 2021-03-26 01:27:19 -07:00
Qingqing Zhou
8e93b976c0 defconfig: Disable ubifs zstd for sdxnightjar
Disable CONFIG_UBIFS_FS_ZSTD to save vmalloc memory.
Then CONFIG_CRYPTO_ZSTD, CONFIG_ZSTD_COMPRESS and
CONFIG_ZSTD_DECOMPRESS are also disabled.

Change-Id: Ia1a8df1a4bb585aab7fd65892c3e27c6f6f53a42
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2021-03-26 01:14:28 -07:00
Vamsi krishna Gattupalli
61132f9b94 msm: adsprpc: Check validity of perf pointer
Check context perf pointer before dereferencing it.

Change-Id: I1c4a96361264e17691edba21a3f1e6bd23602e3b
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Vamsi krishna Gattupalli <vgattupa@codeaurora.org>
2021-03-26 12:51:53 +05:30
Ajit Kumar
400073c2db soc: qcom: slatecom: uevent for slate dsp and bt state
send uevent for slate dsp and bt state to userspace.
add sysfs entries to hold the states of Slate BTSS and DSPSS.

Change-Id: Iffccd90a4a1b821fc0592d272a61f15bb5c13b82
Signed-off-by: Ajit Kumar <kajit@codeaurora.org>
Signed-off-by: Praveen Koya <pkoya@codeaurora.org>
2021-03-26 12:30:33 +05:30
Maulik Shah
b0e8e846ed pinctrl: qcom: Fix msm_dirconn_uncfg_reg() to correctly set intr cfg
msm_dirconn_uncfg_reg() currently uses readl_/writel_relaxed() which do not
check for per tile address for gpio intr cfg. Replace to use
msm_readl/writel_intr_cfg() which takes care of per tile.

While at this also fix dir_conn_reg to use per tile gpio cfg.

Change-Id: If87e35f2943593c0723bd88a29d483fed70f7041
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2021-03-25 23:26:24 -07:00
Vivek Golani
7c083613b7 rpmsg: Add glink-slatecom driver for rpmsg framework
Add glink-slatecom driver which relies on slatecom as a transport
layer for sending data between various sub systems. Add
documentation file for the glink-slatecom driver.

Change-Id: If3b824c9d2efea920e52579b38e00eeff529f49f
Signed-off-by: Vivek Golani <vgolani@codeaurora.org>
2021-03-26 11:08:44 +05:30
Santosh Dronamraju
26ce30409a soc: qcom: Added support for virtualized FBE
Added crypto-qti-virt.c which sends crypto requests to backend(HOST)
via hab channel from frontend(GUEST) while performing hardware based
file encryption. This Makes the driver to use the hypervisor backend
for ICE virtualization instead of calling directly to TZ.

Added virtio_blk_qti_crypto.c which creates a keyslot manager device
for virtual disk to manage keyslots, which will forward the request
to crypto virtual library and eventually will program the ICE slot
in the backend(HOST).

Test:
1.Basic_SimpleEncryption
2.ModifyEnforcedFiles_FileCreationWithinEnforcedFolder
3.PIN, pattern, password
4.verified filename encryption.

Change-Id: Idc57d9958e1cecba68eecd556d18ec54fa1c02b0
Signed-off-by: Santosh Dronamraju <sdronamr@codeaurora.org>
2021-03-25 21:34:51 -07:00
Suraj Jaiswal
2335930689 STMMAC: msm: Add io macro settings for emac core
version 2.1.1

IO macro setting for 2.1.1

Change-Id: I5172cde7fc423481f07d4eb60b32f66400aec0a6
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-26 09:48:59 +05:30
Gauri Joshi
5cc155bb37 msm: ep-pcie: Update load factor for 1.2V rail on sdxlemur
Change the load factor from 3000 to 30000 for sdxlemur.

Change-Id: I939610150bcaddba7ff508ea130009a010cfb6c0
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:53:40 -07:00
Gauri Joshi
ad691d6737 msm: ep-pcie: Add support to vote and scale MX rail
Chipsets which have PCIe Gen4 PHY and controller on MX rail
requires explicit vote for higher corners than the default.
Therefore add support to vote for and scale MX rail based on the
Gen speed which PCIe link operates at.

Change-Id: I6aa595aa6e3955ff09d8eeae604431b47a14985a
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:53:40 -07:00
Gauri Joshi
9a551ddff3 msm: mhi: Release inbuf_list memory in channel disconnect
Driver allocates in_buf_list.addr during open_client_mhi_channels,
which is called for every CONNECT event for AT_CTRL channels.
in_buf_list.addr is not released during DISCONNECT event.

Adding a fix to release this memory during a channel DISCONNECT
event.

Change-Id: Idd7cac731137934d820e6a8a07335982575a913b
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:52:07 -07:00
Gauri Joshi
b3f6abccd5 msm: mhi_dev: Fix to avoid double free in alloc_evt_buf_evt_req()
There is a possible race condition, if the client calls
MHI close and channel gets a start command then
mhi_dev_alloc_evt_buf_evt_req() would be called. This can lead to
tr_events and ereqs getting freed from both the contexts.

Fix is to use a mutex to prevent this from happening parallelly.

Change-Id: I9ac10211d5bd5cee96e69b7fc10955e24569cf64
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:51:42 -07:00
Gauri Joshi
3e7d042939 msm: mhi: Changes to avoid mhi_sm_wq schedule out
Queue mhi_sm_wq as system_highpri_wq to avoid WQ getting
scheduled out.

Change-Id: I92f6442a6425dc71b64550078cfc44d85f744f41
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:51:34 -07:00
Gauri Joshi
c17f1783a6 msm: mhi_dev: Add an option to not timeout waiting for M0
On certain platforms host might take a long time to send M0
to device. Only modified msm files in this commit.

Change-Id: I8c5f07a7926e01afa84a983ef98721749787d2da
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:50:13 -07:00
Gauri Joshi
84a55b411d msm: mhi_dev: Clear reset while waiting for M0
On some customer platforms, resume from hibernate results in a
cold boot of the end-point. The previous mhi device state gets
cleared and this results in mhi host issuing a reset. Clear the
reset while waiting for M0 from host to enable host to proceed
with issuing M0.

Change-Id: I18aa4e760d59e37842a9f3a6dba1478a98137bb8
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:49:46 -07:00
Gauri Joshi
0bc55adae2 msm: mhi_dev: Fix memory leak
mhi_dev_cache_host_cfg will be called during cold boot and also
when processing mhi device reset command from host. Do not re-allocate
the command, event and channel context cache memory if they have been
already allocated.

Change-Id: I55826e05b3d83c9fcf3d4b23e26b91253130671e
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-25 16:47:18 -07:00
qctecmdr
daf5b3132a Merge "arm: defconfig: Select REGMAP_IRQ" 2021-03-25 09:53:27 -07:00
qctecmdr
3382301014 Merge "msm: adsprpc: overflow vulnerability by race condition in adsprpc driver" 2021-03-25 09:53:26 -07:00
qctecmdr
2070676647 Merge "defconfig: quinvm: add CONFIG_AUDIO_QGKI CONFIG_MSM_EXT_DISPLAY" 2021-03-25 09:53:26 -07:00
qctecmdr
775a517fca Merge "net: stmmac: LPM link detection fix" 2021-03-25 09:53:25 -07:00
qctecmdr
0db261715c Merge "net: stmmac: Fix error incremented for ctxt desc" 2021-03-25 09:53:25 -07:00
Vinay Sudra
14d6358976 soc: qcom: Change dmesg print for ddr cap frequency driver
Change dmesg print for ddr cap frequency driver.

Change-Id: I2d660f51596dc6c309ad932b543c7c030b1b04cb
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-25 17:48:49 +05:30
Elson Roy Serrao
444f3179c3 usb: dwc3: correct the super speed check api
When the device operates in full speed mode, the CONNECTSPD field
vaue is 1. Using bitwise & operator on this value for super speed
check results in full speed being erroneously calculated as super
speed. Fix this by comparing the absolute value of CONNECTSPD for
super speed check.

Change-Id: I2bf497748f621b1982aecda55a9a280d93f84858
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2021-03-25 05:12:28 -07:00
Lijuan Gao
b7d63db3a9 Defconfig: Remove QCOM_WATCHDOG_WAKEUP_ENABLE for sdxnightjar
QCOM_WATCHDOG_WAKEUP_ENABLE is hardware feature, so remove it for
sdxnighthjar.

Change-Id: I3946e9a7252a2305034a8f8559fc1d0d0294e87a
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2021-03-25 16:26:34 +08:00
Sahitya Tummala
d73a7033c1 f2fs: allow to change discard policy based on cached discard cmds
With the default DPOLICY_BG discard thread is ioaware, which prevents
the discard thread from issuing the discard commands. On low RAM setups,
it is observed that these discard commands in the cache are consuming
high memory. This patch aims to relax the memory pressure on the system
due to f2fs pending discard cmds by changing the policy to DPOLICY_FORCE
based on the nm_i->ram_thresh configured.

Change-Id: I01b692df6f0ecdf92e316d3cea764d87d5f73ffe
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2021-03-25 13:38:16 +05:30
Zhiqiang Tu
3357635e78 defconfig: autogvm: Enable dummy cpufreq driver
On virtualization platform, cpu frequency is controlled by host.
Enable fake cpufreq driver for guest.

Change-Id: Ief774fede1c2a5bf5db62b28a53d3650c4d5854d
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2021-03-25 14:55:09 +08:00
Deepak Kumar
5a9059f4cf msm: kgsl: Fix race between timeline create/others and destroy ioctls
When creating a timeline allocate an ID but don't populate the slot
with the timeline pointer until we are done initializing the timeline.
This avoids a race if somebody tries to free the same identifier before
the create operation is complete. Also, correct kgsl_timeline_by_id
function by doing idr_find and refcount increase under same lock. This
eliminates the chance that a timeline will be destroyed while somebody
is still using it.

Change-Id: Id894baac1bbd6042f668ea4afca39fae3b5a2d86
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-03-25 10:49:28 +05:30
Lei Ma
5fce077d24 drm: msm: Fix the format prints in display driver
Fix the %p format prints with %pK.

Change-Id: I2611e3872df136204b630c2a3e037384fd002c25
Signed-off-by: Lei Ma <leima@codeaurora.org>
2021-03-24 18:01:57 -07:00
Kishore Sri venkata Ganesh Bolisetty
df825be6ef sched/walt: Improve the scheduler
The change is for general scheduler improvement.

Change-Id: Ib5d58c23d3a67a81d682e08e58f308e5c659a7f8
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
2021-03-24 17:26:55 -07:00
Nagireddy Annem
ecd760658c arm: smp: export percpu declarations to generic smp code
fix compilation error while using percpu macro's in arch
independent smp code.

Change-Id: Ib2cff05d7818cbdfec4ad4f897557b1867f7f38b
Signed-off-by: Nagireddy Annem <nannem@codeaurora.org>
2021-03-24 10:51:24 -07:00
Balakrishna Godavarthi
90477e8efd Don't use gpio_free() for output gpios
This change will not request for gpio_free if the gpio_request
is not called for a particular gpio.

Change-Id: I39bedb3495d59334ea61953eaeb8ccf59d6633f8
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
2021-03-24 19:32:59 +05:30
Vinay Sudra
aee88471a9 defconfig: gen3auto: Enable driver to print xbl log
Enable driver to print xbl log on console through sysfs node.

Change-Id: I13b5c998ee30f1a3708be78edac82c8f52607e1f
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-24 17:51:22 +05:30
Vinay Sudra
697107ec8b defconfig: sdmsteppeauto: Enable driver to print xbl log
Enable driver to print xbl log on console through sysfs node.

Change-Id: Idec0992f716b253a3de24f51e2a8b32d3362b6d5
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-24 17:46:13 +05:30
qctecmdr
4440785ea8 Merge "defconfig: sdmsteppeauto: Enable ARM based SHA1" 2021-03-24 04:57:06 -07:00
qctecmdr
31724f90a3 Merge "soc: qcom: Add driver to print xbl log on console from fs" 2021-03-24 04:57:06 -07:00
qctecmdr
093f114815 Merge "net: stmmac: Low power management optimization" 2021-03-24 04:57:05 -07:00
qctecmdr
cd0266e464 Merge "drivers: staging: ion: fix error check in check_valid_vmid" 2021-03-24 04:57:05 -07:00
qctecmdr
f880c8c30e Merge "defconfig: sdxlemur: Enable CPU scaling configs" 2021-03-24 04:57:04 -07:00
qctecmdr
33c91e9e50 Merge "msm: ep-pcie: Support 16.6 MHz Aux clock for PCIe Gen4 Controller" 2021-03-24 04:57:04 -07:00
qctecmdr
83ee4361a5 Merge "cnss2: Use unified API to get RDDM and recovery timeouts" 2021-03-24 04:57:04 -07:00
Vivek Pernamitta
cf9bb7d795 mhi: core: Check PCIe link status before accessing MHI registers
Check PCIE link status before accessing MHI registers at DRV
resume to overcome NOC error.

Change-Id: I796e22797d91fba69e258addd0a73b04a7146d80
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-03-24 16:09:08 +05:30
Kasin Li
e056dc2591 soc: qcom: hgsl: Clean up timelines in release
Applications have no chance to destroy timelines if crash. This change
could clean isolated timelines.

Change-Id: If15a5b8f5f45c6c6b051fcaea81bf51c2bc7aa64
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2021-03-24 18:09:57 +08:00
Ritesh Kumar
d38127f863 input: touchscreen: focaltech: Use disable/enable irq wake in LA to LE
Touch uses gpio as irq in LA. As per latest change from pinctrl,
wakeup bit is disabled/enabled when disable_irq/enable_irq is called.
During transtion from LA to LE, disable_irq is called leading to
wakeup bit getting disabled and in LE Touch interrupts does not come.
So, use disable_irq_wake to disable Touch interrupts while transition
from LA to LE and use enable_irq_wake to enable back Touch interrupts
while transition from LE to LA.

Change-Id: I288bfbd26be9ff1da1b7e14104f98338eb8d8715
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-03-24 13:34:08 +05:30
Rutvik Patel
bf5ba943b4 arm: defconfig: Select REGMAP_IRQ
Select REGMAP_IRQ for wcd937x and later targets.

Change-Id: I791d26a5ed7690bbe9df638bd85fd4f7c59050f0
Signed-off-by: Rutvik Patel <prutvikr@codeaurora.org>
2021-03-24 13:23:50 +05:30
Rutvik Patel
6fb46e1228 arm: defconfig: enable AUDIO_QGKI and DYNAMIC_MINORS
Enable AUDIO_QGKI and DYNAMIC_MINORS monaco.
Update Kconfig file to select SND_HWDEP.

Change-Id: Iaf0d7b95722a8e448c6362170e1b93ea9bbb376c
Signed-off-by: Rutvik Patel <prutvikr@codeaurora.org>
2021-03-24 12:55:05 +05:30
Jeya R
a13f71e81a msm: adsprpc: Add checks to avoid buffer overflow
Do integer overflow check on the length of buffer
to be copied before copying to the buffer.

Change-Id: I425861170125fb3069739af84975c4893462624e
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>`
2021-03-24 11:49:39 +05:30
Suraj Jaiswal
23cdb4afb2 net: stmmac: Fix error incremented for ctxt desc
Fix error incremented for ctxt desc.

Change-Id: I18bb3cddb4eda61da8d27765e286e065ec5ab761
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-24 11:25:26 +05:30
Kamal Agrawal
d6876813ad
msm: kgsl: Fix integer overflow in kgsl_ioctl_gpu_aux_command ioctl
In kgsl_ioctl_gpu_aux_command, if the number of generic objects passed is
UINT_MAX - 1 along with a syncpoint object, the count variable will be
incremented twice: once for timestamp sync object and another for aux
command syncpoint object resulting in count value as 0. Fix this by
allowing maximum of UINT_MAX - 2 generic objects.

Change-Id: Ief8c8da9b147e4b45b1f53d42473b772cedf77a8
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-03-24 11:11:08 +05:30