Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2018 13:55:50 +0200
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        Alexey Dokuchaev <danfe@nsu.ru>, x11@freebsd.org
Subject:   Re: drm2 deprecation in base: problems with gpu-firmware-kmod port
Message-ID:  <f89b03ac-334f-64ad-dfbe-f5056032f91e@daemonic.se>
In-Reply-To: <20180829120935.GA79911@regency.nsu.ru>
References:  <20180829120935.GA79911@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/29/18 14:09, Alexey Dokuchaev wrote:
> Hi there,
> 
> I've tried the kernel after drm2 bits were removed from the base to see
> how they would be served by the ports.  This is on -CURRENT/i386 with
> Radeon HD 4350/4550 (RV710) gfx card.  I've installed gpu-firmware-kmod
> and drm-legacy-kmod ports, and rebooted into new kernel.  I don't use
> kld_list="..." and only load a few modules from /boot/loader.conf, like
> HDD controller and sound drivers, nothing gfx-related.
> 
> First thing I do after console login is "kldload radeonkms", had always
> worked like a charm.  Now it's broken:
> 
>    ...
>    info: [drm] radeon: 512M of VRAM memory ready
>    info: [drm] radeon: 512M of GTT memory ready.
>    info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
>    info: [drm] Driver supports precise vblank timestamp query.
>    info: [drm] MSI enabled 1 message(s)
>    drmn0: info: radeon: using MSI.
>    info: [drm] radeon: irq initialized.
>    info: [drm] GART: num cpu pages 131072, num gpu pages 131072
>    info: [drm] probing gen 2 caps for device 8086:2e31 = 1/0
>    info: [drm] Loading RV710 Microcode
>    radeonkmsfw_RV710_pfp: could not load firmware image, error 2
>    error: [drm:pid16419:r600_init_microcode] *ERROR* r600_cp: Failed to load firmware "radeonkmsfw_RV710_pfp"
>    error: [drm:pid16419:rv770_startup] *ERROR* Failed to load firmware!
>    drmn0: error: disabling GPU acceleration
>    drmn0: warning: 0x18b7d200 unpin not necessary
>    drmn0: warning: 0x18b7d200 unpin not necessary
>    error: [drm:pid16419:rv770_init] *ERROR* radeon: ucode required for R600+.
>    drmn0: error: Fatal error during GPU init
> 
> I have this file with the previous kernel (when it all was in the base):
> 
>    /boot/kernel.june/radeonkmsfw_RV710_pfp.ko (11908 bytes).
> 
> With the drm2/firmware bits served from ports, the name is different:
> 
>    $ pkg info -l gpu-firmware-kmod | grep RV710_pfp
>          /boot/modules/radeon_RV710_pfp_bin.ko
> 
> File size is also different: 10428 bytes.  How shall I proceed from this
> point to get things back in working order?  Thanks,

The size difference is probably due to the firmware having been updated. 
  I have to check this though, to be sure.

What happens if you rename the new firmware (the one currently in 
/boot/modules/) to the old name?  Does everything load fine then?
Regards
-- 
Niclas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f89b03ac-334f-64ad-dfbe-f5056032f91e>