Module Name: src Committed By: martin Date: Sun Sep 23 17:40:38 UTC 2018
Modified Files: src/sys/dev/pci [netbsd-8]: pci_subr.c pcireg.h Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1028): sys/dev/pci/pci_subr.c: revision 1.203 sys/dev/pci/pcireg.h: revision 1.140 Add ATS Relaxed Ordering supported bit described in Address Translation Relaxed Ordering ECN. To generate a diff of this commit: cvs rdiff -u -r1.183.2.6 -r1.183.2.7 src/sys/dev/pci/pci_subr.c cvs rdiff -u -r1.130.2.5 -r1.130.2.6 src/sys/dev/pci/pcireg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.183.2.6 src/sys/dev/pci/pci_subr.c:1.183.2.7 --- src/sys/dev/pci/pci_subr.c:1.183.2.6 Thu Jul 26 23:11:59 2018 +++ src/sys/dev/pci/pci_subr.c Sun Sep 23 17:40:37 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.183.2.6 2018/07/26 23:11:59 snj Exp $ */ +/* $NetBSD: pci_subr.c,v 1.183.2.7 2018/09/23 17:40:37 martin Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.183.2.6 2018/07/26 23:11:59 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.183.2.7 2018/09/23 17:40:37 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -3152,6 +3152,7 @@ pci_conf_print_ats_cap(const pcireg_t *r printf(" Invalidate Queue Depth: %u\n", num); onoff("Page Aligned Request", reg, PCI_ATS_CAP_PALIGNREQ); onoff("Global Invalidate", reg, PCI_ATS_CAP_GLOBALINVL); + onoff("Relaxed Ordering", reg, PCI_ATS_CAP_RELAXORD); printf(" Control register: 0x%04x\n", ctl); printf(" Smallest Translation Unit: %u\n", Index: src/sys/dev/pci/pcireg.h diff -u src/sys/dev/pci/pcireg.h:1.130.2.5 src/sys/dev/pci/pcireg.h:1.130.2.6 --- src/sys/dev/pci/pcireg.h:1.130.2.5 Thu Jul 26 23:11:59 2018 +++ src/sys/dev/pci/pcireg.h Sun Sep 23 17:40:37 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: pcireg.h,v 1.130.2.5 2018/07/26 23:11:59 snj Exp $ */ +/* $NetBSD: pcireg.h,v 1.130.2.6 2018/09/23 17:40:37 martin Exp $ */ /* * Copyright (c) 1995, 1996, 1999, 2000 @@ -1770,6 +1770,7 @@ struct pci_rom { #define PCI_ATS_CAP_INVQDEPTH __BITS(4, 0) /* Invalidate Queue Depth */ #define PCI_ATS_CAP_PALIGNREQ __BIT(5) /* Page Aligned Request */ #define PCI_ATS_CAP_GLOBALINVL __BIT(6) /* Global Invalidate Support */ +#define PCI_ATS_CAP_RELAXORD __BIT(7) /* Relaxed Ordering */ #define PCI_ATS_CTL 0x04 /* Control Register */ #define PCI_ATS_CTL_STU __BITS(20, 16) /* Smallest Translation Unit */ #define PCI_ATS_CTL_EN __BIT(31) /* Enable */