Date: Thu, 11 May 2023 12:03:51 +0300 From: Oleksandr Kryvulia <shuriku@shurik.kiev.ua> To: freebsd-current@freebsd.org Subject: Re: CFT: fwget(8) Message-ID: <dd4b6925-1ce7-6359-c17a-df6798095925@shurik.kiev.ua> In-Reply-To: <20230511095909.2b4565365e0818fb20b08a8d@bidouilliste.com> References: <20230511095909.2b4565365e0818fb20b08a8d@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------J4CvPguOCv1tJlNoqWQmldf0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 11.05.23 10:59, Emmanuel Vadot пише: > 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, > Hi, for me it correctly detects needed package gpu-firmware-intel-kmod-kabylake, but not install it. Propposed fix: - pkg install -q ${package} + pkg install -qy ${package} --------------J4CvPguOCv1tJlNoqWQmldf0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> 11.05.23 10:59, Emmanuel Vadot пише:<br> <blockquote type="cite" cite="mid:20230511095909.2b4565365e0818fb20b08a8d@bidouilliste.com"> <pre class="moz-quote-pre" wrap=""> Hello, Recently I've adde the fwget(8) utility, see <a class="moz-txt-link-freetext" href="https://cgit.freebsd.org/src/commit/?id=d198b8774d2cfb6f140893e1c6236af9e97d1497">https://cgit.freebsd.org/src/commit/?id=d198b8774d2cfb6f140893e1c6236af9e97d1497</a> 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, </pre> </blockquote> <br> Hi,<br> for me it correctly detects needed package <span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">gpu-firmware-intel-kmod-kabylake, but not install it.<br> Propposed fix:<br> <br> - </span></span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">pkg install -q ${package}<br> </span></span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">+ </span></span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">pkg install -qy ${package}</span></span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"></span></span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"></span></span> </body> </html> --------------J4CvPguOCv1tJlNoqWQmldf0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dd4b6925-1ce7-6359-c17a-df6798095925>