From owner-freebsd-x11@freebsd.org Thu Jul 16 17:49:24 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 414ED369386 for ; Thu, 16 Jul 2020 17:49:24 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 4B71wM2vJlz3bv6 for ; Thu, 16 Jul 2020 17:49:23 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-il1-x133.google.com with SMTP id k6so5810429ili.6 for ; Thu, 16 Jul 2020 10:49:23 -0700 (PDT) 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=ng/uw1y8A4LyRY1X8b2pQNQaC6C2dvBuoYo7bWlewsk=; b=X5OJm8AAxm4VRxOXi2z5x++GiwjmMj4nhDAm9KX01RJeFEHkxJTdynUHdJAem6fDuq RdtQY/XFaV6pOaMI6rO3F02kKBZJZ9sKRw+7vV9TLrhZe8eW/c1ey5TvKCqbHIv+wlgR S3GLBmtRd6HYrwefhnIRqgYiNaR7yFczcojsfzrtt3iLUtghBLalRAjhTeNbU0dxJYU3 prBxNIXO6iBCrg9hnDSOz4Yl8LGFYibxlu8CQJ3fU3Ji8hwyjHyHDLUXnxCzazvPNvyQ Y9nfvvRTk7D9APTOREQG4n8T2l+e1IPMLkxHjXZPv04vaC036v2sWewdD48VOsyI6Y14 NZUg== 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=ng/uw1y8A4LyRY1X8b2pQNQaC6C2dvBuoYo7bWlewsk=; b=NP3fCXCv0rKn6g2+L0kzdzPoxF0IVOON0mXwihcV1BKS07W38CWNN1qgqgrCaiqF7L 2bknXMzuLDArRU2f8HCdRKZ5IXep/DoFYLfwOzSbhgnFxGtFPTMHUR16HznfMJhFTDp3 oitVrQS2YG9wtC/3sSUn7ifVDO/DM85xALohGjJwX4TdW+2LevoKmkuoHqzL6hWwdKef +drVya5OkMoeRKzoX3LdrnAzZQ53XwoV20j3bbrOnt0XZ5ZYYB7nPrqNgPptzZFbjAQu DOgH2xFP56wUJXOSWfn/xvUNOXvsruQrmjpj4fMyGSnE+WGT9wOH5kPFJLNqT/PNJstd 7FXA== X-Gm-Message-State: AOAM531Ic40/MaAcFAouzYwnacf2R9iyV4H0WpChBepbImB7vzZ7R7jf USeURRs3Enc/ez/v833KGJ6eMtRhk7qfEEUVYiywlVHU81U= X-Google-Smtp-Source: ABdhPJzC6UhBWmvFHOg0+jOWx+uE12uEo4GOMtFf2wuXR3ZJRbqprWdnLrqWK0iLkXn2QyZDCVixZ4jaHODZJ/3PB88= X-Received: by 2002:a05:6e02:5c4:: with SMTP id l4mr5739172ils.209.1594921761979; Thu, 16 Jul 2020 10:49:21 -0700 (PDT) MIME-Version: 1.0 References: <9980e1d7-00c3-5d29-3a9c-a358949fee55@daemonic.se> <22de2d99-fd52-0925-6fda-8f7358e61954@daemonic.se> In-Reply-To: <22de2d99-fd52-0925-6fda-8f7358e61954@daemonic.se> From: Michael Schuster Date: Thu, 16 Jul 2020 19:49:09 +0200 Message-ID: Subject: Re: amdgpu on Ryzen 4700 w. Vega10 Renoir Graphics To: Niclas Zeising Cc: freebsd-x11@freebsd.org X-Rspamd-Queue-Id: 4B71wM2vJlz3bv6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=X5OJm8AA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::133 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-3.52 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.024]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.982]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::133:from]; NEURAL_HAM_SHORT(-0.52)[-0.516]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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: Thu, 16 Jul 2020 17:49:24 -0000 On Thu, Jul 16, 2020 at 4:58 PM Niclas Zeising wrote: > On 2020-07-16 16:48, Michael Schuster wrote: > > Hi all, > > > > I know I'm top-posting (this note) AND cross-posting - please bear(sp?) > > with me, I think I'm somewhat justified: > > > > > > On Wed, Jul 15, 2020 at 9:46 PM Niclas Zeising > > > > wrote: > > > > > > > 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). > > > > > > > > > just to be clear: by "current", you mean FreeBSD > > 13.0-current, right? > > > thx > > > > > > > > > so I went ahead and installed FreeBSD-current on this machine, > > and then > > > drm-devel-kmodas you recommended. Alas, I'm getting an error: > > > > > > KLD amdgpu.ko: depends on kernel - not available or version > mismatch > > > > > > some googling showed that - since I did a fresh install of > > -current just > > > now - amdgpu must be out of sync. the version I have installed is: > > > > > > xf86_video-amdgpu-19.1.0_1. > > > > This means that your kernel and the drm-devel-kmod package are out of > > sync. drm-devel-kmod installs the kernel graphics drivers, such as > > amdgpu.ko, and it has to be in sync with your kernel. Depending a > bit > > on which svn revision of current you have, you should be able to > build > > drm-devel-kmod (and preferably gpu-firmware-kmod) from ports. > > > > > > @Niclas, > > your FreeBSD system. Updating FreeBSD Current is generally accomplished > by rebuilding and installing it from source. Instructions on that can > be found here: > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html > > again, thx. Building world and the kernel worked, I'm now running that kernel I built. I managed to successfully build graphics/drm-devel-kmod and gpu-firmware-kmod. "make install" for some reason didn't - I could only find modified amdgpu.ko in graphics/drm-devel-kmod/work/stage/boot/modules/ (and no documentation on how to achieve this) - so I copied all the .ko files from that directory into /boot/modules, though a reboot didn't help, here's the latest Xorg.0.log output (selected) [ 22.733] (==) Matched ati as autoconfigured driver 0 [ 22.733] (==) Matched modesetting as autoconfigured driver 1 [ 22.733] (==) Matched scfb as autoconfigured driver 2 [ 22.733] (==) Matched vesa as autoconfigured driver 3 [ 22.733] (==) Assigned the driver to the xf86ConfigLayout [ 22.733] (II) LoadModule: "ati" [ 22.734] (WW) Warning, couldn't open module ati [ 22.734] (EE) Failed to load module "ati" (module does not exist, 0) [ 22.734] (II) LoadModule: "modesetting" [...] [ 22.735] (II) LoadModule: "scfb" [...] [ 22.736] (II) LoadModule: "vesa" [...] [ 22.736] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 22.736] (II) scfb: driver for wsdisplay framebuffer: scfb [ 22.737] (II) VESA: driver for VESA chipsets: vesa [ 22.737] (--) Using syscons driver with X support (version 2.0) [ 22.737] (++) using VT number 9 [ 22.747] (EE) open /dev/dri/card0: No such file or directory [ 22.747] (WW) Falling back to old probe method for modesetting [ 22.747] (EE) open /dev/dri/card0: No such file or directory [ 22.747] (WW) Falling back to old probe method for scfb [ 22.747] scfb trace: probe start [ 22.747] (II) scfb(1): using default device [ 22.747] scfb trace: probe done [ 22.747] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 22.747] (EE) Screen 0 deleted because of no matching config section. and indeed, /dev/dri is nonexistent (though /dev/drm/ contains a ton (... ok, 0x100) of driver entries). Also note: amdgpu appears nowhere in the excerpt above (or even the complete Xorg.0.log file). One thing I remember from the previous ghostbsd installation: /etc/rc.conf's kld_list contained a few more entries that just "/boot/modules/amdgpu.ko" that I have now ... should I put something else in? so - once more - I'm hoping for your guidance :-) thx Michael -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'