From nobody Mon Aug 07 21:37:35 2023 X-Original-To: freebsd-current@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 4RKV6C2zjJz4mNCK for ; Mon, 7 Aug 2023 21:37:39 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4RKV6B337yz4GWC for ; Mon, 7 Aug 2023 21:37:38 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp; dmarc=none Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 377LbZo2012720 for ; Tue, 8 Aug 2023 06:37:35 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Tue, 8 Aug 2023 06:37:35 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Subject: Re: [Intel AlderLake] Read&Write files to FAT32 or UFS partition cause data corrupt due to P-Core&E-Core Message-Id: <20230808063735.e8e1d3ede370a18f200a6f48@dec.sakura.ne.jp> In-Reply-To: References: <5fd2a34e-1135-4237-a028-d4566ff65c69@FreeBSD.org> <20220219115534.7db1b9f199c10894e4280b33@dec.sakura.ne.jp> <7A743668-B5AA-4679-9F56-9A6220CBBC14@karels.net> <59cbcfe2-cd53-69d8-65d6-7a79e656f494@FreeBSD.org> <1f968af1-1c57-9a09-7e01-145a5262e27f@FreeBSD.org> <20230806181238.858f58e25dfd0f99269cfe53@dec.sakura.ne.jp> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [0.57 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.94)[0.936]; NEURAL_HAM_MEDIUM(-0.86)[-0.862]; MV_CASE(0.50)[]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sakura.ne.jp]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[123.1.88.210:server fail,153.125.133.21:server fail]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RKV6B337yz4GWC On Sun, 6 Aug 2023 12:55:07 +0300 Konstantin Belousov wrote: > On Sun, Aug 06, 2023 at 06:12:38PM +0900, Tomoaki AOKI wrote: > > On Wed, 23 Feb 2022 01:30:28 +0200 > > Konstantin Belousov wrote: > > > > > On Tue, Feb 22, 2022 at 06:23:17PM -0500, Alexander Motin wrote: > > > > On 22.02.2022 17:46, Konstantin Belousov wrote: > > > > > Ok, the next step is to get the CPU feature reports from P- vs. E- cores. > > > > > Patch below should work, with verbose boot. > > > > > > > > Not much difference on that level: > > > > > > > > --- zzzp 2022-02-22 18:18:24.531704000 -0500 > > > > +++ zzze 2022-02-22 18:18:18.631236000 -0500 > > > > @@ -1,22 +1,21 @@ > > > > -CPU 2: 12th Gen Intel(R) Core(TM) i7-12700K (3609.60-MHz K8-class CPU) > > > > +CPU 16: 12th Gen Intel(R) Core(TM) i7-12700K (3609.60-MHz K8-class CPU) > > > > Origin="GenuineIntel" Id=0x90672 Family=0x6 Model=0x97 Stepping=2 > > > > Features=0xbfebfbff > > > > Features2=0x7ffafbff > > > > AMD Features=0x2c100800 > > > > AMD Features2=0x121 > > > > Structured Extended Features=0x239ca7eb > > > > Structured Extended Features2=0x98c027ac > > > > Structured Extended Features3=0xfc1cc410 > > > > XSAVE Features=0xf > > > > IA32_ARCH_CAPS=0xd6b > > > > VT-x: Basic Features=0x3da0500 > > > > Pin-Based Controls=0xff > > > > Primary Processor Controls=0xfffbfffe > > > > Secondary Processor Controls=0xf5d7fff > > > > Exit Controls=0x3da0500 > > > > Entry Controls=0x3da0500 > > > > EPT Features=0x6f34141 > > > > VPID Features=0x10f01 > > > > TSC: P-state invariant, performance statistics > > > > -64-Byte prefetching > > > > -L2 cache: 1280 kbytes, 8-way associative, 64 bytes/line > > > > +L2 cache: 2048 kbytes, 16-way associative, 64 bytes/line > > > > > > > > > > Show me the full verbose dmesg of the boot then. > > > > > > As another blind guess, try to disable pcid, vm.pmap.pcid_enabled=0. > > > > > > > Hi. > > > > Intel N100 is reported to crash without this tunable on 13.2 at > > freebsd-users-jp ML (as this is a ML in Japanese, reported in > > Japanese). [1] > > Crashes with UFS, but ZFS is claimed to be OK. > > > > N100 is an Alder Lake-N processor WITHOUT P-CORE. [2] [3] > > So check logics on workarouund codes (IIRC, all are MFC'ed before 13.2) > > wouldn't be working? > > Show me the output from x86info -r on the machine, I do not care which > specific core it is, they should be all the same. x86info is available > as sysutils/x86info. Requested to original reporter and got the result below. HTH. ----------------------- root@eq12:~ # x86info -r x86info v1.31pre /dev/cpuctl0: No such file or directory Found 4 identical CPUs Extended Family: 0 Extended Model: 11 Family: 6 Model: 190 Stepping: 0 Type: 0 (Original OEM) CPU Model (x86info's best guess): Unknown model. eax in: 0x00000000, eax = 00000020 ebx = 756e6547 ecx = 6c65746e edx = 49656e69 eax in: 0x00000001, eax = 000b06e0 ebx = 00800800 ecx = 7ffafbbf edx = bfebfbff eax in: 0x00000002, eax = 00feff01 ebx = 000000f0 ecx = 00000000 edx = 00000000 eax in: 0x00000003, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000004, eax = fc004121 ebx = 01c0003f ecx = 0000003f edx = 00000000 eax in: 0x00000005, eax = 00000040 ebx = 00000040 ecx = 00000003 edx = 10102020 eax in: 0x00000006, eax = 00578ff7 ebx = 00000002 ecx = 00000009 edx = 00000000 eax in: 0x00000007, eax = 00000002 ebx = 239ca7eb ecx = 98c007bc edx = fc184410 eax in: 0x00000008, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000009, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000000a, eax = 07300605 ebx = 00000000 ecx = 00000007 edx = 00008603 eax in: 0x0000000b, eax = 00000001 ebx = 00000001 ecx = 00000100 edx = 00000000 eax in: 0x0000000c, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000000d, eax = 00000207 ebx = 00000a88 ecx = 00000a88 edx = 00000000 eax in: 0x0000000e, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000000f, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000010, eax = 00000000 ebx = 00000004 ecx = 00000000 edx = 00000000 eax in: 0x00000011, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000012, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000013, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000014, eax = 00000001 ebx = 000001ff ecx = 80000007 edx = 00000000 eax in: 0x00000015, eax = 00000002 ebx = 0000002a ecx = 0249f000 edx = 00000000 eax in: 0x00000016, eax = 00000320 ebx = 00000d48 ecx = 00000064 edx = 00000000 eax in: 0x00000017, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000018, eax = 00000004 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x00000019, eax = 00000007 ebx = 00000014 ecx = 00000003 edx = 00000000 eax in: 0x0000001a, eax = 20000001 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000001b, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000001c, eax = c000000b ebx = 00000007 ecx = 00000007 edx = 00000000 eax in: 0x0000001d, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000001e, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x0000001f, eax = 00000001 ebx = 00000001 ecx = 00000100 edx = 00000000 eax in: 0x00000020, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x80000000, eax = 80000008 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x80000001, eax = 00000000 ebx = 00000000 ecx = 00000121 edx = 2c100800 eax in: 0x80000002, eax = 65746e49 ebx = 2952286c ecx = 30314e20 edx = 00000030 eax in: 0x80000003, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x80000004, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x80000005, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000 eax in: 0x80000006, eax = 00000000 ebx = 00000000 ecx = 08008040 edx = 00000000 eax in: 0x80000007, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000100 eax in: 0x80000008, eax = 00003027 ebx = 00000000 ecx = 00000000 edx = 00000000 Total processor threads: 4 This system has 1 dual-core processor with hyper-threading (2 threads per core) running at an estimated 800MHz --------------------- -- Tomoaki AOKI