Commit graph

884,342 commits

Author SHA1 Message Date
Sriharsha Allenki
78635f8c56 usb: dwc3: gsi: Disable GSI wrapper on clearing run_stop
Disable GSI wrapper on clearing run_stop to prevent
unnecessary access by GSI wrapper because of the
pending GEVNTCOUNT on the GSI interrupters.

Change-Id: I8ee7fe25d33713487b74044a3a02deff0b7057aa
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-06-03 10:19:31 -07:00
Dinesh K Garg
a23a0f3316 qseecom: Enable APIs only when module is enabled
Enable QSEECom API only when this module is enabled. Otherwise,
it could give error.

Change-Id: I8f499528a4e7e531cd4763693aec86737845b528
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2020-06-03 10:18:02 -07:00
Vivek Aknurwar
7c45d69c58 clk: qcom: lahaina: Add pll test ctl regs
Add pll test ctl regs and general update for clk frequency
plan for Lahaina.

Change-Id: I0b08fff9990a6b7739bfbc4f8abed89d1be87cc1
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-06-03 08:50:37 -07:00
qctecmdr
e5734f3793 Merge "tty: hvc_console, fix crashes on parallel open/close" 2020-06-03 08:19:41 -07:00
qctecmdr
d140c01429 Merge "scsi: ufs: Don't update urgent bkops level when toggle auto bkops" 2020-06-03 08:19:41 -07:00
qctecmdr
2f215da25d Merge "msm: adsprpc: use persistent header buffers" 2020-06-03 08:19:40 -07:00
qctecmdr
d62ef4bce4 Merge "usb: phy: qmp: Call chain notifier for cable connect/disconnect" 2020-06-03 08:19:40 -07:00
qctecmdr
1e6d5a8199 Merge "input: qcom-hv-haptics: adjust T_LRA for auto RC CLK calibration case" 2020-06-03 08:19:39 -07:00
qctecmdr
832413cfd4 Merge "cnss2: Save PCIe GEN speed and width changed from device" 2020-06-03 04:18:28 -07:00
qctecmdr
321b58ecd6 Merge "msm: cvp: Support new HFI FLUSH MSG value" 2020-06-03 04:18:27 -07:00
qctecmdr
99dd2f918c Merge "msm: kgsl: Fix gpu boot ab vote" 2020-06-03 04:18:27 -07:00
qctecmdr
0a29599df4 Merge "dwc3-msm: Force USB speed as high speed if SS release lane is called" 2020-06-03 04:18:27 -07:00
qctecmdr
dab6ee24ea Merge "xhci-plat: Mark usb1 and usb2 devices as wakeup source" 2020-06-03 04:18:26 -07:00
Pavankumar Kondeti
bcc14b586c sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Ifffa83691bb23fe78dab5ae606939649d1b18777
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-03 14:18:27 +05:30
Pavankumar Kondeti
72a3871cee sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Icf76108b3ac676e7687848cb991ea9caf67962d0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-06-03 14:17:47 +05:30
qctecmdr
2e914316cc Merge "defconfig: holi: Enable GPU driver" 2020-06-03 00:09:15 -07:00
qctecmdr
ea7101c01d Merge "Revert "usb: dwc3: gadget: Enable SUSPEND event after CONNECT DONE"" 2020-06-03 00:09:15 -07:00
qctecmdr
7903d82108 Merge "i2c: i2c-msm-geni: Do I2C configurations during resume" 2020-06-03 00:09:14 -07:00
qctecmdr
205bf79fed Merge "defconfig: msm: enable remote debugger driver on Lahaina" 2020-06-03 00:09:14 -07:00
qctecmdr
63ca758bd8 Merge "msm: synx: support for external dma fence" 2020-06-03 00:09:13 -07:00
qctecmdr
f96edb22b9 Merge "msm: kgsl: Do not program CP_LPAC_ROQ_THRESHOLDS registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ff478e8d76 Merge "mhi: core: Do a null pointer check before reading debug registers" 2020-06-03 00:09:13 -07:00
qctecmdr
ab69e75913 Merge "mhi: core: expose soc reset and register dump debugfs entries" 2020-06-03 00:09:13 -07:00
qctecmdr
dfb22cb268 Merge ".gitignore: Ignore vendor devicetree directories from git" 2020-06-03 00:09:12 -07:00
Zhenhua Huang
de6408e036 proc: update perms of node "reclaim"
Other userspace apps like AppCOmpaction would like to use this node,
so update permissions.

Change-Id: Ic3e2b0ca4e75e4ae6fd610f67ec3308e17de2e09
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-06-02 21:31:23 -07:00
Minchan Kim
32981a4f09 add documentation about reclaim knob on proc.txt
This patch adds stuff about new reclaim field in proc.txt.

Change-Id: I1718fad12ec078e204e7a59769ce70fad7708756
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Patch-mainline: linux-mm @ 9 May 2013 16:21:29
[vinmenon@codeaurora.org: trivial merge conflict fixes]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-02 21:31:18 -07:00
Minchan Kim
c97020e651 mm: Support address range reclaim
This patch adds address range reclaim of a process.
The requirement is following as,

Like webkit1, it uses a address space for handling multi tabs.
IOW, it uses *one* process model so all tabs shares address space
of the process. In such scenario, per-process reclaim is rather
coarse-grained so this patch supports more fine-grained reclaim
for being able to reclaim target address range of the process.
For reclaim target range, you should use following format.

	echo [addr] [size-byte] > /proc/pid/reclaim
The addr should be page-aligned.

So now reclaim konb's interface is following as.

echo file > /proc/pid/reclaim
	reclaim file-backed pages only
echo anon > /proc/pid/reclaim
	reclaim anonymous pages only
echo all > /proc/pid/reclaim
	reclaim all pages
echo 0x100000 8K > /proc/pid/reclaim
	reclaim pages in (0x100000 - 0x102000)

Change-Id: I111131d31be1cfcfa246617b634a9a8bc4078098
Signed-off-by: Minchan Kim <minchan@kernel.org>
Patch-mainline: linux-mm @ 9 May 2013 08:39:01
[vinmenon@codeaurora.org: trivial merge conflict fixes]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-02 21:31:13 -07:00
Minchan Kim
6aee86262a mm: Enhance per process reclaim to consider shared pages
Some pages could be shared by several processes. (ex, libc)
In case of that, it's too bad to reclaim them from the beginnig.

This patch causes VM to keep them on memory until last task
try to reclaim them so shared pages will be reclaimed only if
all of task has gone swapping out.

This feature doesn't handle non-linear mapping on ramfs because
it's very time-consuming and doesn't make sure of reclaiming and
not common.

Change-Id: I7e5f34f2e947f5db6d405867fe2ad34863ca40f7
Signed-off-by: Sangseok Lee <sangseok.lee@lge.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Patch-mainline: linux-mm @ 9 May 2013 16:21:27
[vinmenon@codeaurora.org: merge conflict fixes + fix for ksm]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-02 21:31:03 -07:00
Hemant Kumar
860f9f889e mhi: core: Read transfer length from an event properly
When MHI Driver receives an EOT event, it reads xfer_len from the
event in the last TRE. The value is under control of the MHI device
and never validated by Host MHI driver. The value should never be
larger than the real size of the buffer but a malicious device can
set the value 0xFFFF as maximum. This causes driver to memory
overflow (both read or write). Fix this issue by reading minimum of
transfer length from event and the buffer length provided.

Change-Id: Iac095dfc85f70ffbb0fdb6cf9b2331469439e1ff
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-06-02 18:51:29 -07:00
Vivek Aknurwar
30cfcb0b9d clk: qcom: Add API to query corner voltage on given clk frequency
Add new API for clients to query corner voltage required by a
given frequency.

Change-Id: Ic469c36e016899d882ca084f74e0d2cb2020476c
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2020-06-02 18:37:48 -07:00
Hemant Kumar
78b46d3240 mhi: core: Fix out of bound channel id handling
If transfer completion event ring element includes invalid
channel id, driver continues in a while loop without
incrementing local event ring read pointer. This results
into infinite loop. Hence recycle the current element and
move to next event ring element.

Change-Id: I01c5f6aaa596fccc1472f5988f431c77ad13820b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-06-02 17:50:12 -07:00
Mayank Rana
e8e963cf35 dwc3: gadget: Don't block doorbell before halting USB controller
HPG suggests to block ringing of doorbell towards IPA GSI channel
after sending end transfer command and halting USB controller.
Blocking ringing of doorbell before halting USB controller may
result into USB wrapper accessing IPA GSI doorbell register on
setting run/stop next composition switch.

Change-Id: Ie644f8a5afb06bc57cde596d527ffdaa5cf14d35
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-06-02 15:11:13 -07:00
Shashank Babu Chinta Venkata
b2e67efdbf haven: touch: add touch notify tag for memory sharing
Add touch tag to memory lend notification
framework to enable trusted touch usecase.

Change-Id: I71e30ac413728bb7bce9868b45996725824e1e02
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-02 08:19:13 -07:00
Shashank Babu Chinta Venkata
a163768151 haven: touch: add IRQ label for trusted touch
Add IRQ label for irq lend framework for enabling
trusted touch usecase.

Change-Id: I6bc3fa5aaa8fd3a348fe9cf9883997e0138ed638
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-02 08:18:16 -07:00
Raghavendra Kakarla
691718eeb0 drivers: soc: qcom: handle system sleep activities
When all the CPUs in the Apps processor subsystem
are powered off, the system may also reduce its
bandwidth and shared resource requirements.

The resource requests are sent through the SMD
from APSS subsystem. The sleep requests also need
to be written to the rpm to save power. This driver
handles the last few steps when entering system sleep.

When notified, the next wakeup timer value is written
to the MPM to be setup in the always-on domain timer.

Change-Id: Iab9e38d602d4f84e506471ec0864d2c6fb550b42
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-02 08:03:33 -07:00
Raghavendra Kakarla
5f6b8a2b36 drivers: irqchip: Add support to make mpm as module
To make the mpm driver as module driver, register the
mpm driver to platform bus driver and create the
both gic and gpio irq domains in its probe function.
Also add the support for mpm pin to gic irq number
translation to send irq info to its parent gic domain.

Also add the select and match function support to gpio
chip domain to differentiate it from gic interrupt domain.

Change-Id: I433f3a5b895d0ca074bae986ad5154892d7a31c4
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-02 08:03:23 -07:00
Raghavendra Kakarla
67371f6ddc drivers: irqchip: mpm: Add QTI SoC interrupt controller
Add the mpm as the wakeup capable interrupt controller.

Change-Id: Ibd437ecd4efe4db134a0a026404f9b3170685db5
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-02 08:03:11 -07:00
Raghavendra Kakarla
308c399692 defconfig: Enable RPM_SMD driver for Holi
Enable RPM-SMD driver to APSS-RPM communication.

Change-Id: I988a99a3ac3b5016808826fa945d996d18af2ce0
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-02 08:02:58 -07:00
Sharath Chandra Vurukala
b0549b997c config: Enable TOS and DSCP target support
Enable TOS and DSCP target support for Lahaina target

Change-Id: If6fedcf2fdac65c8b572872c74eea7f7b9c68962
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
2020-06-02 18:33:04 +05:30
Yuanfang Zhang
7867be23f0 soc: qcom: dcc: avoid memory access violation
When *ppos + len is overflow, shrink len to max readable size
of SRAM.

Change-Id: I7c35433d384eb596a3f84b7ce13652f58166b40a
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-06-02 02:05:14 -07:00
Abir Ghosh
896b76e681 qbt: Add support for touch events from input framework
Add changes to get touch events from input framework
and perform AoI and radius filtering. AoI info is passed
by userspace  using ioctl.

Change-Id: Iabedc175d06f123d540d64806cbfb2ce31c3acfe
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-06-02 11:06:48 +05:30
himta ram
ebee7a4691 radio: RTC6226: remove the V4L2_CAP_DEVICE_CAPS cap as device_caps
V4l2 framewrok warn that Drivers must not change device_caps.
There is a device cap mismatch when querying device capabilities
for rtc6226 driver compared to cap filled at probe time.
Remove the V4L2_CAP_DEVICE_CAPS cap as device_caps during rtc6226
driver probe.

CRs-Fixed: 2691794
Change-Id: Ice3c0cbbf583762a500647f4a54f68f92d6586bb
Signed-off-by: himta ram <hram@codeaurora.org>
2020-06-01 21:56:21 -07:00
Naveen Yadav
7a0971c78d cpufreq: qcom: Set the register for GT Limits Management interrupt
Set the GT_IRQ_CLR bit of EPSS_INTR_CLEAR register to generate the EPSS
hardware GT interrupt when LMH throttle occurs.

Change-Id: I1ba6faf1a28f2d8d06c8d91f3046bb064263cb67
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-06-02 09:21:07 +05:30
Prakruthi Deepak Heragu
64e68fd529 aarch64: ABI: Update abi snapshot for enabling CFI in enforcement mode
Update the ABI snapshot as well as the whitelist when CFI_PERMISSIVE
flag is turned off to put CFI in enforcing mode.

Change-Id: If5fcff638231ae5bc081ea018134edde804b6c78
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-06-01 17:21:29 -07:00
Himateja Reddy
674eb6f800 msm: adsprpc: use persistent header buffers
Add IOCTL support for userspace to request kernel to enable
optimizations to reduce RPC overhead. This change specifically
enables the use of persistent header buffers, allocated during
process setup time and mapped on DSP in one call. Try using
persistent headers for RPC calls and fall back to allocating a new
buffer if all buffers are in use already.

Change-Id: If106679947adfaabb08055f3ad909711bc891656
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-06-01 16:10:29 -07:00
George Shen
d2241c8215 msm: cvp: Support new HFI FLUSH MSG value
Change is to support both deprecated FLUSH MSG value and new
value in kernel before new HFI FLUSH MSG value released.

Change-Id: I376bb58f6f9625e692a814836f276c9c98c164d4
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-06-01 15:33:31 -07:00
Harshdeep Dhatt
f44d1a49b9 msm: kgsl: Fix gpu boot ab vote
The ab is in megabytes and ddr_table is in kilobytes. So do
the conversion to fix the first ab vote out of slumber.

Also fix the ib vote units for the very first gmu boot.

Change-Id: I57efd80fa2de8262842475e02a363e0436a7b0f2
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-06-01 15:37:54 -06:00
Raghavendra Rao Ananta
dbc45f4c7c tty: hvc_console, fix crashes on parallel open/close
hvc_open sets tty->driver_data to NULL when open fails at some point.
Typically, the failure happens in hp->ops->notifier_add(). If there is
a racing process which tries to open such mangled tty, which was not
closed yet, the process will crash in hvc_open as tty->driver_data is
NULL.

All this happens because close wants to know whether open failed or not.
But ->open should not NULL this and other tty fields for ->close to be
happy. ->open should call tty_port_set_initialized(true) and close
should check by tty_port_initialized() instead. So do this properly in
this driver.

So this patch removes these from ->open:
* tty_port_tty_set(&hp->port, NULL). This happens on last close.
* tty->driver_data = NULL. Dtto.
* tty_port_put(&hp->port). This happens in shutdown and until now, this
  must have been causing a reference underflow, if I am not missing
  something.

Change-Id: Ie67e9bc9038a282a22f7a7baf7a4588549416725
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: stable <stable@vger.kernel.org>
Reported-and-tested-by: Raghavendra <rananta@codeaurora.org>
Link: https://lore.kernel.org/r/20200526145632.13879-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 24eb2377f977fe06d84fca558f891f95bc28a449
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-01 11:29:58 -07:00
Mohammed Nayeem Ur Rahman
8a580a4265 msm: adsprpc: Fix error code for invalid ioctl
Change error code returned to ENOTTY for invalid ioctl. Also,
limit the number of debug messages printed for non ion buffers
based on size.

Change-Id: Iabbb7a2482b4b5d00a039e90fe7636eba5ca0447
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-06-01 16:59:13 +05:30
Hu Wang
0ba1177569 defconfig: lahaina: Enable linux bridge
Enable linux bridge on QGKI builds to support multi-AP bridge mode.

Change-Id: Idd424e41544766e9c30293dd58ad7954988f05a9
Signed-off-by: Hu Wang <huw@codeaurora.org>
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
2020-06-01 15:54:46 +08:00