Message ID | 20231101073827.4772-6-adrian.hunter@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp244755vqx; Wed, 1 Nov 2023 00:40:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHW92DRThetdJFkxhYUnfMssoXaMNcj0c1dyx3/WQvKN/KRQ/9UTPM5uFstyWdr4F8lR15q X-Received: by 2002:a81:b101:0:b0:5a8:1d18:a16 with SMTP id p1-20020a81b101000000b005a81d180a16mr15935139ywh.36.1698824450961; Wed, 01 Nov 2023 00:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698824450; cv=none; d=google.com; s=arc-20160816; b=kN3S/UlLERGr1juujTW1AJv0ut9+gebDCsvma7/2oBePHFXBcDKL8hsX2gdlRFGNTc hEor8N/Y3+JmsziMvNeA8F8MQFPxOvb6v9J/70mgn9X2HaQgtrubWbgz+IKV2yIXtGCW pLQGK91bbOJdJlFnxQ0lWkiKLvUm319YTPZ4bvzhY/Dg8c9j/9AsVu+8eZ4SJ6caHXsF Bjghlk7xzBlP66EXn60s6sdk4LCQL6YCzX4Xxg3N6ayPdswrI2DtS7nMLF+Np/K6AnxW m5UTXQ3iWa+CK4ylswHcS80hDVA7n6+tvEwxjZ3qwkKS9EXV/NM8ec51mkf2O9QNEx4g bDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tpX7xtorvfWLarLy44cdEIWdEqybZbNqpJR9ejqJ/0k=; fh=B/ymYvz68TmAYsy3osQThBsQqGybcLhrtzuZ248faME=; b=hXZIVpxSGyjFce3SAm6E1M9za7ZbQpdLoso6GAIwBC5cVQ3cI+bdJNebZQUy19UbBG +oJHQ10K1kKkE4KIIZ8mXh2hql+Sk8v0Vgw4C+hFCNmuVJVHVLJon0EFyfAHORks/tmM 4QX9ke51QwKeJ5MC5OyQ4rI5VDGr96Y8MAVZBEi89z590qn5x4T05Tf3PJd6ihWL20MS hfub4QsAVvHUB2AoxmnZ7jycP0I16uIv2hTmkMsKNRbNQ+JqvuEtuMrpmZxafYli3hs4 8uI2RBAPCmt9Nywh1NLX93rtBz+G8STl4g34kFZu5yERxntPIDbKh5hCVeVm+3CUkwG/ yt8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HhhnBPDy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s130-20020a637788000000b005b3bcd9d7f8si2472952pgc.808.2023.11.01.00.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 00:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HhhnBPDy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BF9FB8080C4E; Wed, 1 Nov 2023 00:40:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231881AbjKAHjg (ORCPT <rfc822;rbbytesnap@gmail.com> + 35 others); Wed, 1 Nov 2023 03:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbjKAHjY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Nov 2023 03:39:24 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F446138; Wed, 1 Nov 2023 00:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698824355; x=1730360355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rTwdYfLJeq6qzplpdM8wdKPNTVjN4KmxEwCf/vATSGo=; b=HhhnBPDyVXooeT+AbCIYT1zvjvu0mqStiyq9EkluV78EPXTq5BUjoE3j dLDwOyOqqvYG1ytCoqyuITjBrB7+mNHT2tlRFP5Qw8BLSjBWd5jckvxK+ iVmb+NYg7Ts5EiGPgIPA8iyRvag00+Mz5UkSNygDUzIPcA0dVUbs80kF8 fJce9rOVHubU+kYKryyo/vFjBljHB7G1p7fBNsCbE7sFIm8Cr4z4aeTBy 0veoYCi3fh37xuIIieXSj+SemUwSvjxlLiklb2fAGkFYbgOuSPYc8mOO8 3agwbVdDQIunPg9H7U0UWWM5IdpQ711587UfvxvuXx7ziBprNRqDrrIzf g==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="9982771" X-IronPort-AV: E=Sophos;i="6.03,267,1694761200"; d="scan'208";a="9982771" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 00:39:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="934357581" X-IronPort-AV: E=Sophos;i="6.03,267,1694761200"; d="scan'208";a="934357581" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.34.17]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 00:39:08 -0700 From: Adrian Hunter <adrian.hunter@intel.com> To: Ulf Hansson <ulf.hansson@linaro.org>, =?utf-8?q?Kornel_Dul=C4=99ba?= <korneld@chromium.org>, Radoslaw Biernacki <biernacki@google.com>, Gwendal Grignou <gwendal@chromium.org>, Ritesh Harjani <riteshh@codeaurora.org>, Asutosh Das <quic_asutoshd@quicinc.com> Cc: Chaotian Jing <chaotian.jing@mediatek.com>, Aswath Govindraju <a-govindraju@ti.com>, Bhavya Kapoor <b-kapoor@ti.com>, Kamal Dasu <kamal.dasu@broadcom.com>, Al Cooper <alcooperx@gmail.com>, Haibo Chen <haibo.chen@nxp.com>, Bhupesh Sharma <bhupesh.sharma@linaro.org>, Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com>, Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>, Swati Agarwal <swati.agarwal@amd.com>, Victor Shih <victor.shih@genesyslogic.com.tw>, Ben Chuang <ben.chuang@genesyslogic.com.tw>, Thierry Reding <thierry.reding@gmail.com>, Aniruddha Tvs Rao <anrao@nvidia.com>, Chun-Hung Wu <chun-hung.wu@mediatek.com>, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] mmc: cqhci: Warn of halt or task clear failure Date: Wed, 1 Nov 2023 09:38:27 +0200 Message-Id: <20231101073827.4772-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231101073827.4772-1-adrian.hunter@intel.com> References: <20231101073827.4772-1-adrian.hunter@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 01 Nov 2023 00:40:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781346547075177742 X-GMAIL-MSGID: 1781346547075177742 |
Series |
mmc: block: Fixes for CQE error recovery recovery
|
|
Commit Message
Adrian Hunter
Nov. 1, 2023, 7:38 a.m. UTC
A correctly operating controller should successfully halt and clear tasks.
Failure may result in errors elsewhere, so promote messages from debug to
warnings.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
drivers/mmc/host/cqhci-core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c index 15f5a069af1f..948799a0980c 100644 --- a/drivers/mmc/host/cqhci-core.c +++ b/drivers/mmc/host/cqhci-core.c @@ -942,8 +942,8 @@ static bool cqhci_clear_all_tasks(struct mmc_host *mmc, unsigned int timeout) ret = cqhci_tasks_cleared(cq_host); if (!ret) - pr_debug("%s: cqhci: Failed to clear tasks\n", - mmc_hostname(mmc)); + pr_warn("%s: cqhci: Failed to clear tasks\n", + mmc_hostname(mmc)); return ret; } @@ -976,7 +976,7 @@ static bool cqhci_halt(struct mmc_host *mmc, unsigned int timeout) ret = cqhci_halted(cq_host); if (!ret) - pr_debug("%s: cqhci: Failed to halt\n", mmc_hostname(mmc)); + pr_warn("%s: cqhci: Failed to halt\n", mmc_hostname(mmc)); return ret; }