The invention relates to the technical field of
chip packaging, in particular to a PCIe (
peripheral component interface express) equipment function number
border crossing prevention method supporting ARI (automatic repeat interface). The hardware layer protection process is as follows: S1-1, hot plugging; s1-2, if it is detected that the equipment declarates to support ARI, the PCIe controller hardware circuit immediately sets an equipment number register to zero; s1-3, only allowing the PCIe controller of the
system to read the
configuration space unidirectionally during the low level period of the reset
signal PERST #; the interception process of the driving layer is as follows: S2-1, in an equipment enumeration stage, an
operating system drives to dynamically read an ARI capability register; s2-2, if the equipment declarates to support ARI, forcing an equipment number register to be equal to 0, and releasing an original equipment number bit space for function number expansion; s2-3,
border crossing access is blocked; and S2-4,
synchronizing the state register. Compared with the prior art,
correctness of device function numbers is guaranteed through two dimensions of
hardware register state solidification and driver layer access truncation, and'
perception-free '
fault tolerance of the PCIe device under ARI / traditional
mode switching is achieved for the first time.