Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1orw5U-0007l5-El for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2022 06:58:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1orw5S-0002yE-OQ for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Nov 2022 06:58:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1orw5R-0002y4-Vf for pgsql-hackers@lists.postgresql.org; Mon, 07 Nov 2022 06:58:26 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1orw5P-0002HS-OI for pgsql-hackers@lists.postgresql.org; Mon, 07 Nov 2022 06:58:25 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BEC5A3200970; Mon, 7 Nov 2022 01:58:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 07 Nov 2022 01:58:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1667804300; x=1667890700; bh=X0gsqmIuiu 8GkGGvoFvn6ndER/eUcOoIqHgNywJKF1k=; b=xA5fOTcY3/bpdV1BCuwUvLzUB8 vDnGUVNeIUS7ZwsKNTB8j/GLVM758kMTjaTXjJGIdmf7AbL5ntQ+MdL1BBpC6FvN Sp7idG4ZP874K3rvkNJMlU8AQega/UOgivtSSzXNvoYi6IXfyid/WrcUiJF+LRv7 Su6qncYp3dHSTM7psDDb0Wzl+bcfu2EQzZcDSGz8PbxCDJ6BY8K+MEgMVjnsgLxJ JLeRcZiC+E285FIu/nkSIWz/lTmchT0pwgUtJUggXgSA2DGiVjBel2KU/rXbE0JO ZOUDEy29CZLrTTp82F1WsV/LYIOTh5lq7c/q4xaBzswjvOBJGSFqhRzX8/fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1667804300; x=1667890700; bh=X0gsqmIuiu8GkGGvoFvn6ndER/eU cOoIqHgNywJKF1k=; b=mGB87ZxIRo57vniO+K7jK9UFFkTKKyQ+C+JWy2xUzba/ beGt0zsySKqFPwCnzSRXe35ly5QhRWIdEGkrXDMbhVNx1csEkzac8AJgCx1Pp3sd +02uIxudlQ8rjFQnTaC5nUIojRzuh9j7TRlH8j9RmevmkXT6Yu2EPfcd+s47O3YN ZvIwckE0StRrUPHSjvKyMiAz/jENiCBoq1iWCgTZn1R4hB+/gDtKnhESOt2W7h+D g9XouunyV4z/w1riGHjwPh+PzHrY8/Eid/p28c19YJN0sk7sJt3ldfh8PPY2Dx1w rHNgER9djctrjuABLtId6CH1iOx8WSLA7wd9JY8HRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdejgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffekgfefffdtudevudejiedv udduveehkeeuhfdvgeffveeuieejjeeuheeuveeinecuffhomhgrihhnpegrrhhmrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhi tghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 01:58:16 -0500 (EST) Date: Mon, 7 Nov 2022 15:58:13 +0900 From: Michael Paquier To: Andres Freund Cc: Niyas Sait , Ian Lawrence Barwick , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers Subject: Re: [PATCH] Add native windows on arm64 support Message-ID: References: <3886822.1661905738@sss.pgh.pa.us> <20476.1661967233@sss.pgh.pa.us> <271611.1661998926@sss.pgh.pa.us> <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LNgYVPoNpa4/IgAT" Content-Disposition: inline In-Reply-To: <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --LNgYVPoNpa4/IgAT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 05, 2022 at 11:31:36AM -0700, Andres Freund wrote: > On 2022-11-03 11:06:46 +0000, Niyas Sait wrote: > Note that we're planning to remove the custom windows build scripts befor= e the > next release, relying on the meson build instead. Youpi. >> #if defined(_WIN64) >> static __forceinline void >> spin_delay(void) >> { >> +#ifdef _M_ARM64 >> + /* >> + * arm64 way of hinting processor for spin loops optimisations >> + * ref: https://community.arm.com/support-forums/f/infrastructure-solu= tions-forum/48654/ssetoneon-faq >> + */ >> + __isb(_ARM64_BARRIER_SY); >> +#else >> _mm_pause(); >> +#endif >> } >> #else >> static __forceinline void >=20 > I think we should just apply this, there seems very little risk of making > anything worse, given the gating to _WIN64 && _M_ARM64. Seems so. Hmm, where does _ARM64_BARRIER_SY come from? Perhaps it would be better to have a comment referring to it from a different place than the forums of arm, like some actual docs? > The meson checking logic is used both for msvc and other compilers, so th= is > will need to work with both. The patch has been switched as waiting on author for now. -- Michael --LNgYVPoNpa4/IgAT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmNorIQACgkQnvQgOdby QH1qbBAAqP+HE4JCZQsGac2A63AjlhS5k5/fcPk4YE0IZyqSrBaT8ylmRdc7MnqG ktmEida87di86fMaOpJB6fHLVGBPtk1/Dx8MfUjIFC5ygiSayXNw48LwlphePHta 8X4TimeWZ0pSQd9AnfaU7JmiTond2DC6N2a/jmSpOf2d5jSpISvYI6xO8tfc64gg iTLIt7A8yj/eLT+gcX/c8GTC2VItVO2JRdVivnR1tNjTYEJfQL0uivclhUnXYWPG B/f7+7eav5mkUw240TIX468DeKmlXhRJdI8JC3cXUu3zaL2RG4MY19t6PE5hH4Of tHz2p30MQl5IFLXqsoZ9OfYt1MXy8+zm495EmCwaAMZTJ9r+zKlXsXXewOmOiAFQ lNwwi2aRVm45gUi7g5g/jbha1eNHjdY+7m/kaORXGLJcIUVSzuCv1HMoBGrxatRe tgL1TdRNuhLmoWSVC/qrPBnN8FvuLy0/u/4ybBv1b+fJA4AJXDik600d6U+zllTZ RgLKa2PgbqpDUA1JfTrdZbEa0E+PH77V1tg3Dogvd6nPWeySiXzAy9ctyDDbz8Un KY8RD/RVNDnYNFbnfM75qYS05lA6JxEokEodP5lkHu+cJE5FeZU9ukJs5ziJSLgR oZwUwvCx+ewF5V1d5mAOrYMeE6w2iezRe0qnrfbSSRfwyZXOzws= =KJFz -----END PGP SIGNATURE----- --LNgYVPoNpa4/IgAT--