diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2023-06-26 10:04:04 -0500 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-07-07 13:51:46 -0400 | 
| commit | 521289d2a279b2fbea0450d5e8e6a01cf70a80b3 (patch) | |
| tree | 0c1cce82df1764fd5a408c1b4d1022f352cd96e3 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 3e6a9329e67de86e5357125d5aad987bdd1fdb7c (diff) | |
drm/amd: Use attribute groups for PSP flashing attributes
Individually creating attributes can be racy, instead make attributes
using attribute groups and control their visibility with an is_visible
callback to only show when using appropriate products.
v2: squash in fix for PSP 13.0.10
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 | 
1 files changed, 0 insertions, 10 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index a92c6189b4b6..7f069e1731fe 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4050,14 +4050,6 @@ fence_driver_init:  	} else  		adev->ucode_sysfs_en = true; -	r = amdgpu_psp_sysfs_init(adev); -	if (r) { -		adev->psp_sysfs_en = false; -		if (!amdgpu_sriov_vf(adev)) -			DRM_ERROR("Creating psp sysfs failed\n"); -	} else -		adev->psp_sysfs_en = true; -  	/*  	 * Register gpu instance before amdgpu_device_enable_mgpu_fan_boost.  	 * Otherwise the mgpu fan boost feature will be skipped due to the @@ -4207,8 +4199,6 @@ void amdgpu_device_fini_hw(struct amdgpu_device *adev)  		amdgpu_pm_sysfs_fini(adev);  	if (adev->ucode_sysfs_en)  		amdgpu_ucode_sysfs_fini(adev); -	if (adev->psp_sysfs_en) -		amdgpu_psp_sysfs_fini(adev);  	sysfs_remove_files(&adev->dev->kobj, amdgpu_dev_attributes);  	/* disable ras feature must before hw fini */ | 
