PCI Device Bus (Demo)

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
CEU/CPE
21
Video Transcription
00:00
>> Hey Cybrarians. Welcome back to
00:00
the Linux plus course here at Cybrary.
00:00
I'm your instructor Rob Goelz.
00:00
In today's lesson, we're going to be
00:00
covering the PCI device bus.
00:00
Upon completion of today's lesson,
00:00
you're going to be able to understand
00:00
the Peripheral Component Interconnect
00:00
or PCI standard in Linux,
00:00
you're going to be able to explain the different types of
00:00
devices that may use the PCI bus,
00:00
and then also we're going to use
00:00
the lspci command later in a demo to list PCI devices.
00:00
The Peripheral Component Interconnect
00:00
or PCI standard was developed in
00:00
1993 and this is for
00:00
connecting adapter boards to motherboards.
00:00
The bus supports 32-bit or
00:00
64-bit addressing and PCIe
00:00
is the current standard as PCI Express.
00:00
PCIe 5.0 was released in 2019 and
00:00
can deliver 4.0 gigabits per second of data transfer.
00:00
Now PCI limits buses to 256 per system,
00:00
but each bus can hold 32 devices.
00:00
Again, I don't know what systems these are
00:00
that have all of these devices, but that is awesome.
00:00
The PCI bus is hierarchical and starts at the top bus.
00:00
You will always see it start with the number 0.
00:00
Now PCI adapters can support a lot of
00:00
different device types:
00:00
graphics cards and audio cards for one thing.
00:00
Graphics cards are the most common use of
00:00
PCIe on desktop environments.
00:00
Then audio cards are sometimes
00:00
also used for high-quality sound or
00:00
surround sound output and they
00:00
generally will use PCIe as well.
00:00
Internal and external hard drives,
00:00
things like SATA and SCSI storage
00:00
often use PCI to connect
00:00
with the system or to join
00:00
disk together in a RAID configuration.
00:00
Now external hard drives not supported by
00:00
an on-board motherboard header use PCI,
00:00
as do high-speed storage with fiber channel HBAs.
00:00
Then finally, network cards,
00:00
high-speed network connections and
00:00
wireless cards also use the PCI bus.
00:00
Now remember this, the lspci command is
00:00
used to list PCI devices on a Linux system.
00:00
By default, the format of
00:00
the lspci command is Bus:Device:Function,
00:00
then class, and then finally vendor name.
00:00
We can get a lot more verbose output from lspci by adding
00:00
a -v or a -vv to the end of it.
00:00
Let's see this command in action with some demo time.
00:00
Here we are in our demo environment again,
00:00
we're in Ubuntu for this.
00:00
Let's first of all just run
00:00
lspci and see the default output.
00:00
Then we can see all of the PCI devices
00:00
that are running on the system.
00:00
As we did with USB,
00:00
let's see this in a tree or hierarchical view.
00:00
We can do that with lspci-t. Then we can see the layout.
00:00
Again, this always starts from zero,
00:00
zero and then it goes down from there.
00:00
How about a more detailed tree view?
00:00
Well, we can do an lspci-tv,
00:00
just like we did with USB.
00:00
Then we can see some information about what's actually
00:00
running on all these spots.
00:00
If we want to see a more detailed view without the tree,
00:00
let's do an lspci-v. Let's clear our screen first.
00:00
That's a lot of information. More detail?
00:00
Why not. We'll do an lspci-vv
00:00
and now we've got even more information.
00:00
We can also see the kernel modules
00:00
that are in use by the devices.
00:00
This is pretty cool. We can do an lspci-k for
00:00
kernel and we'll see the kernel modules
00:00
that are in use for each one of the devices.
00:00
With that, we've reached the end of this lesson.
00:00
In this lesson, we covered
00:00
the Peripheral Component Interconnect
00:00
or PCI standard in Linux.
00:00
Then we talked about the types of
00:00
devices that are sometimes used,
00:00
they're using PCI, the adapters that use PCI and PCIe.
00:00
Then we also used the lspci command
00:00
in our demo to display PCI devices.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next