Commit graph

892,791 commits

Author SHA1 Message Date
qctecmdr
0d15c45237 Merge "NFC: Fix possible NULL pointer dereference issue" 2020-11-27 19:19:18 -08:00
qctecmdr
702f23085e Merge "HID: qvr: Fix for potential heap buffer overflow" 2020-11-27 19:19:17 -08:00
qctecmdr
6ceff19f16 Merge "msm: ADSPRPC: Register CMA region for minidump" 2020-11-27 15:17:16 -08:00
qctecmdr
93e8db43d7 Merge "mem-offline: increment the NR_ISOLATED_ANON stat properly" 2020-11-27 15:17:16 -08:00
qctecmdr
3c3949bc73 Merge "spi: spi-geni-msm: Return from resume without Touching Resources" 2020-11-27 15:17:16 -08:00
qctecmdr
caf87fb20b Merge "coresight-tmc-etr: Reuse the sysfs buf" 2020-11-27 15:17:15 -08:00
qctecmdr
22fe037afd Merge "power: smb1351: Remove parallel support for smb1351" 2020-11-27 15:17:15 -08:00
qctecmdr
192e6256eb Merge "input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS" 2020-11-27 15:17:15 -08:00
qctecmdr
4f677ecb1b Merge "msm: kgsl: Simplify GBIF halt sequence for stall-on-fault case" 2020-11-27 15:17:14 -08:00
qctecmdr
5cd90ec00f Merge "f2fs: prepare a waiter before entering io_schedule" 2020-11-27 11:18:50 -08:00
qctecmdr
c55f30b9e1 Merge "Bluetooth: Fix bluetooth enable failure for sdxlemur" 2020-11-27 11:18:49 -08:00
qctecmdr
7cd71280fa Merge "clk: qcom: gpucc: Add Support for GPUCC clock driver for YUPIK" 2020-11-27 11:18:49 -08:00
qctecmdr
7a220acaac Merge "mmc: sdhci-msm: Add dbg_state sysfs" 2020-11-27 11:18:49 -08:00
qctecmdr
7347dcaedb Merge "rpmsg: qcom_smd: allow smd create device if remote state is closing" 2020-11-27 11:18:48 -08:00
Taniya Das
d99d8106a2 clk: qcom: rpmh: Add support for PMIC clocks for YUPIK
Add the PMIC clocks required to be requested from clients via RPMH clock
driver.

Change-Id: I75b02fd3283ea0c459c6e28f06cfb45f04ece214
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-11-27 22:52:23 +05:30
Udipto Goswami
61a365b701 usb: gadget: Don't giveback request if ep command times out
Currently driver is giving back requests to gadget even if
the active transfers are not stopped. This might lead the
controller to access the requests which are already unmapped.
This change adds a judgement for giving back the requests to
gadget based on ep command status. Also if ep command times out
and the controller doesn't stop correctly  then mark it as an
error event and restart the USB session.

Change-Id: If32cddddf0544140d5bdf68df9144702e00dc758
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
2020-11-27 20:01:14 +05:30
Matthias Schiffer
8dceb5dc57 mmc: allow setting slot index via device tree alias
With GPIO, UART and others, allow specifying the device index via the
aliases node in the device tree.

On embedded devices, there is often a combination of removable (e.g.
SD card) and non-removable MMC devices (e.g. eMMC).
Therefore the index might change depending on

* host of removable device
* removable card present or not

This makes it difficult to hardcode the root device, if it is on the
non-removable device. E.g. if SD card is present eMMC will be mmcblk1,
if SD card is not present at boot, eMMC will be mmcblk0.

Alternative solutions like PARTUUIDs do not cover the case where multiple
mmcblk devices contain the same image. This is a common issue on devices
that can boot both from eMMC (for regular boot) and SD cards (as a
temporary boot medium for development). When a firmware image is
installed to eMMC after a test boot via SD card, there will be no
reliable way to refer to a specific device using (PART)UUIDs oder
LABELs.

The demand for this feature has led to multiple attempts to implement
it, dating back at least to 2012 (see
https://www.spinics.net/lists/linux-mmc/msg26586.html for a previous
discussion from 2014).

All indices defined in the aliases node will be reserved for use by the
respective MMC device, moving the indices of devices that don't have an
alias up into the non-reserved range. If the aliases node is not found,
the driver will act as before.

This is a rebased and cleaned up version of
https://www.spinics.net/lists/linux-mmc/msg26588.html .

Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
Git-commit: fa2d0aa96941e8dc347e49a04c75468e3002ee20_
Change-Id: I88c11705c8b66022e67b38a64bbc91625357a4bc
Based-on-patch-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lkml.org/lkml/2020/8/5/194
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2020-11-27 19:03:58 +05:30
Odelu Kukatla
18619895c6 interconnect: qcom: Add interconnect provider driver for Yupik
Introduce Qualcomm Yupik specific provider driver using the
interconnect framework.

Change-Id: I7de1d01415fab59ca8fd52a019ed15a49ae92491
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-11-27 17:12:41 +05:30
Kiran Gunda
9a93cf3280 input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS
The PON_HLOS module does not have the PON_DEBOUNCE_CTL register
to read the debounce delay configured for KPDPWR debounce.
This register is present in PON_PBS peripheral. Due to this the
software debounce control logic does not work as expected. To fix
this add support to read the PON_PBS peripheral from PON_HLOS
module by adding PON_PBS register as a second SPMI register base
in device tree node.

Change-Id: I15737a3dc6e8c99cd21531685c41ec1b2752b2ef
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-11-26 20:21:19 -08:00
Jishnu Prakash
0e663db261 dt-bindings: iio: Add support to read ADC5 current channels
Add scaling function required to read PMIC5 current ADC channels.

Change-Id: I686296a53093e58c6ce61bdfa55ba1940fdde873
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-11-27 09:23:42 +05:30
Yuanfang Zhang
ecda1097e2 defconfig: sdxlemur: add dependence defconfig
QDSS components depend on "CONFIG_CORESIGHT", so enable it.
Enable "STM_PROTO_BASIC“ to support to write log to /dev/coresight-stm.

Change-Id: Ib8770c9a5c72abe718c814766a0e2d9f4e091524
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-11-26 18:51:39 -08:00
Sahitya Tummala
1bbb4bd9c3 block: disable multi-page bvec
The multi-page bvec is resulting in the performance regression on
UFS devices in sequential read test for upto ~9%. Hence, disable
it as a workaround.

Change-Id: I1dc3f5e710fd1c9a76f32e3144a0081df755ea26
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2020-11-27 07:34:50 +05:30
Deepak Kumar Singh
694313785a rpmsg: qcom_smd: allow smd create device if remote state is closing
Some remote edge initial rx channel state is set to CLOSING, in this
scenario, allow creation of smd device for this edge.

Change-Id: I5937b8f2451630c9ecbe8627ab8817a4ce00e673
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-11-26 22:23:59 +05:30
Isaac J. Manjarres
8980e14194 iommu/arm-smmu: Update the implementation defined page number macros
The macros used for the page numbers do not accurately reflect the
offsets into the implementation defined register space, so update
them accordingly, and use page 7, or implementation defined page 5
for the ARM_SMMU_STATS_SYNC_INV_TBU_ACK register.

Change-Id: I14d2ce69d971f5ff93c2b2ca1f28ec5882169106
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-26 07:16:32 -08:00
Archana Sriram
edd53a943b ANDROID: ABI: update allowed list for QCOM
Update the android/abi_gki_aarch64_qcom with recent symbol additions.

Simple change and no need to update the .xml file, as no new symbol
addition.

Bug: 174275677
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Change-Id: Ic96fc5d11ab8d21fadbf85658e374e06dde14d0f
2020-11-26 13:58:16 +00:00
Charan Teja Reddy
3efde2bdaa mem-offline: increment the NR_ISOLATED_ANON stat properly
Increment NR_ISOLATED_ANON when isolate a page so that the same is
decremented when the page migration is successful or when adding pages
back to the lru.

Change-Id: I6879c0029342560496b79d649a77283c767ab08e
Fixes: aa3fa08df4 ("mem-offline: improve the effective utilization of movable zone")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-11-26 05:53:11 -08:00
Jishnu Prakash
2749076bc9 regulator: qpnp-amoled: add support to disable pulse skipping
On some customer display panels, touch ghosting can happen due to
a voltage ripple from amoled. Add support to fix this issue, following
HW recommendation, by disabling smart pulse skipping in module
probe and disabling forced PSM when AMOLED is enabled.

Change-Id: Id5886d4cdaf2aa58bc53a874041bfae90374fafb
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-11-26 19:15:33 +05:30
qctecmdr
efc64e396a Merge "interconnect: qcom: Add SM8150 interconnect provider driver" 2020-11-26 05:30:42 -08:00
qctecmdr
2c92659f9e Merge "scsi: ufs: Don't disable core_clk_unipro if the link is active" 2020-11-26 05:30:42 -08:00
qctecmdr
7952df3579 Merge "usb: dwc3: Revert Add support for nominal elastic buffer" 2020-11-26 05:30:42 -08:00
qctecmdr
8dd308c9f8 Merge "icnss2: Vote for chain1 regulators if RD card is 2x2" 2020-11-26 05:30:41 -08:00
qctecmdr
d994764fca Merge "platform: msm-geni-se: Correct unit for ICC optimization" 2020-11-26 05:30:41 -08:00
qctecmdr
77625e5815 Merge "PM / devfreq: export functions to allow freeing of pmu counters" 2020-11-26 05:30:41 -08:00
Sandeep Singh
ab98329826 cnss_utils: Compile wlan service file as part of GPL module
Compile wlan service file as part of GPL module.

Change-Id: If200d60c3b6c79041def9214329d0b2d2366038b
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-11-26 17:10:48 +05:30
Gaurav Kohli
bb9ec64214 soc: qcom: Initialize the irq count work item
Initialize the irq count work and also using irqf
no suspend flag during bark irq registration.

Change-Id: Ice72c4e5aff2bcdbba5d53eb1c839a2f86a2fd02
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2020-11-26 16:54:25 +05:30
Chanho Park
f25343b5e3 ANDROID: GKI: add allowed list for Exynosauto SoC
This patch adds GKI symbol list for Exynosauto SoC. We need to add
below 2 functions to GKI allowed symbol list.

snd_pcm_release_substream
- It's necessary from suspend/resume callback to clean current pcm stream.

unmap_kernel_range
- To unmap which are allocated by map_vm_area

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 void snd_pcm_release_substream(snd_pcm_substream*)'
  [A] 'function void unmap_kernel_range(unsigned long int, unsigned long int)'

Bug: 174288561
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: I71058d55bbe10f2ec075e4c2c40291e5357b13a7
2020-11-26 19:37:27 +09:00
Chanho Park
1bd1ff5c96 ANDROID: GKI: update allowed list for Exynosauto SoC
This patch adds to update GKI symbol list for Exynosauto SoC since
adding some drivers as GKI vendor modules.. To review the allowed list
easily, this patch does not include any newly additions of GKI symbols.

Bug: 174288561
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: Iac4910d0c43a07e24e5e4069e3d2f1b3378fce2b
2020-11-26 19:05:44 +09:00
Pavankumar Kondeti
0fe8be6276 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I8f521dfd31ff1c8cc1f16805e4e0ac78228d9383
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-11-26 14:53:46 +05:30
qctecmdr
6586778045 Merge "interconnect: qcom: Fix the issue with uninitialized variable for Holi" 2020-11-26 00:33:36 -08:00
qctecmdr
153234f920 Merge "iommu/dma: Fix cache maintenance in iommu_dma_map_sg()" 2020-11-26 00:33:36 -08:00
qctecmdr
d6613611d1 Merge "icc: dt-bindings: Update endpoint IDs for interconnects for YUPIK" 2020-11-26 00:33:35 -08:00
rbandi
2c4dadbbbc HID: qvr: Fix for potential heap buffer overflow
Value of sensor->calib_data_len could be changed between
the reads causing potential heap buffer overflow.
When a 0 length is passed to kzalloc, non-NULL pointer
is returned, but this pointer is invalid.

Change-Id: Ie6ed76f63f7a433728e2292222ba9716c3a02635
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-11-25 21:40:59 -08:00
Skylar Chang
67817299ff msm: ipa3: add new client enum
Add IPA_CLIENT_ETHERNET2 producer
and consumer support.

Change-Id: Ie63cf9003acd9b08bc2a4bce468d5649cf7610c1
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2020-11-25 15:35:57 -08:00
Mukesh Kumar Savaliya
d616f4060d spi: spi-geni-msm: Return from resume without Touching Resources
Return the captured value during TX and RX config from API
dmaengine_slave_config().

Also For LE VM case, do not touch resources like clocks, ICB vote,
GPIO etc. LE VM doesn't need resources to be controlled in TVM for
now till we have SOC infra support.

Change-Id: Iaa74b1b12a53da5764b1766188075349f3c42db8
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-11-26 02:01:27 +05:30
Narender Ankem
6569d1509b msm: dp: fix no audio over DP on device bootup
In case of DP interface as primary, if device boots up with
DP connected, external interface driver is unable to notify
audio events as audio codec is getting registered later.
Add change to send audio event once audio codec gets registered.

Change-Id: I8d630adf892714ff2eb4d6039dc058b54c425b83
Signed-off-by: Narender Ankem <nankam@codeaurora.org>
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2020-11-25 14:38:40 -05:00
Ravi Kumar Siddojigari
b61d4fc525 selinux: move ibpkeys code under CONFIG_SECURITY_INFINIBAND
Move cache based  pkey sid  retrieval code which was added
with  Commit "409dcf31" under CONFIG_SECURITY_INFINIBAND.
As its  going to alloc a new cache which impacts
low ram devices which was enabled by default.

Change-Id: I179a461386a09ebd58591fe835e3e0e0002db392
Suggested-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
2020-11-25 08:56:13 -08:00
Santosh Mardi
2055929c91 PM / devfreq: export functions to allow freeing of pmu counters
Memlat and compute governors are made immutable to avoid governor
switch at run time as the devices using these governors are tightly
coupled with hardware features. These governors allocate pmu counters
to count various events used in the algorithm. These counters are
allocated exclusively for algorithm's use.

This leaves limited counters available for other uses in the system
such as profiling in user space using perf tool. Add and export a
function in devfreq memlat governor to remove immutable flag to allow
governor switch, which in turn can free pmu counters.

Similarly add and export a function in rimps_memlat driver to
free pmu counters.

The intended use of these functions is to be called by test modules
to allow freeing of pmu counters at runtime.

Change-Id: I243a3201368d5a82aeaf820e775cdc1aecdfea07
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:54:03 -08:00
Santosh Mardi
3e84ab94dd drivers: soc: qcom: rimps_log: remove unused character while printing
Discard character printing in ipc log buf when get_next_logbuf()
returns count value less than the size argument.

Change-Id: I0ba388400c76c16da423a2ccb67d961ed31e87b4
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:53:58 -08:00
Santosh Mardi
69baed9a80 drivers: soc: qcom: rimps_memlat: update error checks
set_event will return NULL if event_id is not valid, the
caller is proceeding further without proper check for NULL.
Update pmu event setup function to check pevent for NULL.

From the RIMPS perspective, pmu counter IDs 0 and 1 correspond
to 64bit cycle counter with ID 0 representing low 32 bit and
ID 1 representing high 32bit, while the counter IDs from 2 to 7
correspond to remaining PMUs. At the time of storing pmu counter
values to RIMPS shared memory, the function store_event_val()
stores both low and high 32bit values of cycle counter when ID 0 is
passed as argument to pmu index, hence no need to handle ID 1
separately. Update logic accordingly to drop check for ID 1.

Change-Id: Idd345c825572710753f18306f565043347921216
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:53:50 -08:00
Kavya Nunna
abf26a22ad power: smb1351: Remove parallel support for smb1351
Remove parallel support for smb1351, as it is not
required for sdxnightjar.

Change-Id: I4b6b39fed9871559a4d8a200b1de9fb8784ead5e
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-11-25 18:51:54 +05:30