On Hygon family 18h model 6h platform, each DDR has two subchannels, and each subchannel has a mca bank with a cs corresponded. In the process of address translation, it needs to know the instance id of cs to access df register correctly. The instance id of cs can be calculated from IPID[23:20] and IPID[13]: IPID[23:20] represents which umc controller it belongs to, and IPID[13] represents which subchannel it is.
1、Fix the calculation of instance id for Hygon family 18h model 6h; 2、Get instance id for Hygon family 18h model 10h。
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4748
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4763
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4815