LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Issue installing a external GPU device (https://www.linuxquestions.org/questions/linux-hardware-18/issue-installing-a-external-gpu-device-888879/)

aihaike 07-11-2011 07:53 PM

I think the module is already associated to the device.
modindo nvidia gives
Code:

filename:      /lib/modules/2.6.33.4/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
supported:      external
license:        NVIDIA
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        agpgart,i2c-core
vermagic:      2.6.33.4 SMP mod_unload
parm:          NVreg_EnableVia4x:int
parm:          NVreg_EnableALiAGP:int
parm:          NVreg_ReqAGPRate:int
parm:          NVreg_EnableAGPSBA:int
parm:          NVreg_EnableAGPFW:int
parm:          NVreg_Mobile:int
parm:          NVreg_ResmanDebugLevel:int
parm:          NVreg_RmLogonRC:int
parm:          NVreg_ModifyDeviceFiles:int
parm:          NVreg_DeviceFileUID:int
parm:          NVreg_DeviceFileGID:int
parm:          NVreg_DeviceFileMode:int
parm:          NVreg_RemapLimit:int
parm:          NVreg_UpdateMemoryTypes:int
parm:          NVreg_UseVBios:int
parm:          NVreg_RMEdgeIntrCheck:int
parm:          NVreg_UsePageAttributeTable:int
parm:          NVreg_EnableMSI:int
parm:          NVreg_MapRegistersEarly:int
parm:          NVreg_RegisterForACPIEvents:int
parm:          NVreg_RegistryDwords:charp
parm:          NVreg_RmMsg:charp
parm:          NVreg_NvAGP:int

This information is partially taken from /lib/module/`uname -r`/modules.alias
But modprobe nvidia gives me a "No such device" error, dmesg the following
Code:

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!

Thank you.

aihaike 07-20-2011 12:27 AM

I've just realized that I can "remove" (actually switch off) the device and put it back
To remove it, I do
Code:

echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove
and
echo 1 > /sys/bus/pci/devices/0000\:01\:00.1/remove

and it does not appear in lspci output anymore.

Then I switch it off.
After that, I start it again.
If I do lspci, it (obviously) does not appear in the list.
I do
Code:

echo 1 > /sys/bus/pci/rescan
And here it is!!
It works 100% of time (of my tests).

When the device gets detected, demesg shows
Code:

pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00ffffff]
pci 0000:01:00.0: reg 14: [mem 0xf0000000-0xf7ffffff 64bit pref]
pci 0000:01:00.0: reg 1c: [mem 0xf8000000-0xf9ffffff 64bit pref]
pci 0000:01:00.0: reg 24: [io  0x1000-0x107f]
pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0007ffff pref]
pci 0000:01:00.1: reg 10: [mem 0xfe500000-0xfe503fff]
i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
pci 0000:01:00.0: BAR 1: assigned [mem 0xf0000000-0xf7ffffff 64bit pref]
pci 0000:01:00.0: BAR 1: set to [mem 0xf0000000-0xf7ffffff 64bit pref] (PCI address [0xf0000000-0xf7ffffff]
pci 0000:01:00.0: BAR 3: assigned [mem 0xf8000000-0xf9ffffff 64bit pref]
pci 0000:01:00.0: BAR 3: set to [mem 0xf8000000-0xf9ffffff 64bit pref] (PCI address [0xf8000000-0xf9ffffff]
pci 0000:01:00.0: BAR 0: can't assign mem (size 0x1000000)
pci 0000:01:00.0: BAR 6: assigned [mem 0xfa000000-0xfa07ffff pref]
pci 0000:01:00.1: BAR 0: assigned [mem 0xfe500000-0xfe503fff]
pci 0000:01:00.1: BAR 0: set to [mem 0xfe500000-0xfe503fff] (PCI address [0xfe500000-0xfe503fff]
pci 0000:01:00.0: BAR 5: assigned [io  0x1000-0x107f]
pci 0000:01:00.0: BAR 5: set to [io  0x1000-0x107f] (PCI address [0x1000-0x107f]
vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16

That would be awesome if someone can explain to me the meaning of this and if there is a way solve this issue.
Thank you,

Éric.


All times are GMT -5. The time now is 06:03 PM.