Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-28 08:43:42
Last Modify:2020-03-16 21:36:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Data Fabric Indirect Access uses FICAA/FICAD

Proto:int amd_df_indirect_read(u16 node, u8 func, u16 reg, u8 instance_id, unsigned int *lo)

Type:int

Parameter:

TypeParameterName
u16node
u8func
u16reg
u8instance_id
unsigned int *lo
185  err = -ENODEV
187  If node >= num Then Go to out
190  F4 = link
191  If Not F4 Then Go to out
194  ficaa = 1
195  ficaa |= reg & 0x3FC
196  ficaa |= (func & 0x7) << 11
197  ficaa |= instance_id << 16
199  mutex_lock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
201  err = pci_write_config_dword(F4, 0x5C, ficaa)
202  If err Then
203  pr_warn("Error writing DF Indirect FICAA, FICAA=0x%x\n", ficaa)
204  Go to out_unlock
207  err = pci_read_config_dword(F4, 0x98, lo)
208  If err Then pr_warn("Error reading DF Indirect FICAD LO, FICAA=0x%x.\n", ficaa)
211  out_unlock :
212  mutex_unlock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
214  out :
215  Return err
Caller
NameDescribe
umc_normaddr_to_sysaddr