freebsd-dev/sys
Bjoern A. Zeeb b3b836251f LinuxKPI: pci: implement pci_upstream_bridge()
Allow drivers to query the "upstream PCI bridge".
Currently we point back to ourselves on pdev->bus->self rather than
to the parent PCI bridge.
We keep this as status-quo with an extra comment and only on-demand
allocate a pci_dev for the parent bridge if we are asked for in
pci_upstream_bridge().
When releasing the pci_dev we check if pdev->bus->self has changed
and call pci_dev_put() to release the reference count on the parent
bridge as well.

This code moves pci_is_root_bus() higher up in pci.h but no functional
change there.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	hselasky, (jhb some earlier)
Thanks to:	wulf for handling drm-kmod
Differential Revision: https://reviews.freebsd.org/D34305
2022-03-21 14:35:23 +00:00
..
amd64 x86/tsc: fetch frequency from CPUID when running on Xen 2022-03-18 10:21:04 +01:00
arm armv6/legacy: optimize cpu_getcount performance 2022-03-14 07:51:21 +01:00
arm64 arm64: gic: disable the ITS if it's enabled prior to configuration 2022-03-18 22:03:44 -05:00
bsm
cam CTL: Rework 05c3e8e871 using %zu format. 2022-02-25 11:53:53 -05:00
cddl zfs: merge openzfs/zfs@a86e08941 (master) into main 2022-03-08 18:53:02 +01:00
compat LinuxKPI: pci: implement pci_upstream_bridge() 2022-03-21 14:35:23 +00:00
conf Retire broken snd_ds1 and snd_maestro drivers 2022-03-18 20:33:19 -04:00
contrib zfs: add missing replay check to an assert in zfs_xvattr_set 2022-03-15 11:38:58 +00:00
crypto armv8crypto: Remove leftover debug printfs 2022-02-17 14:25:45 -05:00
ddb
dev Add deprecation notices to ISA sound cards 2022-03-19 14:57:26 -04:00
dts dts: add IPQ4018/IPQ4019 ethernet MAC and ethernet switch definitions 2022-02-03 21:26:45 -08:00
fs nullfs: hash insertion without vnode lock upgrade 2022-03-19 10:47:10 +00:00
gdb gdb(4): Do not use run length encoding for 3-symbol repetitions 2022-01-22 14:46:06 -05:00
geom GEOM: Introduce partial confxml API 2022-03-12 11:55:52 -05:00
gnu
i386 x86/tsc: fetch frequency from CPUID when running on Xen 2022-03-18 10:21:04 +01:00
isa
kern kern_tc.c/cputick2usec() (which is used to calculate cputime from 2022-03-21 09:33:46 -04:00
kgssapi
libkern
modules Retire broken snd_ds1 and snd_maestro drivers 2022-03-18 20:33:19 -04:00
net if_epair: build fix 2022-03-17 06:43:47 +01:00
net80211 net80211: enhance (disabled) debugging 2022-02-14 22:16:59 +00:00
netgraph ng pppoe(4): Add the required NET_EPOCH section to the hook 2022-02-09 22:00:50 +03:00
netinet rip: Fix a -Wunused-but-set-variable warning 2022-03-01 09:39:43 -05:00
netinet6 Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues 2022-01-27 10:34:34 -05:00
netipsec ipsec: sprinkle CURVNET_ASSERT_SET 2022-02-19 13:10:41 +00:00
netpfil pf: fix !INET or !INET6 builds 2022-03-16 12:52:07 -07:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ibcore: Fix multiple includes of same header file. 2022-03-03 12:51:20 +01:00
opencrypto crypto: hide crypto_destroyreq behind a tunable 2022-02-16 07:45:12 +00:00
powerpc powerpcspe: add virtio in-kernel support 2022-03-15 09:34:22 -03:00
riscv riscv: Add support for enabling SV48 mode 2022-03-01 09:39:44 -05:00
rpc
security
sys vfs: replace VFS_NOTIFY_UPPER_* macros with an enum 2022-03-19 13:15:55 +00:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-03-12 09:17:29 -05:00
tests
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs ffs_mount(): fix snapshotting 2022-03-16 17:32:37 -08:00
vm uma: Add UMA_ZONE_UNMANAGED 2022-02-15 09:25:34 -05:00
x86 x86/tsc: fetch frequency from CPUID when running on Xen 2022-03-18 10:21:04 +01:00
xdr
xen xen: remove public headers in sys/xen/interface 2022-02-07 10:12:34 +01:00
Makefile