From owner-freebsd-hackers@freebsd.org Sat May 8 22:40:03 2021 Return-Path: Delivered-To: freebsd-hackers@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 9DBDD641E4F for ; Sat, 8 May 2021 22:40:03 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fd2M64s3dz3r0v for ; Sat, 8 May 2021 22:40:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CA9B22603E7; Sun, 9 May 2021 00:39:59 +0200 (CEST) Subject: Re: amdgpu.ko crashes on Radeon Vega To: George Mitchell , FreeBSD Hackers References: <36c9234e-4c1e-b7db-7905-c67e68c87bf6@m5p.com> From: Hans Petter Selasky Message-ID: <107fa9e2-8096-7bc5-b53d-8de8956899ac@selasky.org> Date: Sun, 9 May 2021 00:38:42 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <36c9234e-4c1e-b7db-7905-c67e68c87bf6@m5p.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Fd2M64s3dz3r0v X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:4f8:c17:6c4b::2:from]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; DMARC_NA(0.00)[selasky.org]; SPAMHAUS_ZRD(0.00)[2a01:4f8:c17:6c4b::2:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2021 22:40:03 -0000 On 5/9/21 12:34 AM, George Mitchell wrote: > I have (per dmesg): AMD Ryzen 3 2200G with Radeon Vega Graphics. > (pciconf -lv reports: > vgapci0@pci0:6:0:0:     class=0x030000 card=0xd0001458 chip=0x15dd1002 > rev=0xc8 hdr=0x00 >     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]' >     device     = 'Raven Ridge [Radeon Vega Series / Radeon Vega Mobile > Series]') > I am running FreeBSD 12.2-RELEASE-p6 r369558. > I built amdgpu.ko from drm-fbsd12.0-kmod-4.16.g20201016_1. > When I boot single-user, with only kernel, vboxdrv.ko, and sem.ko > loaded, and I type "kldload amdgpu", I get about six or seven lines > of output, ending with "pci i/o bar is not found."  After a couple > more seconds, the screen goes blank and the machine is as frozen as > can be, and I have to cycle power to recover.  I've tried all four > combinations of hw.vga.textmode and hw.syscons.disable, but it > crashes each time.  Help!                              -- George > Hi, If you hook up a USB serial adapter and redirect the console to it using: hw.usb.ucom.cons_baud: 9600 hw.usb.ucom.cons_subunit: 0 hw.usb.ucom.cons_unit: -1 Then you might get the prints from the panic which is happening. Also try to build a kernel with debugging support to get an automatic core dump. It is also recommended to try 13-stable. The DRM code there is much newer. --HPS