diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 26 | 
1 files changed, 0 insertions, 26 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 3f001a50b34a..30c4f5cca02c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1245,32 +1245,6 @@ bool amdgpu_device_need_post(struct amdgpu_device *adev)  }  /* - * On APUs with >= 64GB white flickering has been observed w/ SG enabled. - * Disable S/G on such systems until we have a proper fix. - * https://gitlab.freedesktop.org/drm/amd/-/issues/2354 - * https://gitlab.freedesktop.org/drm/amd/-/issues/2735 - */ -bool amdgpu_sg_display_supported(struct amdgpu_device *adev) -{ -	switch (amdgpu_sg_display) { -	case -1: -		break; -	case 0: -		return false; -	case 1: -		return true; -	default: -		return false; -	} -	if ((totalram_pages() << (PAGE_SHIFT - 10)) + -	    (adev->gmc.real_vram_size / 1024) >= 64000000) { -		DRM_WARN("Disabling S/G due to >=64GB RAM\n"); -		return false; -	} -	return true; -} - -/*   * Intel hosts such as Raptor Lake and Sapphire Rapids don't support dynamic   * speed switching. Until we have confirmation from Intel that a specific host   * supports it, it's safer that we keep it disabled for all. |