ROCK-Kernel-Driver icon indicating copy to clipboard operation
ROCK-Kernel-Driver copied to clipboard

How to use the newly amdgpu.ko rebuild by myself

Open ccnankai opened this issue 1 year ago • 1 comments

After I rebuild amdgpu.ko, how can I use the latest amdgpu.ko, I tried removing the old amdgpu module, but it keeps being used.

$sudo rmmod amdgpu
rmmod: ERROR: Module amdgpu is in use
$sudo insmod amdgpu.ko
insmod: ERROR: could not insert module amdgpu.ko: File exists

Is there any way to fix this, run the latest modules.

ccnankai avatar Nov 11 '22 06:11 ccnankai

I would recommend a reboot. Removing the module on a running system is tricky. You'd need to kill any Xserver or compositor running on your system and disconnect the framebuffer console from the amdgpu driver.

fxkamd avatar Nov 11 '22 16:11 fxkamd

@fxkamd Got it .Thank very much. I am a beginner, I am learning gpu driver development by myself. Is there is a lot of ambiguous information when reading the driver, such as vimd, pasid, map_queues_cpsch and so on. Is there any documentation available?

ccnankai avatar Nov 14 '22 09:11 ccnankai

What you're asking for is not end-user documentation. More like architectural or developer on-boarding documentation. Unfortunately there isn't much public information of that kind, other than comments in the source code itself. If you are interested in contributing to the driver, a good place to start would be the mailing list [email protected], which is where all the upstream code changes are reviewed and discussed.

You may also find some basic info generated from the source code here: https://docs.kernel.org/gpu/amdgpu/index.html

A public clone of our internal upstream development branch (amd-staging-drm-next) can be found on gitlab: https://gitlab.freedesktop.org/agd5f/linux

fxkamd avatar Nov 14 '22 14:11 fxkamd