From nobody Mon Nov 1 07:25:49 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 886401829818 for ; Mon, 1 Nov 2021 07:26:09 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HjPhw0rzgz4bMP; Mon, 1 Nov 2021 07:26:08 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id 71so10395492wma.4; Mon, 01 Nov 2021 00:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=8bxO4WZihUD1DRVtVqox/Vxcise4cpyE5YP5W2XppRk=; b=aNnFe8x17qo/vY2aor8U9mF3MuKVwxqLvq/VcDs9/z4CS5u/ghlOHqMMlszoy2KWZT to9T3RUKyG+ngL6fP/SWO0/3NpNnGVT5hq1XygCOG9s1E8DILh/xd0SwFZVO4mV2TPDz npOgNedRs1JxnXWRPGZepQASAfXXDSP+3GsfJoSZqC9kMJiZ9vIyri/KveT7wKKFyrDu bj5aBv/9663U8fasMsn5uU9+Vwf0SZDNLVs6ggriZ7O3KUfZYgP5PHQSW/lVA4tZjNLj 8BkD1aRBbY78ecy2ZyHioGl+QxlDL+LsZPsU2uQcVnAUYsig2QscbgrxSWd/T4NYX2Uh 3icw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=8bxO4WZihUD1DRVtVqox/Vxcise4cpyE5YP5W2XppRk=; b=A2islYggfISFO7ekWsliTdpTbSJuMwiw2vvYBDX0eScKRICKlDLSRXr1bmTz+cFT4C Y9jFCjtVIbstGlk+HfdkkauTtuTaSt7EBFWpnNna/DDNwWtEG6qYDcQHTeng54K7ICb2 H6db7vImH9akW2zd49ZclShfEOHMzhrSEz8gyrDoFWdNsxcQywichYUPHO+gOFCHXSEM SrMk6mz3VeG3/ep9u+BDv7cuWzlAzfdZnt6YSDJ/YqieEh8j8CVxNiE24vNqvNNu6vxF n3y5tPEuc0oZgg9GcSn77vJf4zasjcxufllYcKCHeftZMQsRkwr1zA4iqdy0qQZbjSSP 87ZQ== X-Gm-Message-State: AOAM531wgLCeN1JZVUX5ex5xdiJGCIyMHAaSNuq3Kn5Q6teadSKTiL8l jm2tMlSS98jD7pPt1NcoD/Loq38e92uUM8hsova4VoHt+w== X-Google-Smtp-Source: ABdhPJw18K3OUybYuUZDJLislioGnQob8xxQNDdi2zskTWIkmY93w8+mw5Sv5RTq+tXIPHJ5RoMHbtZc5uHNLyoy2Zo= X-Received: by 2002:a1c:9d13:: with SMTP id g19mr21778609wme.41.1635751560722; Mon, 01 Nov 2021 00:26:00 -0700 (PDT) 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 References: <22fb38d9b6cda8baec08713159bb65afcc8cd418.camel@freebsd.org> In-Reply-To: <22fb38d9b6cda8baec08713159bb65afcc8cd418.camel@freebsd.org> Reply-To: kamalpr@gmail.com From: "Kamal R. Prasad" Date: Mon, 1 Nov 2021 12:55:49 +0530 Message-ID: Subject: Re: bug in mmc driver To: Ian Lepore Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HjPhw0rzgz4bMP X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=aNnFe8x1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kamalpr@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=kamalpr@gmail.com X-Spamd-Result: default: False [-0.03 / 15.00]; HAS_REPLYTO(0.00)[kamalpr@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_SHORT(0.97)[0.968]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::330:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 > >