Message ID | 20231103084720.6886-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:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp884349vqu; Fri, 3 Nov 2023 01:49:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2sxe8BqDyLF2wIi4l47hGV0qPq8Bf0RVnyxKIOkotApXLBimnvsDoa9p6VSRA6fAqBKvv X-Received: by 2002:a05:6a00:b55:b0:6be:314c:16cb with SMTP id p21-20020a056a000b5500b006be314c16cbmr24054733pfo.10.1699001359846; Fri, 03 Nov 2023 01:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699001359; cv=none; d=google.com; s=arc-20160816; b=0tYoa/JbrLXdRt/BnSG41zRqAJbOmXhKM7jCDB+mlTDZc56ETFE4ykVUiLEHEGG3Og i6eCrtPYFS4xo8IxmS15tn0yF14n43u8xgLXV7NxZweDrd7W//lYwrcr6ZretQi13M2i 4hlnDsbtliQtaM4k0OxBl6N0wJv69OCKFnaO1G6xBe9TKZkhk8rJXgIRruTnpvFBxRXE uP6HvTk5PKu8bec7mkqx9Nh601T//xDp65s0Onk/+y+gKwzylWsTtKot4Ry9vladES/2 gFWR04PazlTqSZD1hBvwa0ut0b8+0IFVgFm5APulWmbbXOFIxU4oxo/A2j23ht+H3B9y qghA== 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=P6ZIRjlu+/MwftTx3BPF+79pssGUXBSCsYkve2wqp3o=; fh=aIvDo0DPc47ZdKemLI3k3NodRhLAZ2m+5rlxdvTm1gA=; b=c2q/TiERHSegHAYvEVZxnyZYYOHYxI0V8pnfSZGKGYv3QwUaKM+x1A3oqpQxGhtVPO rUy3OVAtrwsos8Nt2gpP6jXwsChZ3oTVIpcSRKkEOql/ZBsgJDUov1fmG7TpA7bM+X7/ ms/5sZZCbPv2OM9gE1EcX77Zxx9dUBWgIcHyHXQCUy5hCYmS9DJBUz467ciEr+xqKWJy fsK0pvNqxo5V9gbitk+OxYt0yfj94/w5ECFyJTGpQKCx2eweYr51AK+MsqWU5vB3yuuB s3CeFLtCWDalQ3NCqdMBTTUq5lTWfalafWFEh+AZwu4uA9MlUPokTwBa8obgdtTrWHrQ mmcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BlEtAY7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id ck20-20020a056a02091400b005b99ea68841si1264115pgb.581.2023.11.03.01.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 01:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BlEtAY7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 7143D826BBBC; Fri, 3 Nov 2023 01:49:16 -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 S235135AbjKCIsr (ORCPT <rfc822;lhua1029@gmail.com> + 36 others); Fri, 3 Nov 2023 04:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235812AbjKCIsn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Nov 2023 04:48:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26745D61; Fri, 3 Nov 2023 01:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699001316; x=1730537316; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YBQ2Lyin2LPrMqjjbn7C4KRka6RjCsHhKLhnLJTF9TM=; b=BlEtAY7q1rtdlgC+Q5k7lk9cmmOvLixbDgsRfZ8p4KhTolwLpgpgSPGD 4tqpYTD2rN4nEOhH34BROmvvXPj/WRxalJ8uH/0d32MevQQDLixYkJ0nl x9YO5XBzplL7Hth6MwBa98671/z7kcDIwcZFgM/6Ou4nbM/QZuELLSDX1 XWLxDyhzLNHIYcTDkW6rmU8Yv6Lty3SrsNVV29nUDobbxAqKRLrkaBNJq fqcO0aeVN/jB5reKKKS00kgUIfxyPLj6x8eLz//mTrzGfjBhss3WYB30o zF4vIYR/W9Fhb1sjpUaSWoOPK+RQG60YBdQAV2Yrn+wsT2Ntw25YjaJFZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="391774604" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="391774604" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 01:48:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="796556657" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="796556657" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.51.133]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 01:48:30 -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>, Asutosh Das <quic_asutoshd@quicinc.com> Cc: Chaotian Jing <chaotian.jing@mediatek.com>, Bhavya Kapoor <b-kapoor@ti.com>, Kamal Dasu <kamal.dasu@broadcom.com>, Al Cooper <alcooperx@gmail.com>, Haibo Chen <haibo.chen@nxp.com>, Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com>, Sai Krishna Potthuri <sai.krishna.potthuri@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 V2 5/6] mmc: cqhci: Warn of halt or task clear failure Date: Fri, 3 Nov 2023 10:47:19 +0200 Message-Id: <20231103084720.6886-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103084720.6886-1-adrian.hunter@intel.com> References: <20231103084720.6886-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 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]); Fri, 03 Nov 2023 01:49:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781532049799527157 X-GMAIL-MSGID: 1781532049799527157 |
Series |
mmc: block: Fixes for CQE error recovery recovery
|
|
Commit Message
Adrian Hunter
Nov. 3, 2023, 8:47 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.
Fixes: a4080225f51d ("mmc: cqhci: support for command queue enabled host")
Cc: stable@vger.kernel.org
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; }