From owner-freebsd-questions@freebsd.org Tue Dec 29 13:14:20 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 65C7E4BE3B4 for ; Tue, 29 Dec 2020 13:14:20 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4vyM4mvpz4XpG for ; Tue, 29 Dec 2020 13:14:19 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: by mail-ot1-x331.google.com with SMTP id j12so11762068ota.7 for ; Tue, 29 Dec 2020 05:14:19 -0800 (PST) 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=h0JrSgOrqFIimO4N680xfeEWf1IZsRvghX/zRRAbC60=; b=uzvOvqcHwBZvZPrihQQ1PQpEDirZpzu30bOU5rTsFNfb/Pyin3sdhZKV7SxFUl+Gtw O0Zs8HTcDOPk60lYgSiq1MN/Om5atp5u5xQ3segDwZk79hK+IQjGV/9TtwlZWw8hGgpq 1hhNYdBi14YqCL70RPtLPJONYpNNfCAd3XkbXanhb8NEcmMNFfWiSH3Lm6ctoHAMpBzl rXtj9YsLuoYQFwe47ZxU/leS9ABewPnq88z1OvtLyTFtv4nHydLz4spLs4CMwO5X2ocl WXOFtMLy00M1SJI9r/rSVqNtl5SIelkJm5gT/whvlvMD8YfZ/ufUfojSCtK832j+gjoD ED6A== 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=h0JrSgOrqFIimO4N680xfeEWf1IZsRvghX/zRRAbC60=; b=R9Di52xfKypLi4ncjeyXPViVkoe9XYWTFFGv6utpAvPupZY0hp21v/HdUrBnwAEEP6 lenLglh9fh4Ni+MKC8orXyeHijfNSFiDOzfj+g8gCtD+l2fWqMtXknvgTqmqzLvQwCso xVrfGf8YScW5LC48FkacfAkTbAQqQh55F/d//UoZnWX8CVg7yQ7zPdZyQByXOSyFO/Uq tCMN7Dat3uI2vXrRKgsIZlt4xF0Q2zHryfrVspwiUZ5upEOVSk4c6Eh9EmLIK7H/+/Id 5CyIASUoLsXoML3U18SHi0gCOvnQyuc37LWIG5QqhZrvH4LFdsH2Zbxttnb7ADgF8qSX Li9A== X-Gm-Message-State: AOAM532LE9B+8Aat2xajyc2DIDchBbWZB5SgreZJEN4zQJDzZ69uKq1j daGkVeDk5woqbE6KgE1CFur3N7X2qFOydLahPu4= X-Google-Smtp-Source: ABdhPJyVljYXIclk9In6U8kAFuo/UI8J2bVcNRV5BSZKuXLyX9V3AuI869vBEOAWk1rjSnLMs85vc6osBZY0jmOkMps= X-Received: by 2002:a05:6830:1e0c:: with SMTP id s12mr35120519otr.152.1609247658556; Tue, 29 Dec 2020 05:14:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vasily Postnicov Date: Tue, 29 Dec 2020 16:14:07 +0300 Message-ID: Subject: Re: graphics on amd radeon vega To: Oskar Sharipov Cc: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 4D4vyM4mvpz4XpG X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uzvOvqcH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shamazmazum@gmail.com designates 2607:f8b0:4864:20::331 as permitted sender) smtp.mailfrom=shamazmazum@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::331:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::331:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::331:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2020 13:14:20 -0000 The interesting part of dmesg seems to be truncated: > [drm] radeon kernel modesetting enabled. > acpi_video0: on vgapci0 > > ... General hint: do not forget to add your user to the group called "video" (this is not relevant to driver loading, but you will not be able to use /dev/dri/* devices without this step). Also, for FreeBSD 12 with EFI bootloader add the following line to /boot/loader.conf: hw.syscons.disable=3D"1" and this line in /etc/rc.conf: kld_list=3D"amdgpu" Warning! That line in /boot/loader.conf will disable your console driver (vt(4) that is), so you will see garbage on your display until AMD driver is loaded. So check if amdgpu driver detects your card first (with kldload amdgpu). =D0=B2=D1=82, 29 =D0=B4=D0=B5=D0=BA. 2020 =D0=B3. =D0=B2 15:56, Oskar Shari= pov : > Hello! > > I'm using FreeBSD 12.1-RELEASE-p10 (amd64) on Lenovo S340. There is an > AMD Ryzen CPU with Radeon Vega Mobile Gfx as it's printed in dmesg. > > The problem is I cannot use amdgpu drivers. I built them from ports, I > wrote kld_list=3D"/boot/modules/amdgpu.ko" in /etc/rc.conf, I added mysel= f > in "video" group. When I boot the laptop I can notice interface is > laggy. Video in mpv is lagging, switching windows in wm is lagging and > so on. > > I checked glxheads information, it prints GL_RENDERER is "llvmpipe". As > I understand it means X11 uses default llvm drivers. > > I checked Xorg.0.logs, there are these lines: > > ... > [ 9.738] (EE) open /dev/dri/card0: No such file or directory > [ 9.738] (WW) Falling back to old probe method for modesettin= g > [ 9.738] (EE) open /dev/dri/card0: No such file or directory > [ 9.738] (WW) Falling back to old probe method for scfb > ... > > which also shows something is wrong with loading drivers, as I > understand. > > Experimenting I ended up with radeonkms module in rc.conf but I see > no difference, everything is the same with radeon and amdgpu drivers. > > I attached graphics_on_vega.tar.gz archive which contains: > > graphics_on_vega/devinfo that's `devinfo -vr` output > graphics_on_vega/dmesg that's `dmesg` output > graphics_on_vega/hw.model that's `sysctl hw.model` output > graphics_on_vega/pciconf that's `pciconf -lvbce` output > graphics_on_vega/pkg_info that's `pkg info` output > graphics_on_vega/Xorg.0.log that's `cat /var/log/Xorg.0.log` > output > > Is it a problem with my understandings how to set up drivers, with Radeon > Vega GPUs or with drivers themselves? Should I file a bug report to > freebsd-x11@freebsd.org? > > -- > Oskar Sharipov > site (might be unpaid and cancelled): oskarsh.ru > e-mail (replace asterisk with dot): oskarsh at riseup * net > secondary e-mail (same): oskar * sharipov at tutanota * org > gpg fingerprint: BAC3 F049 748A D098 A144 BA89 0DC4 EA75 714C 75B5 >