From nobody Fri Oct 29 04:32:14 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 E54871839C6D for ; Fri, 29 Oct 2021 04:32:33 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 4HgV010v0Rz4RlF for ; Fri, 29 Oct 2021 04:32:33 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: by mail-wm1-x333.google.com with SMTP id g191-20020a1c9dc8000000b0032fbf912885so2720689wme.4 for ; Thu, 28 Oct 2021 21:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:reply-to:from:date:message-id:subject:to; bh=Nibwy54oxt8UUtkt+9fVOG+A0WV8bitDTwPBJW28Xus=; b=fMniYozJXvGD8S4eChPz6lXvufCli4Yk828Rk+RV2Pj5R/WmiaHZQLd/kIYBnyRPO4 UlKOMKUdL7DCG2HqjLXwkhcmIWWzxhaR7b9lvEuoLIhab84KvLA6Igv8AN7LM/2EuuFj b2gj/+e0efW7VSWitbaHBzBSNHBV/3aIHizqCWFQLNmqZCTdncUNFFJjDPxbNY6FmUUe b99TR0TnxNFJtV2n/k3zKM4z244l3Ww3vRuCZ1YNY/XKtCh3sWXyw0DNVUqRu/CYRuPU yBYK4Fvi6071gmGMsJQy9H5QLFnjYaiXII2uDUV3AOqmVTx8slBbvg7F2PU8EgOM80Ot dKjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=Nibwy54oxt8UUtkt+9fVOG+A0WV8bitDTwPBJW28Xus=; b=AY2X0HXl4QjzbVVOOdZp4BldVlTm5ZcQktilE6sRXdoE/ejA6jTYvRDtisKp/AjoZ/ 9OF/1RBmEHhXD5AniURZ/63vcElm5f3NE5kr+rh4gy/xoK1YRR9Qyw8giVTxc/N290a9 9dsrRtngn0kvXRjaQjn0HuU/3YWhfeO/yv9JM45NAlK2aHxIwciTMZd+3lNutTjwYwTd rhj18sE1Lqf2qO3AVdOC7AQR0upF29QhRmkColgrJ2zrPh8vM0TN4et5wFgB0zJIlVpk 6wJpmnPQZe39zbleGh68PnR1OjkbFidao1gJRxwFVV5Ua1Hop/37YXKQKvQu0QJkGTah 0m1g== X-Gm-Message-State: AOAM533c+zq9Q8AyRlBRrjHYuhIH7b3WdiQxyRmBvb4ub725Wo2xXlF3 pGr2P3pvwUXMyap/1QLCA9QnRSXDzR3SGYfoxRc/EVSDSg== X-Google-Smtp-Source: ABdhPJwhLL4pie/Pdcgsuld6/YUuhT9KT+2dWl9uu6UXYKKwAPRPEqc56+RGe3i7yCXd3g/dqVqao9fwYCFDkwGr7Kg= X-Received: by 2002:a1c:f615:: with SMTP id w21mr8752345wmc.16.1635481945571; Thu, 28 Oct 2021 21:32:25 -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 Reply-To: kamalpr@gmail.com From: "Kamal R. Prasad" Date: Fri, 29 Oct 2021 10:02:14 +0530 Message-ID: Subject: bug in mmc driver To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HgV010v0Rz4RlF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=fMniYozJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kamalpr@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=kamalpr@gmail.com X-Spamd-Result: default: False [-0.26 / 15.00]; HAS_REPLYTO(0.00)[kamalpr@gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; 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)[]; NEURAL_HAM_MEDIUM(-0.88)[-0.884]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_LONG(0.62)[0.620]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::333:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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. cpuid = 2 time = 1635445326 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc = 0xffff00000032d114 lr = 0xffff0000000757cc sp = 0xffff00006a09b590 fp = 0xffff00006a09b790 db_trace_self_wrapper() at kdb_backtrace+0x38 pc = 0xffff0000000757cc lr = 0xffff000000200d04 sp = 0xffff00006a09b7a0 fp = 0xffff00006a09b850 kdb_backtrace() at vpanic+0x18c pc = 0xffff000000200d04 lr = 0xffff0000001baf6c sp = 0xffff00006a09b860 fp = 0xffff00006a09b8b0 vpanic() at panic+0x44 pc = 0xffff0000001baf6c lr = 0xffff0000001bad24 sp = 0xffff00006a09b8c0 fp = 0xffff00006a09b970 panic() at mmc_acquire_bus+0x524 pc = 0xffff0000001bad24 lr = 0xffff00000008ad1c sp = 0xffff00006a09b980 fp = 0xffff00006a09b9c0 mmc_acquire_bus() at mmcsd_task+0x184 pc = 0xffff00000008ad1c lr = 0xffff000000092f54 sp = 0xffff00006a09b9d0 fp = 0xffff00006a09baf0 mmcsd_task() at fork_exit+0xb4 pc = 0xffff000000092f54 lr = 0xffff000000182460 sp = 0xffff00006a09bb00 fp = 0xffff00006a09bb60 fork_exit() at fork_trampoline+0x10 pc = 0xffff000000182460 lr = 0xffff000000349b6c sp = 0xffff00006a09bb70 fp = 0x0000000000000000 KDB: Current process: mmcsd0: mmc/sd card KDB: enter: kdb_dbbe 0xffff000001094088, kdb_active 0 KDB: enter: panic ###Entering boot mastership relinquish phase [ thread pid 35 tid 100092 ] Stopped at 0 db>