drm/radeon: R300 AD only has one quad pipe.
Subsystems (2)
PATCH 1/1 drm/radeon: R300 AD only has one quad pipe.
From: Michel Dänzer <[email protected]>
Gleaned from the Mesa code.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=27355 .
Signed-off-by Michel Dänzer <[email protected]>
--- drivers/gpu/drm/radeon/r300.c | 6 +++--- drivers/gpu/drm/radeon/radeon_cp.c | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-)
drivers/gpu/drm/radeon/r300.c +3 -3
@@ -327,12 +327,12 @@ void r300_gpu_init(struct radeon_device *rdev) {uint32_t gb_tile_config, tmp; -/* FIXME: rv380 one pipes ? */ -if ((rdev->family ==CHIP_R300 ) || (rdev->family ==CHIP_R350 )) { +if ((rdev->family ==CHIP_R300 && rdev->pdev->device !=0x4144 ) || + (rdev->family ==CHIP_R350 )) {/* r300,r350 */ rdev->num_gb_pipes =2 ; }else { -/* rv350,rv370,rv380 */ +/* rv350,rv370,rv380,r300 AD */ rdev->num_gb_pipes =1 ; } rdev->num_z_pipes =1 ;
drivers/gpu/drm/radeon/radeon_cp.c +6 -4
@@ -417,8 +417,9 @@ static int radeon_do_wait_for_idle(drm_radeon_private_t * dev_priv)return -EBUSY ; } -static void radeon_init_pipes (drm_radeon_private_t *dev_priv) +static void radeon_init_pipes (struct drm_device *dev) { +drm_radeon_private_t *dev_priv = dev->dev_private;uint32_t gb_tile_config, gb_pipe_sel =0 ;if ((dev_priv->flags &RADEON_FAMILY_MASK ) ==CHIP_RV530 ) {
@@ -436,11 +437,12 @@ static void radeon_init_pipes(drm_radeon_private_t *dev_priv) dev_priv->num_gb_pipes = ((gb_pipe_sel >>12 ) &0x3 ) +1 ; }else {/* R3xx */ -if (((dev_priv->flags &RADEON_FAMILY_MASK ) ==CHIP_R300 ) || +if (((dev_priv->flags &RADEON_FAMILY_MASK ) ==CHIP_R300 && + dev->pdev->device !=0x4144 ) || ((dev_priv->flags &RADEON_FAMILY_MASK ) ==CHIP_R350 )) { dev_priv->num_gb_pipes =2 ; }else { -/* R3Vxx */ +/* RV3xx/R300 AD */ dev_priv->num_gb_pipes =1 ; } }
@@ -736,7 +738,7 @@ static int radeon_do_engine_reset(struct drm_device * dev)/* setup the raster pipes */ if ((dev_priv->flags &RADEON_FAMILY_MASK ) >=CHIP_R300 ) -radeon_init_pipes (dev_priv); +radeon_init_pipes (dev);/* Reset the CP ring */ radeon_do_cp_reset (dev_priv);
Signature · 14 lines
1.7.0.3 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel