From nobody Sat May 22 10:54:34 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EFA8F8B888E for ; Sat, 22 May 2021 10:54:37 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 4FnL2j6HVXz4l51 for ; Sat, 22 May 2021 10:54:37 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: by mail-lj1-x22c.google.com with SMTP id f12so27025984ljp.2 for ; Sat, 22 May 2021 03:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MpPIHDBkQnTEbbsgE8j2cgSs8gs4IgthJS8kRjhjuGQ=; b=WjxEFIKFn4PRCxno7NT35p1k+ngSbFiuoj+95trq3hPcZ4pyB/5sLFW5mZBnNgJQhK vZ2U/9yRUIsFjPinbPFYWntXfb3nWKN4N/CqoZTZe1EecKXubkyFbps2qSqpjTPYjDw6 +s6+IJRxT+IOVgd5WY+al//Jok9lQX2HbVuYZJ9VbL9ZFZO0/h9Gemjj4CK2Pz3H4a3t h7apth563NRkCuIF1gH0nO//ydxgl3pV+QU6wdQ/tgI+fVJQEXlYU3VVpHbDvv614Nj9 D778cQWMZSD39/yL4EZFjODOABbQU+Ug4Ap6vGKH6Nd6bZgHl2fk6rTuBvRI6zXgqFoI 9Iuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MpPIHDBkQnTEbbsgE8j2cgSs8gs4IgthJS8kRjhjuGQ=; b=tod0MPiIP/pzGZ76sFDe2SHeQcLGtm0/eT87zyJ5yIekvTMuSx/gWJZnH0kc1kbVO5 h5L2djiMfEv2VK/dGnsbP61+kgJD7us4rlhcmB8I1m2tl8YO9td6jhBYDPl6OsprbRIw CAjVJOm2WL0Gj2wP4CIy3O3YWXgrlWX654+OuBTdKWXx+yY2BLEGxlcU1SokEtO2NyUG sKQwlEhExro3KE9wz+jjnZBR8v7qkUljZQ+ELikPDO/L5Z0BemVJ4xi28jqbfQpx/bDs y2wSWj8tB+FfkeP8AucqBjHsKjtmaYbZFm2MZUKB4mQ5TUaYFMi8Em8PYTBYTYu+v9e/ 5SWg== X-Gm-Message-State: AOAM533C6+DOr/tDP3jmD+lzszMenCbFYNIn9RQJ4cLUbb2Mm/LgKPBG QqF3NKkVtzEWgxNr31NCvtzGLbb25YjHiI7pxGRa0B6D X-Google-Smtp-Source: ABdhPJwsvHLRaaInhuaAVD9ih1jIgzX/U0iDz+xKMoVtWUY8MRoql7h20KRhPGt8b7PooDH5AbB0sW2OsF22FrisnkU= X-Received: by 2002:a05:651c:b1f:: with SMTP id b31mr10321273ljr.0.1621680876045; Sat, 22 May 2021 03:54:36 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Received: by 2002:a05:651c:115:0:0:0:0 with HTTP; Sat, 22 May 2021 03:54:34 -0700 (PDT) In-Reply-To: References: From: Stefan Blachmann Date: Sat, 22 May 2021 12:54:34 +0200 Message-ID: Subject: Re: amdgpu.ko crashes on Radeon Vega To: none Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4FnL2j6HVXz4l51 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] May I point you at the fact that FreeBSD 12's drm-kmod is taken from Linux 4.16. Linux 4.16 does afaik not yet support Vega graphics. Btw, this information is shown only on the Intel graphics wiki, not in the AMD graphics wiki, which might be the reason why you missed out that. But regarding hardware support, this applies to AMD graphics as well: https://wiki.freebsd.org/Graphics/Intel-GPU-Matrix If this is correct, the only way to make Vega graphics work is to use FreeBSD 13, whose drm-kmod is taken from Linux 5.4. P.S.: I usually don't post anymore on the freebsd lists, as after I criticized the inclusion of Wayland's libinput, pointing into the mouse wheel issues it introduces (and which are since then a long-running issue on FreeBSD also), I got moderated and it is hit and miss whether my posts are let through or not. On 5/22/21, none wrote: > On Fri, May 21, 2021 22:29, none wrote: >> On Sat, May 15, 2021 14:50, George Mitchell wrote: >>> On 5/15/21 1:29 PM, Nenhum_de_Nos wrote: >>>>[...] >>>> George, >>>> >>>> I'm about to try this on Ryzen 3400G here, where can I find this step >> by step to try to repeat what you did? My box has just basic FreeBSD >> install, >>>> cause I couldn't use Xorg at all. When I finish something on another OS >>> I >>>> will try this. >>>> >>>> Thanks, >>>> >>>> matheus >>>> >>>> >>> 1. Install FreeBSD 12. >>> 2. Install drm-fbsd12.0-kmod. >>> 3. Boot into single-user mode. >>> 4. Type "kldload amdgpu". >> >> Hi, >> >> I did just that and no crash here. The system is: >> >> FreeBSD xxx 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 GENERIC amd64 >> >> % kldstat >> Id Refs Address Size Name >> 1 63 0xffffffff80200000 227ae98 kernel >> 2 1 0xffffffff82a11000 24f9e4 amdgpu.ko >> 3 2 0xffffffff82c61000 75e80 drm.ko >> 4 5 0xffffffff82cd7000 12d30 linuxkpi.ko >> 5 4 0xffffffff82cea000 13f30 linuxkpi_gplv2.ko >> 6 2 0xffffffff82cfe000 6d0 debugfs.ko >> 7 1 0xffffffff82cff000 f0e1 ttm.ko >> 8 1 0xffffffff82d0f000 16bf0 if_iwm.ko >> 9 1 0xffffffff82d26000 2698 intpm.ko >> 10 1 0xffffffff82d29000 b40 smbus.ko >> 11 1 0xffffffff82d2a000 28debf iwm9260fw.ko >> 12 1 0xffffffff82fb8000 4260 ng_ubt.ko >> 13 6 0xffffffff82fbd000 9bd0 netgraph.ko >> 14 2 0xffffffff82fc7000 9128 ng_hci.ko >> 15 3 0xffffffff82fd1000 9b0 ng_bluetooth.ko >> 16 1 0xffffffff82fd2000 1860 uhid.ko >> 17 1 0xffffffff82fd4000 2908 ums.ko >> 18 1 0xffffffff82fd7000 1a40 wmt.ko >> 19 1 0xffffffff82fd9000 caf0 ng_l2cap.ko >> 20 1 0xffffffff82fe6000 1af20 ng_btsocket.ko >> 21 1 0xffffffff83001000 2150 ng_socket.ko >> >> >>> When you say you can't use Xorg at all, does that mean VESA mode is not >> working? -- George >> >> Yep, but I had quite no time to research for the right xorg.conf to use >> it. I tried startx here zero xorg.conf fiddling, and server error. Its so >> many time since I last did this, I am here quite a first timer. >> >> thanks, >> >> matheus > > I tried it on rc.conf for loading, no crashes on two reboots. The console > won't change resolution though, as it does on another box here that uses > some old radeon gpu. > > startx dies in front of me: > > % cat /var/log/Xorg.0.log > [ 36.115] > X.Org X Server 1.20.9 > X Protocol Version 11, Revision 0 > [ 36.115] Build Operating System: FreeBSD 12.1-RELEASE-p12 amd64 > [ 36.115] Current Operating System: FreeBSD elita 12.2-RELEASE-p6 > FreeBSD 12.2-RELEASE-p6 GENERIC amd64 > [ 36.115] Build Date: 05 January 2021 02:48:32PM > [ 36.115] > [ 36.115] Current version of pixman: 0.40.0 > [ 36.115] Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > [ 36.115] Markers: (--) probed, (**) from config file, (==) default > setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > [ 36.116] (==) Log file: "/var/log/Xorg.0.log", Time: Fri May 21 > 23:06:24 2021 > [ 36.118] (==) Using system config directory > "/usr/local/share/X11/xorg.conf.d" > [ 36.119] (==) No Layout section. Using the first Screen section. > [ 36.120] (==) No screen section available. Using defaults. > [ 36.120] (**) |-->Screen "Default Screen Section" (0) > [ 36.120] (**) | |-->Monitor "" > [ 36.120] (==) No monitor specified for screen "Default Screen Section". > Using a default monitor configuration. > [ 36.120] (==) Automatically adding devices > [ 36.120] (==) Automatically enabling devices > [ 36.120] (==) Not automatically adding GPU devices > [ 36.121] (==) Max clients allowed: 256, resource mask: 0x1fffff > [ 36.126] (==) FontPath set to: > /usr/local/share/fonts/misc/, > /usr/local/share/fonts/TTF/, > /usr/local/share/fonts/OTF/, > /usr/local/share/fonts/Type1/, > /usr/local/share/fonts/100dpi/, > /usr/local/share/fonts/75dpi/, > catalogue:/usr/local/etc/X11/fontpath.d > [ 36.126] (==) ModulePath set to "/usr/local/lib/xorg/modules" > [ 36.126] (II) The server relies on udev to provide the list of input > devices. > If no devices become available, reconfigure udev or disable > AutoAddDevices. > [ 36.126] (II) Loader magic: 0x42f020 > [ 36.126] (II) Module ABI versions: > [ 36.126] X.Org ANSI C Emulation: 0.4 > [ 36.126] X.Org Video Driver: 24.1 > [ 36.126] X.Org XInput driver : 24.1 > [ 36.126] X.Org Server Extension : 10.0 > [ 36.126] (--) PCI:*(10@0:0:0) 1002:15d8:1002:15d8 rev 200, Mem @ > 0xe0000000/268435456, 0xf0000000/2097152, 0xfca00000/524288, I/O @ > 0x0000e000/256, BIOS @ 0x????????/65536 > [ 36.126] (II) LoadModule: "glx" > [ 36.127] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so > [ 36.138] (II) Module glx: vendor="X.Org Foundation" > [ 36.138] compiled for 1.20.9, module version = 1.0.0 > [ 36.139] ABI class: X.Org Server Extension, version 10.0 > [ 36.139] (==) Matched ati as autoconfigured driver 0 > [ 36.139] (==) Matched modesetting as autoconfigured driver 1 > [ 36.139] (==) Matched scfb as autoconfigured driver 2 > [ 36.139] (==) Matched vesa as autoconfigured driver 3 > [ 36.139] (==) Assigned the driver to the xf86ConfigLayout > [ 36.139] (II) LoadModule: "ati" > [ 36.139] (WW) Warning, couldn't open module ati > [ 36.139] (EE) Failed to load module "ati" (module does not exist, 0) > [ 36.139] (II) LoadModule: "modesetting" > [ 36.140] (II) Loading > /usr/local/lib/xorg/modules/drivers/modesetting_drv.so > [ 36.141] (II) Module modesetting: vendor="X.Org Foundation" > [ 36.141] compiled for 1.20.9, module version = 1.20.9 > [ 36.141] Module class: X.Org Video Driver > [ 36.141] ABI class: X.Org Video Driver, version 24.1 > [ 36.141] (II) LoadModule: "scfb" > [ 36.141] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so > [ 36.141] (II) Module scfb: vendor="X.Org Foundation" > [ 36.141] compiled for 1.20.9, module version = 0.0.5 > [ 36.141] ABI class: X.Org Video Driver, version 24.1 > [ 36.141] (II) LoadModule: "vesa" > [ 36.141] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so > [ 36.142] (II) Module vesa: vendor="X.Org Foundation" > [ 36.142] compiled for 1.20.9, module version = 2.5.0 > [ 36.142] Module class: X.Org Video Driver > [ 36.142] ABI class: X.Org Video Driver, version 24.1 > [ 36.142] (II) modesetting: Driver for Modesetting Kernel Drivers: kms > [ 36.142] (II) scfb: driver for wsdisplay framebuffer: scfb > [ 36.142] (II) VESA: driver for VESA chipsets: vesa > [ 36.142] (--) Using syscons driver with X support (version 2.0) > [ 36.142] (--) using VT number 9 > > [ 36.142] (EE) open /dev/dri/card0: No such file or directory > [ 36.142] (WW) Falling back to old probe method for modesetting > [ 36.142] (EE) open /dev/dri/card0: No such file or directory > [ 36.142] (WW) Falling back to old probe method for scfb > [ 36.142] scfb trace: probe start > [ 36.142] (II) scfb(1): using default device > [ 36.142] scfb trace: probe done > [ 36.142] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card > support > [ 36.142] (EE) Screen 0 deleted because of no matching config section. > [ 36.142] (II) UnloadModule: "modesetting" > [ 36.142] (EE) > Fatal server error: > [ 36.142] (EE) Cannot run in framebuffer mode. Please specify busIDs > for all framebuffer devices > [ 36.142] (EE) > [ 36.142] (EE) > Please consult the The X.Org Foundation support > at http://wiki.x.org > for help. > [ 36.142] (EE) Please also check the log file at "/var/log/Xorg.0.log" > for additional information. > [ 36.142] (EE) > [ 36.142] (EE) Server terminated with error (1). Closing log file. > > I tried it without any pre-config, this is the error. > > I tried Xorg -configure and the file created by it. Error no screens found. > > Am I missing something? > > The handbook told me not much more. > > Thanks, > > matheus > > PS: I couldn't answer that first mail using my other email address, as the > mail list software told me several times there was an access error: > The message from with subject "Re: amdgpu.ko > crashes on Radeon Vega" was unable to be delivered to the list because of > an access rule set up by the list administrator. > > (The denied message is below.) > > The mail is subscribed, is receiving messages fine (got that one from new > address). I didn't get this error at all. > > > -- > "We will call you Cygnus, > the God of balance you shall be." > > >