PCI config space doubt

PCI config space doubt

am 24.04.2007 08:33:32 von Rajat Jain

Hi,

Does Linux assign the resources to PCI devices? Or is it done by PCI firmware?

If it is done by firmware, I have the following doubt:

By looking at the PCI configuration space, I can only see Base Address
Registers (BARS) for the 6 resources a device can have. How does the
kernel know about the length and the flags of the resources (since
they do no seem to be present in PCI config space)?

Thanks,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: PCI config space doubt

am 24.04.2007 11:41:52 von Erik Mouw

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

On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote:
> Does Linux assign the resources to PCI devices? Or is it done by PCI
> firmware?

Yes.


Erik

- --
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGLdDf/PlVHJtIto0RAqukAJ9cfecEpyBJeTyFITM5G4DQ+Iz6DgCf QjOy
J1wUJulSFNYFQHSXN0y01ek=
=HhpL
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: PCI config space doubt

am 24.04.2007 11:50:01 von Rajat Jain

> On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote:
> > Does Linux assign the resources to PCI devices? Or is it done by PCI
> > firmware?
>
> Yes.
>
>
> Erik
>

Hi Erik,

I'm sorry but I could not understand your "Yes" very well ... so Which
one of the following assigns the resources to PCI devices?

- Linux Kernel?
- PCI firmware?

Thanks,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: PCI config space doubt

am 24.04.2007 12:27:33 von Erik Mouw

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

On Tue, Apr 24, 2007 at 03:20:01PM +0530, Rajat Jain wrote:
> >On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote:
> >> Does Linux assign the resources to PCI devices? Or is it done by PCI
> >> firmware?
> >
> >Yes.
>
> I'm sorry but I could not understand your "Yes" very well ... so Which
> one of the following assigns the resources to PCI devices?

Sorry, forgot to remove the remaining question.

> - Linux Kernel?

Kernel.

> - PCI firmware?

Modern BIOSes usually only initialise the devices needed for boot:
disk and video card. With older BIOSes you can control that by the
"PnP OS" option, even older BIOSes initialise every device.


Erik

- --
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGLduV/PlVHJtIto0RAhVnAJ98QaZJb54Pay3YomPCfZKZnfx/EACg gpVo
KfWHHCCeL+a+sRSC59nNQZM=
=40ae
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: PCI config space doubt

am 24.04.2007 12:38:37 von Rajat Jain

On 4/24/07, Erik Mouw wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, Apr 24, 2007 at 03:20:01PM +0530, Rajat Jain wrote:
> > >On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote:
> > >> Does Linux assign the resources to PCI devices? Or is it done by PCI
> > >> firmware?
> > >
> > >Yes.
> >
> > I'm sorry but I could not understand your "Yes" very well ... so Which
> > one of the following assigns the resources to PCI devices?
>
> Sorry, forgot to remove the remaining question.
>
> > - Linux Kernel?
>
> Kernel.
>
> > - PCI firmware?
>
> Modern BIOSes usually only initialise the devices needed for boot:
> disk and video card. With older BIOSes you can control that by the
> "PnP OS" option, even older BIOSes initialise every device.
>

Thank You,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs