ICH8 devices have an errata which requires us to reconfigure the packet buffer size (PBS) register, and correspondingly adjust the packet buffer allocation (PBA) register. The "Intel I/O Controller Hub ICH8/9/10 and 82566/82567/82562V Software Developer's Manual" notes for the PBS register that: 10.4.20 Packet Buffer Size - PBS (01008h; R/W) Note: The default setting of this register is 20 KB and is incorrect. This register must be programmed to 16 KB. Initial value: 0014h 0018h (ICH9/ICH10) It is unclear from this comment precisely which devices require the workaround to be applied. We currently attempt to err on the side of caution: if we detect an initial value of either 0x14 or 0x18 then the workaround will be applied. If the workaround is applied unnecessarily, then the effect should be just that we use less than the full amount of the available packet buffer memory. Unfortunately this approach does not play nicely with other device drivers. For example, the Linux e1000e driver will rewrite PBA while assuming that PBS still contains the default value, which can result in inconsistent values between the two registers, and a corresponding inability to transmit or receive packets. Even more unfortunately, the contents of PBS and PBA are not reset by anything less than a power cycle, meaning that this error condition will survive a hardware reset. The Linux driver (written and maintained by Intel) applies the PBS/PBA errata workaround only for devices in the ICH8 family, identified via the PCI device ID. Adopt a similar approach, using the PCI_ROM() driver data field to indicate when the workaround is required. Reported-by: Donald Bindner <dbindner@truman.edu> Debugged-by: Donald Bindner <dbindner@truman.edu> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
294 |
|
294 |
|
295 |
|
295 |
|
296 |
|
296 |
|
297 |
|
|
|
298 |
|
|
|
|
297 |
|
|
299 |
|
298 |
|
300 |
|
299 |
|
|
300 |
|
|
301 |
|
301 |
|
302 |
|
302 |
|
303 |
|
303 |
|
|
|
||
816 |
|
816 |
|
817 |
|
817 |
|
818 |
|
818 |
|
|
819 |
|
|
819 |
|
820 |
|
820 |
|
821 |
|
821 |
|
822 |
|
|
|
||
911 |
|
912 |
|
912 |
|
913 |
|
913 |
|
914 |
|
914 |
|
|
|
915 |
|
|
|
916 |
|
|
|
917 |
|
|
|
918 |
|
|
|
|
915 |
|
|
|
916 |
|
|
|
917 |
|
|
|
918 |
|
|
|
919 |
|
|
919 |
|
920 |
|
920 |
|
921 |
|
921 |
|
922 |
|
|
|
||
948 |
|
949 |
|
949 |
|
950 |
|
950 |
|
951 |
|
951 |
|
|
|
952 |
|
|
|
953 |
|
|
|
954 |
|
|
|
955 |
|
|
|
|
952 |
|
|
|
953 |
|
|
|
954 |
|
|
|
955 |
|
|
|
956 |
|
|
956 |
|
957 |
|
957 |
|
958 |
|
958 |
|
959 |
|
|
|
||
975 |
|
976 |
|
976 |
|
977 |
|
977 |
|
978 |
|
978 |
|
|
|
|
979 |
|
|
979 |
|
980 |
|
980 |
|
981 |
|
981 |
|
982 |
|
|
|
||
229 |
|
229 |
|
230 |
|
230 |
|
231 |
|
231 |
|
|
232 |
|
|
|
233 |
|
|
232 |
|
234 |
|
233 |
|
235 |
|
234 |
|
236 |
|
|
|
||
245 |
|
247 |
|
246 |
|
248 |
|
247 |
|
249 |
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
248 |
|
256 |
|
249 |
|
257 |
|
250 |
|
258 |
|