From owner-freebsd-x11@freebsd.org Wed Jul 15 14:11:03 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 7D9C4367061 for ; Wed, 15 Jul 2020 14:11:03 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B6K6r4RtDz4fpC for ; Wed, 15 Jul 2020 14:11:00 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4B6K6h5FDXz3mjt; Wed, 15 Jul 2020 14:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1594822250; bh=rFAPZ3rDezKoDYEDsi3t+GAp 4UT57+EpkMCYA9yRu2I=; b=Z8QPdN0J52IfBRPxQS2cj0sn9oCUgJ+npMO7IpFD 4bb/IwXWC0Q9smM8jxyjA2FHhap8Ib5f35T6P2za1HjMKdUpPCB0EYu5GnY1D9WJ l533XZXwrNs8e/t7rH9eeO2CLRjlj3U+IY0ZC8S7c4XjhPnpZcuq9d9a6KZ3T2E8 kf8= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id CM8BztR3RWXc; Wed, 15 Jul 2020 14:10:50 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:f1ce:400f:4867:bc1f]) by mail.daemonic.se (Postfix) with ESMTPSA id 4B6K6f17Fyz3lbm; Wed, 15 Jul 2020 14:10:50 +0000 (UTC) Subject: Re: amdgpu on Ryzen 4700 w. Vega10 Renoir Graphics To: Michael Schuster , freebsd-x11@freebsd.org References: From: Niclas Zeising Message-ID: <9980e1d7-00c3-5d29-3a9c-a358949fee55@daemonic.se> Date: Wed, 15 Jul 2020 16:10:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B6K6r4RtDz4fpC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=daemonic.se header.s=20151023 header.b=Z8QPdN0J; dmarc=pass (policy=none) header.from=daemonic.se; spf=pass (mx1.freebsd.org: domain of zeising@daemonic.se designates 2607:f740:d:20::25 as permitted sender) smtp.mailfrom=zeising@daemonic.se X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; NEURAL_HAM_MEDIUM(-1.04)[-1.037]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.01)[-1.008]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[daemonic.se:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.56)[-0.559]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2020 14:11:03 -0000 On 2020-07-15 14:25, Michael Schuster wrote: > Hi all, > > I got a new HP laptop (455 G7) and put latest GhostBSD (20.04, based on > 12.1 release) on it. During installation, the only graphics selection that > didn't fail was 'scfb', which I'm still using. > > AFAICT from my research, Renoir is supported by latest drm driver/module, > so I installed that ( > https://github.com/FreeBSDDesktop/kms-drm/tree/drm-v5.0-fbsd12.1). That branch isn't used, and may be broken. If you want to get anything more recent than drm-fbds12.0-kmod, which tracks Linux 4.16, you have to upgrade to current and use drm-devel-kmod (which currently is at 5.3). > > > "pciconf -lv" shows: > vgapci0@pci0:5:0:0: class=0x030000 card=0x8730103c chip=0x16361002 > rev=0xc2 hdr=0x00 > vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' > device = 'Renoir' > class = display > subclass = VGA > > I did quite a bit of research (or so I claim ;-)), with mixed results, but > not success, I'm afraid. I have "kld_list ... amdgpu.ko" in my > /etc/rc.conf, I've moved the position in the line around other items > (linux*, cuse), w/o change > > some of the attempts I made: > 1) remove all xorg.conf files (recommended in several posts) > amdgpu isn't loaded, Xorg immediately falls back on scfb (I can post log if > required) > 2) use this xorg.conf: > Section "Device" > Identifier "Card0" > Driver "amdgpu" > BusID "PCI:5:0:0 > EndSection > > ... produces this in the log: > > [ 8.577] (II) AMDGPU: Driver for AMD Radeon: > All GPUs supported by the amdgpu kernel driver > [ 8.577] (--) Using syscons driver with X support (version 2.0) > [ 8.577] (++) using VT number 9 > > [ 8.589] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported. > [ 8.589] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card > support > [ 8.589] (EE) Screen 0 deleted because of no matching config section. > [ 8.589] (II) UnloadModule: "amdgpu" > > ... and the screen stays in text mode. This looks very much like the kernel driver hasn't loaded properly, or hasn't attached to the hardware. You try to force X to use amdgpu, and it fails because that kernel driver isn't loaded properly. > > 3) I tried removing all the config files in > /usr/local/{share|etc}/X11/xorg.conf.d, same result as in 2). > Don't remove the files in .usr/local/share/X11/xorg.conf.d, they are part of the packaged distribution. > I'd appreciate some advice/pointers as to what I could do to get this card > working ... then I'll follow up about the touchpad :-) The touchpad could be an iic touchpad, try with iichid from ports. Regards -- Niclas