Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1538551imp; Fri, 22 Feb 2019 05:43:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IY23Up6O0QsIJYVbbbnemz324YttLD4VkeH5Da5RMOV/o1VAW+5kUiuQTO6sPv3jH1ZosYn X-Received: by 2002:a17:902:8e82:: with SMTP id bg2mr4265726plb.217.1550842980020; Fri, 22 Feb 2019 05:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550842980; cv=none; d=google.com; s=arc-20160816; b=jpVwSoukq0T/2/gw/8PiKAK4vlR361RPmzyunx3qL8CC9KFsDf8Oos+jQgX1ohwMfY F39+m5ZpUwdXVb7gHDrJC4YXc21CmXk5z+GqDB5e1TEOkZahFMno0uabJ4qKIy2E0g5K LGz/lVF+QNxL+jwYMjyo05Q2JSyVX4LgZOIyMKsvZg2lrbsmClZAXypGhRXjVj9TFwKL N6FRKxB47gY5FRdYilOc8epViWXxZ03vGLriuTl2Nn61CmvOxmy1Eo0c+wMIhIWm4Nb/ d8SHsbQvCQdLswj63gWTxyH4vL1/OoNbApID5kZ3pMv86rlUWnvGRsxy+H/+07ApGZRy ergw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=1zQql034cXmuHdUvwNW9l39yJQwN9EH/6KGuRmeLgbo=; b=FpnhQONHrWevIXpZ4li9lrGl0UA3AnWFZmntH2vTtaFz3Kr5xPPXxsl8Ftz7cT6G+V 2BnI3GKlxVCPitdEuP/o2jPR6bYpC6tUgo1epD26iLnmuhrwm5dbZp1+J6FEs38WUXAQ HA39ORexHBWgWQapY1Mi9p5nCsrsgBzQ5XpQChUmoCnJeUfRIC5PME/OxbVLA5UPpZZd TsLWt3wuv4WcPHXzN7BPuLaGUtqXv9ym00YLSCxk3pNevP3nabv2d1fxJaPI/A0w6G7y CIfgksbxKEiPEzfOX0fkCLYGYSfHVyxb3B8Be2UXMu4gao0lEPyH3ky84SEPFOTjrEJp zOyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=TlaIIU9M; dkim=pass header.i=@codeaurora.org header.s=default header.b="Xt/xmpSr"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si1436863pgf.294.2019.02.22.05.42.43; Fri, 22 Feb 2019 05:43:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=TlaIIU9M; dkim=pass header.i=@codeaurora.org header.s=default header.b="Xt/xmpSr"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbfBVNmW (ORCPT + 99 others); Fri, 22 Feb 2019 08:42:22 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:33516 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfBVNmW (ORCPT ); Fri, 22 Feb 2019 08:42:22 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 91B71607EF; Fri, 22 Feb 2019 13:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550842941; bh=FDamOiR0lLQwAnjHnGnM7lBxK044vNz50zAG6u5LAO0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TlaIIU9MPp16jbe5tlMI/GeL4wTlXIf+o4RtGuT60loziL8heBqCQQlW8ByILr7mA uXQRoF8Z4j24H4X32ux6W3QDAwYfbo2L0Qi5mRHrl1uLTT8Wo+JJtKYpZpA5+I6fiS WA0Wsizf1mFOXbkIxMR2k9qFEzryVf7T+LUknsUM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.206.24.232] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: riteshh@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 99BAD604A6; Fri, 22 Feb 2019 13:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550842940; bh=FDamOiR0lLQwAnjHnGnM7lBxK044vNz50zAG6u5LAO0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Xt/xmpSri2OHQoSDMW/htj8qCAUNAKVXfZQam+a2Vt5CmlnYOvAAH9YXI4+/Yfaq5 yV93JNOXB2g3aFJXadUz1rKLJ/3zVIcVAF2DklS9V1o9zc2J5EpXAjpACCV7oF4fCI sIrDLI+Jt3xu/kwAh6Iicsr34VHC60Re3U8S8+4w= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 99BAD604A6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=riteshh@codeaurora.org Subject: Re: panic with CONFIG_FAIL_MMC_REQUEST and cqhci To: Laura Abbott , Ulf Hansson Cc: Adrian Hunter , Linus Walleij , linux-mmc@vger.kernel.org, Linux Kernel Mailing List , Asutosh Das References: From: Ritesh Harjani Message-ID: <5e81d594-15bb-81f5-75a0-a147fd5cfc18@codeaurora.org> Date: Fri, 22 Feb 2019 19:12:16 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laura, On 2/19/2019 12:59 AM, Laura Abbott wrote: > Hi, > > Fedora got report of a panic when I accidentally left debugging enabled > on a build https://bugzilla.redhat.com/show_bug.cgi?id=1677438 > > It looks like a panic from code in CONFIG_FAIL_MMC_REQUEST from the > cqhci driver because there isn't a command (high level overview) With CQHCI, in case of non-DCMD (data) requests, mrq->cmd can be NULL. Is this crash happening always (100% on bootup) with CQHCI & CONFIG_FAIL_MMC_REQUEST enabled? Sure, I will role out a patch to handle this case. It will be great, if you could also confirm it from your side. Regards Ritesh > > (gdb) list *(mmc_should_fail_request+0xa) > 0x149a is in mmc_should_fail_request (drivers/mmc/core/core.c:98). > 93        }; > 94 > 95        if (!data) > 96            return; > 97 > 98        if (cmd->error || data->error || > 99            !should_fail(&host->fail_mmc_request, data->blksz * > data->blocks)) > 100            return; > 101 > 102        data->error = data_errors[prandom_u32() % > ARRAY_SIZE(data_errors)]; > (gdb) > > (gdb) list *(mmc_cqe_request_done+0x1c) > 0x2a6c is in mmc_cqe_request_done (drivers/mmc/core/core.c:505). > 500    void mmc_cqe_request_done(struct mmc_host *host, struct > mmc_request *mrq) > 501    { > 502        mmc_should_fail_request(host, mrq); > 503 > 504        /* Flag re-tuning needed on CRC errors */ > 505        if ((mrq->cmd && mrq->cmd->error == -EILSEQ) || > 506            (mrq->data && mrq->data->error == -EILSEQ)) > 507            mmc_retune_needed(host); > 508 > 509        trace_mmc_request_done(host, mrq); > > > (gdb) list *(cqhci_irq+0x1d2) > 0x1172 is in cqhci_irq (drivers/mmc/host/cqhci.c:747). > 742                data->bytes_xfered = 0; > 743            else > 744                data->bytes_xfered = data->blksz * data->blocks; > 745        } > 746 > 747        mmc_cqe_request_done(mmc, mrq); > 748    } > 749 > 750    irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int > cmd_error, > 751                  int data_error) > > This can be worked around by turning off the option but it > seems like something to fix up. > > Thanks, > Laura