aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
diff options
context:
space:
mode:
authorStanley.Yang <[email protected]>2021-06-11 07:38:50 +0000
committerAlex Deucher <[email protected]>2021-06-18 21:11:56 +0000
commit513befa63446cea8d399fd78761fc11ae518143d (patch)
tree874dd3ad0e0d4a7568a8b69c40ee0adea96d0026 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
parentdrm/amdgpu: PWRBRK sequence changes for Aldebaran (diff)
downloadkernel-513befa63446cea8d399fd78761fc11ae518143d.tar.gz
kernel-513befa63446cea8d399fd78761fc11ae518143d.zip
drm/amdgpu: message smu to update hbm bad page number
Use SMU to update the bad pages rather than directly accessing the EEPROM from the driver. Signed-off-by: Stanley.Yang <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h')
-rw-r--r--drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
index 6559912ba229..3e89852e4820 100644
--- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
@@ -1232,6 +1232,12 @@ struct pptable_funcs {
*/
int (*wait_for_event)(struct smu_context *smu,
enum smu_event_type event, uint64_t event_arg);
+
+ /**
+ * @sned_hbm_bad_pages_num: message SMU to update bad page number
+ * of SMUBUS table.
+ */
+ int (*send_hbm_bad_pages_num)(struct smu_context *smu, uint32_t size);
};
typedef enum {