From nobody Tue Feb 18 21:56:18 2025 X-Original-To: freebsd-arm@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 4YyCz43mkQz5pDsJ for ; Tue, 18 Feb 2025 21:56:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 4YyCz31YVnz3Lqr for ; Tue, 18 Feb 2025 21:56:31 +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=C7WoSZOx; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::1035) smtp.mailfrom=wlosh@bsdimp.com Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2fbf77b2b64so11287077a91.2 for ; Tue, 18 Feb 2025 13:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1739915790; x=1740520590; 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=thCdEoKtZhAW4LLvk3sHvMlt5rZ2snxe7zo4SUCwY9g=; b=C7WoSZOxZJRkGGSwRRObV2n2woWPHk7RmzATnPN9woS0y0VttKIs3/bpS2phuEuNLm moV/yeZ9UFByAGzbINGrowwNPNnipOPOMpGVtAqja9lfApK2Jdfl5HoY5+Xhe3T5y7qx 6SQiTGnloE1Tq04na/IWDmzjvW0uKrmP+LRQA4MDZ3FKOXRJU+cK7EYDgPde94oz7vlf olkQ24pF/YqT9eG11SvgdIDFc5Oo1w7GggDIIQGVU/3AbrBIas7I5itS3ohm2smB/jq3 Jn3TWLt5aS5l0d9S7OM4ozb9dgp9OfGR1O6RwgK7cD0jgveC94jdPGj94U7BCffd025L itbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739915790; x=1740520590; 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=thCdEoKtZhAW4LLvk3sHvMlt5rZ2snxe7zo4SUCwY9g=; b=v0AYrwUmb/HZmtGj1l68EB7qS4dGS8agXQVAE9K5oQPUWDtxM0KadBNp3g8WIyz9hz Z7WG0jsSeYS4LGqjO/GZRDqwNj+bdnGAZVgoWidOkTAwcFXHq41XgSkLXbC9Js2TfKmC CxNxNQaYbRbMWuiin+ngVw5pmPMhZdd7jEuCu4jmIoddO8tYHuiIfmc5GOopZ6p7VBkO IAGIEEWRdonjlGK39WI4iTOxz/WrTRpFtDL0v/cMoxX/9HdlHPzxG2DHpxijDPuJPj67 WYu+hvVZCW8Dj3qooB5GM7x5ST6af28U+GAKhhDn7pmMjLCEtHWTXLnpjBQW1eiU+5vP 8NLw== X-Gm-Message-State: AOJu0YyXD3zu2TRq9I8InTbRJTgRHZBG9O+wJNZtVRlxvokMWB/71oBc 5ThKKwhniQHNLjyqSoEOnztG9izwKzNR7FNpatXlccSo343sG/FCmuO7HIWU31gFs1ydp2clnw2 9A3OvZe5uXFPeQ8OXUOAUQdA1cN/oS4fV6SDmhBJ/tT3sztx92v8= X-Gm-Gg: ASbGnctKUt7x/GPgdMc9OU283wqFoBj9VJTtaDMQgKXRH/PKE3MNOgzRXt1sMKRInot rFpMOfcNQv8+dDPG4N+MQpjJdBBtvprPuPHKRehY59XVp0E7J+jjyebcxjX+P0D4rmXf6xOxs X-Google-Smtp-Source: AGHT+IGQLgiFqLOJ94PBSSmj1OZ8acPo33PbU0qPxQla1eOOW/+Fjj9k0dwUIqX4ZhKSWN4o30LfyPGGBq5OcvKSiwI= X-Received: by 2002:a17:90b:1a88:b0:2fc:b40:339a with SMTP id 98e67ed59e1d1-2fcb5a14827mr1793619a91.10.1739915789988; Tue, 18 Feb 2025 13:56:29 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@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: <82B278D1-6483-438A-AAA5-DFD809B2E736@yahoo.com> From: Warner Losh Date: Tue, 18 Feb 2025 14:56:18 -0700 X-Gm-Features: AWEUYZluCUk5qgMKCO8pBec6oeKjoYOoWtZyCCqE48DEcR_GaTSh2fIC6qa4cXI 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="0000000000009a13f4062e71b6a2" X-Spamd-Result: default: False [-1.89 / 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.89)[-0.891]; 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::1035: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-arm@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4YyCz31YVnz3Lqr X-Spamd-Bar: - --0000000000009a13f4062e71b6a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Feb 15, 2025 at 10:04=E2=80=AFAM Mark Millard w= rote: > [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 fo= r > 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. Warner > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --0000000000009a13f4062e71b6a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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 main [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.
=3D=3D=3D
Mark Millard
marklmi at yahoo.com


--0000000000009a13f4062e71b6a2--