From owner-freebsd-x11@freebsd.org Tue Sep 25 21:54:04 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF999109143F for ; Tue, 25 Sep 2018 21:54:03 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D6B482B73 for ; Tue, 25 Sep 2018 21:54:03 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm1-x32a.google.com with SMTP id c14-v6so141875wmb.4 for ; Tue, 25 Sep 2018 14:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tVxF80AnNc4Xhi/EUF1aRJ6fTupg34JcaoMxOy9LA/U=; b=aLhPefgcu/VRRbDx7bPX3zAPUuAUG62TcdgWCNCeTjn8/hn6gpveo1/UXe77M9qzcs 6xg9vrnNSEGz8NUp0WCprla2WvnRXK6vgMwuJChiufVpVszHVzvtt3wXvyX+EUOFIfm6 13bm5zl/DWcuw36Rd253/gYJeAIuwpvD0IZPxS3T0IRpTnvxMQWhSXyPGuSsOwMzxm0L us4waTubwLV+R2s8hYbpUK8uuTcUXBH5DuhmZUCoyWYI2vsVgnwWkv5yuf0XqBAPqM2C NdTDhdt/Sax+uh12RV/xjRbxdzWNoDzbNnDoXTzuRNzYLNDfuBrA3hnAi+QccZRb+4DB wLWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tVxF80AnNc4Xhi/EUF1aRJ6fTupg34JcaoMxOy9LA/U=; b=lp6mB0KIByeRC0LpMT04esNVPi1nGcpgYJ8grvIZwWv0kyajb8+0J+qy3fY+f+9TOw DYLnxy9/81ZGO3Nucw86McjQgx29ueMresZl2ENrYhcS6/LIuxbVwthsL3Y2yf7eXBGB P6nPBmuit8+dNWxwgjCeQqBuXiRkt5cg4YJSwyIgO//YqBRChR5mPGhhU8ETR7LYAxaM Bsc4hUfxOdZ19DNR9o1mzugXIuZUJTI1bwuF5UQgYEzHARpid+MPbs1vO57orP9+sMhU FOf652J+WnruHI5ShPAAF/2LSuYY0rz/uk+Jm0X5L+1HhH7rzm8jzX7wmPgp5s9GmDoB 9R+w== X-Gm-Message-State: ABuFfohdQQ99b2cSjDAw3Xkt1fpIFXYBjTwzxM42Y0m2N8Iqi5PfqJwq CPDaid3sK+32ToK44xEedQMmg/6/z31YECkXF2c= X-Google-Smtp-Source: ACcGV63VxkbMRsGBHJGQ5a4lfE86u8IYMmBTtgTZEn9gSxiGSAtQaASTheollS2lNwDkCU6TRDT0eDV2AmeEcZzaH1Y= X-Received: by 2002:a1c:b441:: with SMTP id d62-v6mr2245565wmf.17.1537912442097; Tue, 25 Sep 2018 14:54:02 -0700 (PDT) MIME-Version: 1.0 References: <52a2083f-d6a1-fdc7-b0fc-37e83ede5c0c@orange.fr> In-Reply-To: <52a2083f-d6a1-fdc7-b0fc-37e83ede5c0c@orange.fr> From: Johannes Lundberg Date: Tue, 25 Sep 2018 14:53:51 -0700 Message-ID: Subject: Re: drm-legacy-kmod and gpu-firmware-kmod To: Claude Buisson Cc: FreeBSD-x11@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2018 21:54:04 -0000 On Tue, Sep 25, 2018 at 14:21 Claude Buisson wrote: > On 09/25/2018 19:46, Johannes Lundberg wrote: > > > > > > On Mon, Sep 24, 2018 at 06:01 Claude Buisson > > wrote: > > > > Hello, > > > > I tried to switch an i386 computer (with -CURRENT @ r338331) with a= n > > ATI > > Mobility Radeon X300 graphic card, from drm2 in base to > drm-legacy-kmod > > in ports, after rebuilding the kernel without any drm/drm2 module. > > > > I installed: > > > > gpu-firmware-kmod-g20180825 > > drm-legacy-kmod-g20180826 > > > > The system booted, and I could start X, but the GL sreen savers I > use as > > tests were very slow. > > > > In fact I found in Xorg.0.log: > > > > Failed to load firmware "radeonkmsfw_R300_cp" > > > > which is the firmware in the in base drm2, and does not exist under > > this > > name in the gpu-firmware-kmod port > > . > > Rebuilding: > > > > drm-legacy-kmod-g20180921 > > > > (patch sent by = > > > to x11@ on Fri Sep 21) > > > > failed > > > > ../src/dev/drm2/drm_os_freebsd.c:397:2: error: implicit declaration > of > > function 'pmap_force_invalidate_cache_range' is invalid in C99 > > [-Werror,-Wimplicit-function-declaration] > > pmap_force_invalidate_cache_range((vm_offset_t)addr, > > ^ > > ../src/dev/drm2/drm_os_freebsd.c:397:2: note: did you mean > > 'pmap_invalidate_cache_range'? > > ./machine/pmap.h:397:6: note: 'pmap_invalidate_cache_range' declare= d > > here > > void pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t ev= a, > > ^ > > ../src/dev/drm2/drm_os_freebsd.c:397:2: error: this function > > declaration > > is not a prototype [-Werror,-Wstrict-prototypes] > > pmap_force_invalidate_cache_range((vm_offset_t)addr, > > ^ > > 2 errors generated. > > *** [drm_os_freebsd.o] Error code 1 > > > > Hoping for a real solution, > > > > > > > > Hi > > > > There=E2=80=99s was a change in the pmap kpi, without bumping the versi= on so > > there=E2=80=99s a span of about 2 weeks where build will fail. Make su= re your > > kernel is at least r338807 or less than version 1200084. > > > > Yes, that is my own conclusion regarding drm-legacy-kmod-g20180921 which > is based on a recent CURRNT source - and by the way can not be used on > STABLE-11. Yes this is by design. 11-STABLE contain the same drm code so no need to use external drm-legacy. I made an attempt to make it build against 11 as well but the kernel code has changed from 11 to 12 a lot so it wasn=E2=80= =99t worth it. It would require many patches for 11. > > But the more fundamental problem is that the drm-legacy-kmod ports do > not contain any firmware, and are unable to use the firmwares of the > gpu-firmware-kmod port (absence or renaming - I do not know) Yes, drm-legacy-kmod is meant to be used with gpu-firmware-kmod. This has been fixed (hopefully) in drm-legacy-kmod-g20180921 but require r338807 or newer. I can=E2=80=99t test this myself so it=E2=80=99s not confirmed to be workin= g yet.. Can you try build against newer kernel and test? > > CBu >