Commit graph

894,770 commits

Author SHA1 Message Date
qctecmdr
ab09338b78 Merge "defconfig: gen3auto: Enable msm_geni_console" 2021-01-20 23:52:15 -08:00
qctecmdr
56dfee3f47 Merge "defconfig: enable CONFIG_ARM_SMMU_SELFTEST for debug config" 2021-01-20 23:52:15 -08:00
qctecmdr
38de743e5a Merge "ANDROID: usb: gadget: Do not disconnect unregistered dev" 2021-01-20 23:52:15 -08:00
qctecmdr
5d0cb44821 Merge "scsi: ufs: Hold auto suspend until ufs async scan completes" 2021-01-20 23:52:13 -08:00
qctecmdr
fed9b0b727 Merge "drivers: soc: Add support for SDMSHRIKE llcc driver" 2021-01-20 23:52:13 -08:00
Anmolpreet Kaur
c9a383d796 Fallback to dma_alloc_coherent if shmbridge is disabled
If shmbridge is not enabled, allocate memory through
dma_alloc_coherent instead of shmbridge pool. This will make the
clients independent of whether shmbridge is enabled or
disabled.

Change-Id: I293872a2e57dec77d660de1bd857a425d4888a5b
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2021-01-21 09:05:27 +05:30
Yun Hsiang
b7f31af2f1 ANDROID: sched: add em_pd_energy vendor hook
We add a vendor hook for util to freq calculation in schedutil,
so we need to do corresponding change for energy calculation.

android_vh_em_pd_energy
	adjust energy calculation

Bug: 178021064

Signed-off-by: Yun Hsiang <yun.hsiang@mediatek.com>
Change-Id: Iae772cf07881602eea3f27aeb75fba753e7c2635
2021-01-21 10:32:49 +08:00
Biao Long
e8f6113085 sched/fair: Add sched_sync_hint_enable node
Add sched_sync_hint_enable not to enable/disable sync.

Change-Id: Id6bdff3d4b9ea1051d7b55ca4cfd1d802c92fa64
Signed-off-by: Biao Long <blong@codeaurora.org>
2021-01-21 08:55:43 +08:00
Mahesh Kumar Kalikot Veetil
200b7dec04 cnss2: Add a 128kB to prealloc pool
WLAN host driver has a new memory requirement for regulatory structure
allocation of order 5. Increase 128 kB slot by one.

Change-Id: If95291c96df0b7588b54f8e19b287d846896b479
Signed-off-by: Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
2021-01-20 14:19:47 -08:00
Yue Ma
5d442d9b68 cnss2: Minor enhancements for the driver
Use default RAM dump size if it is not defined in device tree node.
Also print MSI 64-bit address (high and low 32-bit) for debug purpose.

Change-Id: Iff382862e5a04ce995f2ec3bfeffaf7a1f6b78ee
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-01-20 11:44:46 -08:00
qctecmdr
f64d2bf563 Merge "defconfig: monaco_go: add bpf configs" 2021-01-20 03:11:33 -08:00
qctecmdr
4e14ab3f8c Merge "drivers: soc: Add support for sm8150 llcc driver" 2021-01-20 03:11:33 -08:00
qctecmdr
b5358f2642 Merge "soc: qcom: add HAB driver" 2021-01-20 03:11:32 -08:00
Charan Teja Reddy
ae2a72e99d soc: qcom: mem-offline: isolate freepages in pageblock boundaries
Migrate isolate of a pageblock is being checked only at the pageblock
boundary pages thus the isolation of freepages should happen on that
pageblock which otherwise can still cause the isolation of freepages on
an isolated pageblock.

Consider the below case:

Pa					       Pb

check the pageblock
isolation

zone_lock
Isolate the SWAP_CLUSTER_MAX pages
Zone_unlock
					zone_lock
					Set Migrate isolate on the
					same page block that Pa is
					operating on.
					zone_unlock
zone_lock
Continue the isolate on the same
page block that was set Migrate
isolate by Pb which is an error.

Change-Id: I1504b031f434fb65ebb11e1472b73e9d34e388b8
Fixes: ff56a97530 ("mem-offline: disallow page migration to isolated page blocks")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2021-01-20 16:16:29 +05:30
Veera Vegivada
cd30d2af63 interconnect: qcom: Fix re-initializing the bcm
Currently, qcom_icc_bcm_init always assumes the bcm is not initialized.
There is a possibility that same bcm can belong to multiple providers
and re-initing the bcm adds the same bcm multiple times to the nodes
which are under the control of the bcm.
Hence add condition to check for bcm inited.

Change-Id: I3961963a6ef1a7b76d7ab708f648146fe1a30c99
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-20 11:32:59 +05:30
Kavya Nunna
c363bb6123 defconfig: Enable SMB1351 and other drivers for sdxnightjar
Enable smb1351, rtc and pwm drivers for sdxnightjar.

Change-Id: I874210518faa4b1429b6d2c842bf9af2b05ee01e
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-01-20 10:37:04 +05:30
Shashank Babu Chinta Venkata
11246e21c3 input: touchscreen: focaltech: cancel pending resume work
Before initiating trusted touch, cancel any pending
suspend or resume work and wait for already scheduled worker
to finish.

Change-Id: I2a44e4e87eaf544d2190e4c9a125d40d7f9115d7
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2021-01-19 14:12:00 -08:00
Shashank Babu Chinta Venkata
e28fcc60c4 input: touchscreen: st: cancel pending resume work
Before initiating trusted touch, cancel any pending
suspend or resume work and wait for already scheduled worker
to finish.

Change-Id: I9eb89a76e7238bf2ce18d319b9c50f2da784c703
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2021-01-19 14:11:50 -08:00
Manaf Meethalavalappu Pallikunhi
014d6e75a6 drivers: thermal: Use lock before accessing thermal instance list
The thermal zone config read callback is not holding lock before
accessing thermal instance list. There is a chance that both cooling
device binding and thermal zone config show read are happening
concurrently. The cooling device binding tries to add new thermal
instances and the same time thermal zone config show read context
tries to access thermal instance list. It leads to unexpected
behaviour.

Use lock before accessing thermal instance list in thermal zone
config read callback.

Change-Id: I1bea07cb67a7240027dd34cea2ff61def9258b8f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2021-01-19 13:38:15 -08:00
Yun Hsiang
68ecddcda8 ANDROID: schedutil: add vendor hook for adjusting util to freq calculation
Currently, the frequency is calculated by max freq * 1.25 * util / max cap.
Add a vendor hook to adjust the frequency when the calculation
overestimate.

android_vh_map_util_freq
	adjust util to freq calculation

Bug: 177845438

Signed-off-by: Yun Hsiang <yun.hsiang@mediatek.com>
Change-Id: I9aa9079f00af7d3380b19f2fe21b75cddd107d15
2021-01-19 19:02:47 +00:00
Veera Vegivada
5ace54dceb clk: qcom: sm6150: define vdd_levels enum and vdd_corner[] map
Define a vdd_levels enum and vdd_corner[] mapping table which can
be used by clock controller drivers to configure the vdd_class
associated with their clocks.

Change-Id: I7b1ad5f51c414694bc9d5101afc411b1d63bad42
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-19 23:24:18 +05:30
Sarthak Garg
de2736fab5 defconfig: Enable IPC logs for sdxlemur
Enable IPC logs for sdxlemur.

Change-Id: I82ebb1f82f43f27229b4eff4c30ab8f829413d04
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2021-01-19 21:15:57 +05:30
Nitin Rawat
f9f1deb3a3 scsi: ufs: Hold auto suspend until ufs async scan completes
To avoid any suspend during probe, we increment the device
usage counter before calling ufshcd_async_scan and decrement
before returning from ufshcd_async_scan function.

For the scenarios where ufs device initialisation fails
or if the ufs device is not present, we are decrementing
device usage counter before calling ufshcd_hba_exit.

Hence there is a possiblity that after we disable the clocks
as part of ufshcd_hba_exit call, runtime suspend may get
triggered. As part of runtime suspend, we are accessing
the register causing noc error due to unclocked access.

To fix this, we are removing pm_runtime_put_sync
from ufshcd_add_lus() and adding it in common place
at the end of ufshcd_async_scan so that we hold auto
suspend until async scan completes in both success and
failure case.

Call Stack:
 panic+0x17c
 panic+0x0
 arm64_serror_panic+0x74
 do_serror+0x15c
 el1_error+0xbc
 el1_irq+0xb0
 crypto_qti_resume+0x68
 ufshcd_crypto_qti_resume+0x18
 ufshcd_crypto_resume+0x3c
 ufshcd_suspend+0x5b0
 ufshcd_runtime_suspend+0x44
 ufshcd_pltfrm_runtime_suspend+0x14
 pm_generic_runtime_suspend+0x44
 __rpm_callback+0x98
 rpm_suspend+0x2a4
 rpm_idle+0x158

  schedule+0x8c
 schedule_preempt_disabled+0x24
 __mutex_lock+0x358
 __mutex_lock_slowpath+0x14
 mutex_lock+0x34
 clk_unprepare+0x58
 __ufshcd_setup_clocks+0x140
 ufshcd_hba_exit+0x170
 ufshcd_async_scan$d36fba0b664edbd124b5d17d005db4c5+0x118
 async_run_entry_fn$8847b5d726ee295ba72a029a76bec2f5+0x60
 process_one_work+0x2cc
 worker_thread$f31e2447a3fdcb60f4b193f95acd647c+0x278
 kthread$bf1537fa370ac32bde5f056194ddafc6+0x16c
 ret_from_fork+0x10.

Change-Id: I059de2b0eba642bf1a35c27e8e12d31c6f30a836
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2021-01-19 21:02:14 +05:30
Mukesh Kumar Savaliya
58864fe99c dmaengine: gpi: Log the assigned GPII per SE during probe
This change Enhances IPC logs to add SE instance to know which
GPII is attached to which SE device, this helps in debug. Also,
removed unnecessary read of iommu-dma property.

Change-Id: I6a5a9312d80abab2addc0c63642429a787f9065c
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2021-01-19 18:55:16 +05:30
Mohammed Siddiq
39bb9cd5fa cnss2: Update GPIOs for wake capability disablement
Update GPIOs(151 and 202) for wake capability disablement on
lahaina and shima.

Change-Id: I97f114ceaf454c3653e69ff912c6b78fd718e8fe
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-01-19 16:57:57 +05:30
Charan Teja Reddy
826fa21766 defconfig: enable CONFIG_ARM_SMMU_SELFTEST for debug config
Enable CONFIG_ARM_SMMU_SELFTEST for debug config. The actual
interrupt self test runs only when arm_smmu.selftest is set to 1.

Change-Id: I040ba9d5d98ff2e9dbbc579e8a0f5062d9bedfd4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2021-01-19 14:21:44 +05:30
jian.gong
247d907f7b ANDROID: ABI: update symbols of unisoc whitelist
Update whitelist for the symbols used by the unisoc device and
update the ABI representation accordingly

Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

Bug: 175337500
Change-Id: I2efd0a7074ddcb0a4f48564e7df0d8a1a7fd5ca9
Signed-off-by: jian.gong <jian.gong@unisoc.com>
2021-01-19 08:13:45 +00:00
Shreyas K K
4de1fc1a8d defconfig: gen3auto: Enable msm_geni_console
Enable msm_geni_console on gen3auto targets.

Change-Id: I0fcd6f3490090ea178d4eba8d152679fe8ded124
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-01-19 13:30:55 +05:30
Dmitry Bogdanov
10b066c198 atlantic forwarding driver v1.1.14
[ATLDRV-1609] - Facing failure for the DMA Network Loopback Test
 [ATLDRV-1605] - AQC107 GPIO_0 PPS alignment
 [ATLDRV-1614] - probe of 0000:02:00.0 failed with error -22 after loading driver with "msi=N max_queues_non_msi=4".

Change-Id: Icdad49b4a1f72dee34b7601a72ba4113917931ff
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Git-commit: 6288945d8b0ffec0edc1e909b1390cfce3ccb7f0
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-01-18 21:59:12 -08:00
Dmitry Bogdanov
2260359c5f atlantic forwarding driver v1.1.13
[ATLDRV-1581] - AQ091: AQC DMA stats in Ethtool
 A2: report FW bundle ver instead of mac FW ver.

Change-Id: I016ea04bce3ac460048004688d8fb8ef1343b961
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Git-commit: 4349cf87fcd347c0b065544580bf7753f24ca8fa
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-01-18 21:58:53 -08:00
Dmitry Bogdanov
4f2388d727 atlantic forwarding driver v1.1.12
[ATLDRV-1573] - Crash on enable EEE
 [ATLDRV-1576] - FWD: Add support of Antigua B0 statistics
 [ATLDRV-1577] - Add Downshift feature.

Change-Id: I4b262076969bf0a6a6996fbf54e2e7e86fddee0b
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Git-commit: dcb78b53f88c87405e81e1733592a721cfd75936
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-01-18 21:58:41 -08:00
Kavya Nunna
f01d7a5ddf power: smb358: Add support to make SMB358 driver GKI complaint
Replace existing non standard power supply properties with standard power
supply properties to make the smb358 driver GKI complaint.

Change-Id: I878f0e910a8819e55befef5914be13190e1ce6c0
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-01-19 10:56:10 +05:30
Deepak Kumar
784c9c8212 msm: kgsl: Fix nr_removed calculation while reducing pools
Current code is reducing total_pages by pcount for each
loop iteration which results in decrementing total_pages
incorrectly as pcount is total number of pages reduced
in all previous iterations. Incorrect total_pages results
in incorrect nr_removed. Fix this by not decrementing
total_pages and directly accounting for already reduced
pages in nr_removed calculation.

Change-Id: I69485c26f1f98974eecc30caa1a888ddeafe7c73
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-01-19 10:29:27 +05:30
Badhri Jagan Sridharan
2a9081f0bc ANDROID: usb: gadget: Do not disconnect unregistered dev
configfs_composite_unbind sets the gadget data
to null. Therefore, add check in disconnect
function to make sure that cdev is not NULL.
Prints a WARN message if the driver tries to
redundantly disconnect a gadget.

Change-Id: Iad25f7a1e785ed336d34259c147efdcfc0840fae
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Git-commit: da17b0d6e3031d54deb05c08c7bf1616da43f7a6
Git-Repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-01-18 20:58:02 -08:00
Vivek Kumar
1cc846c4d5 defconfig: gen3auto: Enable LLCC driver
Enable LLCC driver for gen3auto target.

Change-Id: Ia32e5c8f0b0673f9b9ae70b265e738bb2629f24f
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2021-01-18 10:21:44 -08:00
Vivek Kumar
dbcc71dcfa drivers: soc: Add support for SDMSHRIKE llcc driver
Add support for SDMSHRIKE llcc driver.

Change-Id: I3bbe6f87ced09a19c90c17c3c495a873c71ee005
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2021-01-18 10:21:08 -08:00
Vivek Kumar
ff6d3c8d99 drivers: soc: Add support for sm8150 llcc driver
Add support for sm8150-llcc driver. The driver
is written by taking reference from sm8150-llcc
driver in msm-4.14 kernel at commit id
"f6969550b4".

Change-Id: Iaa7711f56066fc1c8e098beaf19185522bb5581d
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2021-01-18 10:20:50 -08:00
Quentin Perret
1a955566df Revert "BACKPORT: FROMGIT: mm: improve mprotect(R|W) efficiency on pages referenced once"
This reverts commit fd0edef76b.

Reason for revert: Breaks CTS

