From nobody Mon Jul 21 17:37:03 2025 X-Original-To: freebsd-current@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 4bm6zC1GW4z62vLj for ; Mon, 21 Jul 2025 17:37:11 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [IPv6:2001:470:8d59:1::8]) (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 "mail.protected-networks.net", Issuer "R10" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bm6zB5vNvz3ksN for ; Mon, 21 Jul 2025 17:37:10 +0000 (UTC) (envelope-from imb@protected-networks.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding:content-type :content-type:in-reply-to:from:from:content-language:references :subject:subject:user-agent:mime-version:date:date:message-id; s=201508; t=1753119424; bh=nmOwJMuzpO1oh+oHJYRsLqdRQc1dShRBQBRM qpj7De0=; b=Fz5hi6f4hPPanwziibpdcHKxxPcht2zm0JPEFZM2OnVqDbl//YTx FggQ5b5CJo4CgRpJhS5kKM5JnsEZT639B+pDnzdm54zo6WODgSE6tH61Z62R1ufa y2NOfy8eehye704GSI87aBRE5VQrD6aXp6xWh67nis1sNrWuOMW7dqM= Received: from [192.168.1.9] (d5540.auburn.protected-networks.net [192.168.1.9]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id 148C4389B2; Mon, 21 Jul 2025 13:37:04 -0400 (EDT) Message-ID: <85c4b568-d9d8-4ceb-8813-08d7321ae977@protected-networks.net> Date: Mon, 21 Jul 2025 13:37:03 -0400 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: FreeBSD 15 snapshot with UFS Flash To: Warner Losh , FreeBSD Current References: Content-Language: en-NZ From: Michael Butler In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4bm6zB5vNvz3ksN X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] On 7/21/25 13:20, Warner Losh wrote: > Greetings, > > Recently, I bought a system with 256 of UFS flash (UFS here is > Universal Flash Storage, a system that presents flash to the host as a > SCSI device). I grabbed the latest snapshot (15.0 20250718) and put > it on a USB stick. It just worked, though there's a couple of rough > edges I'll document here. > > To boot and install, I needed disable SECURE BOOT so I wouldn't boot > into windows. I did that by pressing and holding as the system > booted and disabling in the Security section. I had a Minisforum S-100 > system with 256GB > (https://refurbished.minisforum.com/products/minisforum-s100-refurbished > may have the 128GB version). Once I disabled secure boot, I selected > the USB stick to boot. FreeBSD came right up. > > However, the ufshci library isn't in the GENERIC kernel yet, and > devmatch didn't automatically load it for me. So I had to stop at the > first prompt to get a shell, 'kldload ufshci' and then 'gpart destroy > -F da1' to remove the windows install. I then did a normal ZFS guided > install. > > Once I got done with all that, I had to edit /boot/loader.confg to add > 'ufshci_load=YES' at the end before I rebooted. And my system was > good. If you forget, you can load /boot/kernel/kernel, > /boot/kernel/zfs.ko and /boot/kernel/ufshci.ko at the command prompt > in the loader. > > This was all way less pain than I'd prepared for. The system is > decently fast, but nowhere near as fast as my server machines. I've > not yet tried to put a X11 on it, since I still need it for UFS > testing for future submissions and to fix a couple of rough edges for > a few things I've done in CAM before 15.0 goes out the door. I highly recommend adding sysutils/cpu-microcode-intel (and the needed config tweaks) to mitigate various page-table-related bugs in these CPUs, Michael