Commit graph

892,914 commits

Author SHA1 Message Date
Vinayak Menon
428413e2e6 Revert "arm64: kpti: force off kpti"
Control kpti via bootargs and keep default as
enabled.

This reverts commit 1edf9722d4.

Change-Id: I707641061ad67498228df64e361139baf2b7a1a3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-09-10 12:14:47 +05:30
Yuanfang Zhang
8e795cfbf7 arm: defconfig: Enable STM_PROTO_BASIC for holi
Enable STM_PROTO_BASIC to support to write log to /dev/coresight-stm.

Change-Id: I9c736953e664de799f221a87b81953b4c020fbd5
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-09-10 14:28:26 +08:00
Vijayanand Jitta
796c864c72 soc: qcom: Enable slabowner support in minidump
Register and dump slabowner on kernel panic to minidump
table.

Change-Id: I1644ead8ce75ddfca7181ccf102dedabf42c6ad7
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-10 11:48:20 +05:30
Prateek Sood
2204bd3642 irqchip: gicv3: add hardware irq print in gic_show_resume_irq()
Currently gic_show_resume_irq() only prints linux irq number.
There are cases where linux irq number is not listed in
cat /proc/interrupts output. To check for spurious irq cases,
hardware irq number can help.

Change-Id: I03005412688041d7ec99a80b741c16e31db3394d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-09-09 23:04:34 -07:00
Vijayanand Jitta
3f17f5a3dc soc: qcom: Enable pageowner support in minidump
Register and dump pageowner on kernel panic to minidump
table.

Change-Id: I410fe9a6e875e1485bd2e9d0ad5798015d2ce3e6
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-10 11:34:13 +05:30
Prakash Gupta
f50032b47a arm64: defconfig: Enable PRIORITIZE_OOM_TASKS for holi
Enable support for prioritizing the tasks which are killed by the OOM
killer in order to ensure that higher priority tasks (oom_score_adj < 0)
aren't killed unless there are no other low priority tasks to consider.

Change-Id: I7ad2b4eb381a8292a8af56c413461451ef6e1d05
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-09-10 10:05:54 +05:30
Imran Ahmad
dc02da1fb5 power: smblite: Add snapshot of SMBLITE driver and its dependencies
Add snapshot of the QPNP-SMBLITE driver along with its dependencies
as of msm-4.19 'commit 765e7b83f670 ("kernel: dma: disallow
altering logical map for non-CMA allocs")'

The QPNP SMBLITE charger driver supports the charger peripheral
present in the chip.

Change-Id: I053554571721a0210442ee14e1233444315514b8
Signed-off-by: Imran Ahmad <imrahm@codeaurora.org>
2020-09-10 09:07:30 +05:30
Subbaraman Narayanamurthy
dbe6b304e8 hwmon: qti_amoled_ecm: add debug log for nvmem writes
Add a wrapper function ecm_nvmem_device_write() which can log
the nvmem writes. This is useful for debugging.

Change-Id: Icc4ee6ff50b46f92e0169660e3400d80f7d4da37
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-09 20:21:54 -07:00
Subbaraman Narayanamurthy
c84e4d88c3 hwmon: qti_amoled_ecm: Fix initial value for ECM_WRITE_TO_SDAM
Whenever ECM is enabled by the user, some SDAM registers are
initialized for the proper operation. Change the initial value
for ECM_WRITE_TO_SDAM as per the hardware recommendation.

Change-Id: I7a414bb83640178055f3c5a463daa6328aaef69c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-09 20:21:54 -07:00
Jagadeesh Kona
9a06ce1b81 clk: qcom: gpucc-shima: Keep POR enabled gpu_cc_cb_clk always ON
Move gpu_cc_cb_clk to probe as it is POR enabled and not required
to be controlled from HLOS.

Change-Id: Ice8206b897374b4889a30d057ffc26b974fa1724
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-09-10 08:49:08 +05:30
qctecmdr
38b1718d28 Merge "mhi: core: Remove verbose log from threaded interrupt handler" 2020-09-09 18:24:29 -07:00
qctecmdr
5a6978730b Merge "msm-perf: Kgsl events collection for perf" 2020-09-09 18:24:28 -07:00
qctecmdr
5d6b253ca1 Merge "input: touchscreen: mxt: reset IC before read again" 2020-09-09 18:24:28 -07:00
qctecmdr
39d4f12a3a Merge "input: qcom-hv-haptics: Disable haptics module during suspend" 2020-09-09 18:24:28 -07:00
qctecmdr
9204b9429b Merge "soc: qcom: secure_buffer: add API page_accessible" 2020-09-09 18:24:27 -07:00
qctecmdr
0a94ea27d3 Merge "thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required" 2020-09-09 18:24:27 -07:00
qctecmdr
0808dffa4e Merge "msm: adsprpc: Free dma handles in RPC call with no parameters" 2020-09-09 18:24:27 -07:00
Yue Ma
548b031780 cnss2: Call mhi_device_get_sync() if timeout requested is 0
mhi_device_get_sync() can sleep while waiting for MHI M0 event.
When timeout passed in is 0 for CNSS force wake API, call it
instead of mhi_device_get_sync_atomic() which will only do busy
wait.

Change-Id: I8ba5a3382b4104eb7324c9e7f3fc1ce3c21065f4
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-09 16:37:44 -07:00
Sriharsha Allenki
dd42da7131 usb: dwc3: Fix enumeration failure with reset during transfers
If the host initiates a BUS reset when SETUP packet
is in progress, it is possible that the trb_enqueue
is set to 1 and ep0_bounced is set to true in handling
the SETUP packet which was interrupted with the BUS reset.

With the trb_enqueue set to 1, instead of the first TRB
the second TRB is queued but the START_TRANSFER is issued
on the first TRB which does not have HWO is set leading
to the enumeration failure, since there is no available
TRB to handle the SETUP packet from the host.

Fix this by resetting the trb_enqueue and ep0_bounced to
prevent the enumeration failure.

Change-Id: I73a4ca0a970124714acc511ab507d1411d197709
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-09-09 15:51:53 -07:00
qctecmdr
7db752bb33 Merge "scsi: ufs: Put hba into LPM during clk gating" 2020-09-09 15:28:48 -07:00
qctecmdr
7ba2cebcdd Merge "msm: kgsl: Make kgsl_iommu_clocks list dynamic" 2020-09-09 15:28:47 -07:00
qctecmdr
ff7c2f8520 Merge "arm64: defconfig: add trusted touch support to GKI defconfig" 2020-09-09 15:28:47 -07:00
qctecmdr
fb09ecb9fd Merge "interconnect: qcom: Enable QoS for Shima" 2020-09-09 15:28:47 -07:00
qctecmdr
784fff0d1b Merge "dt-bindings: iio: Add IIO channel numbers for SMB1398" 2020-09-09 15:28:46 -07:00
qctecmdr
5765b29efd Merge "pstore: Register pstore reserved memory into Minidump" 2020-09-09 15:28:45 -07:00
Mike Tipton
bef98c8f7f clk: qcom: clk-rpmh: Add div_clk1 for Lahaina
Add div_clk1 for Lahaina.

Change-Id: Id5f3121445dd088ef42e4e967444fe03e87f6795
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-09-09 12:32:43 -07:00
Mike Tipton
c211ed1738 dt-bindings: clock: Add rpmh_div_clk1 clock
Add rpmh_div_clk1 clock bindings.

Change-Id: I3852b893c3de60d402f4bd9c66da8d34a7a9bffc
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2020-09-09 12:31:46 -07:00
qctecmdr
98f70edf6a Merge "pstore: Add support to cached pages" 2020-09-09 12:24:23 -07:00
qctecmdr
32eeccd006 Merge "soc: qcom: minidump: Add md_get_region function" 2020-09-09 12:24:23 -07:00
qctecmdr
a535d04680 Merge "defconfig: msm: Enable QCOM_INITIAL_LOGBUF for lahaina" 2020-09-09 12:24:22 -07:00
Subbaraman Narayanamurthy
1869fba86a ANDROID: ABI: update allowed list for QCOM
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

2 Added functions:

  [A] 'function int led_classdev_flash_register_ext(device*, led_classdev_flash*, led_init_data*)'
  [A] 'function void led_classdev_flash_unregister(led_classdev_flash*)'

Bug: 168090628
Change-Id: I4006604af3341a67a253ca4184ed9daff2990cba
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-09-09 10:31:50 -07:00
Pankaj Gupta
50379951c4 msm: kgsl: Skip state change in idle check, if requested state is NONE
After scheduling the idle work for transitioning to either NAP or SLUMBER
it's possible that requested state can change to NONE if any new workload
comes before kgsl_idle_check is executed or it gets the device mutex.
If this happens, current code calls pwrctrl_change_state which fails as
this is not a valid transition. To prevent this, skip calling
pwrctrl_change_state if requested state is NONE.

Change-Id: Iae535c6e2a3230f9e7e210712990eeb405822f4f
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2020-09-09 21:31:42 +05:30
Mukesh Ojha
422d89f564 arm64: defconfig: Enable misc config for debugging for Lahaina/Shima
CONFIG_DEBUG_PREEMPT=y
CONFIG_PANIC_ON_DATA_CORRUPTION=y
CONFIG_PM_DEBUG=y
CONFIG_DEBUG_RWSEMS=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_WQ_WATCHDOG=y

Enable above for debug builds on Lahaina/Shima, to help debugging issues
related to sleep in atomic context, data corruption, suspend-resume,
lock(mutex,rwsem), workqueue lockup etc.

Change-Id: Ibf0a88f91bc4009677fab8ea57fef11b62958170
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-09-09 08:04:20 -07:00
Ashish Chavan
97be5fdd25 power: battery: Fix typo for cp_slave channel name
Fix typo for cp_slave channel name "current capability"
--> "current_capability".

Change-Id: I2135e409a80195e8cd4a8353e3ace125bd875e62
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-09-09 18:53:02 +05:30
qctecmdr
6c4205c34a Merge "pci: msm: Read clkreq override bit irrespective of rpmsg_send status" 2020-09-09 06:09:28 -07:00
qctecmdr
392f7fcbff Merge "mmc: sdhci-msm: Add suspend late cb" 2020-09-09 06:09:27 -07:00
qctecmdr
c47731c62f Merge "msm: kgsl: Toggle loop_en while disabling gx gdsc" 2020-09-09 06:09:26 -07:00
qctecmdr
0acb956082 Merge "mailbox: msm_qmp: Add msgram readback" 2020-09-09 06:09:25 -07:00
qctecmdr
18ce75644f Merge "drivers: thermal: notify at least one thermal zone if no trips are violated" 2020-09-09 06:09:25 -07:00
qctecmdr
3d81a8ffad Merge "USB: Move MBIM interface related IOCTLs definition to uapi directory" 2020-09-09 06:09:24 -07:00
qctecmdr
e41274f413 Merge "msm: kgsl: Disable stall on fault for GMU context bank" 2020-09-09 06:09:23 -07:00
qctecmdr
ffa0965a61 Merge "Revert "msm: pcie: add support to manage PCIe PHY PLL block"" 2020-09-09 06:09:23 -07:00
qctecmdr
6022ecf539 Merge "soc: qcom: add disable/enable SPSS SSR ioctl()" 2020-09-09 06:09:22 -07:00
Young Hwan Kwak
4ee25aa27f msm: kgsl: Show max gpu temperature
Parse the thermal zone names from gpu DT to get each zone's temperature
and print the maximum temperature among them in sysfs.

CRs-Fixed: 2765368
Change-Id: I37767d1bf9a8d4887dfcbad56ebdf17d27e4e465
Signed-off-by: Young Hwan Kwak <ykwak@codeaurora.org>
2020-09-09 22:07:18 +09:00
Young Hwan Kwak
ccb168b233 msm: kgsl: Fix permission in /sys/kernel/gpu/
Set read permission for sysfs nodes in /sys/kernel/gpu/ to read the
value appropriately.

CRs-Fixed: 2765368
Change-Id: Iba74b783c47e5a3bd0c0546cb5103f5fb705f74b
Signed-off-by: Young Hwan Kwak <ykwak@codeaurora.org>
2020-09-09 22:07:18 +09:00
Saurabh Sahu
f0597674ab clk: qcom: smd-rpm: Add panic notifier in HOLI
Add panic notifier support to stop bimc logging
in HOLI.

Change-Id: I3721ccf2de5762033b37defa021f85914234e684
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-09-09 17:32:08 +05:30
Saurabh Sahu
7a50161e54 dt-bindings: clock: qcom: Add bimc_freq_log id for HOLI
Add the bimc_freq_log id for requesting bimc stop
logging in HOLI.

Change-Id: I65f01edcacb67db7af4a66a2603e506a211d2ac9
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
2020-09-09 17:32:07 +05:30
Xin Long
3a3ba4b7dd UPSTREAM: udp: initialize is_flist with 0 in udp_gro_receive
Without NAPI_GRO_CB(skb)->is_flist initialized, when the dev doesn't
support NETIF_F_GRO_FRAGLIST, is_flist can still be set and fraglist
will be used in udp_gro_receive().

So fix it by initializing is_flist with 0 in udp_gro_receive.

Fixes: 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167707933
Change-Id: Icd2977dfb7506ce0f83d88f52184aa282bc2cac3
(cherry picked from commit bde1b56f898ca8112912d7b36e55e1543b3be0cf)
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-09 08:48:11 +00:00
Steffen Klassert
88ca8b3fc2 UPSTREAM: udp: Support UDP fraglist GRO/GSO.
This patch extends UDP GRO to support fraglist GRO/GSO
by using the previously introduced infrastructure.
If the feature is enabled, all UDP packets are going to
fraglist GRO (local input and forward).

After validating the csum,  we mark ip_summed as
CHECKSUM_UNNECESSARY for fraglist GRO packets to
make sure that the csum is not touched.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167707933
Change-Id: I7756cb47212713efde64a246a42c88d0b0f5521a
(cherry picked from commit 9fd1ff5d2ac7181844735806b0a703c942365291)
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-09 08:48:03 +00:00
Steffen Klassert
02803b1ce4 UPSTREAM: net: Support GRO/GSO fraglist chaining.
This patch adds the core functions to chain/unchain
GSO skbs at the frag_list pointer. This also adds
a new GSO type SKB_GSO_FRAGLIST and a is_flist
flag to napi_gro_cb which indicates that this
flow will be GROed by fraglist chaining.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: 167707933
Change-Id: I4bb29cfcd13ccb48871070bf94ea5b87160d65d4
(cherry picked from commit 3a1296a38d0cf62bffb9a03c585cbd5dbf15d596)
Signed-off-by: Hyunsoon Kim <h10.kim@samsung.com>
2020-09-09 08:47:55 +00:00