diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 24 | 
1 files changed, 13 insertions, 11 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 3c9fecdd6b2f..7383272c6a3a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -25,6 +25,7 @@  #include <drm/amdgpu_drm.h>  #include <drm/drm_aperture.h>  #include <drm/drm_drv.h> +#include <drm/drm_fbdev_generic.h>  #include <drm/drm_gem.h>  #include <drm/drm_vblank.h>  #include <drm/drm_managed.h> @@ -230,17 +231,18 @@ module_param_named(vis_vramlimit, amdgpu_vis_vram_limit, int, 0444);  /**   * DOC: gartsize (uint) - * Restrict the size of GART in Mib (32, 64, etc.) for testing. The default is -1 (The size depends on asic). + * Restrict the size of GART (for kernel use) in Mib (32, 64, etc.) for testing. + * The default is -1 (The size depends on asic).   */ -MODULE_PARM_DESC(gartsize, "Size of GART to setup in megabytes (32, 64, etc., -1=auto)"); +MODULE_PARM_DESC(gartsize, "Size of kernel GART to setup in megabytes (32, 64, etc., -1=auto)");  module_param_named(gartsize, amdgpu_gart_size, uint, 0600);  /**   * DOC: gttsize (int) - * Restrict the size of GTT domain in MiB for testing. The default is -1 (It's VRAM size if 3GB < VRAM < 3/4 RAM, - * otherwise 3/4 RAM size). + * Restrict the size of GTT domain (for userspace use) in MiB for testing. + * The default is -1 (Use 1/2 RAM, minimum value is 3GB).   */ -MODULE_PARM_DESC(gttsize, "Size of the GTT domain in megabytes (-1 = auto)"); +MODULE_PARM_DESC(gttsize, "Size of the GTT userspace domain in megabytes (-1 = auto)");  module_param_named(gttsize, amdgpu_gtt_size, int, 0600);  /** @@ -533,7 +535,7 @@ module_param_named(compute_multipipe, amdgpu_compute_multipipe, int, 0444);   * DOC: gpu_recovery (int)   * Set to enable GPU recovery mechanism (1 = enable, 0 = disable). The default is -1 (auto, disabled except SRIOV).   */ -MODULE_PARM_DESC(gpu_recovery, "Enable GPU recovery mechanism, (2 = advanced tdr mode, 1 = enable, 0 = disable, -1 = auto)"); +MODULE_PARM_DESC(gpu_recovery, "Enable GPU recovery mechanism, (1 = enable, 0 = disable, -1 = auto)");  module_param_named(gpu_recovery, amdgpu_gpu_recovery, int, 0444);  /** @@ -1924,9 +1926,6 @@ static const struct pci_device_id pciidlist[] = {  	{0x1002, 0x73AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SIENNA_CICHLID},  	{0x1002, 0x73BF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SIENNA_CICHLID}, -	/* Van Gogh */ -	{0x1002, 0x163F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VANGOGH|AMD_IS_APU}, -  	/* Yellow Carp */  	{0x1002, 0x164D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_YELLOW_CARP|AMD_IS_APU},  	{0x1002, 0x1681, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_YELLOW_CARP|AMD_IS_APU}, @@ -2201,7 +2200,8 @@ amdgpu_pci_remove(struct pci_dev *pdev)  		pm_runtime_forbid(dev->dev);  	} -	if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 2)) { +	if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 2) && +	    !amdgpu_sriov_vf(adev)) {  		bool need_to_reset_gpu = false;  		if (adev->gmc.xgmi.num_physical_nodes > 1) { @@ -2470,7 +2470,7 @@ static int amdgpu_runtime_idle_check_display(struct device *dev)  		if (ret)  			return ret; -		if (amdgpu_device_has_dc_support(adev)) { +		if (adev->dc_enabled) {  			struct drm_crtc *crtc;  			drm_for_each_crtc(crtc, drm_dev) { @@ -2571,6 +2571,8 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)  		amdgpu_device_baco_enter(drm_dev);  	} +	dev_dbg(&pdev->dev, "asic/device is runtime suspended\n"); +  	return 0;  } |