Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18453C433EF for ; Tue, 28 Jun 2022 15:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jd3Kb9jBRdZdlJh68xo+c/OuCG1UxkeDXCS/ZHPFYQg=; b=EqOq3tnCV7ZZAq92cJZf35g3u+ bUjsJnak2Wj+Qjqs1e0zfC+qH+AP1tIscXpBVVsYc9DsEgVEAYhR54cv1GtgHhe9M5QrdoBwSNNeI ypm3b2S77Ah4N7XI2zcYttj9+D8hLwOZdiA0MLusQQYUQUlHyNdyZ0MSFpAj+4FFXsgDQJe0BB9Na DWyphBWIpbjSMEvtdOcWjIOCgSsx/h+KHd0f8fJ3xZcA5MGwEIkOcRhojVyf2R3cb5tnt1LNBlfY0 T/hDSSsatkzdHTuPIgNquIEnXMhUVM+l6u2y5mtRGnj3MN/E3WaHahGKVkVGbLg5iumsbi1NjOiSN RFjzfAFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Cnb-006okF-Ky; Tue, 28 Jun 2022 15:06:43 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6CnY-006ojZ-A0 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 15:06:41 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B606160BC2; Tue, 28 Jun 2022 15:06:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82091C341C6; Tue, 28 Jun 2022 15:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656428799; bh=+hYT9k9iUdeiTDrVnz/f08nh0M+ZVqmD0rNS9Mcy5Qs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D0QVhZYixFIvzG3d/lyh8oqJpVL5Xnq+lD37cazyF5rjdcsLnZPj9i0Te06fisl6V aiCbIOV/t5ZQkyEBqpDb1jGWMqd9IXaQ4Fy+BjW7s9QTF3+0SMvgyhL9Qs36NjOSme ss6crKNL+MEttVPclQA9Z/kcacf3LZEtvbxge9BK6PKp1gMPgzgHO0bfO/ytX3Hnqq JAIqryV6c1jejK6zv97XlMt+w4564C/f012zVH1Ae9AUDFYi/o3UXZjYj8S/d0D7eq aIp9Rdm1+JyspHpnrGGybqtoc/rcCHa9gUhpbzbJ4YBTEAQno/Z5HjmTKPxIOtAQ8/ bjI5MjhBVVA6g== Date: Tue, 28 Jun 2022 16:06:34 +0100 From: Mark Brown To: Will Deacon Cc: Catalin Marinas , Eric Biederman , Kees Cook , Suzuki K Poulose , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/4] arm64/cpufeature: Store elf_hwcaps as an array rather than unsigned long Message-ID: References: <20220620125451.653507-1-broonie@kernel.org> <20220620125451.653507-2-broonie@kernel.org> <20220628142124.GB24116@willie-the-truck> MIME-Version: 1.0 In-Reply-To: <20220628142124.GB24116@willie-the-truck> X-Cookie: I like your SNOOPY POSTER!! X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_080640_419677_308C0B27 X-CRM114-Status: GOOD ( 23.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4300608609086393779==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4300608609086393779== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VxSNxfBFN+tUZGcd" Content-Disposition: inline --VxSNxfBFN+tUZGcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 28, 2022 at 03:21:25PM +0100, Will Deacon wrote: > On Mon, Jun 20, 2022 at 01:54:48PM +0100, Mark Brown wrote: > I would like to see an Ack on this series from the libc side (i.e. > Szabolcs) before we extend the ABI. Have any other architectures used Me too. > HWCAP3? No, hence needing to add it. > > +/* Note that bits 62 and 63 of each AT_HWCAP are reserved */ > Can you expand a bit on this comment, please? It's not clear who has > reserved those bits (e.g. kernel or userspace) and why having two bit > reserved means we are limited to 32 instead of 62 bits. It's also not clear to me why they're reserved, I didn't manage to dig far enough into the history to figure that out - I believe it's a glibc thing, or at least something glibc now expects. Indeed I can't immediately dig up the specific reference now. Szabolcs? =20 > > /* Kernel representation of AT_HWCAP and AT_HWCAP2 */ > > -static unsigned long elf_hwcap __read_mostly; > > +static unsigned long elf_hwcap[MAX_CPU_FEATURES / CPU_FEATURES_PER_HWC= AP] __read_mostly; > I can't help but think this would be neater as an explicit bitmap > (i.e. DECLARE_BITMAP). IIRC my thinking there was that the need to chop the bitmap up into chunks that aren't word sized that made me not use that - the code to read and write is a lot simpler if hwcapN is a single array element. --VxSNxfBFN+tUZGcd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmK7GPkACgkQJNaLcl1U h9AK5Qf8CllKV1D2GHsDMJvaZsYfrEjEljTJbaURE9rAagwF2CqO5e3Lko1KNliX VN7ru7nrP0uSH6m3lOE0yrM/q0HQKCwFcgIqYlveLDuhu/SgBb1UIHf/HzCj0UPk +CgHX4E6uzhRPZHIR0nI1HXsRXNNQ0JejG9P6FBzJQRuNYFsRW+Fjk19lR8MNDDn pNtxghlIcPf76m+7GdBc2u5SJ2qi7efa6AEFuGqtpUVu58TMhAUI6a3UOHWzRta3 RnvTsfyWWbmIIZIactTPOEcEXsIP77jWn3HcaGY6Gavzj9OA0H6hju4Vgc8WyVne T5Fcs1/Cu4vrOn3jtJrvpVATy/SzLg== =+WBb -----END PGP SIGNATURE----- --VxSNxfBFN+tUZGcd-- --===============4300608609086393779== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4300608609086393779==--