From nobody Wed Nov 24 15:53:52 2021 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 EC08618B1433 for ; Wed, 24 Nov 2021 15:53:59 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzltH4t08z3PvH for ; Wed, 24 Nov 2021 15:53:59 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 1AOFrq8B026220 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 24 Nov 2021 07:53:52 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 1AOFrqnk026219; Wed, 24 Nov 2021 07:53:52 -0800 (PST) (envelope-from fbsd) Date: Wed, 24 Nov 2021 07:53:52 -0800 From: bob prohaska To: Juan David Hurtado G Cc: freebsd-arm@freebsd.org Subject: Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+ Message-ID: <20211124155352.GA26072@www.zefox.net> References: 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=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4HzltH4t08z3PvH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Nov 24, 2021 at 09:33:33AM -0500, Juan David Hurtado G wrote: > Thanks to @evadot and @f451 on Discord, seems there is the issue: > > Raspberry Pi 3B+ > > ``` > root@generic:~ # dmesg | grep -i mmcsd > mmcsd0: 31GB at mmc0 > 0.4MHz/4bit/65535-block > ``` > > Raspberry Pi 4 with a different card: > ``` > mmcsd0: 31GB at mmc1 > 0.4MHz/4bit/65535-block > ``` > > So no matter the pi or the card, the microsd clock is at 0.4MHz while in > raspios same cards gets 50 MHz apparently > > Seems that explain the behaviour... So is this a FreeBSD bug? or a card > issue even if I've tested with different cards? > > PS: A brand new sandisk ultra is on the way so I can test with it. > Very strange. I get bob@www:~ % dmesg | grep -i mmcsd mmcsd0: 64GB at mmc0 50.0MHz/4bit/65535-block on an old Pi2 running FreeBSD www.zefox.net 12.2-STABLE FreeBSD 12.2-STABLE r370512 GENERIC arm and root@pelorus:/home/bob # dmesg | grep -i mmcsd mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block on a Pi3 running FreeBSD pelorus.zefox.org 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 06:06:55 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 HTH, bob prohaska