From nobody Mon Nov 08 10:37:22 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 A3DA918566AA for ; Mon, 8 Nov 2021 10:29:10 +0000 (UTC) (envelope-from info@ohdata.se) Received: from mail01.ohdata.se (46-22-124-5.ip.axbyte.se [46.22.124.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HnnQp3jYFz3nYX for ; Mon, 8 Nov 2021 10:29:06 +0000 (UTC) (envelope-from info@ohdata.se) Received: from localhost (localhost [127.0.0.1]) by mail01.ohdata.se (Postfix) with ESMTP id BA8486193; Mon, 8 Nov 2021 11:25:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail01.ohdata.se Received: from mail01.ohdata.se ([127.0.0.1]) by localhost (mail01.ohdata.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q449eQ-1rSs3; Mon, 8 Nov 2021 11:25:47 +0100 (CET) Received: from webmail.ohdata.se (unknown [10.0.38.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01.ohdata.se (Postfix) with ESMTPSA id 0AD025E29; Mon, 8 Nov 2021 11:25:47 +0100 (CET) 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; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 08 Nov 2021 11:37:22 +0100 From: Oskar Holmlund To: kamalpr@gmail.com Cc: freebsd-arm , owner-freebsd-arm@freebsd.org Subject: Re: bug in mmc driver Organization: OH Data In-Reply-To: References: <22fb38d9b6cda8baec08713159bb65afcc8cd418.camel@freebsd.org> Message-ID: <26c5cec49c59d7a5b1d5f53c48791d61@ohdata.se> X-Sender: info@ohdata.se User-Agent: Roundcube Webmail/1.3.6 X-Rspamd-Queue-Id: 4HnnQp3jYFz3nYX X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of info@ohdata.se designates 46.22.124.5 as permitted sender) smtp.mailfrom=info@ohdata.se X-Spamd-Result: default: False [-0.27 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ohdata.se]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(0.03)[0.032]; NEURAL_SPAM_SHORT(1.00)[1.000]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:43853, ipnet:46.22.112.0/20, country:SE]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 2021-11-01 08:25 skrev Kamal R. Prasad: > yes it is a problem in mmc/sd controller. I will check if the no of > times we release bus matches acquiring bus. > > The controller is a micron controller with this output from > # geom ls disk > > Geom name: flash/spi0 > > Providers: > > 1. Name: flash/spi0 > > Mediasize: 67108864 (64M) > > Sectorsize: 512 > > Stripesize: 262144 > > Stripeoffset: 0 > > Mode: r0w0e0 > > descr: s25fl512s > > ident: (null) > > rotationrate: unknown > > fwsectors: 0 > > fwheads: 0 > > > > Geom name: mmcsd0 > > Providers: > > 1. Name: mmcsd0 > > Mediasize: 14763950080 (14G) > > Sectorsize: 512 > > Stripesize: 512 > > Stripeoffset: 0 > > Mode: r2w2e5 > > descr: MMCHC R1J57L 1.1 SN 81687B5C MFG 11/2017 by 19 0x004e > > ident: 81687B5C > > rotationrate: 0 > > fwsectors: 0 > > fwheads: 0 > > > On Sat, Oct 30, 2021 at 12:04 AM Ian Lepore wrote: >> >> On Fri, 2021-10-29 at 10:02 +0530, Kamal R. Prasad wrote: >> > hello, >> > >> > if i run a stress test on a freebsd system booted from a micron mmc >> > device, and run a script which in a loop opens the same mmc device in >> > read-only mode, it causes a problem in acquiring the bus and panics >> > the box. both the stress test and a script to open the mmc device in >> > read only mode are in user space and so kernel should not have >> > panic'ed. Pl see stack trace from our freebsd derived os. >> > >> > thanks >> > -kamal >> > -------------- >> > >> > panic: mmc: host bridge didn't serialize us. >> > >> > [...] >> > >> >> This indicates a problem in the low-level mmc/sd controller ("host >> bridge") driver. You didn't say anything about what hardware is in >> use; I have no idea what driver to look at. >> >> -- Ian >> >> Hi Kamal, Can you add your bugreport to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255289 Please, share your script and maybe some more details about your hardware. -- Bästa Hälsningar Oskar Holmlund Tel 070-3220292