[SeaBIOS] [PATCH] pci: enable SERR# for error forwording in bridge control register

Paul Menzel paulepanter at users.sourceforge.net
Wed Jan 28 23:21:35 CET 2015


Dear Chen,


thank you for your patch.

You misspelled `forw*a*rding` in the summary and the comment. I have
some more nitpicks.


Am Mittwoch, den 28.01.2015, 16:05 +0800 schrieb Chen Fan:
> For PCIe device support AER(Advanced Error Reporting), from the

Please add a space before `(`.

> pcie spec 3.0 chapter 6.2.5, ERR_COR, ERR_NONFATAL, and ERR_FATAL
> can be forwarded from the secondary interface to the primary interface,
> only require the SERR# Enable bit in the Bridge Control register is set.

… to be set.

> and at the kernel side, we found only _HPP() method can enable

*A*nd …

> SERR#, So here we want to turn on this bit.

s/So/so/

> Signed-off-by: Chen Fan <chen.fan.fnst at cn.fujitsu.com>

How did you test this?

> ---
>  src/fw/pciinit.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
> index 34279a4..28ed1af 100644
> --- a/src/fw/pciinit.c
> +++ b/src/fw/pciinit.c
> @@ -310,6 +310,10 @@ static void pci_bios_init_device(struct pci_device *pci)
>      /* enable memory mappings */
>      pci_config_maskw(bdf, PCI_COMMAND, 0,
>                       PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_SERR);
> +    /* enable SERR# for forwording */

forw*a*rding

> +    if (pci->header_type & PCI_HEADER_TYPE_BRIDGE)
> +        pci_config_maskw(bdf, PCI_BRIDGE_CONTROL, 0,
> +                         PCI_BRIDGE_CTL_SERR);
>  }
>  
>  static void pci_bios_init_devices(void)

Otherwise this looks good.


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.seabios.org/pipermail/seabios/attachments/20150128/44144d1e/attachment.asc>


More information about the SeaBIOS mailing list