All of lore.kernel.org
 help / color / mirror / Atom feed
From: j.hwan.kim99@gmail.com (J.Hwan.Kim)
To: kernelnewbies@lists.kernelnewbies.org
Subject: PCI IO memory resource allocation
Date: Fri, 19 Aug 2011 01:04:06 +0900	[thread overview]
Message-ID: <4E4D37F6.2000100@gmail.com> (raw)
In-Reply-To: <CABV+yWvzZAHUkDZj_Dxr40dV-ZWt-hn+nAp-=tsWPOYeUHc+3A@mail.gmail.com>

On 2011? 08? 18? 15:01, Vladimir Murzin wrote:
> On Wed, Aug 17, 2011 at 3:33 PM, J.Hwan Kim<frog1120@gmail.com>  wrote:
>> 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

> 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

  reply	other threads:[~2011-08-18 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 11:33 PCI IO memory resource allocation J.Hwan Kim
2011-08-18  6:01 ` Vladimir Murzin
2011-08-18 16:04   ` J.Hwan.Kim [this message]
2011-08-18 17:50     ` Erlon Cruz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E4D37F6.2000100@gmail.com \
    --to=j.hwan.kim99@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.