[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: Is there a way to make xorg-server to release eGPU?
From:       Dave Airlie <airlied () gmail ! com>
Date:       2018-11-19 18:07:45
Message-ID: CAPM=9twe7O1GbcxjHUa+rQxuXAwFK0OSq5yZSR54gQ4i_gS=Kg () mail ! gmail ! com
[Download RAW message or body]

On Mon, 19 Nov 2018 at 21:40, Michel Dänzer <michel@daenzer.net> wrote:
>
> On 2018-11-18 7:34 a.m., Qu Wenruo wrote:
> > Hi,
> >
> > Recently I got a eGPU closure which contains an RX580.
> >
> > Xorg server detects it and PRIME works mostly fine.
> >
> > However amdgpu kernel module keeps panicing the whole kernel when the
> > eGPU is disconnected, either hot plugged out or using the pci remove
> > sysfs interface.
> >
> > And rmmod amdgpu returns EBUSY.
> > So this means I can only hot plug-in, but not hot plug-out.
> >
> > I'm wondering is there anyway to make xorg-server to release amdgpu
> > usage and then unload the kernel module before hot plug out or pci remove.
>
> If you want to use displays connected to the eGPU, you're out of luck.
> Once Xorg has initialized a driver for a GPU, there's no way to unload
> it until Xorg shuts down.

USB hotplug works fine, you can remove things all day, it shouldn't be
hard to make PCI hotplug work.

though I seem to remember some problem around cursor privates making it hard.

Dave.
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic