From nobody Tue Jan 2 19:50:56 2024 X-Original-To: freebsd-stable@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 4T4Nky6DTlz56B2q for ; Tue, 2 Jan 2024 19:51:06 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4T4Nkx3zKvz4Q1q for ; Tue, 2 Jan 2024 19:51:05 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jamie@catflap.org designates 2001:19f0:7400:8808:123::1 as permitted sender) smtp.mailfrom=jamie@catflap.org; dmarc=pass (policy=none) header.from=catflap.org X-Catflap-Envelope-From: Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 402JouF7077683; Tue, 2 Jan 2024 19:50:56 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 402Jouvv077682; Tue, 2 Jan 2024 19:50:56 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202401021950.402Jouvv077682@donotpassgo.dyslexicfish.net> Date: Tue, 02 Jan 2024 19:50:56 +0000 Organization: Dyslexic Fish To: freebsd-stable@freebsd.org, jamie@catflap.org, freebsd@omnilan.de Subject: Re: SIGILL when CPUTYPE set to anyting witjh avx and CFLAGS -O2 References: <72107B4B-F279-471B-8A8F-5B94C5EEDA47@FreeBSD.org> <62cc8fed-6acd-45fb-a138-ac7cd218191a@omnilan.de> <202312311128.3BVBStrp055670@donotpassgo.dyslexicfish.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Tue, 02 Jan 2024 19:50:57 +0000 (GMT) X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.90)[-0.905]; DMARC_POLICY_ALLOW(-0.50)[catflap.org,none]; R_SPF_ALLOW(-0.20)[+mx:dyslexicfish.net]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US]; FREEFALL_USER(0.00)[jamie]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4T4Nkx3zKvz4Q1q X-Spamd-Bar: --- > Sometimes this might be best, but usually I compile on a dedicated > machine and redistribute to others via local repo. Ahhh, that would be a good reason not to use native then! :-) Still, the "show-clang-native-features" does help identify what features clang things can be enabled on a certain CPU. > At least my latest SIGILL crashes were caused simply by mismatching > target CPU :-( Embarassing... apologies for the noise again. > I didn't know that skylake-avx512 isn't the sequentially the next-Gen., > post SkyLake identifyer, so my assumption that my v6 Xeon would support > AVX512 was simply wrong.  Now I know better. And IceLake continues > confusion... (some AlderLakes do have PCONFIG, others not, WBNOINVD > seems completely mainstream-unavailable and tons of feature-flags/units > I never heard before.. (http://instlatx64.atw.hu/)  World isn't getting > less complicated... I haven't had recent experience, but I can well believe it! A few years ago, I used to chase feature flags with each release, and there were some weird goings on occasionally. I seem to remember weirdness with BMI at one stage (around 2014), but that was fixed. > Will try to reproduce my -march=haswell crahes I initially recognized > some months ago and in case it is reproducable, pick up this thread again. I know this is a bit of a "go-faster-stripes" issue, but what flags do you use generally? I know I'm opening myself up to ridicule, but my general cflags on most machines maps to : -O2 -pipe -march=native -mtune=native -ftree-vectorize -fstack-protector-strong -fno-strict-aliasing -Wl,-znow -Wl,-zrelro -- some of that added by me, some of it by the FreeBSD build system. > Happy new year to everybody! Cheers, and the same to you and everybody else!