From nobody Thu May 11 07:59:09 2023 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 4QH46m5KFPz49tXD; Thu, 11 May 2023 07:59:28 +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 4QH46l1mqXz3NPl; Thu, 11 May 2023 07:59:27 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=GaIgsVh9; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com; dmarc=pass (policy=none) header.from=bidouilliste.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1683791959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cJOSb1n4c2IxKThNzWSeIwuLsKn0701s5fPxeejCEag=; b=GaIgsVh9pO2S/3HbaCiRSgeWhbHh8w18mJfmTKbJ7zt2lQlhI1hnRQaVNY7MNZ6KSlrj5J T6TvNO63FIsCGTjRjdePVlxeKwO7ZTv73oyFbY9/2o1KlH/pwpzakBZxX3CckeIFSQNLJ8 sCeMYtuW3GW6L2d0dUW+0kVrBTeYzKg= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 56e14c3e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 11 May 2023 07:59:14 +0000 (UTC) Date: Thu, 11 May 2023 09:59:09 +0200 From: Emmanuel Vadot To: current@FreeBSD.org, x11@FreeBSD.org Subject: CFT: fwget(8) Message-Id: <20230511095909.2b4565365e0818fb20b08a8d@bidouilliste.com> 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-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[x11@FreeBSD.org,current@FreeBSD.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEFALL_USER(0.00)[manu]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QH46l1mqXz3NPl X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello, Recently I've adde the fwget(8) utility, see https://cgit.freebsd.org/src/commit/?id=d198b8774d2cfb6f140893e1c6236af9e97d1497 The goal of this program is to scan the hardware and download the needed firmwares, for now it only do that for Intel GPUs and recent AMD GPUs (the one supported by amdgpu.ko). I'd like to know if I handled correctly the mapping between ids on Intel and AMD GPUs (for i915kms and amdgpu drm module). I'm pretty sure that Intel is correct but I could have messed up some AMD ones. Also for some AMD GPUs you need two firmware generations and it's hard to know by looking at the code. It would be good to fix any bugs/miss-match before 14.0 The best way to test if everything works is : 1/ pkg delete gpu-firmware-\* 2/ (optional) pkg install drm-515-kmod/drm-510-kmod (if you had the meta package drm-kmod installed it would have been removed in step 1) 3/ fwget 4/ kldload i915kms/amdgpu For i915kms just check dmesg for lines saying something like "drmn0: successfully loaded firmware image ...", this means that everything is correct for your hardware. If you see a line like "drmn0: could not load firmware image ..." please open a PR on bugzilla with dmesg and pciconf -vl attached. Note that firmware for i915kms are optional, they only help with power management and suspend/resume. For amdgpu the driver will fail to attach and you will loose the display if the firmwares aren't present so you will need to ssh into the machine to check for similar lines like i915kms. Thanks, -- Emmanuel Vadot