From owner-freebsd-x11@freebsd.org Sat May 26 08:14:24 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 A45E7F6D77E for ; Sat, 26 May 2018 08:14:24 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08E4687307 for ; Sat, 26 May 2018 08:14:24 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id u12-v6so12705150wrn.8 for ; Sat, 26 May 2018 01:14:23 -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=ebiEVHncw8XzDJQd3e0jLzcOa4inM2Sl9xBiCMYnxAQ=; b=pYzjaz2B/NmL1H59A1U+BQz9hbDmDpNkMw2sJzKm9uRx6etGB1Z2Y5lAQzbrYC+6sm hqZ6PRhyQ6OJuCPuYixax+eI1ZBLhdkvlL0WP+FbeJ4HoscUtOZT//rC2DaUYlstLL4Y bCyRdOauGhcoi5kYbe4meqSoMkvtC2ydAz6IfUy2lUcGQPy7VPYSu7P1KZ7xiCoVSEgP qGtvd8+hbrGStKFc/T1fFpJ1r2d5P4LPo8+IRurnFTgp/DUOaEvtz4X71zQzlBdasK8C /1MdVE2BbZ9N8Khgw1rdG1fbDxDRYfMpFsPeakTjKa6vXhVE5Co2hwMxYhJqF0QR4jog P7yA== 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=ebiEVHncw8XzDJQd3e0jLzcOa4inM2Sl9xBiCMYnxAQ=; b=Wr5xyXMT2Pc4pRfu1+IOEWTHxq/LB1f7QN0XujrRXj5KyqK8HLHf9cf+aXTKeeVUEB X+jyBBr9BfXvgAPeRZWk2oPClTZrEysv2RUyZvwGoKU/6tWtIarfsaXXPQlyFSCDmAOe DQibwzIyMF5MkDpVUFbe9/pOPIzuBybx/MDRiaqz+7ZTy6crZAln4aTuZxA5nGCWuJYs sGykelTOytXuStBdRQokHVMMmmOEtfW9Twwt5yvwQAihxe2kS0R9/DxZKdadcH+oTlyk Ks1AsWQMY7HJGsTGsZ1p7YpGcUaRFp5zvqzNMfSxeL6T1G1v/D7pJaRc/ivWjtPwOfDo 7uTw== X-Gm-Message-State: ALKqPwd6Ff4PHyzSdUvBLH0jb3tlHNKiojLshYIz3oMv4yupce+vw6Ab pSLYR+0WEKFkmmaoUZdr4QEB4z32SsDz8Ua3gLw= X-Google-Smtp-Source: AB8JxZpRzj6HvsG+gWtxHc6lCueBuNyGyY2Kjy9QKSoVxFzm9iD4NzLwN875liCS5RWZwR6d+BeyWqq9H6uHdkWA/Jc= X-Received: by 2002:a5d:408a:: with SMTP id o10-v6mr4046865wrp.133.1527322463014; Sat, 26 May 2018 01:14:23 -0700 (PDT) MIME-Version: 1.0 References: <4fe27b64-9837-8ca6-1678-d140388db8a8@rawbw.com> <1fb3a90e-3d4f-0593-b844-4ea19ad01eac@rawbw.com> In-Reply-To: <1fb3a90e-3d4f-0593-b844-4ea19ad01eac@rawbw.com> From: Johannes Lundberg Date: Sat, 26 May 2018 09:13:46 +0100 Message-ID: Subject: Re: Radeon R2/R3/R4/R5 Graphics card fails: open /dev/dri/card0: No such file or directory To: Yuri Cc: x11-list freebsd Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2018 08:14:24 -0000 On Sat, May 26, 2018 at 8:16 AM Yuri wrote: > I've managed to make it work using just one section in xorg config: > > Section "Device" > Identifier "Card0" > Driver "scfb" > BusID "pci0:0:1:0" > EndSection > > Hi Unfortunately, scfb is software rendering so won't give you the benefits of the GPU. On my Kaveri APU (Sea Islands I think) I can run both amdgpu and radeonkms drivers. To enable amdgpu on older cards I put this in /boot/loader.conf compat.linuxkpi.cik_support=1 compat.linuxkpi.si_support=1 If your card is newer it is only supported by amdgpu so you can ignore the above. For amdgpu: /etc/rc.conf: kld_list="amdgpu" /etc/X11/xorg.conf (in Device section) Driver "amdgpu" For radeonkms: /etc/rc.conf: kld_list="radeonkms" /etc/X11/xorg.conf (in Device section) Driver "radeon" And you'll need at least FreeBSD 11.2 as mentioned before. To make sure there are no collisions with older drm2 from base,I usually do #mv /boot/kernel/drm.ko /root/ to make sure the correct drm (/boot/modules/drm.ko) is loaded as dependency. Some further googling show that Stoney is Volcanic Islands so that would be the amdgpu case above^ PS, before you put the kld_list in /etc/rc.conf make sure that the driver loads with kldload so you don't end up in a nasty crash loop... > No drivers from drm-next-kmod are loaded. xf86-video-ati is installed. > > > Yuri > > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" >