From nobody Mon Sep 04 10:53:17 2023 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 4RfQTy3LBwz4s0rH for ; Mon, 4 Sep 2023 10:53:26 +0000 (UTC) (envelope-from madis555@hot.ee) Received: from SMTPOUT02.DKA.mailcore.net (smtpout02.dka.mailcore.net [81.7.169.175]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtpout02.dka.mailcore.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfQTw73PKz3Qrt for ; Mon, 4 Sep 2023 10:53:24 +0000 (UTC) (envelope-from madis555@hot.ee) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=online.ee header.s=mailcore header.b=sz25IQdb; spf=pass (mx1.freebsd.org: domain of madis555@hot.ee designates 81.7.169.175 as permitted sender) smtp.mailfrom=madis555@hot.ee; dmarc=pass (policy=reject) header.from=hot.ee Received: from SMTP.DKA.mailcore.net (DKA-SMTP01.mailcore.local [10.1.0.51]) by SMTPOUT05.DKA.mailcore.net (Postfix) with ESMTP id 20CC4E0C7B; Mon, 4 Sep 2023 12:53:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=online.ee; s=mailcore; t=1693824800; bh=w5h6Tl1r6huXoDwuKhD96dkqRMC6kqDcw71aAUbADyA=; h=Date:From:To:Subject:From; b=sz25IQdb8ICDPdvu0VppVjVZG3Bb2EqeCRn5m3+d7y/RGaP2OJ4dhYV02nKeotMS6 2JdZyCVRnz6TgB9CFduBqR8auXNkGR30vGRUZNk3NrznOk5hAQOd5zkZbjJBr9yeaM 1YdAqCm7em9ouNtHtitnLB1IwmGxNQQmazBFEWCx9LXCmT27P0Yl25COzA49nbacVA 0w3FFPpfokaHn5cwxYVcVt1tErZfh/ITa3nItJg+RiJAMUwc9+loT8dBRn8JmRpcyJ EcOgeYaa32uH/kiMepecPD+io+jNJ2JaT8ESV5QvhXRjikX9sWddqqgVCse4HiBjFX O2S0izOPGHcEQ== Received: from [127.0.0.1] (111-190-35-213.dyn.estpak.ee [213.35.190.111]) by SMTP.DKA.mailcore.net (Postfix) with ESMTPSA id 081AC4014E; Mon, 4 Sep 2023 12:53:21 +0200 (CEST) Date: Mon, 04 Sep 2023 13:53:17 +0300 From: Sulev-Madis Silber To: freebsd-arm@freebsd.org Subject: allwinner h3 ethernet corruption with active emmc? User-Agent: K-9 Mail for Android Message-ID: <74C43D36-8FCC-4DA7-BDEA-9F2F19F3B257@hot.ee> 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 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.46 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.959]; DMARC_POLICY_ALLOW(-0.50)[hot.ee,reject]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[online.ee:s=mailcore]; R_SPF_ALLOW(-0.20)[+ip4:81.7.169.128/25]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:47292, ipnet:81.7.128.0/18, country:DK]; FREEMAIL_ENVFROM(0.00)[hot.ee]; DKIM_TRACE(0.00)[online.ee:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_FROM(0.00)[hot.ee]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RfQTw73PKz3Qrt help me to figure out what the issue is here i have nanopi neo core board, which has emmc, awg ethernet and h3 soc i had to hack a lot to get this up, including uboot (m1+) not meant for th= at board and fdt is also my own for a while i ran current on it with just usb eth and everything was fine when i started using awg eth, i experienced 10% of chance of network failu= re on init and rest of 90% showed stray corruption=2E dhclient told me pack= ets are wrong size=2E ssh sometimes gave errors on mac=2E in failure mode, = it gets so bad that switch port reports only errors from that port=2E like = 50k errors=2E and no traffic is going or coming=2E although tcpdump shows s= omething, it won't actually get to other side=2E on ping, it seems to reply= but send out broken frames note, i'm not really that good in any of this it all gets fixed if i do ifconfig down/up cycle=2E well, apart from stray= corruption but how it fully gets fixed is when i wipe emmc clean and just use externa= l sd card then corruptions are gone, it boots up with network all the time did i configure hw wrong with my uboot or fdt hacks? is it broken hw? i was told test other boards but it's kind if difficult a= lthough i have more as they don't have headers on if it's my hw and my hacks, how does it get fully fixed if i just leave em= mc alone? this is the only issue i've noticed, there are no data corruptions on emmc= , etc=2E no panics no lockups=2E i only remember one time i noticed system = had rebooted without reason but i wasn't there on uart to look it so what's actually wrong here i'm wondering? h3 has good support i see=2E = how those issues be fixed too? i get that emmc gets little usage compared t= o cards so maybe there's actual bug there? i know it's kind of sd/mmc but with wider bus=2E i'm happy to try any patc= hes someone might have=2E just don't expect me to fully get what they do