Skip to contentSkip to conversation

PCI IO memory resource allocation

DISCUSSION J.Hwan Kim 4 participants 4 messages Aug 17, 2011 – Aug 18, 2011

lore
Share & tools
lore

J.Hwan Kim

author
#0 lore raw

Hi, everyone

In kernel source, where is the PCI IO memory resource allocation is done? (memory mapped io)

And can you explain the IO memory resource allocation mechanism?

Thanks in advance

Best Regards,

J.Hwan Kim

#1 lore raw
Quoted 11 lines · J.Hwan Kim

Hi, everyone

In kernel source, where is the PCI IO memory resource allocation is done? (memory mapped io)

And can you explain the IO memory resource allocation mechanism?

Thanks in advance

Best Regards,

Quoted 9 lines

J.Hwan Kim

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Hi J.Hwan,

Have you tried reading some books like Linux Device Drivers by Jonathan Corbet, Alessandro
Rubini, and Greg Kroah-Hartman? In mentioned book there is a chapter dedicated to PCI subsystem.

#2 lore raw
Quoted 12 lines · Vladimir Murzin
Quoted 11 lines · J.Hwan Kim

Hi, everyone

In kernel source, where is the PCI IO memory resource allocation is done? (memory mapped io)

And can you explain the IO memory resource allocation mechanism?

Thanks in advance

Best Regards,

Quoted 9 lines
Quoted 1 line

J.Hwan Kim

Hi J.Hwan,

Have you tried reading some books like Linux Device Drivers by Jonathan Corbet, Alessandro
Rubini, and Greg Kroah-Hartman? In mentioned book there is a chapter dedicated to PCI subsystem.

Thank you for reply.

As far as I know, the PCI mem resouces are allocated mainly by BIOS on Intel based system, but they can also be allocated by linux kernel according to boot command option.
I tried to find the routine in kernel source directory, but it was not easy to find it.

I want to find the source code in which linux kernel allocates the I/O memory for PCI device.
I had a problem in my pci device which uses SR-IOV function indicates that the MMIO is allocated in sufficiently and my BIOS is old version, so I hope to solve the problem using the linux kerenl for allocating the I/O mem
for the pci device and to know where the source code is for that.

Best Regards,
J.Hwan Kim

#3 lore raw

You should have a look in Linux Device Drivers, Cap. 9, and Cap. 12.

Quoted 40 lines · J.Hwan.Kim
Quoted 4 lines · Vladimir Murzin
Quoted 3 lines · J.Hwan Kim

Hi, everyone

In kernel source, where is the PCI IO memory resource allocation is

done?

Quoted 8 lines
Quoted 8 lines

(memory mapped io)

And can you explain the IO memory resource allocation mechanism?

Thanks in advance

Best Regards,

Quoted 9 lines
Quoted 1 line

J.Hwan Kim

Hi J.Hwan,

Have you tried reading some books like Linux Device Drivers by Jonathan Corbet, Alessandro
Rubini, and Greg Kroah-Hartman? In mentioned book there is a chapter dedicated to PCI subsystem.

Thank you for reply.

As far as I know, the PCI mem resouces are allocated mainly by BIOS on Intel based system, but they can also be allocated by linux kernel according to boot command option.
I tried to find the routine in kernel source directory, but it was not easy to find it.

I want to find the source code in which linux kernel allocates the I/O memory for PCI device.
I had a problem in my pci device which uses SR-IOV function indicates that the MMIO is allocated in sufficiently and my BIOS is old version, so I hope to solve the problem using the linux kerenl for allocating the I/O mem
for the pci device and to know where the source code is for that.

Quoted 9 lines

Best Regards,
J.Hwan Kim

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110818/3ce732ca/attachment.html