Commit Graph

1277049 Commits

Author SHA1 Message Date
Zhang Yubing
eb2aff477d drm/rockchip: vop2: initialize the convert_mode and csc_coef before use
If the value of covert_mode and csc_coef not initialize, the
compile will assign a default value which may be different by
different compiles. It should initialize their default value
explicitly before use.

Fixes: c08d820f80 ("drm/rockchip: vop2: Support post csc color range convert")

Change-Id: I39be672d6f8fda8fdf8298eafe140f449da32e46
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-26 18:48:50 +08:00
Lin Jinhan
3b667c194b crypto: rockchip: cryptodev: add ec verify support
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: If5372d28643b16c16c86448292887a011c3d9900
2024-12-26 18:48:33 +08:00
Lin Jinhan
9f93757dac crypto: rockchip: optimize the compatibility of ECC/PKA
1. Ensure that the PKA and ECC modules can be switched over.
2. Improve the security of verify to prevent all zeros from
 being treated as the correct result in some exceptions.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: If7cdc418cb3285fa7fb905381bfea51587750ee5
2024-12-26 18:48:33 +08:00
Damon Ding
4c2e0b8915 drm/rockchip: vop: remove unsuppoted regs for rv1106
The regs overlay_mode/dclk_ddr/rgb_dclk_pol are unsupported, so
it is better to remove them.

Change-Id: I2f48b15c0bfc58eca6e21b7ec1a64724ecc0e359
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-26 15:13:59 +08:00
Damon Ding
cf832aa1bf drm/rockchip: vop: remove unsupported reg overlay_mode for rk3506
Change-Id: I7e670ee324e262d936b0565fec642439e8cbbc65
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-26 15:13:54 +08:00
Xu Xuehui
f8da7b4d7c arm64: dts: rockchip: rk3588-vehicle-evb-v23: fix bt gpio config error
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: Iaa44be32248c0bcac0d04971b5c5c3c9cfdec32e
2024-12-25 19:15:11 +08:00
Yu Qiaowei
3fd340d988 video: rockchip: rga3: avoid multiple drop 'current->mm'
Change-Id: I57fbb8800bf3af320a931b54b85a8a53094e6194
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-12-24 16:52:20 +08:00
Sugar Zhang
6c5d0a72ce ASoC: rockchip: i2s-tdm: Use SNDRV_PCM_RATE_CONTINUOUS
Use SNDRV_PCM_RATE_CONTINUOUS to support continuous range
sample rate, which can support any rate in range.

e.g.

 48048, 31000, 768000

SNDRV_PCM_RATE_CONTINUOUS

means the hardware supports all rates in a specific interval.

Sample rates are only restricted by the capabilities of the
clock driver, so use SNDRV_PCM_RATE_CONTINUOUS instead of
SNDRV_PCM_RATE_8000_384000.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4811ca8ea63ed72da8cd06e9e8bbd5f450683165
2024-12-24 16:26:28 +08:00
Sugar Zhang
8ecc26a8a9 ASoC: rockchip: i2s: Use SNDRV_PCM_RATE_CONTINUOUS
Use SNDRV_PCM_RATE_CONTINUOUS to support continuous range
sample rate, which can support any rate in range.

e.g.

 48048, 31000, 768000

SNDRV_PCM_RATE_CONTINUOUS

means the hardware supports all rates in a specific interval.

Sample rates are only restricted by the capabilities of the
clock driver, so use SNDRV_PCM_RATE_CONTINUOUS instead of
SNDRV_PCM_RATE_8000_384000.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ieeea4f9ae414f2fa6475fa5f6559162e15c688c9
2024-12-24 16:26:28 +08:00
Sugar Zhang
f136098337 ASoC: dummy-codec: Use SNDRV_PCM_RATE_CONTINUOUS
Use SNDRV_PCM_RATE_CONTINUOUS to support continuous range
sample rate, which can support any rate in range.

e.g.

 48048, 31000, 768000

SNDRV_PCM_RATE_CONTINUOUS

means the hardware supports all rates in a specific interval.

Sample rates are only restricted by the capabilities of the
clock driver, so use SNDRV_PCM_RATE_CONTINUOUS instead of
SNDRV_PCM_RATE_8000_384000.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iac49752b7919bc74ddcc89b53d34a6a5a96ea134
2024-12-24 16:26:28 +08:00
Sugar Zhang
1b3b835a3d ASoC: rockchip: sai: Use SNDRV_PCM_RATE_CONTINUOUS
Use SNDRV_PCM_RATE_CONTINUOUS to support continuous range
sample rate, which can support any rate in range.

e.g.

 48048, 31000, 768000

SNDRV_PCM_RATE_CONTINUOUS

means the hardware supports all rates in a specific interval.

Sample rates are only restricted by the capabilities of the
clock driver, so use SNDRV_PCM_RATE_CONTINUOUS instead of
SNDRV_PCM_RATE_8000_384000.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibff0ad918599a18ef29782ff379095996627d7be
2024-12-24 16:26:28 +08:00
Jianlong Wang
fee15752e3 arm64: dts: rockchip: rk3328-evb: enable analog_sound and hdmi_sound
Change-Id: I3e844247e03767e55a7ff82608eafb75158c3d81
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2024-12-24 15:24:25 +08:00
Zhibin Huang
e1137ecfee misc: rk628: dsi: add horizontal colorbar and BER pattern
Type: Function
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I79c7571100e2d547548e243e455b17e7609590fc
2024-12-24 14:12:54 +08:00
Cody Xie
ea444b6c97 mfd: display-serdes: Fix out-of-bounds access issue
Checked with kasan, the buggy stacktrace:

BUG: KASAN: global-out-of-bounds in serdes_bridge_probe+0x2bc/0x568
Read of size 20 at addr ffffffc009a87240 by task swapper/0/1

CPU: 3 PID: 1 Comm: swapper/0 Tainted: G    B              6.1.84 #7
Hardware name: Rockchip RK3576 VEHICLE EVB V20 MOS LINUX Board (DT)
Call trace:
 dump_backtrace+0x11c/0x128
 show_stack+0x1c/0x28
 dump_stack_lvl+0x64/0x7c
 print_report+0x150/0x498
 kasan_report+0x80/0xf0
 kasan_check_range+0xe8/0x198
 __asan_loadN+0x20/0x28
 serdes_bridge_probe+0x2bc/0x568
 platform_probe+0x90/0x108
 really_probe+0x118/0x548
 __driver_probe_device+0xc0/0x1f0
 driver_probe_device+0x60/0x168

Fixes: 563845b474 ("mfd: display-serdes: add serdes display driver support base on mfd arch")

Change-Id: Ib0f6a674d75e0f9861163b0803f327963c3a85e5
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2024-12-24 14:07:06 +08:00
Jon Lin
f5031143d9 mtd: spi-nor: boya: Support BY25Q64ESSIG
Change-Id: Ia670d98504a9bb1a2a9be5481b2186ecdabe1cce
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-23 18:31:04 +08:00
Jon Lin
999ff49607 mtd: spi-nor: puya: Support PY25Q256LC
Change-Id: I99a39fc0cf86477aa97e4eb555856d8f6a0e9e77
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-23 18:30:49 +08:00
Jon Lin
9764ff4348 mtd: spi-nor: esmt: Support en25qx64a
Change-Id: Ic52e1748c80aed6feea17aa5dbeab262c7b55f0a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-23 18:30:41 +08:00
Jake Wu
e31fbef6dd arm64: dts: rockchip: px30-evb-ddr3-v10: fix sw1/2 for rk809
Type: Fix
Redmine ID: #525434
Associated modifications: N/A
Test: self-test

Signed-off-by: Jake Wu <jake.wu@rock-chips.com>
Change-Id: I4271ad161c1a80250629ad133704bfe837cf0150
2024-12-23 15:07:29 +08:00
Tao Huang
3c6462106f mmc: rk_sdmmc: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icd7563b320deba47960ce571e8780c17a323e5b8
2024-12-20 18:36:04 +08:00
Tao Huang
7876043db4 media: videobuf2-cma-sg: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I492d3d9503e2de8cc0f9b23a388d94ecd135cbbe
2024-12-20 18:34:47 +08:00
Tao Huang
ee9bc19eb8 mailbox: rockchip-mbox-demo: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie778a88d9246e7d81a830ec2a55cd13de7e490e3
2024-12-20 18:34:47 +08:00
Tao Huang
14359418a4 mailbox: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1850434be596a5f78ff01f985d5677ee606f8882
2024-12-20 18:34:47 +08:00
Tao Huang
050d99f695 input: touchscreen: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ief54e322b8cd2f428810de46a3bda31588f23520
2024-12-20 18:34:47 +08:00
Tao Huang
ceaf6706f0 iio: light: ucs12cm0: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I795db4c3bceea87036f0ca7ac8185d301e65dd73
2024-12-20 18:34:47 +08:00
Tao Huang
d02681b53a iio: adc: rockchip_saradc: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I21009e40bbd55b24ad0960098eb3d147f6b40c74
2024-12-20 18:34:47 +08:00
Tao Huang
f81381b769 Revert "SDMMC: Complete submission SDMMC driver in kernel-3.10.Currently,Only the sdcard can be used."
This reverts commit 3afdc6aaef.
This driver is unused since linux 4.4, drop it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2f2260816aaf3637713b811c292673158ab4a981
2024-12-20 18:13:23 +08:00
Tao Huang
791a51855b Mali: utgard: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I789d8239c08ef8b2086477b40164a2007470a1fb
2024-12-20 17:40:06 +08:00
Tao Huang
7f19b48064 MALI: bifrost: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I33e9cc6a988e96bd37a446bd02c2657688ede13f
2024-12-20 17:38:37 +08:00
Tao Huang
7c14384384 gpio: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab2fb03e9db190a8456d0bca5df0b1653c56fcf0
2024-12-20 17:37:26 +08:00
Tao Huang
f2dff6de3e gpio: aw9110: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifda4695da966586a409ac4069aa232df43863551
2024-12-20 17:36:45 +08:00
Tao Huang
2c9cb1d943 PM / devfreq: rockchip_dmc: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9140e17cf732b9c0d95509a661592fad2810b362
2024-12-20 17:35:32 +08:00
Tao Huang
f15e2190c8 arm64: mm: fixup_fault: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife97e80bb3161b5cb3083d68aaa5098bf7df33df
2024-12-20 17:33:44 +08:00
Tao Huang
f14e8a23fc boot.its: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If4996bba54ba14fc09a25eab93882bcc2a7a2876
2024-12-20 17:32:31 +08:00
Zhang Yubing
0ebac7251a drm/rockchip: vop2: wait dp output config take effect
The dp_out_en is config as take effect by vsync signal. When disable
the output, it will do some thing as follow:
1. clean dp_out_en bit in vop.
2. disable dp video stream;
3. disable dp link clk.
If it not wait clean dp_out_en bit take effect, the link clk may
disable before clean dp_out_en bit, which will cause dp fifo overflow
issue.
When enable the output, though it not has this issue, it's better to
wait set dp_out_en bit take effect to avoid the similar issue in the
future.

Change-Id: Ie088a0265e5bdef349cdd3e0dc3daebb6d9eeeff
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-20 17:09:11 +08:00
Zhang Yubing
ee40bbe630 drm/rockchip: dw-dp: update gpio hpd state when init stage
The gpio hpd state will be mismatch the real state if the cable
plug before init the dp controller. So it need updage the gpio
hpd state when dp controller init.

Fixes: 601aff2337 ("drm/rockchip: dw-dp: optimize the logic to deal with hpd")

Change-Id: I6b7a3d88e2ef70e54ad9465859c1a55205f10c4f
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-20 17:07:11 +08:00
Damon Ding
7bc0d73f22 drm/rockchip: bridge: analogix_dp: fix the regs settings for TEST_PATTERN_80BIT
According to the DP PHY CTS v1.2b 3.2.3 and 3.3.3 chapters, the
PreEmphasis Level Test Pattern(PLTPAT), which also was called
80-bit custom pattern, should be:

1111100000 1111100000 1111100000 1111100000
1111100000 1111100000 1111100000 1111100000

It is used to verify the HBR2 in "Non Pre-Emphasis Level Verification
Testing" and "Pre-Emphasis Level Verification and Maximum Pk-Pk
Differential Voltage Testing".

Without this patch, the PLTPAT pattern is incorrect.

Fixes: 304dbb104d ("drm/bridge: analogix_dp: Add DP Test Automation")
Change-Id: I4b00acd0a360a8ba3f3eaf32fb30e0a18a451f5c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-20 16:06:13 +08:00
Zhihuan He
7fdaaa54f6 ARM: dts: rockchip: rk3506-pinctrl: set dsmc clk drive strength to L3
Change-Id: I097abc26413ea50d1e3c56ae57a7d014a8bfcf46
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Zhihuan He
58231cec6b memory: rockchip: dsmc: fix io width config error
The io_width in diff cs should set the same value at the same time.

Change-Id: I2a872ba487bde9aa56f0a3490acbb526a1521475
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Zhihuan He
629b36c6b3 memory: rockchip: dsmc: set 0.5x refresh rate allow for xccela psram
Change-Id: I3195579b8c1d597f25e0a9711cd3edc5a6599ab4
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Finley Xiao
fce333a285 nvmem: rockchip-otp: Remove redundant clocks
Change-Id: Ifecc210da1687ae3f85e1c11a2082f125cb61fdb
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-12-20 11:58:03 +08:00
Jianlong Wang
5a958179f8 arm64: configs: px30_linux_defconfig: update for kernel 6.1
Change-Id: Icfdd8be881d7fb6b971716a5eb9180507bf979b6
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2024-12-20 09:59:03 +08:00
Jianwei Fan
5b4c5525d1 media: i2c: rk628: remove unnecessary ioctl RKMODULE_GET_SKIP_FRAME
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib1cb58008751f335e397270e3bc62a7171ca836c
2024-12-19 16:48:21 +08:00
Cai Wenzhong
1f97a95049 arm64: dts: rockchip: rk3576-vehicle-evb-v20: max96712 d(/c)phy0(/3): add more sensor dtsi
dummy: MAX96717, DUMMY, 1920 * 1440, YUV422 8bit
isx021: MAX96717F, ISX021, 1920 * 1281, YUV422 8bit

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ic8b0ff43e376a9697c82092190de46c07bcf8eb8
2024-12-19 10:12:25 +08:00
Jon Lin
058b229588 phy: rockchip-snps-pcie3: Configure registers only when defining phy mode
Change-Id: I75ef3313d59708f9238dbb7cac3a7f210fb97c9b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-18 16:43:16 +08:00
Cai Wenzhong
a437e6a016 arm64: dts: rockchip: rk3576-vehicle-evb-v20: support sc233at for DMS
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iebe371a9bc6eb6a1303fdbf3c9a77e30b4e112cf
2024-12-18 16:41:17 +08:00
Cai Wenzhong
0c1cb186ff arm64: dts: rockchip: rk3576-vehicle-evb-v20: add max96712-dphy3-sc233at.dtsi
sc233at: MAX96717F, SC233AT, 1920 * 1200, YUV422 8bit

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib29acaf03cf7c2f67aa21c08a46f4eba47e12111
2024-12-18 16:41:17 +08:00
Benoit Sevens
a740751efe UPSTREAM: media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_format
This can lead to out of bounds writes since frames of this type were not
taken into account when calculating the size of the frames buffer in
uvc_parse_streaming.

CVE-2024-53104

Change-Id: I3dd74072f3b41bab05634f24cfaf8f35a6fae43f
Fixes: c0efd23292 ("V4L/DVB (8145a): USB Video Class driver")
Signed-off-by: Benoit Sevens <bsevens@google.com>
Cc: stable@vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit ecf2b43018da9579842c774b7f35dbe11b5c38dd)
2024-12-18 15:47:20 +08:00
Jiri Kosina
f8c680bb5e UPSTREAM: HID: core: zero-initialize the report buffer
Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.

CVE-2024-50302

Change-Id: I949eb045a8e7fdc0be118d2899d9d957395067f1
Fixes: 27ce405039 ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 177f25d1292c7e16e1199b39c85480f7f8815552)
2024-12-18 15:47:20 +08:00
Zhang Yubing
41fe643f8c drm/rockchp: dw-dp: enable video stream fifo overflow irq
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I73e33d60db8886b150c390b387ba360bafbc0b72
2024-12-18 10:38:30 +08:00
Zhang Yubing
b358a51aef drm/rockchip: vop2: fix the sys port ctrl reg config of rk3576
Change-Id: I277605413e4f6e3abdcfe07942a92a717e31a9bf
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-18 10:38:16 +08:00