LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2015, 02:33 AM   #1
diya26
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Rep: Reputation: Disabled
PCi Memory Resource allocation in Kernel


Hi,

I am working on pcie switch 8749. I have 4 endpoint devices each requesting 8MB memory space. But kernel allocated 1MB to each endpoints.

Why memory allocates 1MB space and how to tel kernel to allocate request memory size.

Please guide,
 
Old 07-09-2015, 03:10 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Did you try to search in google with "pcie memory allocation"?
http://vger.kernel.org/

Last edited by Keruskerfuerst; 07-09-2015 at 03:14 AM.
 
Old 07-09-2015, 05:45 AM   #3
diya26
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yes of course but could not get enough information from Google.

Bios is allocating total 64MB for PCI space. There are many endpoint devices connected to switch. For one of endpoint i am requesting to allocate 8Mb but pci allocates 1MB default.

As far i guess, pci will automatically allocate the bar address and size on request.

But in my case, it is not allocating.

Should i need to see anything in BIOS.
 
Old 07-09-2015, 02:06 PM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You can also ask the kernel developers.
 
Old 07-21-2015, 12:33 AM   #5
diya26
LQ Newbie
 
Registered: Jul 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for reply,

I am able to sort out the issue.

The problem was in endpoint pci space. The address bar was not correctly masked to get the required memory space.Once this was handled , i am able to view 8MB space allocated to endpoint
in Bios
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!: CPU resource allocation between kernel modules and user mode process neyshule Linux - Kernel 4 04-08-2011 02:29 PM
static kernel memory allocation in Linux niceguyad Programming 1 03-31-2008 03:29 PM
PCI: Failed to allocate memory and I/O resource? chickenjoy Linux - Laptop and Netbook 3 04-25-2007 07:37 PM
kernel memory + slabinfo.. + possible reasons for kernel space allocation failures!! premenjit Linux - Software 1 09-28-2004 04:13 AM
dynamic memory allocation in kernel module appas Programming 4 09-21-2004 06:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration