[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #16 from Gašper Sedej  ---
Sorry for the confusion. I was not explicit enough

My the laptop I wish to "upgrade" is HP envy 15, with intel i7-4700qm (igpu
intel hd4700) and "dgpu" nvidia optimus 840m (not so fast!!!). The envy lacks
express card

The "eGPU" GDC EXP BEAST, which includes expressCard "cable" to connect to your
laptop. 
(I ordered minipcie cable, but I am waiting for delivery)

In mean time I am testing on company's old HP EliteBook, which have Intel
Core2duo, and AMD RV635 (no intel gpu), that HAS expressCard.
(this is the only computer that has expressCard)


I also have few real, fullsized gpus to test:
- nvidia GTX 770 - it's working as eGPU, but it after few minutes in game (also
the card is my friends)
- AMD RX 480 - does not work as eGPU
-(I also have AMD HD5570, and GeForce 610, also doesn't work)


I tried with blacklisting radeon, but it didnt help
So the "PCI resource allocation" is something that bios is doing? So another
computer to test...?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #15 from Alex Deucher  ---
[  478.856218] pci :04:00.0: BAR 0: no space for [mem size 0x1000 64bit
pref]
[  478.856221] pci :04:00.0: BAR 0: failed to assign [mem size 0x1000
64bit pref]

It doesn't matter when/if you load any specific drivers.  You need to fix the
PCI resource allocation on your platform.  I'm not sure it's even possible with
your current sbios.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Alex Deucher  changed:

   What|Removed |Added

 Attachment #127713|text/x-log  |text/plain
  mime type||

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #14 from Tom St Denis  ---
I'm confused when you say "nvidia card" I see in your dmesg it's posting an
RV635 which is a crazy old radeon part not nvidia.  Is there an nvidia dgpu in
the system?  

Also by looking at your mem you seem to have 4GB of memory with 256M reserved
for the "PCI address space."  On a normal PC you'd typically have ~768M
reserved for that.

Maybe try the opposite, blacklist radeon and not amdgpu and try booting with
the card inserted.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #13 from Gašper Sedej  ---
Created attachment 127713
  --> https://bugs.freedesktop.org/attachment.cgi?id=127713=edit
modprobe amdgpu

I was able to capture more using command
ssh foo@box "dmesg -w" | tee dmesg.log
see the attachment

blacklisting didn't help, if I boot with card connected, after bios, I just get
blank screen, nothing changes. With RX 480 I can't boot (I can with nvidia)
It might be hardware (system) issue...

Still, here can I look about this BAR=0 issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #11 from Tom St Denis  ---
Couldn't you run 

ssh foo@box "dmesg -w" | tee dmesg.log

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Gašper Sedej  changed:

   What|Removed |Added

 Resolution|NOTOURBUG   |FIXED

--- Comment #10 from Gašper Sedej  ---
By "BIOS" you also mean "EFI"?

I will try to post full dmesg, but it's quite hard - to get "live" dmesg, I am
using another computer connected via ssh and command
watch -n 0.05 "dmesg | tail -n 100"
and console to "micro" font size, so I can select and copy text it comes
trough...

How can I access logs when kernel freezes due to graphics issue?

Also, if I boot computer with enabled eGPU (RX 480), I simply won't get
anything because it crashes too quick to be able to capture trough ssh...
(the monitor is blank even with text boot mode)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Alex Deucher  changed:

   What|Removed |Added

 Resolution|FIXED   |NOTOURBUG

--- Comment #9 from Alex Deucher  ---
(In reply to Gašper Sedej from comment #8)
> I am using "EXP GDC Beast",
> http://www.banggood.com/EXP-GDC-Laptop-External-PCI-E-Graphics-Card-p-934367.
> html
> The limitation is on PCIe lanes - only 1x or 2x. The pcie version is
> probably v2 because of laptop age.
> The EXP GDC hase some CTD and PTD settings as seen in link, but I am not
> sure what it does. (nvidia works in current settings)
> 
> The laptop can boot via BIOS and via EFI. I did EFI installation, since I
> read it was better for such setups.
> 
> I am using kernel parameters pci=norcs and pci=realloc - I don't know why,
> but nvidia does not work without those parameters.
> I think "pci=realloc" is for kernel memory allocation, but this is different
> than "PCI BAR" right?
> 
> Where can I ask about PCI BAR issue?


pci=realloc will attempt to handle additional pci resources like bars that were
not handled by the bios on boot.  Whether or not it succeeds will depend on the
number and size of the bars.  Do you also need pci=norcs?  You may just be
getting lucky on the nvidia card if it uses fewer or smaller bars.  Please
attach the full dmesg output.  You should see messages about unassigned
resources.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Gašper Sedej  changed:

   What|Removed |Added

 Resolution|NOTOURBUG   |FIXED

--- Comment #8 from Gašper Sedej  ---
I am using "EXP GDC Beast",
http://www.banggood.com/EXP-GDC-Laptop-External-PCI-E-Graphics-Card-p-934367.html
The limitation is on PCIe lanes - only 1x or 2x. The pcie version is probably
v2 because of laptop age.
The EXP GDC hase some CTD and PTD settings as seen in link, but I am not sure
what it does. (nvidia works in current settings)

The laptop can boot via BIOS and via EFI. I did EFI installation, since I read
it was better for such setups.

I am using kernel parameters pci=norcs and pci=realloc - I don't know why, but
nvidia does not work without those parameters.
I think "pci=realloc" is for kernel memory allocation, but this is different
than "PCI BAR" right?

Where can I ask about PCI BAR issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Alex Deucher  changed:

   What|Removed |Added

 Resolution|FIXED   |NOTOURBUG

--- Comment #7 from Alex Deucher  ---
(In reply to Gašper Sedej from comment #6)
> What can I do? Any way to debug?

You'll probably want to ask on the Linux PCI mailing list or file a bug against
the linux pci subsystem.

> 
> This system DOES run with Nvidia GTX 770 (using prop driver)

Is the nvidia device physically part of the laptop or connected via some
external mechanism?

Generally the sbios handles resource allocation with respect to PCI BARs.  You
may have just run out of address space.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

Alex Deucher  changed:

   What|Removed |Added

 Resolution|--- |NOTOURBUG
 Status|NEW |RESOLVED

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #5 from Alex Deucher  ---
Your system does not seem to be allocating any address space for the PCI BAR:
[   64.395009] [drm] Detected VRAM RAM=8192M, BAR=0M
so the driver has not way to access vram with the CPU.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #4 from Gašper Sedej  ---
apparrmor crashed, I disable it.

now I only get

...
[  387.295971] ATOM BIOS: E347
[  387.295994] [drm] GPU not posted. posting now...

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #3 from Gašper Sedej  ---
Thanks for reply

I tried it with kernel 4.8 but now i get error:
[   64.395083] [drm:amdgpu_device_init [amdgpu]] *ERROR* sw_init of IP block
 failed -12
(other log in attachment)

Also note, the laptop I am testing is HP elitebook 8730w Core2Duo and already
uses Mobility Radeon HD 3670

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #2 from Gašper Sedej  ---
Created attachment 127696
  --> https://bugs.freedesktop.org/attachment.cgi?id=127696=edit
linux 4.8

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 98552] RX 480 does not work as eGPU (amdgpu crashes at amdgpu_bo_init)

2016-11-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98552

--- Comment #1 from Alex Deucher  ---
Can you try with an older kernel (e.g., 4.8)?  This looks to be related to some
recent changes in 4.9.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
https://lists.x.org/mailman/listinfo/xorg-driver-ati