Commit Graph

1066174 Commits

Author SHA1 Message Date
Yakir Yang
1ac95182fa arm64: dts: rockchip: add HDMI DDC pinctrl for RK3399 HDMI
Default to enable the HDMI DDC internal module.

Change-Id: I14e4e3f0b5abb37eb0bb4451e2fcf48bceb3e3b2
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
2021-10-14 18:46:13 +08:00
Guochun Huang
b4a8234b53 drm/bridge: dw-mipi-dsi: make video and cmd mode option
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I6be01c00ddfd10d49aef3f44cb07406f679007ad
2021-10-14 15:40:39 +08:00
Jon Lin
4f59a48ae3 spi: rockchip_sfc: Select ROCKCHIP_MTD_VENDOR_STORAGE
Enable the corresponding vendor driver

Change-Id: Ica177c2d3abc92c560c4c86b9a6f23cffc85e6c1
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-10-14 15:40:04 +08:00
Wu Liang feng
cf58b928de usb: dwc3: fix PM resume error for rockchip platforms
We enable PM runtime auto suspend on rockchip platforms
(e.g. RK3399), it allows the DWC3 controller to enter
runtime suspend if usb cable detached. So if the dwc3
is already in PM runtime suspend, we don't need to do
anything in dwc3_suspend() and dwc3_resume() which
duplicated the same operations as dwc3_runtime_suspend()
and dwc3_runtime_resume().

This patch can help to avoid kernel panic if accessing
the DWC3 registers in dwc3_resume() when the DWC3 is in
PM runtime suspend and it's power domain is power off.

Kernel panic - not syncing: Asynchronous SError Interrupt
CPU: 1 PID: 707 Comm: Binder:236_2 Not tainted 5.10.43 #270
Hardware name: Rockchip RK3566 RK817 TABLET LP4X Board (DT)
Call trace:
 dump_backtrace+0x0/0x1c0
 show_stack+0x18/0x24
 dump_stack_lvl+0xc8/0x104
 dump_stack+0x18/0x5c
 panic+0x14c/0x390
 test_taint+0x0/0x30
 arm64_serror_panic+0x74/0x80
 do_serror+0xd8/0xf8
 el1_error+0x94/0x118
 el1_abort+0x3c/0x60
 el1_sync_handler+0x48/0x84
 el1_sync+0x8c/0x140
 dwc3_phy_setup+0x24/0x50c
 dwc3_core_init+0x50/0xf40
 dwc3_core_init_for_resume+0x64/0x274
 dwc3_resume_common+0x3c/0x274
 dwc3_resume+0x28/0x64
 dpm_resume+0x134/0x568

Change-Id: I63e734f51b05274251d8a88a664eee768568eb7b
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2021-10-14 15:34:12 +08:00
Marian-Cristian Rotariu
1257643ab1 UPSTREAM: usb: dwc3: ep0: fix NULL pointer exception
There is no validation of the index from dwc3_wIndex_to_dep() and we might
be referring a non-existing ep and trigger a NULL pointer exception. In
certain configurations we might use fewer eps and the index might wrongly
indicate a larger ep index than existing.

By adding this validation from the patch we can actually report a wrong
index back to the caller.

In our usecase we are using a composite device on an older kernel, but
upstream might use this fix also. Unfortunately, I cannot describe the
hardware for others to reproduce the issue as it is a proprietary
implementation.

[   82.958261] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a4
[   82.966891] Mem abort info:
[   82.969663]   ESR = 0x96000006
[   82.972703]   Exception class = DABT (current EL), IL = 32 bits
[   82.978603]   SET = 0, FnV = 0
[   82.981642]   EA = 0, S1PTW = 0
[   82.984765] Data abort info:
[   82.987631]   ISV = 0, ISS = 0x00000006
[   82.991449]   CM = 0, WnR = 0
[   82.994409] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000c6210ccc
[   83.000999] [00000000000000a4] pgd=0000000053aa5003, pud=0000000053aa5003, pmd=0000000000000000
[   83.009685] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[   83.026433] Process irq/62-dwc3 (pid: 303, stack limit = 0x000000003985154c)
[   83.033470] CPU: 0 PID: 303 Comm: irq/62-dwc3 Not tainted 4.19.124 #1
[   83.044836] pstate: 60000085 (nZCv daIf -PAN -UAO)
[   83.049628] pc : dwc3_ep0_handle_feature+0x414/0x43c
[   83.054558] lr : dwc3_ep0_interrupt+0x3b4/0xc94

...

[   83.141788] Call trace:
[   83.144227]  dwc3_ep0_handle_feature+0x414/0x43c
[   83.148823]  dwc3_ep0_interrupt+0x3b4/0xc94
[   83.181546] ---[ end trace aac6b5267d84c32f ]---

Change-Id: Iad43f5d46dfd81cabac976f7a65410ecc8a4fcd4
Signed-off-by: Marian-Cristian Rotariu <marian.c.rotariu@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210608162650.58426-1-marian.c.rotariu@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d00889080a)
2021-10-14 15:34:12 +08:00
Fengnan Chang
ed493d61fe FROMGIT: f2fs: fix to use WHINT_MODE
Since active_logs can be set to 2 or 4 or NR_CURSEG_PERSIST_TYPE(6),
it cannot be set to NR_CURSEG_TYPE(8).
That is, whint_mode is always off.

Therefore, the condition is changed from NR_CURSEG_TYPE to
NR_CURSEG_PERSIST_TYPE.

Bug: 202812742
Cc: Chao Yu <chao@kernel.org>
Fixes: d0b9e42ab6 (f2fs: introduce inmem curseg)
Reported-by: tanghuan <tanghuan@vivo.com>
Signed-off-by: Keoseong Park <keosung.park@samsung.com>
Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 011e0868e0
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/ dev)

Change-Id: Ic2a2b055e1f37f6263d8243527e83fe6bd4f7070
Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
2021-10-14 04:22:27 +00:00
Zefa Chen
2dd7f5f53f media: rockchip: cif fix issue for CONFIG_ROCKCHIP_IOMMU=n
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6914ac32bcef7c56eabe6bef9b9acce68615cbc7
2021-10-14 11:02:24 +08:00
Yiqing Zeng
8164b072b3 media: rockchip: cif: fix pm runtime error
at a high frame rate (120fps), the fast switch test has a higher probability of the following errors:
Failed to get runtime pm, -22

Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I6d9fdd86cc69368ba340ab7e43d2b6030a72ce8c
2021-10-14 11:02:17 +08:00
Zefa Chen
816f07cba2 media: rockchip: when cif triggers a reset, redefine the timer after reset
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I3dd12ba2d5f1a6d5a4f77e70b756aba9eaaea98f
2021-10-14 11:02:12 +08:00
Zefa Chen
c3cf62a20e media: rockchip: cif optimized buf rotation
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2e188e2709e20a31eb060ee752de31653eab99df
2021-10-14 10:57:44 +08:00
Zefa Chen
f1de907051 media: rockchip: cif: mipi csi2 do cru reset when stop
to avoid interruption signal after stop

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1a4e896c38a9c24b6d3d4ded93aaa5b75800c68d
2021-10-14 10:57:40 +08:00
Zefa Chen
9021727915 media: rockchip: cif fixed frame sequence bug in HDR mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6d1837bb6dd4ae2cbae397fb3a4cce404e5d3909
2021-10-14 10:23:48 +08:00
Paul E. McKenney
400df946fe UPSTREAM: rcu-tasks: Don't delete holdouts within trc_wait_for_one_reader()
[ Upstream commit a9ab9cce93 ]

Invoking trc_del_holdout() from within trc_wait_for_one_reader() is
only a performance optimization because the RCU Tasks Trace grace-period
kthread will eventually do this within check_all_holdout_tasks_trace().
But it is not a particularly important performance optimization because
it only applies to the grace-period kthread, of which there is but one.
This commit therefore removes this invocation of trc_del_holdout() in
favor of the one in check_all_holdout_tasks_trace() in the grace-period
kthread.

Bug: 202954022
Change-Id: I339f39776a96bcced4c7622d321e66f83299bcf7
Reported-by: "Xu, Yanfei" <yanfei.xu@windriver.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-13 13:56:35 -07:00
Paul E. McKenney
354472cec0 UPSTREAM: rcu-tasks: Don't delete holdouts within trc_inspect_reader()
[ Upstream commit 1d10bf55d8 ]

As Yanfei pointed out, although invoking trc_del_holdout() is safe
from the viewpoint of the integrity of the holdout list itself,
the put_task_struct() invoked by trc_del_holdout() can result in
use-after-free errors due to later accesses to this task_struct structure
by the RCU Tasks Trace grace-period kthread.

This commit therefore removes this call to trc_del_holdout() from
trc_inspect_reader() in favor of the grace-period thread's existing call
to trc_del_holdout(), thus eliminating that particular class of
use-after-free errors.

Bug: 202954022
Change-Id: Ib1e8eb51f74db89407462cadff1bc8c17565abb4
Reported-by: "Xu, Yanfei" <yanfei.xu@windriver.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-13 13:55:50 -07:00
Wu Liangqing
bc795307a7 arm64: dts: rockchip: add rk3588/rk3588s evb Board
Change-Id: I32134b86f3b8219e7422e8367073d34d424e6811
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-10-13 15:58:33 +08:00
Kever Yang
0b985f2930 irqchip/gic-v3-its: force to config its tables as no-inner-cache in rk3588
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I7275cbf011061f11968505a7570230d2d789e9fc
2021-10-13 10:57:10 +08:00
Herman Chen
6588d22c1d video: rockchip: mpp: Remove lock on session release
Move mpp_session_deinit out of the lock range.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I46c3aaeb96c67ed04630b0da0a71385546dd5e7c
2021-10-13 09:51:55 +08:00
Mark Tomlinson
2521995617 UPSTREAM: usb: max-3421: Prevent corruption of freed memory
commit b5fdf5c6e6 upstream.

The MAX-3421 USB driver remembers the state of the USB toggles for a
device/endpoint. To save SPI writes, this was only done when a new
device/endpoint was being used. Unfortunately, if the old device was
removed, this would cause writes to freed memory.

To fix this, a simpler scheme is used. The toggles are read from
hardware when a URB is completed, and the toggles are always written to
hardware when any URB transaction is started. This will cause a few more
SPI transactions, but no causes kernel panics.

Fixes: 2d53139f31 ("Add support for using a MAX3421E chip as a host driver.")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20210625031456.8632-1-mark.tomlinson@alliedtelesis.co.nz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 202859772
Change-Id: I55e4fd4609e7e0c68986bcf10718f486d2e55cad
2021-10-12 12:26:40 -07:00
Tao Huang
78d3a59474 arm64: rockchip_gki.config: Enable RK806
+CONFIG_MFD_RK806_SPI=m
+CONFIG_PINCTRL_RK806=m
+CONFIG_REGULATOR_RK806=m

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I39e31a0c4035ba1037389c8168e8cb5e0a7650a5
2021-10-12 14:50:23 +08:00
Tao Huang
48bd0779b6 arm64: rockchip_defconfig: Enable RK806
+CONFIG_PINCTRL_RK806=y
+CONFIG_MFD_RK806_SPI=y
+CONFIG_REGULATOR_RK806=y

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8e3d01dbdf4fe2dac050c29dee54e3b20379d931
2021-10-12 14:50:23 +08:00
shengfei Xu
94a2726fb4 mfd: rk806: Add RK806 support
The RK806 are a Power Management IC (PMIC) for multimedia
and handheld devices. They contains the following components:
- Regulators
- Pinctrl
- PowerKey

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Iee9c521d52c53752286238c93b39afb5eb32e9b2
2021-10-12 14:50:23 +08:00
wangting11
6fbdea5772 ANDROID: GKI: update xiaomi symbol list
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function unsigned long int try_to_free_mem_cgroup_pages(mem_cgroup*, unsigned long int, gfp_t, bool)'

Bug: 202691227
Signed-off-by: ting wang <wangting11@xiaomi.com>
Change-Id: I5274ab355cf01b29b2ec2953856855b4101d868d
2021-10-11 15:01:34 +00:00
Kever Yang
7cc2fcb4ca ANDROID: GKI: rockchip: Enable symbols for rk81x
Leaf changes summary: 1 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, 1 Added variable

1 Added variable:

  [A] 'class* power_supply_class'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I576b9d2ea7b62bd9c91257fa09ee8d2464634b58
2021-10-11 17:14:02 +08:00
Jon Lin
52b779b7f4 PCI: rockchip: dw: Initialize atu_base
Initialize the variable atu_base before using it.

Change-Id: Icc4df9c3401f16d838141440f206d41ac7c385f7
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-10-09 16:50:56 +08:00
Wyon Bi
011c042f60 arm64: dts: rockchip: rk3588: Add edp1 node
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I0b2f854d5a283a18c96bf77242cf119cb42800cf
2021-10-09 15:07:45 +08:00
Wyon Bi
1ba6338e22 arm64: dts: rockchip: rk3588s: Add edp0 node
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie3bf343524a958bb78842941bcb47f9e3cbe2262
2021-10-09 15:07:28 +08:00
William Wu
721f665968 arm64: dts: rockchip: dis u1 and u2 state for rk3588s dwc3 device
According the commit 729dcffd1e ("usb: dwc3: gadget: Add
support for disabling U1 and U2 entries"), it's necessary
to disable the U1 and U2 low power state to improve USB 3.0
performance for mass storage gadget and uvc gadget.

In addition, it can help to avoid the dwc3 wakeup failed
from U1 or U2 state when connect to the Host USB 3.0 interface.

android_work: sent uevent USB_STATE=CONNECTED
dwc3 fcc00000.dwc3: failed to send remote wakeup
dwc3 fcc00000.dwc3: wakeup failed --> -22
WARNING: CPU: 0 PID: 427 at drivers/usb/dwc3/gadget.c:319 dwc3_send_gadget_ep_cmd+0x198/0x93c
...
Call trace:
 dwc3_send_gadget_ep_cmd+0x198/0x93c
 dwc3_ep0_complete_status+0xe8/0x294
 dwc3_ep0_interrupt+0x2ac/0x3d4
 dwc3_process_event_entry+0x7c/0x610
 dwc3_process_event_buf+0x6c/0x374
 dwc3_thread_interrupt+0x38/0x64
 irq_thread_fn+0x34/0x88
 irq_thread+0x1a4/0x248
 kthread+0x13c/0x344
 ret_from_fork+0x10/0x30
dwc3 fcc00000.dwc3: failed to send remote wakeup
android_work: sent uevent USB_STATE=CONFIGURED

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I5993a3fceb79d59d276f6b909b17592fb36b6760
2021-10-09 14:56:12 +08:00
William Wu
892400358c arm64: dts: rockchip: dis u1 and u2 state for rk3568 dwc3 device
According the commit 729dcffd1e ("usb: dwc3: gadget: Add
support for disabling U1 and U2 entries"), it's necessary
to disable the U1 and U2 low power state to improve USB 3.0
performance for mass storage gadget and uvc gadget.

In addition, it can help to avoid the dwc3 wakeup failed
from U1 or U2 state when connect to the Host USB 3.0 interface.

android_work: sent uevent USB_STATE=CONNECTED
dwc3 fcc00000.dwc3: failed to send remote wakeup
dwc3 fcc00000.dwc3: wakeup failed --> -22
WARNING: CPU: 0 PID: 427 at drivers/usb/dwc3/gadget.c:319 dwc3_send_gadget_ep_cmd+0x198/0x93c
...
Call trace:
 dwc3_send_gadget_ep_cmd+0x198/0x93c
 dwc3_ep0_complete_status+0xe8/0x294
 dwc3_ep0_interrupt+0x2ac/0x3d4
 dwc3_process_event_entry+0x7c/0x610
 dwc3_process_event_buf+0x6c/0x374
 dwc3_thread_interrupt+0x38/0x64
 irq_thread_fn+0x34/0x88
 irq_thread+0x1a4/0x248
 kthread+0x13c/0x344
 ret_from_fork+0x10/0x30
dwc3 fcc00000.dwc3: failed to send remote wakeup
android_work: sent uevent USB_STATE=CONFIGURED

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I7887c782a0320abe768079b098eab17ee846dcf6
2021-10-09 14:55:56 +08:00
William Wu
bda4084ed7 arm64: dts: rockchip: dis u1 and u2 state for rk3399 dwc3 device
According the commit 729dcffd1e ("usb: dwc3: gadget: Add
support for disabling U1 and U2 entries"), it's necessary
to disable the U1 and U2 low power state to improve USB 3.0
performance for mass storage gadget and uvc gadget.

In addition, it can help to avoid the dwc3 wakeup failed
from U1 or U2 state when connect to the Host USB 3.0 interface.

android_work: sent uevent USB_STATE=CONNECTED
dwc3 fcc00000.dwc3: failed to send remote wakeup
dwc3 fcc00000.dwc3: wakeup failed --> -22
WARNING: CPU: 0 PID: 427 at drivers/usb/dwc3/gadget.c:319 dwc3_send_gadget_ep_cmd+0x198/0x93c
...
Call trace:
 dwc3_send_gadget_ep_cmd+0x198/0x93c
 dwc3_ep0_complete_status+0xe8/0x294
 dwc3_ep0_interrupt+0x2ac/0x3d4
 dwc3_process_event_entry+0x7c/0x610
 dwc3_process_event_buf+0x6c/0x374
 dwc3_thread_interrupt+0x38/0x64
 irq_thread_fn+0x34/0x88
 irq_thread+0x1a4/0x248
 kthread+0x13c/0x344
 ret_from_fork+0x10/0x30
dwc3 fcc00000.dwc3: failed to send remote wakeup
android_work: sent uevent USB_STATE=CONFIGURED

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic63ee7852fbe1bcb3563b6dec455c0aee53522f1
2021-10-09 14:55:42 +08:00
Guangming Cao
0a7cdb7fe4 ANDROID: Update symbol list for mtk
1. Generated with:
   BUILD_CONFIG=common/build.config.gki.aarch64 build/build_abi.sh --update

2. Leaf changes summary: 4 artifact changed (2 filtered out)
   Changed leaf types summary: 0 (2 filtered out) leaf type changed
   Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions
   Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 2 Added variables

   2 Added functions:
   [A] 'function int __traceiter_android_vh_iommu_iovad_alloc_iova(struct device *, struct iova_domain *, dma_addr_t, size_t )'
   [A] 'function int __traceiter_android_vh_iommu_iovad_free_iova(struct iova_domain *, dma_addr_t, size_t )'

   2 Added variables:
   [A] 'tracepoint __tracepoint_android_vh_iommu_iovad_alloc_iova'
   [A] 'tracepoint __tracepoint_android_vh_iommu_iovad_free_iova'

Bug: 201255968

Change-Id: I480fbbd4b7a37c31e073d4008dbfa633309101bf
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
2021-10-09 10:51:22 +08:00
Tao Huang
b2fcc4af16 arm64: rockchip_gki.config: Disable CONFIG_CIFS
GKI do not support CIFS.
See https://android-review.googlesource.com/c/kernel/common/+/1790207

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0aa50859802924fbbd9f83579eba49b775107035
2021-10-09 10:45:26 +08:00
Tao Huang
7cc25edbc3 arm64: rockchip_gki.config: Disable unused CONFIG_SLIP
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie0d09bc7550578cf189bebc5e321cb623404aae1
2021-10-09 10:35:14 +08:00
Guangming Cao
dccb021dc4 ANDROID: iommu: Add vendor hook to tracing iova alloc & free in iova_domain
Add struct (iova_domain *) in iova alloc & free vendor hook by create a new vendor hook.
Thus we can know the iova we are operating belongs to which iova domain.

Bug: 201255968

Change-Id: I7df419650af2e85a3b2b8c3d6995247694bdc953
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
2021-10-09 10:07:26 +08:00
Guangming Cao
befb2a75ab ANDROID: iommu: vendor_hook: remove the obsolete code
Remove the obsolete #if .. #else .. #endif

Bug: 201255968

Change-Id: I1e00f0ac0dfb30150fea6004b5da81e470fdce93
Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
2021-10-09 10:06:58 +08:00
Kever Yang
b01ae5f1b4 ANDROID: GKI: rockchip: Enable dummy_irq_chip for pcie
Leaf changes summary: 1 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

1 Added variable:

  [A] 'irq_chip dummy_irq_chip'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I9366d807c3041353af4b7304b481ac72d13fbb3b
2021-10-08 15:06:38 +08:00
Prasad Sodagudi
fc90aa522f ANDROID: tracing: fix register tracing spam on memcpy
Disable register read/write tracing for memcpy and memset
APIs to avoid flood of read/write trace events.

Bug: 202309221
Fixes: 4373261be0 ("ANDROID: tracing: Add generic flag for register tracing disable")
Change-Id: Ic860ee3a86b4664f3c5edd79a9c432dede87733e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2021-10-07 16:33:41 +00:00
Bart Van Assche
d5aea3dbfb BACKPORT: FROMGIT: scsi: ufs: core: Stop clearing unit attentions
Commit aa53f580e6 ("scsi: ufs: Minor adjustments to error handling")
introduced a ufshcd_clear_ua_wluns() call in
ufshcd_err_handling_unprepare(). As explained in detail by Adrian Hunter,
this can trigger a deadlock. Avoid that deadlock by removing the code that
clears the unit attention. This is safe because the only software that
relies on clearing unit attentions is the Android Trusty software and
because support for handling unit attentions has been added in the Trusty software.

See also https://lore.kernel.org/linux-scsi/20210930124224.114031-2-adrian.hunter@intel.com/

Note that, should apply "scsi: ufs: retry START_STOP on UNIT_ATTENTION" before
this patch, since this patch gives UNIT ATTENTION to scsi_execute(START_STOP).

Bug: 194712579
(cherry picked from commit edc0596cc0
        git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Link: https://lore.kernel.org/r/20211001182015.1347587-3-jaegeuk@kernel.org
Fixes: aa53f580e6 ("scsi: ufs: Minor adjustments to error handling")
Cc: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Change-Id: I73656b8b6773558dc7a552700d283c1ae6dc25f7
2021-10-06 15:57:59 +00:00
Jaegeuk Kim
2b411f1257 BACKPORT: FROMGIT: scsi: ufs: core: Retry START_STOP on UNIT_ATTENTION
Commit 57d104c153 ("ufs: add UFS power management support") made the UFS
driver submit a REQUEST SENSE command before submitting a power management
command to a WLUN to clear the POWER ON unit attention. Instead of
submitting a REQUEST SENSE command before submitting a power management
command, retry the power management command until it succeeds.

This is the preparation to get rid of all UNIT ATTENTION code which should
be handled by users.

Bug: 194712579
Link: https://lore.kernel.org/r/20211001182015.1347587-2-jaegeuk@kernel.org
(cherry picked from commit af21c3fd5b
    git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Cc: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Change-Id: I7e639d89ae9fbd5ff0f1b3a6e5cbe77682ebefc0
2021-10-06 15:57:52 +00:00
Kever Yang
f0ad57ddd7 ANDROID: GKI: rockchip: Enable symbols for rockchip-drm
Functions changes summary: 0 Removed, 0 Changed, 14 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

14 Added functions:

  [A] 'function int __drm_atomic_helper_disable_plane(drm_plane*, drm_plane_state*)'
  [A] 'function void drm_connector_list_update(drm_connector*)'
  [A] 'function dma_buf* drm_gem_dmabuf_export(drm_device*, dma_buf_export_info*)'
  [A] 'function int drm_gem_dmabuf_get_uuid(dma_buf*, uuid_t*)'
  [A] 'function int drm_gem_dumb_map_offset(drm_file*, drm_device*, u32, u64*)'
  [A] 'function int drm_gem_fb_afbc_init(drm_device*, const drm_mode_fb_cmd2*, drm_afbc_framebuffer*)'
  [A] 'function int drm_gem_fb_init_with_funcs(drm_device*, drm_framebuffer*, drm_file*, const drm_mode_fb_cmd2*, const drm_framebuffer_funcs*)'
  [A] 'function int drm_mode_create_tv_properties(drm_device*, unsigned int, const char* const*)'
  [A] 'function void drm_mode_prune_invalid(drm_device*, list_head*, bool)'
  [A] 'function drm_mode_status drm_mode_validate_driver(drm_device*, const drm_display_mode*)'
  [A] 'function drm_mode_status drm_mode_validate_size(const drm_display_mode*, int, int)'
  [A] 'function drm_mode_status drm_mode_validate_ycbcr420(const drm_display_mode*, drm_connector*)'
  [A] 'function unsigned long int drm_prime_get_contiguous_size(sg_table*)'
  [A] 'function drm_property* drm_property_create_object(drm_device*, u32, const char*, uint32_t)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9d72fe58cd354b4727e08d733b1c246aed2e48c0
2021-10-06 09:23:11 +02:00
Kever Yang
dfdc93d7c4 ANDROID: GKI: rockchip: Enable symbols for iommu
No symbols need updating.

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1bfcdb40193b021d0c19f81c407b78ff1bf09b35
2021-10-06 08:37:37 +02:00
Kever Yang
8846927a02 ANDROID: GKI: rockchip: Enable symbols for dwc2
Functions changes summary: 0 Removed, 0 Changed, 2 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

2 Added functions:

  [A] 'function void usb_hcd_unmap_urb_for_dma(usb_hcd*, urb*)'
  [A] 'function unsigned int usb_wakeup_enabled_descendants(usb_device*)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ibf2f79ee3fb4e8b77792cab766afcc998aaf963c
2021-10-06 08:30:13 +02:00
Kever Yang
c82b315c4b ANDROID: GKI: rockchip: Enable symbols for phy
Functions changes summary: 0 Removed, 0 Changed, 6 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

6 Added functions:

  [A] 'function void* devm_pci_remap_cfg_resource(device*, resource*)'
  [A] 'function int of_pci_get_max_link_speed(device_node*)'
  [A] 'function void pci_remove_root_bus(pci_bus*)'
  [A] 'function void pci_stop_root_bus(pci_bus*)'
  [A] 'function int usb_add_phy(usb_phy*, usb_phy_type)'
  [A] 'function int v4l2_querymenu(v4l2_ctrl_handler*, v4l2_querymenu*)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3a1461aa27120b2062289c303899d2ac0195139e
2021-10-05 19:57:39 +02:00
Kever Yang
c10e63b794 ANDROID: GKI: rockchip: Enable symbols for rockchip-opp
Functions changes summary: 0 Removed, 0 Changed, 3 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

3 Added functions:

  [A] 'function opp_table* dev_pm_opp_set_prop_name(device*, const char*)'
  [A] 'function int devfreq_event_get_event(devfreq_event_dev*, devfreq_event_data*)'
  [A] 'function int devm_devfreq_register_opp_notifier(device*, devfreq*)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id9576d47e09e887a9df4f94a485c8ac4c35ea39e
2021-10-05 19:34:23 +02:00
Kever Yang
54a33334de ANDROID: GKI: rockchip: Enable symbols for sdhci-arasan
Functions changes summary: 0 Removed, 0 Changed, 3 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

3 Added functions:

  [A] 'function int sdhci_pltfm_unregister(platform_device*)'
  [A] 'function void sdhci_set_power_and_bus_voltage(sdhci_host*, unsigned char, unsigned short int)'
  [A] 'function void sdhci_set_uhs_signaling(sdhci_host*, unsigned int)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1bdf263f03312a80e26e175106b9f244d4e4007a
2021-10-05 19:12:26 +02:00
Kever Yang
6276cc3982 ANDROID: GKI: rockchip: Enable symbols for devfreq
Functions changes summary: 0 Removed, 0 Changed, 6 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

6 Added functions:

  [A] 'function int devfreq_event_disable_edev(devfreq_event_dev*)'
  [A] 'function int devfreq_event_enable_edev(devfreq_event_dev*)'
  [A] 'function devfreq_event_dev* devfreq_event_get_edev_by_phandle(device*, const char*, int)'
  [A] 'function int devfreq_event_get_edev_count(device*, const char*)'
  [A] 'function devfreq_event_dev* devm_devfreq_event_add_edev(device*, devfreq_event_desc*)'
  [A] 'function int down_write_trylock(rw_semaphore*)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If4ca65ee44b961827f289a02a7458370a81e9154
2021-10-05 18:43:17 +02:00
Kever Yang
a195017de8 ANDROID: GKI: rockchip: Enable symbols for gpio-rockchip
Functions changes summary: 0 Removed, 0 Changed, 4 Added functions
Variables changes summary: 0 Removed, 0 Changed, 1 Added variable

4 Added functions:

  [A] 'function int __irq_alloc_domain_generic_chips(irq_domain*, int, int, const char*, irq_flow_handler_t, unsigned int, unsigned int, irq_gc_flags)'
  [A] 'function int irq_gc_set_wake(irq_data*, unsigned int)'
  [A] 'function irq_chip_generic* irq_get_domain_generic_chip(irq_domain*, unsigned int)'
  [A] 'function pinctrl_dev* of_pinctrl_get(device_node*)'

1 Added variable:

  [A] 'irq_domain_ops irq_generic_chip_ops'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: Ie572e071070d1949a105ea84fb906ba0b36bd140
2021-10-05 18:12:51 +02:00
Kever Yang
068f20142a ANDROID: GKI: rockchip: Enable symbol for pm-domain
Functions changes summary: 0 Removed, 0 Changed, 1 Added function
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function int pm_clk_add_clk(device*, clk*)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I503f715b2cf8f641a7b435dc7be1508c88489b76
2021-10-05 17:48:12 +02:00
Kever Yang
6cef9b2952 ANDROID: GKI: rockchip: Enable symbols for common clk
Functions changes summary: 0 Removed, 0 Changed, 1 Added function
Variables changes summary: 0 Removed, 0 Changed, 2 Added variables

1 Added function:

  [A] 'function clk* clk_register_mux_table(device*, const char*, const char* const*, u8, unsigned long int, void*, u8, u32, u8, u32*, spinlock_t*)'

2 Added variables:

  [A] 'const clk_ops clk_divider_ro_ops'
  [A] 'const clk_ops clk_mux_ro_ops'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I2b8d0f19b3069d3d6beea9b54241e0c6cfd4ab12
2021-10-05 15:11:03 +02:00
Kever Yang
fd41ec3b94 ANDROID: GKI: rockchip: Enable symbols for rtc-rk808
Functions changes summary: 0 Removed, 0 Changed (4066 filtered out), 2 Added functions
Variables changes summary: 0 Removed, 0 Changed (397 filtered out), 0 Added variables

2 Added functions:

  [A] 'function unsigned int _bcd2bin(unsigned char)'
  [A] 'function unsigned char _bin2bcd(unsigned int)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If6b62156f3b6e23e1347e3c2c3279d626f732080
2021-10-05 14:45:52 +02:00
Kever Yang
7827c05b00 ANDROID: GKI: rockchip: Enable symbol for panel-simple
Functions changes summary: 0 Removed, 0 Changed (4065 filtered out), 1 Added functions
Variables changes summary: 0 Removed, 0 Changed (397 filtered out), 0 Added variables

1 Added function:

  [A] 'function int of_get_drm_display_mode(device_node*, drm_display_mode*, u32*, int)'

Bug: 194515348
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0a6ae2f80c21c40396b2a1b163765f1101180ac9
2021-10-05 13:56:37 +02:00