Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp259958pxm; Wed, 2 Mar 2022 14:50:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwU98kLE0DrPPQcuWr0xJB+6A/MaadrmHal7Q6U0IUZe0V8jGl6I8tvI+y3iV9fZttutlKX X-Received: by 2002:a17:90a:2c0b:b0:1be:da5a:b294 with SMTP id m11-20020a17090a2c0b00b001beda5ab294mr2074414pjd.9.1646261415324; Wed, 02 Mar 2022 14:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646261415; cv=none; d=google.com; s=arc-20160816; b=Ei678GZajODNOqN1GJPzvXQjpa6+X/RS1flXHX7SNaANs0UHrbhLjZCjkUQvikKejd JHPU8ONG4JqAvw3yEg/7DentG714pb0NpV4yqk/5qh9RAk/ASAFkSrZKgPbgX3HZf8gP OHokgpub5UvrOK5pttkgIuauF6ohXbWKsaEbw9rElYY4XsHKKAx+99+PV+PgCJ8K72mu Yq5j4mlJPmNLoVyitWuQ99rSulv+LqpzPKD8hmV4R5Ca9Su4D9nxddLHEGiPDQX92CJx wP6z61rtO1HY6JZ0CHwaPYmzPkc19qbarfnpUk2FclhiNpoDzd8MeGsF+M0Ajqk0SdmG Wv7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=a4hQ2aAPW5IsY3w8Y0zEVgQ+Gmampycmr+DnS2bxoZw=; b=ACUN8XdtX+idrBnPJm6IIukZcMSbPfk1EwvFMjVw/ArE5CXw6+HBUFf1XqAjYBgDCX sgb7BcC6glqZtazboKiPp5sfm2sC/IMysrzbhAbBUHrn9yGjSUy/ueCynAGcMrTo4Foc xZCTVAqezSJQGPmqjv1NpohuGkNVO/ej7x/0KQ2v/vn49uPb3RVCE4k3rSyUxrNTMqji Plrlzh0EfErd6oGJeMqQiQa79FOqn/bT0zVHVWpJc4mHznr8U8Pcn6rDYdgdl9uLEYMU 9WpKkE8dqIarw52EupCOTq568JGKPtKbxpvoPWP1AAT85FVjbeqke2tpYMq+bAR2YgMR Nbmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mVqUDCQh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m22-20020aa78a16000000b004f13c50134asi335500pfa.254.2022.03.02.14.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:50:15 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mVqUDCQh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 816E754694; Wed, 2 Mar 2022 14:41:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242030AbiCBNE4 (ORCPT + 99 others); Wed, 2 Mar 2022 08:04:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239833AbiCBNEw (ORCPT ); Wed, 2 Mar 2022 08:04:52 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF66AC2483; Wed, 2 Mar 2022 05:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646226250; x=1677762250; h=from:to:cc:subject:date:message-id; bh=a4hQ2aAPW5IsY3w8Y0zEVgQ+Gmampycmr+DnS2bxoZw=; b=mVqUDCQhKqbehTyosKVVDC0EV41Szv+pfrbxzf+5Yrm3s7ROI3mkKCSq eiyoIGpdDPOVaGj65193oupSWKPbPvMFg8U5wK7tAaS1Zev+F69mx2Lt2 oKRc3ldaMn808akbbYuDEBEaiGPjWtvRwHMKmpEIRcoCFcBdZ2NFET5hn U=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Mar 2022 05:04:10 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Mar 2022 05:04:08 -0800 X-QCInternal: smtphost Received: from c-sbhanu-linux.qualcomm.com ([10.242.50.201]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 Mar 2022 18:33:50 +0530 Received: by c-sbhanu-linux.qualcomm.com (Postfix, from userid 2344807) id 37F6C5850; Wed, 2 Mar 2022 18:33:49 +0530 (IST) From: Shaik Sajida Bhanu To: adrian.hunter@intel.com, quic_riteshh@quicinc.com, asutoshd@quicinc.com, ulf.hansson@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, linux-mmc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: quic_vbadigan@quicinc.com, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sartgarg@quicinc.com, quic_nitirawa@quicinc.com, quic_sayalil@quicinc.com, Shaik Sajida Bhanu Subject: [PATCH V4 0/7] mmc: add error statistics for eMMC and SD card Date: Wed, 2 Mar 2022 18:33:40 +0530 Message-Id: <1646226227-32429-1-git-send-email-quic_c_sbhanu@quicinc.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since V3: -Dropped error stats feature flag as suggested by Adrain Hunter. -Separated error state related changes in separate patches as suggested by Adrain Hunter. [PATCH V4 4/7] : error state debug fs [PATCH V4 5/7] : error state enable function [PATCH V4 6/7] : error state enable in error case Note: we are enabling error state before calling sdhci_dumpregs we couldn't add the err state in error stats array as err state is not error type. -Corrected Signed-off-by order as suggested by Bjron Andersson. -Moved error state enable code from sdhci_dumpregs to error conditions as suggested by Adrain Hunter. Changes since V2: -Removed userspace error stats clear debug fs entry as suggested by Adrain Hunter. -Split patch into 4 patches [PATCH V3 1/4] : sdhci driver [PATCH V3 2/4] : debug fs entries [PATCH V3 3/4] : core driver [PATCH V3 4/4] : cqhci driver -Used for loop to print error messages instead of using printf statements for all error messages as suggested by Adrain Hunter. -Introduced one flag to enable error stats feature, if any other client wants to use this feature, they need to enable that flag. -Moved reset command timeout error statement to card init flow as suggested by Adrain Hunter. Changes since V1: -Removed sysfs entry for eMMC and SD card error statistics and added Shaik Sajida Bhanu (7): mmc: core: Capture eMMC and SD card errors mmc: sdhci: Capture eMMC and SD card errors mmc: debugfs: Add debug fs entry for mmc driver mmc: debugfs: Add debug fs error state entry for mmc driver mmc: core: Set error state for mmc driver mmc: sdhci: Set error state for mmc driver mmc: cqhci: Capture eMMC and SD card errors drivers/mmc/core/core.c | 6 ++++ drivers/mmc/core/debugfs.c | 75 +++++++++++++++++++++++++++++++++++++++++++ drivers/mmc/host/cqhci-core.c | 9 +++++- drivers/mmc/host/sdhci.c | 74 +++++++++++++++++++++++++++++++++++------- include/linux/mmc/host.h | 29 +++++++++++++++++ 5 files changed, 180 insertions(+), 13 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation