From nobody Tue May 3 13:45:27 2022 X-Original-To: x11@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 322EF1AB6016 for ; Tue, 3 May 2022 13:45:32 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kt1SC1YkHz3PJC; Tue, 3 May 2022 13:45:31 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1651585529; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UVdi0AaeL/hrluYDbDhlNwxX+PyeujTZBKb4NdOvf1E=; b=Jbx2NO4iREkacjEzmXLoOgr2gikowJC9hsqiRSDAFLHEUWfjt+aOaHJYiIqTNrADo0kaMN yfwu3GdyCDoChd9/HRXJhK3IsElF0cnAF1Agl45jUB914d+HvaV69ojeJQrOp8i+YHRarP qFIHZxmiydrgO7QE9RT9tmiP+PMCeG4= Received: from skull.home.blih.net (lfbn-idf2-1-1209-45.w90-92.abo.wanadoo.fr [90.92.34.45]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 8142855a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 May 2022 13:45:29 +0000 (UTC) Date: Tue, 3 May 2022 15:45:27 +0200 From: Emmanuel Vadot To: Jung-uk Kim Cc: Masachika ISHIZUKA , x11@freebsd.org Subject: Re: Changes in drm ports Message-Id: <20220503154527.ae90d1d70a151f8bb24b8d69@bidouilliste.com> In-Reply-To: <816e5347-52a9-cd9b-8e66-5549b85fb29c@FreeBSD.org> References: <20220501200413.5e6b9e105b22b6e54888be1f@bidouilliste.com> <20220503.142847.811013461191473249.ish@amail.plala.or.jp> <816e5347-52a9-cd9b-8e66-5549b85fb29c@FreeBSD.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kt1SC1YkHz3PJC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=Jbx2NO4i; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[x11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, 3 May 2022 09:22:14 -0400 Jung-uk Kim wrote: > On 22. 5. 3., Masachika ISHIZUKA wrote: > >> I've reworked the drm ports and the gpu-firmware ports, here is what > >> changed : > >> > > [snip] > >> > >> For the gpu firmwares it's now in multiple packages. > > > > I'm using radeonkms on DELL studio 15 (very old machine). > > Although it works well on drm-current-kmod/drm-devel-kmod with > > gpu-firmware-kmod, it can't work on drm-54-kmod/drm-510-kmod with > > gpu-firmware-radeon-kmod. It froze after showing 'Mounting filesystems'. > > I'm using aio boot(cameleon UEFI boot loader) because this machine > > is too old and uefi boot is not supported by bios, crash dump was > > destroyed on next boot by cameleon and so I cannot save crash dump. > > > > [OK] > > drm-current-kmod-5.4.144.g20220223 or drm-devel-kmod-5.7.19.g20220223 > > gpu-firmware-kmod-g20210330 > > > > [NG] > > drm-54-kmod-5.4.144 or drm-510-kmod-5.10.0 > > gpu-firmware-radeon-kmod-aruba-20211014 > > > > P.S. drm-(54|510)-kmod work well on XPS12/Vostro 3267 with i915kms. > > gpu-firmware-radeon-kmod-aruba-20211014 > ^^^^^ > > "Aruba" is the default firmware and probably that's not what you want. > You need to find your own chipset and build correct flavor(s) for you. > > Do "grep 'could not load firmware image' /var/log/messages". For > example, you will see something like this: > > May 2 21:48:35 xxxxxx kernel: drmn0: could not load firmware image > 'radeon/TAHITI_uvd.bin' > May 2 21:48:35 xxxxxx kernel: drmn0: could not load firmware image > 'radeon/TAHITI_vce.bin' > > This means you need need "tahiti" firmware and you will have to build > and install it. Note you may need multiple flavors. For example, I had > to build two flavors for the above GPU, i.e., aruba and tahiti. > > May 3 08:46:38 xxxxxx kernel: drmn0: successfully loaded firmware image > 'radeon/ARUBA_pfp.bin' > May 3 08:46:38 xxxxxx kernel: drmn0: successfully loaded firmware image > 'radeon/ARUBA_me.bin' > May 3 08:46:38 xxxxxx kernel: drmn0: successfully loaded firmware image > 'radeon/ARUBA_rlc.bin' > May 3 08:46:38 xxxxxx kernel: drmn0: successfully loaded firmware image > 'radeon/TAHITI_uvd.bin' > May 3 08:46:38 xxxxxx kernel: drmn0: successfully loaded firmware image > 'radeon/TAHITI_vce.bin' > > Jung-uk Kim > Not much to say beyond what jkim@ said. It's a known fact that some AMD SoC uses multiple generation firmware (might be the case for PCI-E card not sure). Again if you don't know what you need just use the metaport that install everything :) -- Emmanuel Vadot