[AMD Public Use] Hi , Lijo For now we only enable this light sbr feature for SMU on XGMI + passthrough for Arcturus since this is the use case our customer is required and we only verified in this configuration . I feel it’s more reasonable to keep the logic
of enable/disable in amdgpu side instead in SMU internally. We might need to support the SBR in bare-metal mode in the future . Also we plan to use this feature in future ASIC if the default HW reset method doesn’t works stable. Your suggestion will
need to move the enable/disable logic into SMU internally which valid our original design.
Regards Shaoyun.liu From: Lazar, Lijo <Lijo.Lazar@xxxxxxx> [AMD Public Use] Looks like this can be handled during post_init. It will be called as smu_post_init() happening during late_init part of smu block. You can check vangogh or navi examples on how to add your implementation.
Lijo From: Liu, Shaoyun <Shaoyun.Liu@xxxxxxx>
[AMD Public Use] I don’t like to add this set_light_sbr into ppt_funcs either , but please check current swsmu code structure , there is no asic specific swsmu late init function and there is no direct routine form amdgpu_smu.c to smu_v11_0.c either
. It requires smu common code ->ppt_func -> smu_v11_0 for Arcturus specific function . So unless SMU and PPT have a major re-structure , set_light_sbr need to go through ppt_func for now, I think I better leave this re-structure task to SMU and PPT
owner in the future . Add SMU and PPT code owner Hawking and Quan for comments .
Regards Shaoyun.liu From: Lazar, Lijo <Lijo.Lazar@xxxxxxx>
[AMD Public Use] We want to keep ppt_funcs minimal. Adding everything to ppt_funcs and keeping as NULL is not the right way. Please keep the code to arcturus. Thanks, Lijo From: Liu, Shaoyun <Shaoyun.Liu@xxxxxxx>
Thanks for the comments. This light sbr solution could be applied to other asic as well. In swsmu code, It will check whether the function pointer set_light_sbr is valid before real call the function. So for other asics if the smu apply
the same change, just add the ppt function pointer and we will have this support without further code change. Thanks Shaoyun.liu From: Lazar, Lijo <Lijo.Lazar@xxxxxxx> [AMD Public Use] |
_______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx