File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1834,6 +1834,9 @@ int psp_ras_initialize(struct psp_context *psp)
1834
1834
ras_cmd -> ras_in_message .init_flags .xcc_mask =
1835
1835
adev -> gfx .xcc_mask ;
1836
1836
ras_cmd -> ras_in_message .init_flags .channel_dis_num = hweight32 (adev -> gmc .m_half_use ) * 2 ;
1837
+ if (adev -> gmc .gmc_funcs -> query_mem_partition_mode )
1838
+ ras_cmd -> ras_in_message .init_flags .nps_mode =
1839
+ adev -> gmc .gmc_funcs -> query_mem_partition_mode (adev );
1837
1840
1838
1841
ret = psp_ta_load (psp , & psp -> ras_context .context );
1839
1842
Original file line number Diff line number Diff line change @@ -113,6 +113,14 @@ enum ta_ras_address_type {
113
113
TA_RAS_PA_TO_MCA ,
114
114
};
115
115
116
+ enum ta_ras_nps_mode {
117
+ TA_RAS_UNKNOWN_MODE = 0 ,
118
+ TA_RAS_NPS1_MODE = 1 ,
119
+ TA_RAS_NPS2_MODE = 2 ,
120
+ TA_RAS_NPS4_MODE = 4 ,
121
+ TA_RAS_NPS8_MODE = 8 ,
122
+ };
123
+
116
124
/* Input/output structures for RAS commands */
117
125
/**********************************************************/
118
126
@@ -139,6 +147,7 @@ struct ta_ras_init_flags {
139
147
uint8_t dgpu_mode ;
140
148
uint16_t xcc_mask ;
141
149
uint8_t channel_dis_num ;
150
+ uint8_t nps_mode ;
142
151
};
143
152
144
153
struct ta_ras_mca_addr {
You can’t perform that action at this time.
0 commit comments