diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 9702e55..21617b0 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -3350,8 +3350,13 @@ static void evergreen_gpu_init(struct radeon_device *rdev) tmp |= (1 << i); /* if all the backends are disabled, fix it up here */ if ((disabled_rb_mask & tmp) == tmp) { - for (i = 0; i < rdev->config.evergreen.max_backends; i++) - disabled_rb_mask &= ~(1 << i); + if (rdev->flags & RADEON_IS_IGP) { + /* just enable the first one */ + disabled_rb_mask &= ~(1 << 0); + } else { + for (i = 0; i < rdev->config.evergreen.max_backends; i++) + disabled_rb_mask &= ~(1 << i); + } } WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index f59a9e9..38e206f 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -1052,8 +1052,14 @@ static void cayman_gpu_init(struct radeon_device *rdev) tmp |= (1 << i); /* if all the backends are disabled, fix it up here */ if ((disabled_rb_mask & tmp) == tmp) { - for (i = 0; i < (rdev->config.cayman.max_backends_per_se * rdev->config.cayman.max_shader_engines); i++) - disabled_rb_mask &= ~(1 << i); + if (rdev->flags & RADEON_IS_IGP) { + /* just enable the first one */ + disabled_rb_mask &= ~(1 << 0); + } else { + for (i = 0; i < (rdev->config.cayman.max_backends_per_se * + rdev->config.cayman.max_shader_engines); i++) + disabled_rb_mask &= ~(1 << i); + } } WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES);