amdgpu glamor: fix module loading when linked with '-z now' - #62
amdgpu glamor: fix module loading when linked with '-z now'#62cepelinas9000 wants to merge 1 commit into
Conversation
This patch explicitly loads the glamoregl, shadowfb submodules and manually dereferences the required library calls. This is necessary because recent compilers and distribution maintainers (e.g., Gentoo, which includes a GCC patch for this behavior, example at https://github.com/gentoo/gcc-patches/blob/master/16.1.0/gentoo/23_all_DEF_GENTOO_ZNOW-z-now.patch) - force all shared library symbols to be bound at load time, effectively ignoring the DT_LAZY flag. Signed-off-by: Tautvis <gtautvis@gmail.com>
Pretty sure that is a problem of no xorg.conf With no xorg.conf, the X server tries multiple drivers, they find the same devices, and conflict in initialization. |
The problem is: amdgpu driver do not claim device during probe, then when modesetting drivers probes it sees as free device and claims it. Then both drivers loads |
| } | ||
|
|
||
| static bool | ||
| load_shadowfd(ScrnInfoPtr pScrn){ |
Does the amdgpu driver only probe devices with the fallback probe? When using the pci probe or the platform probe, the X server should claim slots by itself. |
Debugged little while ago, the fallback probe is NULL( DriverRec->Probe). It was pci probe or the platform probe didn't claim slot. |
|
Will this be solved xserver side? What causes NULL( DriverRec->Probe) and probe not to claim slot? |
I doubt this will solve that issue. The point of this patch is to get the module to work when built without lazy-loading. |
draft for now, until figure out problem:
because on failure - it load modesetting drivers and user have working session.