• Re: [gentoo-user] agpgart, radeon and amdgpu kernel modules

    From Michael@21:1/5 to All on Mon Mar 3 10:44:40 2025
    On Sunday, 2 March 2025 23:08:34 Greenwich Mean Time gevisz wrote:
    I have AMD/ATI RV740 PRO [Radeon HD 4770]
    video card connected to the PCIEX16_1 port of
    my Gigabyte GA-MA790FXT-UD5P motherboard
    that has no integrated video card.

    My processor is AMD Phenom II X4 945,
    and I believe that it has no integrated graphics
    card on it as well.

    This my belief is based on the fact that all this
    is almost 20 years old. :)

    The first K10 series APUs were launched later in the season and later on took off big time with the subsequent Bulldozer architecture, your K10 CPU has no integrated graphics cores. If you remove your graphics card, you should discover your monitor remains dark. :-)


    According to https://wiki.gentoo.org/wiki/Radeon
    I have set in my make.conf
    VIDEO_CARDS = "radeon r600"

    Also the same https://wiki.gentoo.org/wiki/Radeon
    instructs: "For cards that sit in an AGP slot, enable the AGP driver."

    https://uk.wikipedia.org/wiki/AGP says that PCI-Express is not AGP.
    However, lsmod currently shows me that both radeon and agpgart
    are loaded and used. Moreover, it shows that the radeon module
    uses the agpgart module.

    A selected output of lsmod command is shown below.
    Module Size Used by
    radeon 1613824 9
    agpgart 32768 2 radeon,ttm
    amdgpu 9814016 0
    drm_suballoc_helper 12288 2 amdgpu,radeon
    i2c_algo_bit 12288 2 amdgpu,radeon
    drm_ttm_helper 12288 2 amdgpu,radeon
    ttm 73728 3 amdgpu,radeon,drm_ttm_helper drm_display_helper 147456 2 amdgpu,radeon
    drm_kms_helper 55648 3 drm_display_helper,amdgpu,radeon
    drm 520192 16 gpu_sched,drm_kms_helper,drm_exec,drm_suballoc_helper,drm_display_helper,drm _buddy,amdgpu,radeon,drm_ttm_helper,ttm,amdxcp video
    65536 2 amdgpu,radeon
    drm_exec 12288 1 amdgpu
    amdxcp 12288 1 amdgpu
    drm_buddy 16384 1 amdgpu
    gpu_sched 40960 1 amdgpu

    Why? Is the apggart module really needed?
    If not, why is it loaded?
    Will the system work without it?
    Shall I exclude it from kernel config?

    AGP = Accelerated Graphics Port

    A high speed bus a graphics card installed in an AGP slot uses to access and utilise the system memory.

    AGPGART = AGP Graphics Address Re-mapping Table

    A table to store and swap contiguous (I think) graphics data between system
    and video memory.

    Both the old AGP and the new(er) PCIe graphics cards use GART to manage graphics processing.


    Moreover, the same lsmod table above shows
    that the amdgpu kernel module is also loaded.

    However, according to the note in
    https://wiki.gentoo.org/wiki/AMDGPU
    "Some older graphics cards are supported by both the amdgpu
    and the radeon kernel module. When using AMDGPU, it is
    recommended to unset the ATI Radeon option so that the radeon
    module is not built, or alternatively, to blacklist the radeon module
    (after rebooting check with lsmod | grep radeon to see if the
    blacklisting worked). The two modules are not meant to be loaded simultaneously, unless for specific systems that require it, e.g. for multiseat configurations."

    So, the same questions about ampgpu:
    Is this module really needed? (I guess it is not needed.)
    If not, why is it loaded?
    Will the system work without it? (I guess, yes.)
    Shall I exclude it from kernel config? (I guess, yes.)

    My guesses are based on the fact that the lsmod table above
    shows that amdgpu module is not used.

    Have you added the amdgpu module in /etc/conf.d/modules? Anyway, your
    graphics card uses the legacy Radeon driver and your VIDEO_CARDS entry is correct. You do not need the amdgpu driver to use your Radeon HD 4770 card.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfFiBgACgkQseqq9sKV Zxk2zw/8DnPSi4RzUqYL3uZiTWXaaTs2ND0Ei41qf5dbGYaZKO1INvARo2Nin1kT 43Ijyj6qWE1zT+2s6uZ7ES9zYFkYjkpIKYx8OgreBSR3m9ZLuWoFfHkWPtPHibNN UpsqzlFxRdx9Bol2fNA0kJ+I4MdOvdAy9WN4z0Knwcj6EFoC4maJ960V2QwfZWjQ D+dEoAOe+VFXje9VSaKeVqnFcj6V/65urUORmUN7qbYMGe6xIsAJlsiJBNkdUhnl a6UHrSpxaI3jgqullR2UOwXc9bR45I78Obge/CRZfuC5v/12XOroc8W0dEQseAKE NN80Irzvgn/mnlmd1ssF95+nyfyCllrIDOyqOwZCOjMLvE6jipJedzeo3yxc3qj3 jcLdnqrU3UjizOqfTGrRT3Z6Hb3zsJz+cmvAJ9kybcEV/eIlKERAHZFIjRLCEsp7 ottvxSsCd5oDnSESS73znwU02/+HWNRQLNYSu0EShYxICMzDwLTQ7nQVGLZYTz+b 8gtSDmBMMyM+npSeTUGiK1/sGPfZJ5eTX1sI/KmRZhjfzup2I2gCt7xjL2cwKsTC 4YBGg51MUDRM2J7nN+oiVgu7y+VK4ehDSaPngOjZ07QlX/y1Lj5OUI/H7TdeJDIb v9Wp14enfjJfpbdqC6/uBkcWRu3A/dfXrqGxaOgnG1H4djmuv0Y=
    =tsgk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Mar 3 15:45:53 2025
    On Monday, 3 March 2025 12:18:34 Greenwich Mean Time gevisz wrote:
    Mon, 3 March 2025 in 12:45, Michael <confabulate@kintzios.com>:

    Both the old AGP and the new(er) PCIe graphics cards
    use GART to manage graphics processing.

    Does it mean that the agpgart module is needed even
    I have only an AMD/ATI RV740 PRO Radeon HD 4770
    that is connected to the PCI Express bus?

    I don't know much about graphics, or your specific card, but know PCIe cards use GART to access system memory (IOMMU) and AMD in particular uses this for virtualisation too. If it is being loaded as a module I would guess your driver needs it and this will confirm it:

    $ dmesg | egrep -i 'GART|IOMMU'

    You can always experiment by unloading it and trying some intensive graphics application, while checking dmesg to see if it is complaining about missing graphics modules. You can try comparative runs on unigine heaven or one of the browser graphics benchmarks and see what results you get.


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmfFzrEACgkQseqq9sKV ZxnHyxAAoH4MvHzwu9ib/4h786533L+Z/DMKtWe641LdyYOu5HoGbSYrbNEMPKfv hAicWvWqF14rsXWpfQnGEKCbj1RRlO5dFCIVF41x+fKw+j8uup2hJoFDZz0xsakZ l2Jh1g+bXtHNYO4UkbjGMOHkcsfe2yvjk4T4we4RDuwLXvAS9xfQJt+g40GUtMI1 k+1jmKbLZ0DTcUJuRnlizGk41XWjpfpzlSP+GBIMr7E8LyY1/RbT0i5lbgUNjyTX nqJ46VLtTJbeXPnJIWA5AaCU3RdCPoSz21GAGJGac2Ps5T0pt48LsRZPuwggo4HM 5icJUcxnBDRxHrLLNGhjtS73o6MBvpaLAu8dXKdeYx7nPI9yBKiZ+cInMk20Jh9F SrHIYEBNDTBlQQ5bW0rz+uXiqSjtdbhfSjwyX1KknxVhrTd02RdxbnJUMAjinM5t dplqibA1ZxiuujDCENpx1MOdQPUcEjKG4/znz+wyW9aj7cU69lnbospZerVSU4ib jFlzgOhKrplFfV5x9qddYrR0fAKmEv78CtZGgkDq3hdVYeDYaLjIa4055EWUxrR9 YJsDHhWWTaEgP7B98O/roUW7Y8O/JKhmZyPrczNS9Y1jcP4LxSQEw/kf12S4eOAi Kt8LtkttOX5J31bLkIp7d8rTuQWFHx5fa8tGg3QkpGALuRPcnCg=
    =gR7A
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)