Commit Graph

820817 Commits

Author SHA1 Message Date
Vivek Golani
80034cbe85 diag: Update log and msg mask code ranges
Modify log and msg mask code ranges to reflect
latest requirements.

Change-Id: I2f8effa8c727edc5872ec59e45a1d28427340932
Signed-off-by: Vivek Golani <vgolani@codeaurora.org>
2021-05-06 11:38:46 +05:30
Rahul Shahare
df22d1d28f ARM: defconfig: Enable config for msm8937_32go
Enable config to support SHIPPING_API_LEVEL 30 for msm8937_32go

Change-Id: Ie132b141e5a2cde2f7f0f498e084da40540f210d
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-05-05 02:35:31 -07:00
Rohith Kollalsi
bdb11d8299 usb: gadget: f_cdev: Fix use after free of port in f_cdev
With the configfs filesystem it’s possible to manipulate kernel
object by creating/deleting folders into /config path. Here port
object is created by a mkdir and leads to allocate this object,
while the rmdir system call leads to free this object.
If one thread does these two operations of creation and deletion
of the folder and one tries to open it, it can lead to a
race condition where port object can be freed by the time
it is used in f_cdev_open leading to use after free error.

Fix this by using embedded struct device and the refcounting
mechanism built-in which increases and decreases refcount upon
creation and deletion of port and port will be freed when
reference count is zero ensuring that "port" object survives
until the last user releases it.

Change-Id: I88701ef161c9f3215631da81c3a8d4c980d12b25
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-05-05 12:33:54 +05:30
qctecmdr
ba67f85742 Merge "defconfig: arm64: Enable CONFIG_HID_NINTENDO for QM215" 2021-05-04 08:31:58 -07:00
Swetha Chikkaboraiah
d4a1fd0438 defconfig: arm64: Enable CONFIG_HID_NINTENDO for QM215
Enable CONFIG_HID_NINTENDO for QM215.

Change-Id: I8b9c40a25e65951a6c9a663ca781925df4613e93
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2021-05-04 03:54:40 -07:00
Vishnu Satheesh
ecf7c1a982 defconfig: arm: Enable CONFIG_HID_NINTENDO for QM215
Enable  CONFIG_HID_NINTENDO for QM215.

Change-Id: Ib361b37e77e309cd994216e6bd6acb459d095689
Signed-off-by: Vishnu Satheesh <vsathees@codeaurora.org>
2021-05-04 03:53:31 -07:00
qctecmdr
c2529328d4 Merge "clk: qcom: gcc: Change rate max values for SDM439" 2021-05-04 03:43:38 -07:00
Rahul Shahare
1c2a32d57c defconfig: Enable config for msm8937_32
Enable config to support SHIPPING_API_LEVEL 30 for msm8937_32.

Change-Id: I796eb45d0d866851e26eab62aa28b7d52907127e
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-05-04 00:54:08 -07:00
qctecmdr
9224d6add1 Merge "USB: composite: Increase the IN endpoint buffer allocation" 2021-05-03 19:37:19 -07:00
Nirmal Abraham
9c4a9740fc fbdev: msm: Handle rotator init failure correctly
In case 'mdss_rotator_req_init' function fails, the
error handling code frees the 'req' struct which
is not yet allocated. Correct this error scenario
by freeing the 'req' struct only for cases where it
is already allocated.

Change-Id: If9089c59497fef628528e6a462eb5a4699453214
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
2021-05-04 06:42:00 +05:30
qctecmdr
a495cc04f0 Merge "leds: qpnp-flash-v2: Add support to control flash ramp time" 2021-05-03 05:38:35 -07:00
Jann Horn
dadb44ac61 tty: Fix ->pgrp locking in tiocspgrp()
tiocspgrp() takes two tty_struct pointers: One to the tty that userspace
passed to ioctl() (`tty`) and one to the TTY being changed (`real_tty`).
These pointers are different when ioctl() is called with a master fd.

To properly lock real_tty->pgrp, we must take real_tty->ctrl_lock.

This bug makes it possible for racing ioctl(TIOCSPGRP, ...) calls on
both sides of a PTY pair to corrupt the refcount of `struct pid`,
leading to use-after-free errors.

Fixes: 47f86834bb ("redo locking of tty->pgrp")
CC: stable@kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I0dee7d6745ff1e740de5f8008da63bc9a3c55d0d
Git-commit: 54ffccbf053b5b6ca4f6e45094b942fab92a25fc
Git-repo: https://android.googlesource.com/kernel/msm
Signed-off-by: urevanth <urevanth@codeaurora.org>
2021-05-02 19:37:18 +05:30
Rajesh Bharathwaj
e07f30078f max31760: add support for additional registers
Adding support for register writes and values to change the duty
cycle of the fan.

Change-Id: I91efd154e9490c4dc1ecc8f84890fc1ef1eaf307
Signed-off-by: Rajesh Bharathwaj <rajeshbharathwaj@codeaurora.org>
2021-04-30 12:03:39 -07:00
qctecmdr
f01334078c Merge "ARM: decompressor: avoid speculative prefetch from protected regions" 2021-04-30 06:55:47 -07:00
Jeff Vander Stoep
a2f0b097d5 Revert "ANDROID: security,perf: Allow further restriction of perf_event_open"
Unfork Android.

This reverts commit 8e5e42d5ae.

Perf_event_paranoid=3 is no longer needed on Android. Access control
of perf events is now done by selinux. See:
https://patchwork.kernel.org/patch/11185793/.

Bug: 120445712
Bug: 137092007
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Change-Id: Iba493424174b30baff460caaa25a54a472c87bd4
Git-commit: 025a1ee618
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-04-30 00:21:50 -07:00
Sujeet Kumar
570c1b018f USB: composite: Increase the IN endpoint buffer allocation
Some UDC may require allocation of some extra bytes for
TX buffer due to hardware requirement. Add necessary
changes for the same.

Change-Id: Ia0ec21bbbe7d514f840f482d0e063559d4231338
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2021-04-29 22:45:52 -07:00
Vijayavardhan Vennapusa
c8ce252f77 USB: f_fs: Avoid NULL pointer dereference during epfile_io()
If composition switch happens while epfile_io() is in progress,
there is a chance that gadget pointer is accessed after unbind(),
which could be NULL. This could cause accessing NULL pointer and
results in panic. Fix the issue by accessing member variables from
local copy instead of directly accessing from ffs->gadget.

Change-Id: Iec61725da9c82e8c06e66acb8a6bdbc98ff9444a
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-04-29 22:45:38 -07:00
Vijayavardhan Vennapusa
500a177d21 USB: gadget: f_fs: Allocate extra buffer for IN endpoint
USB AXI prefetch requires additional 256 bytes than actual required
buffer size for USB IN endpoint. But Currently driver is allocating
for USB OUT endpoint. Hence fix this by allocating extra buffer for
USB IN endpoint only.

Change-Id: I3c2d299d8dce3d826b153856e2cd8366b33a2dd6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-04-29 22:45:20 -07:00
ChandanaKishori Chiluveru
a8cc313633 USB: f_serial/f_acm: Increase the IN endpoint buffer allocation
Some UDC may require allocation of some extra bytes for
the TX buffer due to hardware requirement. Add necessary
changes for the same.

Change-Id: I06bc5e5bbf154e335868bb65158bd4e03ab855e9
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-04-29 22:45:07 -07:00
ChandanaKishori Chiluveru
a3507e550d USB: f_fs: Increase the IN endpoint buffer allocation
Some UDC may require allocation of some extra bytes for
TX buffer due to hardware requirement. Add necessary
changes for the same.

Change-Id: I186cfc876f52e694113b895dfc4044948cb1fb2d
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2021-04-29 22:42:01 -07:00
Jishnu Prakash
56cf22060a leds: qpnp-flash-v2: Add support to control flash ramp time
Add device tree properties "qcom,ramp-up-step" and
"qcom,ramp-down-step", to configure the time steps for
flash ramp up and ramp down.

Change-Id: I80ff9394ab4af29398522a1abbaba991b67db918
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2021-04-29 11:41:05 +05:30
qctecmdr
ed3e23c18b Merge "msm: vidc_3x: correct the flags set for bus mode" 2021-04-28 18:57:21 -07:00
qctecmdr
8a3b3586dc Merge "defconfig: msm8937_64: Disable BUILD_ARM64_APPENDED_DTB_IMAGE flag" 2021-04-28 18:57:21 -07:00
qctecmdr
5098e5133c Merge "defconfig: msm8937_32: Disable BUILD_ARM64_APPENDED_DTB_IMAGE flag" 2021-04-28 18:57:21 -07:00
qctecmdr
e480ca1a7e Merge "msm: vidc_3x: Correct the arguments type to align with format string" 2021-04-28 18:57:20 -07:00
Paras Nagda
8439917425 msm: vidc_3x: Correct the arguments type to align with format string
Correct the arguments type to align with format string(%pK) in printk
statements. Crash issue with data abort is seen because of this, use
&binfo->smem[i] instead of binfo->smem[i].

Change-Id: Ie595f402aa0427694a9e7e3477f81d626224d956
Signed-off-by: Paras Nagda <pnagda@codeaurora.org>
2021-04-28 07:05:39 -07:00
Paras Nagda
a76cb352e4 msm: vidc_3x: correct the flags set for bus mode
Currently the flags which are set based on the
property read on bus mode are not correct, as
a result of which the Venus buses are not voted
correctly and are always set to 0.

Initializing the flag based on the above read
will make the Venus buses to vote correctly and no
issue will be seen when the video is suspended
via power key press.

Change-Id: I0675f95267b4fe4a14138cbc4258282f81c52886
Signed-off-by: Paras Nagda <pnagda@codeaurora.org>
2021-04-28 02:40:44 -07:00
qctecmdr
fdd71b0792 Merge "diag: Use valid data_source for a valid token" 2021-04-28 02:33:54 -07:00
qctecmdr
7f8b1fd664 Merge "diag: Prevent out of bound write while sending dci pkt to remote" 2021-04-28 02:33:53 -07:00
Rahul Shahare
d025e33dcd defconfig: msm8937_32: Disable BUILD_ARM64_APPENDED_DTB_IMAGE flag
Add support to compile the kernel without the dtbs appended to it.
All the dtbs are concatenated to form dtb.img. Boot image with header
version 2 will now have this dtb.img added towards the end at an offset.

Change-Id: I0538d7744f1c7a8ef26885c1bb4277000e98146e
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-04-28 00:52:25 -07:00
Rahul Shahare
df49925cdc defconfig: msm8937_64: Disable BUILD_ARM64_APPENDED_DTB_IMAGE flag
Add support to compile the kernel without the dtbs appended to it.
All the dtbs are concatenated to form dtb.img. Boot image with header
version 2 will now have this dtb.img added towards the end at an offset.

Change-Id: I487e43861d4dcde0b0c35213a254af46d1e9aa50
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-04-28 00:52:14 -07:00
Kyle Yan
dc880ca423 soc: qcom: pil: Reuse carveout region for mdt header
Currently we allocate a new dma region for our image headers to pass
into TZ for image verification. Instead reuse the previously allocated
region for the main firmware body to store the image header to avoid
having to allocate more memory than needed.

Change-Id: I1e50df2b417d9823c4e75f28134a3f9e078463aa
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2021-04-28 10:51:50 +05:30
Chetan C R
c285a7644d clk: qcom: gcc: Change rate max values for SDM439
Changes vdd_nominal rate max values for csi clocks
mapping the frequency table.

Change-Id: I0ba1d9217344edef1cdfaa2754399a6af8a80f4b
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2021-04-28 00:09:28 +05:30
Rahul Shahare
dda0a79f5c defconfig: msm8937_32go: Disable BUILD_ARM64_APPENDED_DTB_IMAGE flag
Add support to compile the kernel without the dtbs appended to it.
All the dtbs are concatenated to form dtb.img. Boot image with header
version 2 will now have this dtb.img added towards the end at an offset.

Change-Id: Iaae15939274eb15599f96add327873ad6a07c5f5
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2021-04-27 02:16:13 -07:00
qctecmdr
bc4eb225fb Merge "qseecom: Update correct parameters before sending to smcinvoke" 2021-04-26 16:12:13 -07:00
Anmolpreet Kaur
e6b52172a1 qseecom: Update correct parameters before sending to smcinvoke
smcinvoke expects result in scm call resp.ret[1] and type in ret[0],
while qseecom expects result in ret[0] and type in ret[1]. To simplify
API interface and code changes in smcinvoke, here internally switch
result and resp_type.

Change-Id: I925ff08e370ed9b7935b81c97a3aa20c783a5c45
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2021-04-26 05:05:51 -07:00
qctecmdr
c4a354f291 Merge "msm: kgsl: Add A504 GPU support for SDM429" 2021-04-26 00:33:30 -07:00
qctecmdr
46ce72b895 Merge "i3c: i3c-master-qcom-geni: Force the xfer mode as DMA mode" 2021-04-24 14:42:41 -07:00
Jeya R
b76794ae20 msm: ADSPRPC: Add extra checks for Unsigned request
Added extra checks to reject session request
when third party applications spawn signed PD.

Change-Id: I9d975cc29113ff651b543fbe765feea3b11fbe94
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-04-23 12:42:35 -07:00
qctecmdr
8ecfbf8329 Merge "defconfig: Enable default-key driver for msm8937_64" 2021-04-23 05:31:08 -07:00
qctecmdr
2ea3f9fdd4 Merge "defconfig: Enable default-key driver for msm8937_32" 2021-04-23 05:31:08 -07:00
qctecmdr
f4196c31e3 Merge "config: enable rmnet_data, msm_rmnet_bam driver" 2021-04-23 05:31:08 -07:00
qctecmdr
b190a86417 Merge "msm: mdss: Fix race condition while iommu mapping from DSI flow" 2021-04-23 05:31:02 -07:00
Vandana Jain
9054a9c24b msm: camera: QM215 delay during power up sequence
Add a delay of 60ms for QM215 target during power up
sequence.

Change-Id: Ia9dc30bc83a307b636eb7c6a42bf9f04c1cc36aa
Signed-off-by: Vandana Jain <vandja@codeaurora.org>
2021-04-21 22:50:02 -07:00
qctecmdr
71aeb411c1 Merge "defconfig: Enable MSM8937 and SDM439 config" 2021-04-21 19:55:05 -07:00
qctecmdr
add45a7b90 Merge "cnss2: Add CNSS_BUS_EVENT to report bus info" 2021-04-21 19:55:05 -07:00
qctecmdr
b78aef07f9 Merge "regulator: qpnp-lcdb: Add n_voltages property for LCDB regulators" 2021-04-21 19:55:04 -07:00
qctecmdr
0bc230b194 Merge "drivers: rpmsg: fix to avoid dump stack in rpm-smd driver" 2021-04-21 19:55:04 -07:00
qctecmdr
1fcf26baae Merge "spi: spi-geni-qcom: Set IOEB for MHI on SPI RX only case" 2021-04-21 19:55:04 -07:00
qctecmdr
2858be064f Merge "defconfig: Add Radio_IRIS related config parameter" 2021-04-21 19:55:03 -07:00