From nobody Tue Feb 18 22:01:44 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 4YyD5L52z7z5pFTq for ; Tue, 18 Feb 2025 22:01:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YyD5K011Kz3QYp for ; Tue, 18 Feb 2025 22:01:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=jxzhp1wN; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::102a) smtp.mailfrom=wlosh@bsdimp.com Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2fbfc9ff0b9so9159513a91.2 for ; Tue, 18 Feb 2025 14:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1739916115; x=1740520915; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FRSBeN7SWd/8CeFfFq7eFa8ISOmEsHVNLrNQrSjGPjs=; b=jxzhp1wNhosvfqkM0Ljcb9RLGju943HRvwPFdGzKrNTl+hK8yQlLGYo0WJFZJtax6S 3zZ/O3E3dQLBMpAv7nu9dXb6iynndDcYuhUitPzteSWaw42r8FrTBAQdTGT9NK1pBV+b nwr3xLdkOEMcCCPIGFoh3gvjTMsFuw1gG/o0E0POEncUO8mVeeIuaEP/2br4gU7dOH2j x8UIXtktQA3CDtpGmOywvOtBA7Jy6VOdjrBf7GtetwLsbAmCo5bF097u15apzr1QET2t QxjPe8vxjpO4mBkIaD27RHkkB8BqGVTRPK2RxX5GPScisdThS81Z/DMOt+yOC2lDcd4t aVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739916115; x=1740520915; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FRSBeN7SWd/8CeFfFq7eFa8ISOmEsHVNLrNQrSjGPjs=; b=pl2/tZtF9EPbWKTauxvNohzrcUvpsju1pXDTXXNfZ/q2V9/YnjDiszpfuXpTuCJGue xWVGNlAPDNOhf7SEit78TCs2D2J/xx9vlGNt24BnJ4r+v24M9bEtXNX+P0UZTuOQiAWf 0NXeCLLWSKkJ9I//K3AM8BO4SrvPfHXjmThs7FY5VsI+E5lzSXgHSVnSTU9uYKcgTj/A 6DsedRmWuomPGewK/Vqi8uTetROb6XACjVedvE0B97eQCjFoWYtjqTnlOtmhrKrOQUDz Mbn3ZAyNMNmtFYnxQvS8FPMRFe2tgihsylAVD9T6ROJ8MoOn5OXsyVJ8gs239KySE5NE ubQA== X-Forwarded-Encrypted: i=1; AJvYcCXLkMpB9H5SVr/pv+ClqS17JKslYLy9YirgAic/QsREsAWc6QtyQnFRrrt0i3F4MuYxhiDX7kdMddibQddPGcU=@freebsd.org X-Gm-Message-State: AOJu0Yxes4uYlTxXZ0VyV9DJ1c99tp6l66vZr0N8uyF8fGfVJHSa2sE7 B46iWnseXaA0Hmo4NJH+cCqbZXQhSVP3OaeOJeO18c2yrCcjfrs+GdPQPs1Fp8UDJv0k6B/zUTk jDYJmhnMlHpr1t6mPvb+xWr8IlrJ/C1c4ntP1j4cOMrtdCPdSKj3oCQ== X-Gm-Gg: ASbGncu23wGFAzX6nzAWwsuo0gmwJyULUKBCQksD16LHlGUTDcQoM8PyO+mZqCWg+eF czCiRq2Pgy2S5GvOQd/ZJJRcJrdHoiIlEdBDDO83QNn2vt2rQlFWaTn5DMj5889p9Ifc8qK6l X-Google-Smtp-Source: AGHT+IGFnMWWZ0ZiXdOySRN7+/XfswWt5zNQQetHZUwtfeyV+WxU7E2EyhOWD023Pl5HRES9sWRje5KBNyENDEwV6qo= X-Received: by 2002:a17:90b:1e09:b0:2ee:d186:fe48 with SMTP id 98e67ed59e1d1-2fc410453b3mr22958361a91.28.1739916115631; Tue, 18 Feb 2025 14:01:55 -0800 (PST) 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 References: <82B278D1-6483-438A-AAA5-DFD809B2E736.ref@yahoo.com> <82B278D1-6483-438A-AAA5-DFD809B2E736@yahoo.com> In-Reply-To: From: Warner Losh Date: Tue, 18 Feb 2025 15:01:44 -0700 X-Gm-Features: AWEUYZk6tCtC2_9AKoiJy35Q5It_QnaAMdDQfYxS6GjugrqQKdd1i85470uIWfg Message-ID: Subject: Re: No GENERIC.hints for aarch64 (arm64?), armv7, and more; also /sys/ based paths are referenced but seem to not be universally standard; also which ARCH standard in path? To: Mark Millard Cc: freebsd-arm , FreeBSD Current Content-Type: multipart/alternative; boundary="00000000000002fcf4062e71ca96" X-Spamd-Result: default: False [-1.88 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.88)[-0.885]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; R_SPF_NA(0.00)[no SPF record]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102a:from]; ARC_NA(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4YyD5K011Kz3QYp X-Spamd-Bar: - --00000000000002fcf4062e71ca96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 18, 2025 at 2:56=E2=80=AFPM Warner Losh wrote: > > > On Sat, Feb 15, 2025 at 10:04=E2=80=AFAM Mark Millard = wrote: > >> [This seems likely to not be limited to main [so: 15 as stands]. >> But I'm using main as the example for the issue.] >> >> In: >> >> # man 5 device.hints >> DEVICE.HINTS(5) FreeBSD File Formats Manual >> DEVICE.HINTS(5) >> >> NAME >> device.hints =E2=80=93 device resource hints >> >> . . . >> >> FILES >> /boot/device.hints Device resource hints >> file. >> /sys/ARCH/conf/GENERIC.hints Sample resource hints >> for the >> GENERIC kernel. >> /sys/ARCH/conf/NOTES Notes on the kernel >> configuration file and >> device >> resource hints. >> . . . >> >> >> >> For reference: >> >> # find -s / -name GENERIC.hints -print >> /usr/src/sys/amd64/conf/GENERIC.hints >> /usr/src/sys/i386/conf/GENERIC.hints >> /usr/src/sys/powerpc/conf/GENERIC.hints >> >> >> Multiple points: >> >> ) It seems that aarch64 (arm64?) and armv7 (arm?) have no >> such GENERIC.hints file. The same goes for riscv64 >> (riscv?). >> >> The intent for powerpc64 , powerpc64le , and powerpcspe >> may have the same issue. >> >> >> ) At least for how the local systems were installed, there >> is no such place predefined as /sys/ , not even as a >> symbolic link. "man 7 hier" does not list such. >> >> So it seems /sys -> /usr/src/sys is intended. (But >> /usr/src/ need not have been populated, leaving a >> lack of any GENERIC.hints in such a case.) >> >> Best to not to depend on /sys in the notation shown? >> >> >> ) The /ARCH/ reference is unclear vs. MACHINE, >> MACHINE_CPUARCH, and MACHINE_ARCH. The example paths >> existing for GENERIC.hints do not help because they >> all allow MACHINE =3D=3D MACHINE_CPUARCH , >> MACHINE =3D=3D MACHINE_ARCH , and >> MACHINE_CPUARCH =3D=3D MACHINE_ARCH. However, based on the >> NOTE paths: >> > > Like all things kernel, it's MACHINE. > >> >> # find -s /usr/src/ -name NOTES -print | grep /conf/NOTES | more >> /usr/src/sys/amd64/conf/NOTES >> /usr/src/sys/arm/conf/NOTES >> /usr/src/sys/arm64/conf/NOTES >> /usr/src/sys/conf/NOTES >> /usr/src/sys/i386/conf/NOTES >> /usr/src/sys/powerpc/conf/NOTES >> /usr/src/sys/riscv/conf/NOTES >> /usr/src/sys/x86/conf/NOTES >> >> None of of the MACHINE* are right: x86 is not one of >> any of the 3. Otherwise /arm64/conf/NOTES would suggest >> MACHINE as the only possibility if /ARCH/ was uniform >> for relative to the 3 MACHINE* possibilities. So?: >> >> /usr/src/sys/arm64/conf/GENERIC.hints >> /usr/src/sys/arm/conf/GENERIC.hints >> /usr/src/sys/riscv/conf/GENERIC.hints >> >> with no aarch64 , armv7 , powerpc64* , powerpcspe , or >> riscv64 examples? >> > > We store these in /dev/null these days :). > > I'll create empty ones for this. > https://reviews.freebsd.org/D49052 Just to expand a little: These platforms don't have legacy devices they need to hard-wire in various ways, unlike the other platforms. However, people use them to do device instance wiring, so I've created the empty ones. Warner > Warner > > >> =3D=3D=3D >> Mark Millard >> marklmi at yahoo.com >> >> >> --00000000000002fcf4062e71ca96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Feb 18,= 2025 at 2:56=E2=80=AFPM Warner Losh <= imp@bsdimp.com> wrote:


On Sat, Feb 15, 2025 at= 10:04=E2=80=AFAM Mark Millard <marklmi@yahoo.com> wrote:
[This seems likely to not be limited to ma= in [so: 15 as stands].
But I'm using main as the example for the issue.]

In:

# man 5 device.hints
DEVICE.HINTS(5)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0FreeBSD File Format= s Manual=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DEVICE.HINTS(5)

NAME
=C2=A0 =C2=A0 =C2=A0device.hints =E2=80=93 device resource hints

. . .

FILES
=C2=A0 =C2=A0 =C2=A0/boot/device.hints=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Device resource hin= ts file.
=C2=A0 =C2=A0 =C2=A0/sys/ARCH/conf/GENERIC.hints=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 Sample resource hints for the
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0GENERIC kernel.
=C2=A0 =C2=A0 =C2=A0/sys/ARCH/conf/NOTES=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Notes on the kernel
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0configuration file and device
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0resource hints.
. . .



For reference:

# find -s / -name GENERIC.hints -print
/usr/src/sys/amd64/conf/GENERIC.hints
/usr/src/sys/i386/conf/GENERIC.hints
/usr/src/sys/powerpc/conf/GENERIC.hints


Multiple points:

) It seems that aarch64 (arm64?) and armv7 (arm?) have no
=C2=A0 such GENERIC.hints file. The same goes for riscv64
=C2=A0 (riscv?).

=C2=A0 The intent for powerpc64 , powerpc64le , and powerpcspe
=C2=A0 may have the same issue.


) At least for how the local systems were installed, there
=C2=A0 is no such place predefined as /sys/ , not=C2=A0 =C2=A0even as a
=C2=A0 symbolic link. "man 7 hier" does not list such.

=C2=A0 So it seems /sys -> /usr/src/sys is intended. (But
=C2=A0 /usr/src/ need not have been populated, leaving a
=C2=A0 lack of any GENERIC.hints in such a case.)

=C2=A0 Best to not to depend on /sys in the notation shown?


) The /ARCH/ reference is unclear vs. MACHINE,
=C2=A0 MACHINE_CPUARCH, and MACHINE_ARCH. The example paths
=C2=A0 existing for GENERIC.hints do not help because they
=C2=A0 all allow MACHINE =3D=3D MACHINE_CPUARCH ,
=C2=A0 MACHINE =3D=3D MACHINE_ARCH , and
=C2=A0 MACHINE_CPUARCH =3D=3D MACHINE_ARCH. However, based on the
=C2=A0 NOTE paths:

Like all things kern= el, it's MACHINE.
https://reviews.freebsd.org/D49= 052

Just to expand a little: These platforms d= on't have legacy devices
they need to hard-wire in various wa= ys, unlike the other platforms.
However, people use them to do de= vice instance wiring, so I've created
the empty ones.

Warner
=C2=A0
Warn= er
=C2=A0
=3D=3D=3D
Mark Millard
marklmi at yahoo.com


--00000000000002fcf4062e71ca96--