Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1063783rdh; Fri, 27 Oct 2023 03:54:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhSMJixJcs0O0p2rdjEha0tjAzrxvwr44BmB1RKhna/oUOynPx5Q+fG08U3imSphhL97DH X-Received: by 2002:a05:690c:730:b0:5a7:fbd5:8c1 with SMTP id bt16-20020a05690c073000b005a7fbd508c1mr2054650ywb.17.1698404075222; Fri, 27 Oct 2023 03:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404075; cv=none; d=google.com; s=arc-20160816; b=nU7PIY8iGmumhC1MO3eFv2YUuZPwaJdH8iT9qiUvdAa03t8jZEjuRxdxvKI/0zrIRt p1vp6x/Ufx8O8DrVtcFHY/87fyqPqC3A4htmO24uAbY6gqw5SmsXgZU9ezEmiDH6YEDl zaU24XGHJvLQ0Gjb5pKkTX/8unqLkzcXIWToIL69Gsw5MN4tttMxxk3dqG0i4XUftyNC TAxADKYPhA9xI1cvLy3KU+h0qU0znj8X+fMKWD6A7h0iztqKEVL7i7Zh+cpoZ9006n8p jnEVhHkp+vvQKZVOAejM65obczHkWWYRPWfIkoy6+gT5kGAchJrYCSYypU/9XT25FeEF UG5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lz9VsXvjfFBVi7vTVSifbzh/1GhP89gG5SZlnOkoHw8=; fh=h8c0Kg4JadFgC3AaqM4tmKOzMxx/Af1Yuuq5RGedbWo=; b=PGStKrl7vNr63wEGu1hZdqB3s4hK50pChzJWyk7+MidzKMx42EKxjXzpy5e72AZ3L3 TXn4jgHEBVNTc0Bf6f2Q/wZOGNGWSWemSAvb7ASznpxo9wbD021s9VDOlvmtdFzfseO0 gj1M+0hNZaSywSuhopw3VrCJ8tsGwwzyd1SZCzpyoDR/x9ZBvY3vL/A2w2Iq5+nb03oU gHeqdm5oGenGg4y7xDWtQrGv3E4mTzdXLLzOxRC+3tRFZRz/OfeOvdLTtSqB8zGvcZzl BQqzHas0e+t8PxMdpBJcMGXQCh5T4AixSWnqKAHFz+cdUtwxe03py0nQMwivZXO42NcT FwQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h63-20020a815342000000b0059be7cfde94si2251711ywb.219.2023.10.27.03.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E6AD98315489; Fri, 27 Oct 2023 03:54:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345549AbjJ0Ky3 (ORCPT + 99 others); Fri, 27 Oct 2023 06:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345691AbjJ0Ky1 (ORCPT ); Fri, 27 Oct 2023 06:54:27 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D743B9C for ; Fri, 27 Oct 2023 03:54:24 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qwKTr-00BeYm-Tj; Fri, 27 Oct 2023 18:54:20 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 27 Oct 2023 18:54:26 +0800 Date: Fri, 27 Oct 2023 18:54:26 +0800 From: Herbert Xu To: Shashank Gupta Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com Subject: Re: [PATCH 0/9] add ras error detection and reporting for GEN4 devices Message-ID: References: <20231020103431.230671-1-shashank.gupta@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020103431.230671-1-shashank.gupta@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:54:30 -0700 (PDT) On Fri, Oct 20, 2023 at 11:32:44AM +0100, Shashank Gupta wrote: > This set introduces the required infrastructure to detect, report, and count errors in the QAT drivers and enables the reporting of errors in QAT GEN4 devices. > In particular, it enables the reporting of correctable, nonfatal, and fatal errors. > In addition, exposes the number of occurrences of each type of error through sysfs. > > The first patch adds the common infrastructures for error reporting for all generations of QAT. > Patches from 2 to 5 and 7 enable the reporting of errors flagged through the register ERRSOUx for GEN4 devices. > ERRSOUx error reporting for GEN4 devices. > Patch 6 adds a helper to retrieve the base address of the aram bar. > Patch 8 introduces the ras counter interface for counting QAT-specific errors, and exposes such counters through sysfs. > Patch 9 adds logic to count correctable, nonfatal, and fatal errors for GEN4 devices. > > Shashank Gupta (9): > crypto: qat - add infrastructure for error reporting > crypto: qat - add reporting of correctable errors for QAT GEN4 > crypto: qat - add reporting of errors from ERRSOU1 for QAT GEN4 > crypto: qat - add handling of errors from ERRSOU2 for QAT GEN4 > crypto: qat - add handling of compression related errors for QAT GEN4 > crypto: qat - add adf_get_aram_base() helper function > crypto: qat - add handling of errors from ERRSOU3 for QAT GEN4 > crypto: qat - add error counters > crypto: qat - count QAT GEN4 errors > > .../ABI/testing/sysfs-driver-qat_ras | 42 + > .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 13 + > .../intel/qat/qat_4xxx/adf_4xxx_hw_data.h | 17 + > drivers/crypto/intel/qat/qat_4xxx/adf_drv.c | 1 + > drivers/crypto/intel/qat/qat_common/Makefile | 2 + > .../intel/qat/qat_common/adf_accel_devices.h | 34 + > .../intel/qat/qat_common/adf_common_drv.h | 10 + > .../intel/qat/qat_common/adf_gen4_ras.c | 1566 +++++++++++++++++ > .../intel/qat/qat_common/adf_gen4_ras.h | 825 +++++++++ > .../crypto/intel/qat/qat_common/adf_init.c | 9 + > drivers/crypto/intel/qat/qat_common/adf_isr.c | 18 + > .../qat/qat_common/adf_sysfs_ras_counters.c | 112 ++ > .../qat/qat_common/adf_sysfs_ras_counters.h | 28 + > 13 files changed, 2677 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-driver-qat_ras > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c > create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.h > > -- > 2.41.0 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt