From nobody Tue Mar 08 10:06:48 2022 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 F399C19F0AB5 for ; Tue, 8 Mar 2022 10:06:49 +0000 (UTC) (envelope-from lee.matthews.external@stormshield.eu) Received: from work.stormshield.eu (gwlille.netasq.com [91.212.116.1]) (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 4KCWFj2GDgz4pyb for ; Tue, 8 Mar 2022 10:06:49 +0000 (UTC) (envelope-from lee.matthews.external@stormshield.eu) Received: from work.stormshield.eu (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTPS id 5EBF63760278 for ; Tue, 8 Mar 2022 11:06:48 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTP id 489DC37607B8 for ; Tue, 8 Mar 2022 11:06:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 work.stormshield.eu 489DC37607B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stormshield.eu; s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE; t=1646734008; bh=2t8tBKH6ahQYrLqqN7K5x9bK/vZZ9VCZDqEJeq4JtgA=; h=Date:From:To:Message-ID:MIME-Version; b=e5Bn+RwX5KU3Lug4l0G9ygwKlOfW49LS9oWK1MYbA+CunQAlULJj3RmXk08GLLBNS U6/XJU/ghEWCsHA6FEOGcyDsexbPI7zoSXTrsv4awPR2IqFcitqqNKM2K/IFtvy8u1 1IDf4v3U1G+9yJhV5Tlp18+I/i0cTgMqwrYRcWPo= Received: from work.stormshield.eu ([127.0.0.1]) by localhost (work.stormshield.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NYC0ejoM3CTp for ; Tue, 8 Mar 2022 11:06:48 +0100 (CET) Received: from work.stormshield.eu (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTP id 388B63760278 for ; Tue, 8 Mar 2022 11:06:48 +0100 (CET) Date: Tue, 8 Mar 2022 11:06:48 +0100 (CET) From: Lee MATTHEWS To: freebsd-arm@FreeBSD.org Message-ID: <645758921.24525489.1646734008202.JavaMail.zimbra@stormshield.eu> Subject: 'Translation Fault (L1) on read' error 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thread-Index: TMEvRxsfBRXhPbuxmbwWl4yV75U16w== Thread-Topic: 'Translation Fault (L1) on read' error X-Rspamd-Queue-Id: 4KCWFj2GDgz4pyb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stormshield.eu header.s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE header.b=e5Bn+RwX; dmarc=pass (policy=quarantine) header.from=stormshield.eu; spf=pass (mx1.freebsd.org: domain of lee.matthews.external@stormshield.eu designates 91.212.116.1 as permitted sender) smtp.mailfrom=lee.matthews.external@stormshield.eu X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[stormshield.eu:s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.212.116.1:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_TRACE(0.00)[stormshield.eu:+]; DMARC_POLICY_ALLOW(-0.50)[stormshield.eu,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:49068, ipnet:91.212.116.0/24, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, We are currently having problems during wifi testing on our embedded device= s that run FreeBSD 11.3 on armv6. We know that this version is no longer su= pported and we are currently working on updating to FreeBSD 13.0. We get random "Translation Fault (L1) on read" errors followed by a core du= mp. Continuous repeated testing can take several days before the problem ap= pears. What could be causing this error? I've been looking online and I wonder if = it could be an icache issue ?=20 https://lists.freebsd.org/pipermail/freebsd-hackers/2016-December/050255.ht= ml I have attached below a couple of kernel panic messages as well as the code= at the origin of the panic. Thanks in advance. Best regards, Lee Matthews ---- Unread portion of the kernel message buffer: [7022] Fatal kernel mode data abort: 'Translation Fault (L1)' on read [7022] trapframe: 0xb559e550 [7022] FSR=3D00000005, FAR=3D00000024, spsr=3D00000013 [7022] r0 =3D00000000, r1 =3D86bc7e00, r2 =3D86b26000, r3 =3D00000000 [7022] r4 =3D8702f0c8, r5 =3D000005b6, r6 =3D85055000, r7 =3D00000040 [7022] r8 =3D8702f000, r9 =3D86bc7e00, r10=3D853cb9fc, r11=3Db559e5e8 [7022] r12=3D853cb9fc, ssp=3Db559e5e0, slr=3D80092a34, pc =3D8036b2b0 [7022]=20 [7022] timeout stopping cpus [7022] panic: Fatal abort [7022] cpuid =3D 0 [7022] __HardenedBSD_version =3D 1100056 __FreeBSD_version =3D 1103500 [7022] version =3D NS-BSD 4.3.0.snap20210902--HBSD #0 : Tue Jan 18 01:21:57= CET 2022 [7022] leem@BuildHBSD113-1-armv6.labo.int:/home/leem/build/kernel/work-= OPTIM/sys/arm/compile/NETASQ.S.SMP.HW.RELEASE [7022] Uptime: 1h57m2s [7022] Physical memory: 2038 MB [7022] Dumping 250 MB: 247 243 239 235 231 227 223 savectx () at ../../../arm/arm/swtch.S:103 103=09../../../arm/arm/swtch.S: No such file or directory. (kgdb) bt #0 savectx () at ../../../arm/arm/swtch.S:103 #1 0x8024e5c0 in dumpsys (di=3D) at ./machine/dump.h:67 #2 doadump (textdump=3D) at ../../../kern/kern_shutdown.c:3= 33 #3 0x8024e3dc in kern_reboot (howto=3D260) at ../../../kern/kern_shutdown.= c:390 #4 0x8024e73c in vpanic (fmt=3D0x84e20400 "0\004=EF=BF=BD\204", ap=3D...) = at ../../../kern/kern_shutdown.c:785 #5 0x8024e5fc in panic (fmt=3D) at ../../../kern/kern_shutdow= n.c:714 #6 0x8052d2cc in abort_fatal (tf=3D0x0, idx=3D, fsr=3D, far=3D, prefetch=3D0, td=3D0x84f5a880, ksig=3D0x= b559e4d0) at ../../../arm/arm/trap-v6.c:625 #7 0x8052d0cc in abort_handler (tf=3D, prefetch=3D) at ../../../arm/arm/trap-v6.c:424 #8 #9 ieee80211_crypto_encap (ni=3D, m=3D0x86bc7e00) at ../../= ../net80211/ieee80211_crypto.c:573 /* * Add privacy headers appropriate for the specified key. */ struct ieee80211_key * ieee80211_crypto_encap(struct ieee80211_node *ni, struct mbuf *m) { =09struct ieee80211_key *k; =09const struct ieee80211_cipher *cip; =09if ((k =3D ieee80211_crypto_get_txkey(ni, m)) !=3D NULL) { =09=09cip =3D k->wk_cipher; =09=09return (cip->ic_encap(k, m) ? k : NULL); -------- ligne 573 =09} =09return NULL; } ---- [1095] Fatal kernel mode data abort: 'Translation Fault (L1)' on read [1095] trapframe: 0xb559e9c0 [1095] FSR=3D00000005, FAR=3D0000ffff, spsr=3D00000013 [1095] r0 =3D870a955a, r1 =3D410c2018, r2 =3D00000011, r3 =3D0000ffff [1095] r4 =3D86b7c000, r5 =3D00000000, r6 =3D00000020, r7 =3D00000400 [1095] r8 =3D8705a000, r9 =3D85055000, r10=3D86bd7000, r11=3Db559ea80 [1095] r12=3D870a9558, ssp=3Db559ea50, slr=3D80384ea4, pc =3D80384f08 [1095]=20 [1095] timeout stopping cpus [1095] panic: Fatal abort [1095] cpuid =3D 0 [1095] __HardenedBSD_version =3D 1100056 __FreeBSD_version =3D 1103500 [1095] version =3D NS-BSD 4.3.3--HBSD #0 711c600c(pretag/4.3.3): Thu Dec 2= 3 18:46:12 CET 2021 [1095] build@buildmajHBSD113-armv6.labo.int:/home/build/fw-PRETAG_4.3.3= /firmware/tmp/armv6/kernel/work-OPTIM/sys/arm/compile/NETASQ.S.SMP.HW.RELEA= SE [1095] Uptime: 18m15s [1095] Physical memory: 2038 MB [1095] Dumping 249 MB: 246 242 238 234 230 226 222 savectx () at ../../../arm/arm/swtch.S:103 103=09../../../arm/arm/swtch.S: No such file or directory. (kgdb) bt #0 savectx () at ../../../arm/arm/swtch.S:103 #1 0x8024ee28 in dumpsys (di=3D) at ./machine/dump.h:67 #2 doadump (textdump=3D) at ../../../kern/kern_shutdown.c:3= 33 #3 0x8024ec44 in kern_reboot (howto=3D260) at ../../../kern/kern_shutdown.= c:390 #4 0x8024efa4 in vpanic (fmt=3D0x84e20400 "0\004=EF=BF=BD\204", ap=3D...) = at ../../../kern/kern_shutdown.c:785 #5 0x8024ee64 in panic (fmt=3D) at ../../../kern/kern_shutdow= n.c:714 #6 0x8052d9c0 in abort_fatal (tf=3D0x0, idx=3D, fsr=3D, far=3D, prefetch=3D0, td=3D0x84f5a880, ksig=3D0x= b559e940) at ../../../arm/arm/trap-v6.c:625 #7 0x8052d7c0 in abort_handler (tf=3D, prefetch=3D) at ../../../arm/arm/trap-v6.c:424 #8 #9 0x80384f08 in ieee80211_getcapinfo (vap=3D, chan=3D0xfff= f) at ../../../net80211/ieee80211_output.c:2195 /* * Calculate capability information for mgt frames. */ uint16_t ieee80211_getcapinfo(struct ieee80211vap *vap, struct ieee80211_channel *ch= an) { =09struct ieee80211com *ic =3D vap->iv_ic; =09uint16_t capinfo; =09KASSERT(vap->iv_opmode !=3D IEEE80211_M_STA, ("station mode")); =09if (vap->iv_opmode =3D=3D IEEE80211_M_HOSTAP) =09=09capinfo =3D IEEE80211_CAPINFO_ESS; =09else if (vap->iv_opmode =3D=3D IEEE80211_M_IBSS) =09=09capinfo =3D IEEE80211_CAPINFO_IBSS; =09else =09=09capinfo =3D 0; =09if (vap->iv_flags & IEEE80211_F_PRIVACY) =09=09capinfo |=3D IEEE80211_CAPINFO_PRIVACY; =09if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) && =09 IEEE80211_IS_CHAN_2GHZ(chan)) =09=09capinfo |=3D IEEE80211_CAPINFO_SHORT_PREAMBLE; =09if (ic->ic_flags & IEEE80211_F_SHSLOT) -------------- line 2195 =09=09capinfo |=3D IEEE80211_CAPINFO_SHORT_SLOTTIME; =09if (IEEE80211_IS_CHAN_5GHZ(chan) && (vap->iv_flags & IEEE80211_F_DOTH)) =09=09capinfo |=3D IEEE80211_CAPINFO_SPECTRUM_MGMT; =09return capinfo; }