Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5757506ioo; Wed, 1 Jun 2022 11:57:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztAX2KetVMKQ2gyTwRvSq32v5MFd1Ax3wOQX0iEhGrsEKWssZKnc51e6PxQc8tamUs3chw X-Received: by 2002:a17:903:1249:b0:15e:8b15:b7d2 with SMTP id u9-20020a170903124900b0015e8b15b7d2mr901513plh.150.1654109838531; Wed, 01 Jun 2022 11:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109838; cv=none; d=google.com; s=arc-20160816; b=QypTGZpHAAnaoJup9OABLsxgVR2HcVWstCv60K6MKKn0sQ6+2Oqd2Czv4U9Cv1sv7P rvGh2WeU8rnZYUt/mWJqjgIu4dJK2aY99cwlrsINHzfMnjQI4fO9lCSK/4o38kmRZ5PX CX+tRjdFR1aI594Ml1+SOiMvr0azHL64DNPP4hahULhAGG2/GWj//c/I0Z2y3RlhUNz0 KIXgbFO4MReSfrB0hYr0PW7CggbxKpdv9kTrbF5WKxbcq673MsfbB0ESvSIbn+MSMSnj 1PkXMAr4ggPS8dDXInN9tqJA7hhESMo9F+45c3tN5ozuHH27p2sxKLO68mKBZ4hTqMXT nzUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4li32PBdxnIv+jFKvhCljFF/bYWyWatcYvkg3TZww1s=; b=PJr0N4KuEo2YbtmijgDHA8c7/rnwB22FmvJnRvTMEKteHbnuMLoyRVGTQIJn1PNQad Fj5u54hbXhmKfIMWS8qQ32tb5bHCvprm5vhr/QbA/WgnKAobABC3XRmh00TPu6IErc8D Vi9CUOlxBvJtXrHrilFIObOkGdUTynPOxiQpNFBQyYZYe6o4s9oKq0QNx1nOa9kVfr2G SHXgqRaRcpuzwcH26IW8a8gkMm4M8GvMi18mSJGfA7WPljEEy7sNIg3fjau4OEbC1seT GXufPc7yRwEB3meu0N9q0YGiXda/Pqq1cagx/azDfJWQDuxR/pprQpkG6us1W2ObmGRA VdoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ywX1q/Sp"; 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=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q85-20020a632a58000000b003fb00f59ed5si3125306pgq.685.2022.06.01.11.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:57:18 -0700 (PDT) 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=@linaro.org header.s=google header.b="ywX1q/Sp"; 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=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63A6BB36E1; Wed, 1 Jun 2022 11:44:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347404AbiFAMre (ORCPT + 99 others); Wed, 1 Jun 2022 08:47:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243412AbiFAMra (ORCPT ); Wed, 1 Jun 2022 08:47:30 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1B21054B for ; Wed, 1 Jun 2022 05:47:29 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id t25so2548424lfg.7 for ; Wed, 01 Jun 2022 05:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4li32PBdxnIv+jFKvhCljFF/bYWyWatcYvkg3TZww1s=; b=ywX1q/Sp7hV1p86goYqniFRV4cZlbD1R9yXvl2mfzeiuSR3efubHRWaiRdhX8Esqed mJ3yGD0RUVPPt1f/R+ouSvoTxOqAtRGGgJUYbilgONCDkx8DOopTBoVTnK1YDUsrdubc 35isYXnsGcsXSl0mGJFgkq3r3lG7riqq0eSxluKLDD9BSI3Llw6eJre/ph0RCqD4obLC i9YXHOcRy9Xt2c5IM1Gz2xlBGmspzRO9AVWXDux0w0p9TMNZeVhk0CUU/AV1ol0ip3mo xFYcraKqvM6vRkJcCRd/ukGbYMiT6azPbdbKx0f8zsY59oJZGDh+lFQouG4FfWUAYOmP Jukw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4li32PBdxnIv+jFKvhCljFF/bYWyWatcYvkg3TZww1s=; b=cBU5gPcN9Akd54Ph4RxfBXdGoScOYl8TqSEVQdF1XRHFXy3Pru8Gfb0M9j82a/8irL olBKJvU4JWgZa+hFiq+agolEz2TDM2if4RYx1HouPt0s8f9AZl89GGFP0QAC6EnVPHFX 6/J1qZFlOTgvf6TzNFQ5e1SD/mMQgXTZ3whEMi7D1mdO6WpsBUGpL15fsE7dARfz/k/w B70X/226FByuAKcl/A834PRbB+66VEl09zavSf3WEdxARY2fjs7gzBShZyDCH/qDPSQV t1HppfclUAr9ErsHg20fR3pDN9SE47BbTPByLG9BsKH9akQpNJWP8Hqs0QlK0zzrkF31 /Fgw== X-Gm-Message-State: AOAM532DT84a0qIpY3Q6SEj/kmXOIhVVOQIdrN9sWn+j/tO0IKqmW8CM h0G2/x4qcSjidcuGd0wvSm6gn/EVHOw8hmYBRwggfQ== X-Received: by 2002:a05:6512:308b:b0:478:7ab5:4acd with SMTP id z11-20020a056512308b00b004787ab54acdmr34023519lfd.167.1654087647633; Wed, 01 Jun 2022 05:47:27 -0700 (PDT) MIME-Version: 1.0 References: <1653674036-21829-1-git-send-email-quic_c_sbhanu@quicinc.com> In-Reply-To: <1653674036-21829-1-git-send-email-quic_c_sbhanu@quicinc.com> From: Ulf Hansson Date: Wed, 1 Jun 2022 14:46:51 +0200 Message-ID: Subject: Re: [PATCH V8 0/5] mmc: add error statistics for eMMC and SD card To: Shaik Sajida Bhanu , adrian.hunter@intel.com Cc: wsa+renesas@sang-engineering.com, shawn.lin@rock-chips.com, yoshihiro.shimoda.uh@renesas.com, digetx@gmail.com, quic_asutoshd@quicinc.com, linux-arm-msm@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sartgarg@quicinc.com, quic_nitirawa@quicinc.com, quic_sayalil@quicinc.com Content-Type: text/plain; charset="UTF-8" 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 On Fri, 27 May 2022 at 19:54, Shaik Sajida Bhanu wrote: > > Changes since V7: > - Patch set V6 rebased on Ulf's(Ulf Hansson) master branch instead > of Ulf's (Ulf Hansson) next branch by mistake. So rebased patch > set on Ulf's next branch now as suggested by Adrain Hunter. Thanks to both of you for moving this forward to become an easy maintainable piece of code. Queued for v5.20 on the devel branch, thanks! Kind regards Uffe > > Changes since V6: > - Rebased on Ulf's(Ulf Hansson) next branch as suggested by > Adrain Hunter. > - Replaced debugfs_create_file() with debugfs_create_file_unsafe() > as suggested by Adrain Hunter. > - "[V6,5/5] mmc: cqhci: Capture eMMC and SD card errors" not > included in this Patch series as we don't have cqhci changes > on Ulf's(Ulf Hansson)next branch. > > Changes since V5: > - Considered all error stats enums to set error state. > - Added missed tuning error related code changes which was > missed in patch set V5 as Adrain Hunter pointed. > - Replaced DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE > as suggested by Adrain Hunter. > > Changes since V4: > - Defined new macro to increment err_stats members when error occured > as suggested by Adrain Hunter. > - Called err_stats members increment function after printing the error > as suggested by Adrain Hunter. > - Considered INDEX and END_BIT errors same as CRC errors as suggested > by Adrain Hunter. > - Removed Null check for host in debug fs functions and Reordered > err_stats declarationas suggested by Adrain Hunter. > - Removed err_state variable stuff and updated err_state debug fs entry > based on the err_stats members state as suggested by Adrain Hunter. > > 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 > debugfs entry as suggested by Adrian Hunter and Ulf Hansson. > > Shaik Sajida Bhanu (5): > 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: cqhci: Capture eMMC and SD card errors > > drivers/mmc/core/core.c | 10 +++++- > drivers/mmc/core/debugfs.c | 79 +++++++++++++++++++++++++++++++++++++++++++ > drivers/mmc/host/cqhci-core.c | 9 ++++- > drivers/mmc/host/sdhci.c | 59 ++++++++++++++++++++++++-------- > drivers/mmc/host/sdhci.h | 3 ++ > include/linux/mmc/host.h | 26 ++++++++++++++ > include/linux/mmc/mmc.h | 6 ++++ > 7 files changed, 175 insertions(+), 17 deletions(-) > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >