drm-kmod: AMD Ryzen Vega 8?

Grzegorz Junka list1 at gjunka.com
Mon Aug 5 15:39:11 UTC 2019


On 05/08/2019 15:14, Greg V wrote:
> On August 5, 2019 4:07:15 PM GMT+03:00, Grzegorz Junka <list1 at gjunka.com> wrote:
>> The comment about conflict with EFI is no longer relevant (it was
>> fixed). In fact I use EFI and drm-kmod without any problems.
> That just means you're lucky :) no actual solution has been found. On my AMD desktop (Vega 56) with drm v5.0, the driver does load and the framebuffer works always, but starting a Wayland compositor only works with syscons.disable. Without disabling the EFI framebuffer, the system still hangs/crashes when starting the display server.


Uh, OK. I understood the problem was with the efi loader (BOOTX64.efi) 
and that the file was updated. I saw some bug report but it must have 
been something different then.

I have three EFI loaders - one for Windows, one for Linux (Manjaro), and 
one for FreeBSD. I don't use grub. When I start the comp I press the key 
that allows to enter the EFI bootmenu and select one of the systems to load.

I actually have the same setup on two systems - one desktop and one 
laptop. Both use these EFI loaders as described above. On desktop I have 
to enter the bootmenu with Del, on laptop with F12.

Both systems use drm-kmod - desktop uses amdgpu (for Radeon RX Vega 64) 
and laptop uses intel i915 ("/boot/modules/i915kms.ko"). The module is 
specified in rc.conf. In either case I see the EFI console output right 
until the appropriate drm-kmod module is loaded, at which point the 
console output is switched and uses the accelerated graphics going 
forward. In both cases I can see the acceleration is being used. I am on 
FreeBSD 12 RELEASE and generic kernel.

Please don't tell me I am so lucky to have two different systems setup 
in a way that didn't supposed to work :)


>> I have a laptop with two graphics cards (radeon + i915) and apparently
>> drm-kmod isn't able to switch between them.
> Dual graphics is an annoying and complicated topic…
>
> With muxless solutions, you never "switch", apps should be able to render on the Radeon and output to i915. PRIME is designed to support this. This should work, probably maybe even on FreeBSD if we're lucky.
>
> The mostly older laptops that use a mux… I *think* that's what vga_switcheroo is for on Linux, and IIRC we don't have that ported at all.


What's PRIME?

On my laptop, both "amdgpu" and "i195" drm-kmod modules could be loaded 
and were reporting successful operation. It's only when I was starting 
Xorg or Sway that they complained that the framebuffer couldn't be found 
if "admgpu" was loaded.

GrzegorzJ


More information about the freebsd-x11 mailing list