From owner-freebsd-x11@freebsd.org Sat Apr 11 12:31:43 2020 Return-Path: Delivered-To: freebsd-x11@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 CEE5B2B8CF8 for ; Sat, 11 Apr 2020 12:31:43 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48zvQ63x5Zz4Zmm for ; Sat, 11 Apr 2020 12:31:42 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 03BCVZf3078066 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sat, 11 Apr 2020 12:31:35 GMT (envelope-from list1@gjunka.com) Subject: Re: drm kmod with Vega 3 To: freebsd-x11@freebsd.org References: <2ca574c4-431e-7387-cea0-7563ef301df7@FreeBSD.org> From: Grzegorz Junka Message-ID: <6c8c7e81-8abd-a8d7-f4cf-3e26fc328bcd@gjunka.com> Date: Sat, 11 Apr 2020 12:31:35 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <2ca574c4-431e-7387-cea0-7563ef301df7@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 48zvQ63x5Zz4Zmm X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-5.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[gjunka.com]; IP_SCORE(-3.57)[ip: (-9.35), ipnet: 88.98.192.0/18(-4.68), asn: 56478(-3.74), country: GB(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 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, 11 Apr 2020 12:31:43 -0000 On 11/04/2020 09:15, Andriy Gapon wrote: > I am trying to get FreeBSD going on Motile M141 notebook that has a Ryzen > processor with integrated graphics: AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx. > > So, far, X works only with scfb or vesa depending whether I boot in EFI or > legacy mode. amdgpu driver from drm kmod package version 4.16.g20200320 does > not detect the hardware. The driver from drm-devel-kmod version 5.0.g20200320 > detects the hardware but fails to attach and that makes the screen freeze. > > The interesting part of the attach log: > [drm] PSP loading VCN firmware > [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR SIZE > [drm ERROR :psp_cmd_submit_buf] failed loading with status (-53233) and ucode id > (10) > [drm ERROR :psp_hw_init] PSP firmware loading failed > [drm ERROR :amdgpu_device_fw_loading] hw_init of IP block failed -22 > drmn0: amdgpu_device_ip_init failed > drmn0: Fatal error during GPU init > > Does anyone have any suggestions or ideas? > Thank you! > > P.S. > I found this bug report > https://bugs.freedesktop.org/show_bug.cgi?id=109206 > but my error code is different and a workaround from the bug report does not help. > > P.P.S. > Just in case anyone is interested, here are more details about the notebook: > https://wiki.freebsd.org/Laptops/Motile_M141 Which kernel / world version is it? Are you compiling kernel / world / packages yourself or install from binary distributions? GrzegorzJ