Commit Graph

884876 Commits

Author SHA1 Message Date
qctecmdr
0cce5e66e8 Merge "defconfig: Enable MPM driver for Holi" 2020-06-26 19:54:04 -07:00
Jeevan Shriram
b7b999af6b Revert "irqdomain: Implement and expose API to clear IRQ mapping for radix tree"
IPCC module is never unloaded on GKI based build, so clearing of the IRQ
mappings are not needed. Remove it's implementation and usage.

This reverts commit 2fd144aa1b.

Change-Id: Iff747c574cced63425da3ab5adefd229d43d3ed6
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-26 19:05:21 -07:00
Jeevan Shriram
0cbd83002e buses: i2c: update i2c geni driver to include irq.h
Currently, geni driver is depending on header inclusion tree for symbol
and prototypes of irq.h. If the dependent header removes the header, geni
driver is failing to compile. To fix the compilation error, include the
header(irq.h) in geni i2c driver.

Change-Id: Ic0f2d6f541a7816e293e230710ae121712510602
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-26 18:53:56 -07:00
Asutosh Das
5516df103e scsi: ufs-qcom: add qos support for ufs
Adds support for QoS.
At init, vote for maximum latency S32_MAX.
Schedule a vote of PERF when a request is received.
Update the vote to S32_MAX during clock gating.

Change-Id: I91ed683880a00493f4bd510689e5037939ce6661
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-06-26 17:47:28 -07:00
qctecmdr
8f161b7b67 Merge "power: smb1355: Add snapshot of SMB1355 charger driver" 2020-06-26 17:34:07 -07:00
qctecmdr
ee8ac78d1c Merge "config: Enable module signature in generic defconfig" 2020-06-26 17:34:07 -07:00
qctecmdr
79e3420f98 Merge "defconfig: msm: Disable CONFIG_MSM_TZ_LOG from perf builds" 2020-06-26 17:34:06 -07:00
qctecmdr
95d17c2e1d Merge "scsi: ufshcd: Properly set the device Icc Level" 2020-06-26 17:34:06 -07:00
qctecmdr
8119c34119 Merge "soc: qcom: hwkm: Re-format cmd packet for system kdf" 2020-06-26 17:34:05 -07:00
Murali Nalajala
6e3baac2ca arm64: defconfig: remove configs to fix kw issues
Remove CONFIG_ATL1C and CONFIG_QCOM_EMAC which are causing the KW
issues. These configs are anyway not required for any functionality
for SVM.

Change-Id: I64ecdda547760a00936e3cf9cbfc98cb24d6f39c
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-06-26 17:10:09 -07:00
Chris Lew
5dc5204c49 net: qrtr: ns: Change servers radix tree to xarray
There is a use after free scenario while iterating through the servers
radix tree despite the ns being a single threaded process. This can
happen when the radix tree APIs are not synchronized with the
rcu_read_lock() APIs.

Convert the radix tree for servers to xarray to take advantage of the
built in rcu lock usage provided by xarray.

Change-Id: I1d9b017da4efba9d8fc72e4666253060cc7b87e3
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-06-26 16:16:30 -07:00
Chris Lew
5f32de8fb1 net: qrtr: ns: Change nodes radix tree to xarray
There is a use after free scenario while iterating through the servers
radix tree despite the ns being a single threaded process. This can
happen when the radix tree APIs are not synchronized with the
rcu_read_lock() APIs.

Convert the radix tree for nodes to xarray to take advantage of the
built in rcu lock usage provided by xarray.

Change-Id: If2f735abf911b7b47cd7cb07224751114a2bf943
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-06-26 16:16:26 -07:00
Chris Lew
a3cb62abba mailbox: qcom-apcs: Add compatible for sdxlemur
Add compatible string with offset value for sdxlemur.

Change-Id: Icf20202f1e603321dd9744e85426f08940cc8f68
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-06-26 15:58:33 -07:00
David Ng
0097194c07 defconfig: arm64: Disable SDCARD_FS for Lahaina
Disable SDCARD_FS for Android compliance for full switchover
to fusefs.

Change-Id: I54921f9651dec266b1aae51f075c95c71e670f34
Signed-off-by: David Ng <dave@codeaurora.org>
2020-06-26 15:55:05 -07:00
Manikandan Mohan
3e7818919b cnss2: Handle PCI register rw operation during crash shutdown
During crash shutdown, system is in panic mode and all
interrupts are disabled. Thus when doing CNSS pci register
dump collection do not lock. Use spinlock during normal
operation only.

Change-Id: I82dc531e93c13aa583e8162b8dc7e8866f86c48b
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-06-26 14:21:43 -07:00
Jack Pham
7f37505d4c build.config.msm.lahaina: Add qgki-consolidate as a supported variant
Add support for building using the lahaina-qgki-consolidate_defconfig
which consists of the QGKI + consolidate fragments.

Change-Id: Ie6bf7e564560a808a67f2c65bcb63e099f43e4f4
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-06-26 12:19:09 -07:00
Shashank Babu Chinta Venkata
59d1508243 arm64: defconfig: add trusted touch support to GKI defconfig
Add trusted touch support to Lahaina GKI defconfig.

Change-Id: I1cd0b6d011695c14d1b9d8d9c00daf3dcca715d5
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-26 10:36:55 -07:00
Shashank Babu Chinta Venkata
5507cbf1b8 arm64: defconfig: add trusted touch config for genericarmv8
Enable Trusted touch config in genericarmv8 defconfig.

Change-Id: I452f8088f8cc704ed8abf727412678c39248ae39
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-26 10:36:45 -07:00
Siddharth Gupta
5db100cd26 ABI: Update whitelist
Common change to add required symbols to the whitelist.

Change-Id: I799bb1b8b2e637d6a5570ff82b8040447a9bf0e7
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-26 10:10:59 -07:00
Lina Iyer
60d5e8ca30 defconfig: enable system pm violators for lahaina
Enable system_pm_violators debug driver to read and report DRVs that are
preventing system low power modes.

Change-Id: I0e10010b6df3670c05d3d7aa5aed3581f664ec81
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-06-26 07:44:24 -07:00
Charan Teja Reddy
49ab491930 mm: memory_hotplug: wait on device_hotplug_lock in OOM path
Use lock_device_hotplug() inplace of lock_device_hotplug_sysfs() as the
latter can return immediately if there are any parallel
onlining/offlining of memory blocks.

Change-Id: Ica3cc286b7d4f87310f86e8c9e6db2157e511419
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-06-26 05:09:26 -07:00
Lee Susman
87e7e1b2ec mm: change max readahead size to 512KB
Change the VM_MAX_READAHEAD value from the default 128KB
to 512KB. This will allow the readahead window to grow to a maximum size
of 512KB, which greatly benefits to sequential read throughput.

Change-Id: Ia0780ea4e2a4ae0b6111485b72fb25376dcb1f96
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
[vinmenon@codeaurora.org: switch to VM_READAHEAD_PAGES on 5.4]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-26 05:07:23 -07:00
Minchan Kim
1886e65754 mm: disable fault around on emulated access bit architecture
fault_around aims to reduce minor faults of file-backed pages via
speculative ahead pte mapping and relying on readahead logic.  However,
on non-HW access bit architecture the benefit is highly limited because
they should emulate the young bit with minor faults for reclaim's page
aging algorithm.  IOW, we cannot reduce minor faults on those
architectures.

I did quick a test on my ARM machine.

512M file mmap sequential every word read on eSATA drive 4 times.
stddev is stable.

  = fault_around 4096 =
  elapsed time(usec): 6747645

  = fault_around 65536 =
  elapsed time(usec): 6709263

  0.5% gain.

Even when I tested it with eMMC there is no gain because I guess with
slow storage the major fault is the dominant factor.

Also, fault_around has the side effect of shrinking slab more
aggressively and causes higher vmpressure, so if such speculation fails,
it can evict slab more which can result in page I/O (e.g., inode cache).
In the end, it would make void any benefit of fault_around.

So let's make the default "disabled" on those architectures.

Change-Id: I5e6b74943c95f6779b3a6e463b4d0a8b27eaac01
Link: http://lkml.kernel.org/r/20160518014229.GB21538@bbox
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: d0834a6c2c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
[vinmenon@codeaurora.org: trivial merge conflict fixes]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-26 05:07:02 -07:00
Sumukh Hallymysore Ravindra
96e5b1f8ce ABI: Add synx driver ABIs for QCOM whitelist
Add synx ABI symbols to Qualcomm's whitelist.

Change-Id: I780b6bd06ff6c7aac1cda883c24814e968d480a2
Signed-off-by: Sumukh Hallymysore Ravindra <shallymy@codeaurora.org>
2020-06-26 04:21:24 -07:00
Taniya Das
fbf704a3b0 bindings: clock: qcom: Update the GPU CC clock IDs
Update the clock IDs which are required and supported from the Graphics
clock controller on HOLI.

Change-Id: I8f16d0ff3ed42500521c8384cd8272ce9d5b9d22
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-26 15:47:45 +05:30
Taniya Das
f708ea1445 clk: qcom: clk-branch: Add clock ops for Voltage voting
In the cases where the branch clocks requires to vote on a voltage rail
add the clock ops callbacks for the same.

Change-Id: If7ffbc4fdda1fb71c1d097f56a5eb762859eb2c4
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-26 15:47:44 +05:30
Taniya Das
0ff8097bc0 clk: qcom: Add qcom implementation of qcom_clk_set_flags
The qcom_clk_set_flags API would be used to set/clear the memory
flags for the desired branches.

Change-Id: I58b2347f63d382168b61dd04ead57ad114559eb2
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-06-26 15:46:36 +05:30
Raghavendra Kakarla
7ad3e81608 defconfig: Enable MPM driver for Holi
Enable MPM interrupt controller driver to program
the APSS wakeup capable interrupts to RPM MSG RAM.

Change-Id: Ic62b0f82cc4c6172924625ee6e5eda3e6358c613
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-26 03:09:45 -07:00
Naveen Yadav
9ad0572fd9 dt-bindings: clock: Add support for clock ids for SDXLEMUR
Add clock IDs for GCC and APSSCC clients to be able to request
for clocks from these clock controllers.

Change-Id: Ifc6acdbd05398e2f501cdc2cfb8694b16eb9b866
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-06-26 14:09:32 +05:30
Maulik Shah
fb9c36e4b2 soc: qcom: rpmh-rsc: Correctly handle zero active TCS for solver mode
If we made an active request on a RSC that does not have a dedicated TCS
for active state use, then re-purposed wake TCSes should be checked for not
busy before setting solver mode.

Change-Id: I8a493f4ac15d31df5b1963e5ae0d5d9966b482cc
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-06-26 13:58:54 +05:30
Prerna Kalla
128b900f89 defconfig: msm: Disable CONFIG_MSM_TZ_LOG from perf builds
DEBUGFS will be disabled on android R perf builds. Since tz logs
are dependent on debugfs, CONFIG_MSM_TZ_LOG needs to be removed
as well.

Change-Id: I88211eb98cfbf64b2fe444c8fc0d4e122bebf7cb
Signed-off-by: Prerna Kalla <prernak@codeaurora.org>
2020-06-26 00:17:23 -07:00
Isaac J. Manjarres
af3b847f20 iommu: Remove iommu_debugfs_top
iommu_debugfs_top was introduced in earlier kernel versions when
IOMMU_DEBUGFS was not present. Now that IOMMU_DEBUGFS is present,
and exposes iommu_debugfs_dir, which is logically equivalent to
iommu_debugfs_top, there is no point in keeping it around, so
remove it.

Change-Id: I7032e370ccfd32f9d2b9046fecd98b4c6388450f
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-25 23:36:58 -07:00
Isaac J. Manjarres
f759692d36 iommu: Refactor IOMMU pagetable page accounting into a config option
Refactor IOMMU pagetable page accounting code into a config option
so that it only includes additional headers in configurations where
the page accounting feature is needed. Doing so prevents the
definition of certain structures from being expanded, which can
affect the CRC value generated for exported symbols in module.symvers.

Change-Id: Idd6fc0e1cbb46ace211971ac142be491d0a5ab09
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-25 23:36:03 -07:00
Vijayanand Jitta
7931d3dddf iommu: add a function to get MID/PID/BID info
For certain use cases SID remains same and when an
smmu page fault occurs it becomes difficult for client
to identify which of the usecases is actually causing
the fault. In such cases MID/PID/BID info can help.
So, add a function for the same so that clients can
call this from their fault handler and get the info.

Change-Id: Ia720641224f908287ae1d66908ab12def82bbbab
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-06-26 09:41:00 +05:30
Gaurav Kashyap
fd16bf9689 soc: qcom: hwkm: Re-format cmd packet for system kdf
1. Fix to format context correctly as expected by
   hardware for system KDF.
   HWKM reverses bytes at a 8-byte boundary while getting
   the context from cryptolib. Reformat the context in the
   command packet in such a way that HWKM receives it in the
   correct order. Also, pad the context to a 8-byte multiple
   as the way HW would pad it is not expected.
2. Use context for FBE to match with the one
   for VTS test cases.

Change-Id: I3c13c91b0dfc85aef406b05694dbd22afb0b2e0b
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-06-25 20:47:05 -07:00
qctecmdr
6e625d330f Merge "mm: Fix sleeping while atomic during speculative page fault" 2020-06-25 19:09:40 -07:00
qctecmdr
1f2a0ad6f9 Merge "Merge android-5.4-stable.32 (724ffa0) into msm-5.4" 2020-06-25 14:38:28 -07:00
Shyam Kumar Thella
3afbba8e29 leds: qti-flash: Disable flash LED channel after De-strobe
Currently when a flash/torch device is disabled, ITARGET of the channel
is programmed to 0 by qti_flash_led_disable() before the channel is
de-strobed. This is causing a ramp down of the flash LED channel during
disable. Fix this by programming target current to 0 only after channel
is de-strobed.

Change-Id: Ie566f4e75b8af8c27b7b9a828823a9bfddc48bb6
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-06-25 23:06:08 +05:30
Shyam Kumar Thella
810464bfb0 leds: qti-flash: Disable flash LED when brightness is set to 0
Disable the flash LED channel when a brightness of 0 is set.

As flash/torch devices can be enabled and disabled using switch as well
as from sysfs, reset the state of flash/torch devices when they are
disabled instead of doing it in switch disable.

Change-Id: If8ffb22d8c72a94325a1e9237778b810a152a293
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2020-06-25 23:05:55 +05:30
Thinh Nguyen
923eaf9d89 usb: gadget: composite: Inform controller driver of self-powered
Different configuration/condition may draw different power. Inform the
controller driver of the change so it can respond properly (e.g.
GET_STATUS request). This fixes an issue with setting MaxPower from
configfs. The composite driver doesn't check this value when setting
self-powered.

Cc: stable@vger.kernel.org
Fixes: 88af8bbe4e ("usb: gadget: the start of the configfs interface")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Git-commit: 5e5caf4fa8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I96588f97d32c9b6d80302e601cb0cc8d771c1296
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-06-25 09:40:54 -07:00
Can Guo
fe20923c48 scsi: ufs: Try to save power mode change and UIC cmd completion timeout
Use the uic_cmd->cmd_active as a flag to track the lifecycle of an UIC cmd.
The flag is set before send the UIC cmd and cleared after the completion is
raised in IRQ handler. For a power mode change operation, including hibern8
enter/exit, the flag is cleared only after hba->uic_async_done completion
is raised. When completion timeout happens, if the flag is cleared, instead
of returning timeout error, simply ignore it.

Change-Id: Ie3cd6ae6221a44619925fb2cf78136a5617fdd5d
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-06-25 20:08:58 +08:00
qctecmdr
7727556160 Merge "ufs: sysfs: Use snprintf instead of sprintf" 2020-06-25 04:55:02 -07:00
qctecmdr
a8c8cc0763 Merge "msm: cvp: Increase delay during AXI reset pulse" 2020-06-25 04:55:01 -07:00
qctecmdr
bba2f13464 Merge "power: smb1398: Add snapshot of driver" 2020-06-25 04:55:01 -07:00
qctecmdr
5027ca7013 Merge "memshare: Add debug logs to track subsystem notification" 2020-06-25 04:55:01 -07:00
qctecmdr
29909395db Merge "msm: kgsl: Add support to toggle GPU GX CPR loop enable" 2020-06-25 04:55:00 -07:00
qctecmdr
080901e562 Merge "cpufreq: qcom: cpufreq-hw: Remove enable of GT_IRQ for EPSS" 2020-06-25 04:55:00 -07:00
qctecmdr
cac85f094b Merge "scsi: Block reset attempts to UFS through scsi ioctl" 2020-06-25 01:48:41 -07:00
qctecmdr
524546f263 Merge "scsi: ufs: Record last intr status and its timestamp" 2020-06-24 22:34:01 -07:00
qctecmdr
adc8e47e36 Merge "mmc: Kconfig: Change MMC_SDHCI_MSM to be static module" 2020-06-24 22:34:01 -07:00