Change-Id: I6d04bbe3bf119971b855a874acd374df911fb971
Signed-off-by: Quentin Perret <qperret@google.com>
2021-01-18 16:25:18 +00:00
Maulik Shah
01b22a8de9 arm64: defconfig: Enable PDC device for sdmsteppeauto
This change enables PDC device for sdmsteppeauto.

Change-Id: Iae030f810aca280c22b36f3539244ff6c8c961bc
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2021-01-18 20:21:37 +05:30
Maulik Shah
49b94cdfe5 irqchip: qcom-pdc: Add PDC irqchip support for sm6150
Add irqchip support for sm6150.

Change-Id: I05472fcc473b16272f4f3b74e1d99cbef077b189
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2021-01-18 20:19:18 +05:30
Veera Vegivada
423fa0fd88 arm64: defconfig: Enable cmd_db and rsc driver
Enable RPMH drivers and cmd_db driver.

Change-Id: Iea2dff4b76c1f2b32df30548dfeb870e47bfdfd8
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-01-18 20:15:50 +05:30
Pankaj Gupta
52d1e761be msm: kgsl: Enable GMU BW scaling and update CP ROQ size
Enable GMU BW scaling for A635 GPU and update CP ROQ size as per
recommendation.

Change-Id: Id904957038abfdc2109e17cd4d7958759c6c2ed1
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2021-01-18 19:41:03 +05:30
Vivek Kumar
2063939319 defconfig: gen3auto: Add IOMMU related configs
Enable ARM SMMU as module and add other IOMMU related
features and debug support for gen3auto.

Change-Id: Ifb40974d87bed1826ea9694daa6f3c44c338dc40
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2021-01-18 17:38:53 +05:30
Lijuan Gao
9dce470f2c soc: qcom: Fixed interrupts not work on sdxnightjar
Correct the interrupt initialization for modem pil.

Change-Id: I36661107644ca33f867121d1b46e69cea15ed0f2
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2021-01-18 17:33:52 +08:00
Venkata Manasa Kakarla
ebb465e63e serial:msm_geni_serial: Handling the cts counter in uart driver
Handle the CTS counter whenever the change in CTS interrupt occur.
Using the M_IO_DATA_ASSERT bit in interrupt register, this will get
set when CTS is high.

Change-Id: I43c629f4d026af4a7e82d0d6d01b826259b0b1b5
Signed-off-by: Venkata Manasa Kakarla <venkka@codeaurora.org>
2021-01-18 01:01:05 -08:00
Srinivasarao P
9ca590dfe8 Merge android11-5.4.61+ (5327444) into msm-5.4
* remotes/origin/tmp-5327444:
  ANDROID: GKI: Add Sony KMI symbol list

Change-Id: I313d7220d2a301b13db1c3a7ed5d7df82a1f741e
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-01-18 13:53:00 +05:30
Faiyaz Mohammed
70b27f6180 defconfig: enable debug page alloc config for holi
Enables the debug pagge alloc config and debug page alloc enable
default config for holi.

Change-Id: I8bea46c944c126425ed6a1fe129403dcba75f364
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2021-01-18 09:53:44 +05:30
Anil Kumar Kanakanti
07409a0110 dt-bindings: msm: Add bindings for CSI PHY fuse support
Add bindings support for handling CSI PHY fuse.

Change-Id: If9b78d7469784258f1157007c26dec3065870a4f
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-01-17 22:54:58 +05:30
Chandrasekhar Mattaparthy
98592dc7e4 arm: defconfig: enable firmware loader helper
For pil loading firmware loader helper required.

Change-Id: I255a0ab9554ad66beb9e803b936f06623745a6be
Signed-off-by: Chandrasekhar Mattaparthy <cmatta@codeaurora.org>
2021-01-16 07:13:45 -08:00
Chandrasekhar Mattaparthy
f7103a10a3 defconfig: monaco_go: add bpf configs
add bpf configs which are used for device
bootup.

Change-Id: Ibdad44bf74a49e26cba852cfdf28791a61f7819d
Signed-off-by: Chandrasekhar Mattaparthy <cmatta@codeaurora.org>
2021-01-16 07:13:30 -08:00