From nobody Thu Aug 03 00:25:29 2023 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 4RGV4k3M8kz4dCjZ for ; Thu, 3 Aug 2023 00:25:54 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RGV4V4jm9z3vgX for ; Thu, 3 Aug 2023 00:25:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=PwqJOlfy; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691022343; bh=7vgFcTS5NnnVOuTqICPCCZ7NlvYILazgKb1X5VNPlcg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=PwqJOlfyoWKNDhh5g8CrrlqFbCA2SYKhs+v7EtMgtF3+fl5zeltY6qaNe/1vhi+3P4NSX1dSZavtFd515HwIJOAAK7J1fhDopk7o3V0Clg0weNv3GWSx9uVaet27TENRMuE8VQY14OcheJFBvMXLjmUztOJI4ThEoyvyR93ab1BTN2AmRutwsn/foeCU5mMWOe2xhvs44rBoRTNSsbvcdbhN092cPv85cGAHVrmWZyIb+cJ5PFXdOI0Umqo3dHAE185xERI8TODeVaixHt6S3WGYRHv49MJw1ahZioa7I/mhTY9iQV6VL+M/hTwpOSITnueDAFbBmNHr/P0a/he9Ng== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691022343; bh=Bz839wEH36LJkD2IO5r72zQ+ZFn3PstTef4O/5kwBmA=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=lrKkto98oa0ngis4wQv5kWN44j9Ja5z66ZjyLj3Ql0eNHWrIiD0/1R0tYc7U3sawK4sdNf6oN3yZt0Jtb0RUl3mOLPnEkTxnLDCrD5Hx5QxXc3EREP2wPLg8CPky6L0StYxLDOyH0rdkl9FzrJk+KXPYKfQkaUHDwOL96QEtDN2Sj3oc39wwse9ZlU7u6vrqWIdhzw8eCp2f4PIfK9ClPD47IqQkQBlalf/wgfTkX0/kpgwgTERCaCmynD56MjT8W8J1zN8ottysfvmHYTNEBynzqHR547ThUIpqi/hV6DRJHODcLBVmCmgOSMmXBF/g5A825XEU/Bg7ZZhyGcenyg== X-YMail-OSG: diAmh4kVM1lRg4katyIproR3XLe7nWYArFXNy6JhCt8Du.26aCX0kJeoce2tJwt vdEHxl5qHNsHsjUCJcecmEOLz59174O8EsO1hENOD2ShNlhurfGjcYNQ97oPoQUSnn9BDkryPQ8U r1GPxR44FHiIKoapu_us.qnxnHCK24TYee2vZuE_eJ0VVSlXaQGmNFITeYFl56E2hYxq5gJKuuIu Am7zKreDbT1jABkXtcGf8y0uga8fR1.kpIDZhrCr7A7taO9SPAM5akXGNlfDDhgKW00YuVP_4deZ dPcahgll13QzuENGrsWz2zX8zBTeS4rhLrpKG_fEtIpCLN1_.G9Qnu3naUXeB1lBIY.TEvNxWjmA CxZjwVIwtBEDxlwPVR5NwE0UMIEYLKUsiFtpZ_1.USaAd47.qShEQXD70ASs_8OQMufqUwZLaWur 0.Fm3kpde_9JZd0xcJ7d4jzuVncmRsMgLOrZ94DQ8c.SeK_H_siQ_QhbFdAqcN2gn3t7WU3tBQe4 tvzSjdMRAU.BDEj50XBEqltMRexAea3YPZnxz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3bZPYCO8eyI8qqc_7WhNIsf3ilsPlIU0Ey 4afgtkzxf.NQHdz94lliS5uy2QfK7KYJsOrZl78u1W_ly_jQqIM5fNrnC_MRSvl4izugERpIOd.8 N1Zhb_9UsOrccd7J.uRlJKafsW7TKQ2hjO6cTIuhkTplZch5yOw3k3WUutZ3EuPrV6SkpLqGsfay BZc8.ZpRNEHXRRMJBeZ_XRZLjjiDei3VLhiXM2VDiWHPz.InL3ST85GzbmTUZ_JiYiLWrYIBCjbg LRkMcMkMoErO5fBmUq7sP_oc6uDoWcGL1us1mdMQz1cHXPXfjd5eLog2IKiddcD3FxBzlPeSHHfB c6I.TyaqK13ThGR6qaDDWKyPnlgfhcekU0hCTgLEFDWAZD2q7yiilv6kjpgvOe7Kb8lseedvTx5V DFWcchLeNJ2ME1d.xZz9VnH.wnc4ZlOrsAJmcp48pN2BHGiHcJbyWKWaKCPJqj3RL9KNR6gIAZET tP5lA5WJeJhFWw6SVxRtRQ6FDsEnbVe1r2bUwWqHeKZDK6sjpn5GHBkgVjhg6KaNIlgVemSwGoOa d_3Vdtn4RSwTb35ZAIJt65q.w631nWjR29_dnEUHKV5xNR6XbApF17C6DtgUIsaDNCAXdjrTeXUN 5b3Xgn9Jc7LhLHPg9zV7XB3uOLZEyrOsrU9uU3gxb17UWJM_.r06TuV.tD01lFDn.vn_2A6f57jl 7l0aU X-Sonic-MF: X-Sonic-ID: ba0e873d-20be-46b1-b600-88b7165ca695 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Thu, 3 Aug 2023 00:25:43 +0000 Received: by hermes--production-gq1-7d844d8954-l5pzx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID adb52329811117f2cb148214802152e4; Thu, 03 Aug 2023 00:25:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: sys/modules/Makefile and MACHINE_ARCH vs arm64 (in use) vs aarch64 (not in use) VS. man arch; also COMPAT_FREEBSD32_ENABLED use From: Mark Millard In-Reply-To: <2B0FE8B1-5E53-4E70-9792-15A8E423CA33@yahoo.com> Date: Wed, 2 Aug 2023 17:25:29 -0700 Cc: Current FreeBSD , FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: References: <2B0FE8B1-5E53-4E70-9792-15A8E423CA33@yahoo.com> To: Warner Losh X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RGV4V4jm9z3vgX X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.35 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.85)[-0.851]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.83:from]; BLOCKLISTDE_FAIL(0.00)[98.137.65.83:query timed out]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.83:from] On Aug 2, 2023, at 12:56, Mark Millard wrote: > On Aug 2, 2023, at 11:16, Warner Losh wrote: >=20 >> Those all look wrong to me. >>=20 >> Warner=20 >>=20 >> On Wed, Aug 2, 2023, 11:27 AM Mark Millard wrote: >> man arch reports: >>=20 >> MACHINE MACHINE_CPUARCH MACHINE_ARCH >> arm64 aarch64 aarch64 >> . . . >> arm arm armv6, armv7 >>=20 >> So I'd not expect arm64 in MACHINE_ARCH . But >> sys/modules/Makefile has (from a grep for MACHINE_ARCH): >>=20 >> .if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "arm64" >> .if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "arm64" = || ${MACHINE_ARCH:Mpowerpc64*} >>=20 >>=20 >> Another issue may be that COMPAT_FREEBSD32_ENABLED is only >> put to use in the Makefile for MACHINE_CPUARCH being i386 >> or amd64 : >>=20 >> .if ${MACHINE_CPUARCH} =3D=3D "i386" || ${MACHINE_CPUARCH} =3D=3D = "amd64" >> _agp=3D agp >> .if ${MACHINE_CPUARCH} =3D=3D "i386" || = !empty(COMPAT_FREEBSD32_ENABLED) >> . . . >=20 >=20 > I'll note that, for example, i386 vs. armv7 do not match > for some struct md_ioctl field offsets and the overall > size. Turns out no member offsets were different but the size was: just differing tail padding in the structure. Still it means some conditional differences across i386 and armv7. (I've no clue if the 32-bit powerpc lib32/chroot handling is working on powerpc64 vs. not. So I make no claims relative to such.) > Mike Karels is looking at getting struct md_ioctl32 > correctly matching each of of the contexts: i386, (32-bit) > powerpc, and armv7. >=20 > I do not know if there are other COMPAT_FREEBSD32 adjustments > needed for differences in memory layout across the 3 (i386, > powerpc, armv7). md_ioctl I learned about via kyua test runs > and looking at the background for some things it reported for > armv7. >=20 > I've not found a clear indication of what is expected to work > for chroot/lib32 vs. what is not expected to work. It seems > one must look in the code and see if one finds conditional > material based, in part, on COMPAT_FREEBSD32. It might also > be that COMPAT_FREEBSD32 for i386 vs. armv7 vs. powerpc > might not be intending identical coverage for all I know. > So seeing COMPAT_FREEBSD32 might not be enough to know the > intent. =3D=3D=3D Mark Millard marklmi at yahoo.com