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)
18341834 ras_cmd -> ras_in_message .init_flags .xcc_mask =
18351835 adev -> gfx .xcc_mask ;
18361836 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 );
18371840
18381841 ret = psp_ta_load (psp , & psp -> ras_context .context );
18391842
Original file line number Diff line number Diff line change @@ -113,6 +113,14 @@ enum ta_ras_address_type {
113113 TA_RAS_PA_TO_MCA ,
114114};
115115
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+
116124/* Input/output structures for RAS commands */
117125/**********************************************************/
118126
@@ -139,6 +147,7 @@ struct ta_ras_init_flags {
139147 uint8_t dgpu_mode ;
140148 uint16_t xcc_mask ;
141149 uint8_t channel_dis_num ;
150+ uint8_t nps_mode ;
142151};
143152
144153struct ta_ras_mca_addr {
You can’t perform that action at this time.
0 commit comments