Arnaud Pouliquen
ffdcf653d8
BACKPORT: tty: rpmsg: Fix race condition releasing tty port
...
The tty_port struct is part of the rpmsg_tty_port structure.
The issue is that the rpmsg_tty_port structure is freed on
rpmsg_tty_remove while it is still referenced in the tty_struct.
Its release is not predictable due to workqueues.
For instance following ftrace shows that rpmsg_tty_close is called after
rpmsg_tty_release_cport:
nr_test.sh-389 [000] ..... 212.093752: rpmsg_tty_remove <-rpmsg_dev_
remove
cat-1191 [001] ..... 212.095697: tty_release <-__fput
nr_test.sh-389 [000] ..... 212.099166: rpmsg_tty_release_cport <-rpm
sg_tty_remove
cat-1191 [001] ..... 212.115352: rpmsg_tty_close <-tty_release
cat-1191 [001] ..... 212.115371: release_tty <-tty_release_str
As consequence, the port must be free only when user has released the TTY
interface.
This path :
- Introduce the .destruct port tty ops function to release the allocated
rpmsg_tty_port structure.
- Introduce the .hangup tty ops function to call tty_port_hangup.
- Manages the tty port refcounting to trig the .destruct port ops,
- Introduces the rpmsg_tty_cleanup function to ensure that the TTY is
removed before decreasing the port refcount.
Fixes: 7c0408d805 ("tty: add rpmsg driver")
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20220104163545.34710-1-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I5616481fa97807c954f03cd1dfdff206605b65d3
(cherry picked from commit db7f19c0aa )
[Jiahang: Resolving type conflict in drivers/tty/rpmsg_tty.c ]
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:26 +08:00
Andy Shevchenko
43494d8e80
UPSTREAM: tty: rpmsg: Define tty name via constant string literal
...
Driver uses already twice the same string literal.
Define it in one place, so every user will have this
name consistent.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I7d5b4b0f9a47a6c37d58c208782ca2f6d26650c8
(cherry picked from commit 73a3d4f418 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:26 +08:00
Andy Shevchenko
5cd2ae076a
UPSTREAM: tty: rpmsg: Add pr_fmt() to prefix messages
...
Make all messages to be prefixed in a unified way.
Add pr_fmt() to achieve this.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I1c60691dcc28dc043fec9295741d0d7445688740
(cherry picked from commit 88af70be4a )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
9bc81cd09d
UPSTREAM: tty: rpmsg: Use dev_err_probe() in ->probe()
...
It's fine to use dev_err_probe() in ->probe() even if we know
it won't be deferred.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I5b7de289136281184fe7413ff0346c845ebd2cd9
(cherry picked from commit 8673ef7bd9 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
e13a4a299f
UPSTREAM: tty: rpmsg: Unify variable used to keep an error code
...
In some ret is used, in the other err. Let's unify it across the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: Ib7ab7f1f0a90091db4d454c0cbc168b850a03619
(cherry picked from commit 408a507996 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
4d7d1e0854
UPSTREAM: tty: rpmsg: Assign returned id to a local variable
...
Instead of putting garbage in the data structure, assign allocated id
or an error code to a temporary variable. This makes code cleaner.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: Ib7e969cd2bee7d050ae49d4949bd75980a8aed4c
(cherry picked from commit 0572da285d )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Arnaud Pouliquen
c5fc6d2f7b
UPSTREAM: tty: add rpmsg driver
...
This driver exposes a standard TTY interface on top of the rpmsg
framework through a rpmsg service.
This driver supports multi-instances, offering a /dev/ttyRPMSGx entry
per rpmsg endpoint.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20211015094701.5732-3-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I1207564bf55cdf5a717bb4572c198e17767f9be8
(cherry picked from commit 7c0408d805 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Arnaud Pouliquen
7fc4635adb
BACKPORT: rpmsg: core: add API to get MTU
...
Return the rpmsg buffer MTU for sending message, so rpmsg users
can split a long message in several sub rpmsg buffers.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Acked-by: Suman Anna <s-anna@ti.com >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20211015094701.5732-2-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I978024488709916034606d78d00ce935f26e3fbc
(cherry picked from commit e279317e9a )
[Jiahang: Resolving merge conflicts ]
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Lee Jones
5144c1c2e3
ANDROID: Snapshot Mainline's version of checkpatch.pl
...
Nothing fancy here. Keeping full history is not required.
`git checkout mainline/master -- scripts/checkpatch.pl`
This may need to be done periodically.
Bug: 316492624
Signed-off-by: Lee Jones <joneslee@google.com >
Change-Id: I4c90b50197ca7277c59e96bf332ecf795c4f3d12
2023-12-15 09:35:04 +00:00
Lin Jianhua
246ee6e4ef
arm64: dts: rockchip: rk3308-evb-audio-v10-display-rgb: modify cma size from 8M to 16M
...
Change-Id: I6d9b4e3be4231530531fd99df966fa5b175c0265
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
2023-12-15 17:12:07 +08:00
Weiwen Chen
33a438dabd
ARM: dts: rockchip: add rv1103g-evb2-v10.dts
...
Change-Id: Ib1129a170917fc2a575a984f615217b09e61814a
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2023-12-15 17:06:07 +08:00
Wu Liangqing
eb131b8fbe
arm64: dts: rockchip: rk3399-android: add debug support
...
Change-Id: I0000d1cdff85a0989abacadef2cae48980ad2035
Signed-off-by: Wu Liangqing <wlq@rock-chips.com >
2023-12-15 16:52:43 +08:00
Luo Wei
e15cb33d56
arm64: dts: rockchip: rk3588-vehicle-evb: add maxim display dtsi to support split mode
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I19821aac62ab544fdfa6253ee3cda553a5bfc629
2023-12-15 14:16:57 +08:00
Lin Jianhua
955e34ae99
arm64: rk3308_linux_defconfig: sync from savedefconfig
...
Change-Id: Id078d38495de8f5ee792adfc7bd7bde7f8c42b1f
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
2023-12-15 14:14:57 +08:00
Zhang Yubing
786d004588
mfd: rkx110_x120: fix compile no previous prototype warning
...
Fixes: e0a3fc8778 ("mfd: rkx110_x120: register 2 panel when attach 2 screen")
Change-Id: Iccc663b6f523c1b4e3307712628406bf10163030
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
2023-12-15 14:13:44 +08:00
Jon Lin
8b565da34c
misc: rockchip: pcie-rkep: Select PCIE_DW_DMATEST as default
...
Change-Id: I23d3fe2e1ba7a6726b888432fa86b646867c0d61
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-15 09:49:14 +08:00
Jon Lin
231360c3df
PCI: rockchip: dw-dmatest: Bind the dma transmission code with the device
...
Change-Id: Ida6d0b66c259bb4ddd8e84662f3df4ff0c37987c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-15 09:48:59 +08:00
Ye Zhang
132cfbfd6a
arm64: dts: rockchip: rk3308: Add trips for gpu thermal node
...
This patch fixes the below error.
thermal_sys: Failed to find 'trips' node
thermal_sys: Failed to find trip points for tsadc id=1
rockchip-thermal ff1f0000.tsadc: failed to register sensor 1: -22
rockchip-thermal ff1f0000.tsadc: failed to register sensor[1] : error = -22
rockchip-thermal: probe of ff1f0000.tsadc failed with error -22
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com >
Change-Id: I933b45c9e55a4cc25b899c950698cf935f6755aa
2023-12-15 09:36:51 +08:00
Ye Zhang
d643fdc997
arm64: dts: rockchip: px30: Add trips for gpu thermal node
...
This patch fixes the below error.
thermal_sys: Failed to find 'trips' node
thermal_sys: Failed to find trip points for tsadc id=1
rockchip-thermal ff280000.tsadc: failed to register sensor 1: -22
rockchip-thermal ff280000.tsadc: failed to register sensor[1] : error = -22
rockchip-thermal: probe of ff280000.tsadc failed with error -22
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com >
Change-Id: Idbc0a6671ab52213b826fa313bbd281254ea3bd6
2023-12-15 09:34:40 +08:00
Ye Zhang
010139c313
ARM: dts: rockchip: rv1126: Add trips for npu thermal node
...
This patch fixes the below error.
thermal_sys: Failed to find 'trips' node
thermal_sys: Failed to find trip points for tsadc id=1
rockchip-thermal ff5f8000.tsadc: failed to register sensor 1: -22
rockchip-thermal ff5f8000.tsadc: failed to register sensor[1] : error = -22
rockchip-thermal: probe of ff5f8000.tsadc failed with error -22
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com >
Change-Id: I6ea02d8b720b494b213275804bbca039abaa1357
2023-12-15 09:24:55 +08:00
Zefa Chen
031478d665
media: i2c: gc8034 add delay after power on
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I1af45405869ff05f52318ea9237d9cf2f9906ccd
2023-12-15 09:17:45 +08:00
Zhang Yubing
e0a3fc8778
mfd: rkx110_x120: register 2 panel when attach 2 screen
...
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I9469fd964871ca26484f95d532a87db7a936937d
2023-12-14 19:04:35 +08:00
Wang Panzhenzhuan
339c882a12
media: i2c: add vcm driver dw9800v
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: Ic63a1bd40e4b6d209abe935a25552ccf6804f2a1
2023-12-14 18:56:41 +08:00
Wang Panzhenzhuan
fae86dd645
media: i2c: ov16885: add camera sensor driver
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: I40ffcac0d695e11a561fb65c344b62643ee12f80
2023-12-14 18:45:53 +08:00
Luo Wei
22e7707be9
mfd: display-serdes: modify function definition for maxim chips
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I4a304304df468ad00e2bcf49f0d6bd5617d6757e
2023-12-14 18:34:14 +08:00
Su Yuefu
239e5e386f
media: i2c: add os04d10 sensor driver
...
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com >
Change-Id: Icbfdde0ccb54d014fa58ea13b562abcc10f25390
2023-12-14 15:50:07 +08:00
Tao Huang
32a4fc2c55
Merge commit 'b7adbc93a7494e848e11897db39f917c5874b445'
...
* commit 'b7adbc93a7494e848e11897db39f917c5874b445':
ARM: dts: rockchip: rv1106g-cvr: Supports dual-channel sensors
ARM: dts: rockchip: rv1106-mcu-v20: Added MCU panel general configuration
video: rockchip: vtunnel: do not fput fence file after fd install
drm/rockchip: vop2: move crtc_clock check to mode_fixup for rk3528
Change-Id: Icc9b5ef59b0362497768fcd1b36165aa4e7c776e
2023-12-13 19:37:28 +08:00
Tao Huang
99dd9ad1ab
Merge commit '58e55eb624c66f4e0fae1d55578e211c6f838385'
...
* commit '58e55eb624c66f4e0fae1d55578e211c6f838385':
drm/rockchip: vop2: add rockchip_drm_dclk_set_rate for some special pll
clk: rockchip: rk35xx: fix dclk_vop flags for drm dclk set rate
ARM: dts: rockchip: rv1106g-dual: Swap front and rear road positions
media: rockchip: hdmirx: low latency support fence
media: rockchip: hdmirx: support hdmirx low latency function
arm64: dts: rockchip: px30: add gpio aliases
Change-Id: I89a422bdb66c7ea4dfab13f2e42ca041eaf0c87c
Conflicts:
drivers/gpu/drm/rockchip/rockchip_drm_drv.h
2023-12-13 19:32:15 +08:00
Ye Zhang
d84481d736
arm64: dts: rockchip: rk3399: Add trips for gpu thermal node
...
This patch fixes the below error.
thermal_sys: Failed to find 'trips' node
thermal_sys: Failed to find trip points for tsadc id=1
rockchip-thermal ff260000.tsadc: failed to register sensor 1: -22
rockchip-thermal ff260000.tsadc: failed to register sensor[1] : error = -22
rockchip-thermal: probe of ff260000.tsadc failed with error -22
Fixes: 778ce099dc ("arm64: dts: rockchip: add the IPA needed parameters for rk3399 thermal")
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com >
Change-Id: Ia438b0f900c93267c3196d70b26db2e79e0a271b
2023-12-13 19:08:51 +08:00
Huang zhibao
a0526a852a
arm64: dts: rockchip: rk3308-evb: Add rk3308 audio v10 board devicetree
...
Change-Id: Iee1408489e71f501563d64d68a0e0cec51426353
Signed-off-by: Huang zhibao <hzb@rock-chips.com >
2023-12-13 18:36:50 +08:00
shengfei Xu
a14b4e1f4c
regulator: rk806: fixes return value when read register failed
...
Signed-off-by: shengfei Xu <xsf@rock-chips.com >
Change-Id: I0163ddf976d6b5b0266ddc4376020e6bcb0522df
2023-12-13 18:29:37 +08:00
Damon Ding
0a70f80c91
mfd: rkx110_x120: add pwm support
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I6d1ffa9e26ebbec3a06b8cb274227c6cdd420e05
2023-12-13 18:23:45 +08:00
Li Hangyu
b7adbc93a7
ARM: dts: rockchip: rv1106g-cvr: Supports dual-channel sensors
...
Change-Id: Ifdadb74d6670d18de4299d179c6c6dd72cb70316
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-13 18:10:17 +08:00
Li Hangyu
371e924377
ARM: dts: rockchip: rv1106-mcu-v20: Added MCU panel general configuration
...
Separate some configuration items of "rv1106g-evb1-mcu-display-v20.dts"
so that they can be used as common configurations
Change-Id: I72323b9342235f1c1e9b1c131ead3aabbe9dd51e
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-13 18:09:29 +08:00
Sandy Huang
2d7e051cf5
drm/rockchip: vop: fix AFBC format check error
...
Fixes: fa6c7f1111 ("drm/rockchip: vop: sync with linux-4.19 for rk3399 vop")
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I8d2bb4980d6a4c875af8f20d9358fd98ebc0f74a
2023-12-13 18:07:30 +08:00
Finley Xiao
b2077d12a7
arm64: dts: rockchip: rk3399: Fix nvmem-cell-names for opp table
...
Change-Id: Ie6f60d0beec1a721aa4237bccbcfeca7e0e29985
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-13 18:06:32 +08:00
Finley Xiao
a2a92da5ef
arm64: dts: rockchip: rk3328: Fix nvmem-cell-names for opp table
...
Change-Id: I7a33115d45f9764eee44ddc884fa1e68e1cb4c81
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-13 18:06:32 +08:00
Finley Xiao
c05a42749d
arm64: dts: rockchip: px30: Fix nvmem-cell-names for opp table
...
Change-Id: I3f9d0028e2e1d4ef78e29faa69c48e7e5f60bd14
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-13 18:06:32 +08:00
Finley Xiao
1d614d3cd9
ARM: dts: rockchip: Fix nvmem-cell-names for opp table
...
Change-Id: I8d96287159c8a58b94664db6573c978ff3733d32
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-13 18:05:33 +08:00
Zhen Chen
c19692bbff
Mali: midgard: import DMA_BUF module namespace
...
Fix compilation errors when building as modules:
ERROR: modpost: module midgard_kbase uses symbol dma_buf_end_cpu_access from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_mmap from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_attach from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_map_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_begin_cpu_access from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_unmap_attachment from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_get from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
ERROR: modpost: module midgard_kbase uses symbol dma_buf_detach from namespace DMA_BUF, but does not import it.
Change-Id: I36b1f2bb0f1c9018a795d9640f64656a275bfb28
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com >
2023-12-13 11:04:53 +08:00
Rimon Xu
7c4a3b6468
video: rockchip: vtunnel: do not fput fence file after fd install
...
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com >
Change-Id: I2d596aa981dac5a32267f4f08935fb0401186ead
2023-12-13 09:47:17 +08:00
Damon Ding
3aa5acec15
drm/rockchip: vop2: move crtc_clock check to mode_fixup for rk3528
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I207dbe09f17991e9a107cc2df5e7b130600be7b7
2023-12-13 08:47:47 +08:00
Sandy Huang
58e55eb624
drm/rockchip: vop2: add rockchip_drm_dclk_set_rate for some special pll
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I12f1e797d02253ce97b46e6845144f09db101485
2023-12-13 08:47:37 +08:00
Elaine Zhang
842ad2732d
clk: rockchip: rk35xx: fix dclk_vop flags for drm dclk set rate
...
The specify dclk setting rules in drm.
Change-Id: I802b28005ca76b13836d2ead04954d67ee3f625b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2023-12-13 08:45:21 +08:00
Browse Zhang
b39b9bde93
ANDROID: scsi: ufs: vendor check response and recovery addition
...
As per Vendor HW design consideration,
added Vendor specific error handling flow
Under the error checking flow, Vendor can check errors as per their HW design/arch and recover
them accordingly.
Added vendor hook for completion response check
- trace_android_vh_ufs_compl_rsp_check_done
Added vendor hook for vendor specific error handling
- trace_android_vh_ufs_err_handler
Added vendor hook for err logs printing control
- trace_android_vh_ufs_err_print_ctrl
Added vendor hook for error checking flow trigger
- trace_android_vh_ufs_err_check_ctrl
Bug: 312806167
Change-Id: I614737218537f197c68780f5b528b1948d5e29ea
Signed-off-by: Sanjeev Yadav <sanjeev.y@mediatek.com >
Signed-off-by: Browse Zhang <browse.zhang@mediatek.com >
2023-12-12 22:03:30 +00:00
Browse Zhang
4246d242fa
ANDROID: scsi: ufs: add perf heuristic design
...
Added vendor hook to consider ufs host/device perf heuristic
according to different platform/design
Vendor/Platform can take necessary action according to their
design/implementation
Added vendor hook before calling UFS command ops
- trace_android_vh_ufs_perf_huristic_ctrl
Added vendor hook after sending UFS command to host
- trace_android_vh_ufs_send_command_post_change
Added vendor hook for abort success case
- trace_android_vh_ufs_abort_success_ctrl
Bug: 312806167
Signed-off-by: Sanjeev Yadav <sanjeev.y@mediatek.com >
Signed-off-by: Browse Zhang <browse.zhang@mediatek.com >
Change-Id: Ibd07480d1086ec82f2ba6a52e21da08750796221
2023-12-12 22:03:30 +00:00
Browse Zhang
83578817d0
ANDROID: ABI: Update symbol list for Mediatek
...
Add below symbols into MTK symbol list
7 function symbols added
'int __tracepoint__android_vh_ufs_perf_huristic_ctrl(void*,
struct ufs_hba*, struct ufshcd_lrb*, int *)'
'int __tracepoint__android_vh_ufs_send_command_post_change(
void*, struct ufs_hba*, struct ufshcd_lrb*)'
'int __tracepoint__android_vh_ufs_abort_success_ctrl(void*,
struct ufs_hba*, struct ufshcd_lrb*)'
'int __tracepoint__android_vh_ufs_compl_rsp_check_done(void*,
struct ufs_hba*, struct ufshcd_lrb*, bool*)'
'int __tracepoint__android_vh_ufs_err_handler(void*, struct
ufs_hba*, bool*)'
'int __tracepoint__android_vh_ufs_err_check_ctrl(void*, struct
ufs_hba*, bool*)'
'int __tracepoint__android_vh_ufs_err_print_ctrl(void*, struct
ufs_hba*, bool*)'
7 variable symbols added
'struct __tracepoint__android_vh_ufs_perf_huristic_ctrl'
'struct __tracepoint__android_vh_ufs_send_command_post_change'
'struct __tracepoint__android_vh_ufs_abort_success_ctrl'
'struct __tracepoint__android_vh_ufs_compl_rsp_check_done'
'struct __tracepoint__android_vh_ufs_err_handler'
'struct __tracepoint__android_vh_ufs_err_check_ctrl'
'struct __tracepoint__android_vh_ufs_err_print_ctrl'
Bug: 312806167
Change-Id: I0134d606c09f26e061439e5f179aab2b482fa10a
Signed-off-by: Sanjeev Yadav <sanjeev.y@mediatek.com >
Signed-off-by: Browse Zhang <browse.zhang@mediatek.com >
2023-12-12 22:03:30 +00:00
Browse Zhang
85d8fb9163
ANDROID: Add vendor hook for ufs perf heuristic and error recovery
...
Added vendor hook to consider ufs host/device perf heuristic
and error recovery according to different platform/design
Vendor/Platform can take necessary action according to their
design/implementation
Added vendor hook before calling UFS command ops
- trace_android_vh_ufs_perf_huristic_ctrl
Added vendor hook after sending UFS command to host
- trace_android_vh_ufs_send_command_post_change
Added vendor hook for abort success case
- trace_android_vh_ufs_abort_success_ctrl
Added vendor hook for completion response check
- trace_android_vh_ufs_compl_rsp_check_done
Added vendor hook for vendor specific error handling
- trace_android_vh_ufs_err_handler
Added vendor hook for err logs printing control
- trace_android_vh_ufs_err_print_ctrl
Added vendor hook for error checking flow trigger
- trace_android_vh_ufs_err_check_ctrl
Bug: 312806167
Change-Id: I2190afe62b60da9d47001307f858f10fc8a59986
Signed-off-by: Sanjeev Yadav <sanjeev.y@mediatek.com >
Signed-off-by: Browse Zhang <browse.zhang@mediatek.com >
2023-12-12 22:03:30 +00:00
Jens Axboe
7b8b02fa37
UPSTREAM: io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid
...
commit 7644b1a1c9 upstream.
We could race with SQ thread exit, and if we do, we'll hit a NULL pointer
dereference when the thread is cleared. Grab the SQPOLL data lock before
attempting to get the task cpu and pid for fdinfo, this ensures we have a
stable view of it.
Bug: 309790656
Cc: stable@vger.kernel.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218032
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
Signed-off-by: He Gao <hegao@google.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
(cherry picked from commit 3d7912710e )
Signed-off-by: Lee Jones <joneslee@google.com >
Change-Id: I044e0285d4535440606ff593230b873e3145db91
2023-12-12 17:54:05 +00:00
Li Hangyu
243648ee57
ARM: dts: rockchip: rv1106g-dual: Swap front and rear road positions
...
Change-Id: I8c4824a7593efa4062d07495070a0a320361bcc4
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-12 20:05:01 +08:00