LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-16-2011, 09:31 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Rep: Reputation: 20
Question PCI I/O MEM issues


Dear all,

Here is the description of my machine mothercard and bios (up-to-date) :

Code:
description: Motherboard
       product: 0Y960C
       vendor: Dell Inc.
       physical id: 0
       version: A00
       serial: ..CN7082103IB0A8
Code:
description: BIOS
          vendor: Dell Inc.
          physical id: 0
          version: A06 (12/23/2009)
          size: 64KiB
          capacity: 8128KiB
          capabilities: pci pnp apm upgrade shadowing escd c int13floppytoshiba int13floppy720 int5printscreen int9keybo7printer acpi usb biosbootspecification netboot
My problem is that my machine does not boot correctly when my Geforce GTX 580 is plugged and there is no much option in bios bootmenu. So I do a

Code:
echo 1 > /sys/bus/pci/rescan
That seems to work but the PCI I/O memory allocation does not work correctly.

dmesg gives :

Code:
pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00ffffff]
pci 0000:01:00.0: reg 14: [mem 0x00000000-0x07ffffff 64bit pref]
pci 0000:01:00.0: reg 1c: [mem 0x00000000-0x01ffffff 64bit pref]
pci 0000:01:00.0: reg 24: [io  0x0000-0x007f]
pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0007ffff pref]
pci 0000:01:00.1: reg 10: [mem 0x00000000-0x00003fff]
i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
pcieport 0000:00:01.0: BAR 9: can't assign mem pref (size 0xc000000)
pci 0000:01:00.0: BAR 1: can't assign mem pref (size 0x8000000)
pci 0000:01:00.0: BAR 3: can't assign mem pref (size 0x2000000)
pci 0000:01:00.0: BAR 0: can't assign mem (size 0x1000000)
pci 0000:01:00.0: BAR 6: assigned [mem 0xfe500000-0xfe57ffff pref]
pci 0000:01:00.1: BAR 0: assigned [mem 0xfe580000-0xfe583fff]
pci 0000:01:00.1: BAR 0: set to [mem 0xfe580000-0xfe583fff] (PCI address [0xfe580000-0xfe583fff]
pci 0000:01:00.0: BAR 5: assigned [io  0x3000-0x307f]
pci 0000:01:00.0: BAR 5: set to [io  0x3000-0x307f] (PCI address [0x3000-0x307f]
vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
nvidia 0000:01:00.0: enabling device (0000 -> 0001)
nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
NVRM: BAR0 is 0M @ 0x0 (PCI:0000:01:00.0)
NVRM: The system BIOS may have misconfigured your GPU.
nvidia: probe of 0000:01:00.0 failed with error -1
NVRM: The NVIDIA probe routine failed for 1 device(s).
NVRM: None of the NVIDIA graphics adapters were initialized!
Some people solve this by disabling acpi or by changing a "Top Of Memory under 4GB" bios option to a value under 2GB (see links bellow).

So, I was just wondering whether
  1. Some of you got and solve a similar issue
  2. I can disabling acpi ater booting
  3. there is a "Top Of Memory" setting I can do after booting
  4. assigning BAR address with setpci can solve the problem

I thank you in advance,

Éric.

Last edited by aihaike; 11-16-2011 at 09:33 PM.
 
Old 11-17-2011, 02:20 PM   #2
brainvision
Member
 
Registered: Mar 2009
Location: Bologna (BO)
Distribution: slackware-current
Posts: 50

Rep: Reputation: 1
related to your second question: maybe you can add acpi=off to your lilo / Grub configuration..
 
Old 11-17-2011, 10:50 PM   #3
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
I've just disabled acpi when booting doing "linux acpi=off" at lilo prompt but first I was not able to run startx, second it did not solve the issue.
I also checked any memory option in bios, but saw nothing.
It seems to be that the only way to make it working is to use set address or whatever with setpci. The point is I don't know what to set.

Last edited by aihaike; 11-17-2011 at 11:02 PM.
 
Old 11-21-2011, 08:14 PM   #4
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
It seems I have to provide more information about the system I'm running.
Well, it's a Slacware64 13.1 with the kernel 2.6.33.4.
I'm far to be a kernel expert (specially 2.6) but it may be something to change in it so that PCI I/O memory allocations for my device get right.
What do you think.
 
Old 11-26-2011, 12:00 AM   #5
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Question

I've been reading that the issue my come from mtrr stuff ....
Well, I don't quite get it yet, but my /proc/mtrr looks like this :
Code:
reg00: base=0x0bde00000 ( 3038MB), size=    2MB, count=1: uncachable
reg01: base=0x0be000000 ( 3040MB), size=   32MB, count=1: uncachable
reg02: base=0x0bdd00000 ( 3037MB), size=    1MB, count=1: uncachable
reg03: base=0x0c0000000 ( 3072MB), size= 1024MB, count=1: uncachable
reg04: base=0x0c0000000 ( 3072MB), size=  256MB, count=1: write-combining
It does not look good to me.
I would appreciate some helps here.
Did anyone figure out how to solve this?
 
  


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
PCI: device not available (can't reserve [mem 0x00000000-0x0003ffff]) ramukaka Linux - Kernel 6 09-06-2010 03:08 AM
PCI : failed to allocate mem resource... Alexvader Slackware 9 12-03-2009 05:34 PM
PCI: Failed to allocate mem resource wjdoss Linux - Server 5 09-13-2009 12:10 PM
PCI: Failed to allocate mem resource #6 johnsfine Linux - Hardware 0 02-10-2008 08:51 AM
Some mem problems with pci region Ephracis Linux - Software 0 03-24-2005 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:13 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