Skip to content

Commit 9caaeb0

Browse files
committed
Merge tag 'drm-misc-next-fixes-2024-01-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
A fix for the v3d register readout, and two compilation fixes for rockchip. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maxime Ripard <mripard@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/warlsyhbwarbezejzokxvrpnmvoaajonj6khjobvnfrhttrsks@fqoeqrjrct6l
2 parents e8aaca5 + 89fe460 commit 9caaeb0

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
#include "rockchip_drm_drv.h"
3737
#include "rockchip_drm_gem.h"
38-
#include "rockchip_drm_fb.h"
3938
#include "rockchip_drm_vop2.h"
4039
#include "rockchip_rgb.h"
4140

@@ -1681,7 +1680,6 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id,
16811680
unsigned long dclk_core_rate = v_pixclk >> 2;
16821681
unsigned long dclk_rate = v_pixclk;
16831682
unsigned long dclk_out_rate;
1684-
unsigned long if_dclk_rate;
16851683
unsigned long if_pixclk_rate;
16861684
int K = 1;
16871685

@@ -1696,8 +1694,8 @@ static unsigned long rk3588_calc_cru_cfg(struct vop2_video_port *vp, int id,
16961694
}
16971695

16981696
if_pixclk_rate = (dclk_core_rate << 1) / K;
1699-
if_dclk_rate = dclk_core_rate / K;
17001697
/*
1698+
* if_dclk_rate = dclk_core_rate / K;
17011699
* *if_pixclk_div = dclk_rate / if_pixclk_rate;
17021700
* *if_dclk_div = dclk_rate / if_dclk_rate;
17031701
*/

drivers/gpu/drm/v3d/v3d_debugfs.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ static const struct v3d_reg_def v3d_core_reg_defs[] = {
6262
REGDEF(33, 71, V3D_PTB_BPCA),
6363
REGDEF(33, 71, V3D_PTB_BPCS),
6464

65-
REGDEF(33, 41, V3D_GMP_STATUS(33)),
66-
REGDEF(33, 41, V3D_GMP_CFG(33)),
67-
REGDEF(33, 41, V3D_GMP_VIO_ADDR(33)),
65+
REGDEF(33, 42, V3D_GMP_STATUS(33)),
66+
REGDEF(33, 42, V3D_GMP_CFG(33)),
67+
REGDEF(33, 42, V3D_GMP_VIO_ADDR(33)),
6868

6969
REGDEF(33, 71, V3D_ERR_FDBGO),
7070
REGDEF(33, 71, V3D_ERR_FDBGB),
@@ -74,13 +74,13 @@ static const struct v3d_reg_def v3d_core_reg_defs[] = {
7474

7575
static const struct v3d_reg_def v3d_csd_reg_defs[] = {
7676
REGDEF(41, 71, V3D_CSD_STATUS),
77-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG0(41)),
78-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG1(41)),
79-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG2(41)),
80-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG3(41)),
81-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG4(41)),
82-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG5(41)),
83-
REGDEF(41, 41, V3D_CSD_CURRENT_CFG6(41)),
77+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG0(41)),
78+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG1(41)),
79+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG2(41)),
80+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG3(41)),
81+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG4(41)),
82+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG5(41)),
83+
REGDEF(41, 42, V3D_CSD_CURRENT_CFG6(41)),
8484
REGDEF(71, 71, V3D_CSD_CURRENT_CFG0(71)),
8585
REGDEF(71, 71, V3D_CSD_CURRENT_CFG1(71)),
8686
REGDEF(71, 71, V3D_CSD_CURRENT_CFG2(71)),

0 commit comments

Comments
 (0)