[coreboot] Dealing with PCI reset

Timothy Pearson tpearson at raptorengineering.com
Sun Dec 11 22:54:51 CET 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/11/2016 03:48 PM, Paul Menzel via coreboot wrote:
> Dear coreboot folks,
> 
> 
> Several devices using the Intel 945 chipset copied code for PCI reset,
> costing 200 ms of boot time.
> 
> ```
>         /* Force PCIRST# */
>         pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, SBR);
>         udelay(200 * 1000);
>         pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, 0);
> ```
> 
> The change-set Ia37d9f0ecf5655531616edb20b53757d5d47b42f [1] removes
> that code from the Lenovo X60.
> 
> That code was added for some crypto card on a Roda device.
> 
> My question is, if removing that code is fine, or if it should be left
> in and be made configurable (Kconfig/NVRAM)?
> 
> Are there often cases where there are extensions card with problems,
> that need such a PCI reset?

We have run into this issue on the KGPE-D16 and LSI SAS controllers.
However, in this case it's not so much the reset itself as it is the
time it takes for the card to start up and become ready for PCI scan.

We handled this with a devicetree.cb option to set a delay between reset
and PCI scan.  Perhaps something similar could be used in this instance?

- -- 
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
https://www.raptorengineering.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJYTcspAAoJEK+E3vEXDOFbbzQH/34G9MP0fpe5a83ifoXu20Dq
12GLduOIsknFdYoe45yBHwKCsejJPrc4cMYjv7cYMHVP1Ujlu9UoKVyMN4IiAGTK
i5fIvjyMsDh8XB4zngBoffhZUckvIwxiCvIojMhkUebRB04j+nYluZgpFNNHPo1B
vOZtAXP1Vst6qc82fid9U2b5gWOyTNgaTxCdf9FeKFGdIKoW14Gn3c1o3TJN88hf
CTsDAamKGs2ZPINbfX5VIrlQL+ft87I+Az5IpwJKY4Vy8JA4L5AgNHnaMrTYKyu2
GbGtNTORjGij5XSTrDWTZxBa0oLzpLkNzvCWZBqohSwIv1L5p2NOUtgTvRc7AS0=
=uoXv
-----END PGP SIGNATURE-----



More information about the coreboot mailing list