drm/radeon: SI tiling fixes for display
Subsystems (2)
PATCH 1/1 drm/radeon: SI tiling fixes for display
From: Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/atombios_crtc.c | 10 ++++- drivers/gpu/drm/radeon/si_reg.h | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/atombios_crtc.c +9 -1
@@ -1149,7 +1149,9 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc, }if (tiling_flags &RADEON_TILING_MACRO ) { -if (rdev->family >=CHIP_CAYMAN ) +if (rdev->family >=CHIP_TAHITI ) + tmp = rdev->config.si.tile_config; +else if (rdev->family >=CHIP_CAYMAN ) tmp = rdev->config.cayman.tile_config;else tmp = rdev->config.evergreen.tile_config;
@@ -1177,6 +1179,12 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc, }else if (tiling_flags &RADEON_TILING_MICRO ) fb_format |=EVERGREEN_GRPH_ARRAY_MODE (EVERGREEN_GRPH_ARRAY_1D_TILED_THIN1 ); +if ((rdev->family ==CHIP_TAHITI ) || + (rdev->family ==CHIP_PITCAIRN )) + fb_format |=SI_GRPH_PIPE_CONFIG (SI_ADDR_SURF_P8_32x32_8x16); +else if (rdev->family ==CHIP_VERDE ) + fb_format |=SI_GRPH_PIPE_CONFIG (SI_ADDR_SURF_P4_8x16); +switch (radeon_crtc->crtc_id) {case 0 :WREG32 (AVIVO_D1VGA_CONTROL ,0 );
drivers/gpu/drm/radeon/si_reg.h +72 -0
76 lines not on this page · raw message
Signature · 1 line
1.7.7.5
Am Donnerstag, den 14.06.2012, 15:58 -0400 schrieb [email protected]:
Quoted 1 line
From: Alex Deucher <[email protected]>
No elaborate commit messages describing the problem and the solution makes reviewing patches quite hard (at least for myself) and is up to the subsystem maintainer of course. But if I understand it correctly, the Linux kernel guidelines encourage elaborate commit messages.
Quoted 5 lines
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/atombios_crtc.c | 10 ++++- drivers/gpu/drm/radeon/si_reg.h | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletions(-)
[…]
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · On Don, 2012-06-14 at 15:58 -0400, [email protected] wrote:
From: Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
I agree with Paul that some more detail in the commit log might be nice, but the code is
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Michel Dänzer
Quoted 3 lines · On Don, 2012-06-14 at 15:58 -0400, [email protected] wrote:
From: Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>I agree with Paul that some more detail in the commit log might be nice, but the code is
More detail:
- Use the correct union for getting the tiling info
- Properly init the PIPE_CONFIG field for SI
I won't have time to spin a new patch until next week.
Alex
Quoted 7 lines
Reviewed-by Michel Dänzer <[email protected]>--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer