diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2022-09-24 18:14:12 -0700 | 
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2022-09-24 18:14:12 -0700 | 
| commit | b3bbcc5d1da1b654091dad15980b3d58fdae0fc6 (patch) | |
| tree | 77795fbece4fc61a659ed97c70d798ca81f35bb8 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3 (diff) | |
| parent | 67feaba413ec68daf4124e9870878899b4ed9a0e (diff) | |
Merge branch 'for-6.0/dax' into libnvdimm-fixes
Pick up another "Soft Reservation" fix for v6.0-final on top of some
straggling nvdimm fixes that missed v5.19.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 31 | 
1 files changed, 23 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 8890300766a5..429fcdf28836 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -80,7 +80,7 @@   * - 3.24.0 - Add high priority compute support for gfx9   * - 3.25.0 - Add support for sensor query info (stable pstate sclk/mclk).   * - 3.26.0 - GFX9: Process AMDGPU_IB_FLAG_TC_WB_NOT_INVALIDATE. - * - 3.27.0 - Add new chunk to to AMDGPU_CS to enable BO_LIST creation. + * - 3.27.0 - Add new chunk to AMDGPU_CS to enable BO_LIST creation.   * - 3.28.0 - Add AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES   * - 3.29.0 - Add AMDGPU_IB_FLAG_RESET_GDS_MAX_WAVE_ID   * - 3.30.0 - Add AMDGPU_SCHED_OP_CONTEXT_PRIORITY_OVERRIDE. @@ -100,10 +100,11 @@   * - 3.44.0 - DCN3 supports DCC independent block settings: !64B && 128B, 64B && 128B   * - 3.45.0 - Add context ioctl stable pstate interface   * - 3.46.0 - To enable hot plug amdgpu tests in libdrm - * * 3.47.0 - Add AMDGPU_GEM_CREATE_DISCARDABLE and AMDGPU_VM_NOALLOC flags + * - 3.47.0 - Add AMDGPU_GEM_CREATE_DISCARDABLE and AMDGPU_VM_NOALLOC flags + * - 3.48.0 - Add IP discovery version info to HW INFO   */  #define KMS_DRIVER_MAJOR	3 -#define KMS_DRIVER_MINOR	47 +#define KMS_DRIVER_MINOR	48  #define KMS_DRIVER_PATCHLEVEL	0  int amdgpu_vram_limit; @@ -167,6 +168,7 @@ int amdgpu_smu_pptable_id = -1;   */  uint amdgpu_dc_feature_mask = 2;  uint amdgpu_dc_debug_mask; +uint amdgpu_dc_visual_confirm;  int amdgpu_async_gfx_ring = 1;  int amdgpu_mcbp;  int amdgpu_discovery = -1; @@ -803,6 +805,16 @@ module_param_named(no_queue_eviction_on_vm_fault, amdgpu_no_queue_eviction_on_vm  #endif  /** + * DOC: pcie_p2p (bool) + * Enable PCIe P2P (requires large-BAR). Default value: true (on) + */ +#ifdef CONFIG_HSA_AMD_P2P +bool pcie_p2p = true; +module_param(pcie_p2p, bool, 0444); +MODULE_PARM_DESC(pcie_p2p, "Enable PCIe P2P (requires large-BAR). (N = off, Y = on(default))"); +#endif + +/**   * DOC: dcfeaturemask (uint)   * Override display features enabled. See enum DC_FEATURE_MASK in drivers/gpu/drm/amd/include/amd_shared.h.   * The default is the current set of stable display features. @@ -817,6 +829,9 @@ module_param_named(dcfeaturemask, amdgpu_dc_feature_mask, uint, 0444);  MODULE_PARM_DESC(dcdebugmask, "all debug options disabled (default))");  module_param_named(dcdebugmask, amdgpu_dc_debug_mask, uint, 0444); +MODULE_PARM_DESC(visualconfirm, "Visual confirm (0 = off (default), 1 = MPO, 5 = PSR)"); +module_param_named(visualconfirm, amdgpu_dc_visual_confirm, uint, 0444); +  /**   * DOC: abmlevel (uint)   * Override the default ABM (Adaptive Backlight Management) level used for DC @@ -2111,7 +2126,7 @@ retry_init:  	if (ret)  		DRM_ERROR("Creating debugfs files failed (%d).\n", ret); -	if (adev->runpm) { +	if (adev->pm.rpm_mode != AMDGPU_RUNPM_NONE) {  		/* only need to skip on ATPX */  		if (amdgpu_device_supports_px(ddev))  			dev_pm_set_driver_flags(ddev->dev, DPM_FLAG_NO_DIRECT_COMPLETE); @@ -2168,7 +2183,7 @@ amdgpu_pci_remove(struct pci_dev *pdev)  	drm_dev_unplug(dev); -	if (adev->runpm) { +	if (adev->pm.rpm_mode != AMDGPU_RUNPM_NONE) {  		pm_runtime_get_sync(dev->dev);  		pm_runtime_forbid(dev->dev);  	} @@ -2451,7 +2466,7 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)  	struct amdgpu_device *adev = drm_to_adev(drm_dev);  	int ret, i; -	if (!adev->runpm) { +	if (adev->pm.rpm_mode == AMDGPU_RUNPM_NONE) {  		pm_runtime_forbid(dev);  		return -EBUSY;  	} @@ -2520,7 +2535,7 @@ static int amdgpu_pmops_runtime_resume(struct device *dev)  	struct amdgpu_device *adev = drm_to_adev(drm_dev);  	int ret; -	if (!adev->runpm) +	if (adev->pm.rpm_mode == AMDGPU_RUNPM_NONE)  		return -EINVAL;  	/* Avoids registers access if device is physically gone */ @@ -2564,7 +2579,7 @@ static int amdgpu_pmops_runtime_idle(struct device *dev)  	/* we don't want the main rpm_idle to call suspend - we want to autosuspend */  	int ret = 1; -	if (!adev->runpm) { +	if (adev->pm.rpm_mode == AMDGPU_RUNPM_NONE) {  		pm_runtime_forbid(dev);  		return -EBUSY;  	}  | 
