Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11311126rwd; Thu, 22 Jun 2023 11:28:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PSAGN/rIiWYCIxlRlIFkLdZuwSmtkM0exqvoTDzU1q56QTRhZZzehRVhjVWLHn7j3mTV3 X-Received: by 2002:a17:903:41d2:b0:1a6:cf4b:4d7d with SMTP id u18-20020a17090341d200b001a6cf4b4d7dmr23177694ple.2.1687458513457; Thu, 22 Jun 2023 11:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687458513; cv=none; d=google.com; s=arc-20160816; b=Hjnva1WuvQMjkzaccFRlTm389RzC07GSh6x3VaHzBf2Y7eAm8KjoBx22NtCfdhazvg JDPkqU+PsRLz6BWE2YwSHhqUt3Cr6pPop1PaysIXQw79+2gpaWPVhDMdU4EtuipZ/pfU iDbsVDowqgH9XZR5uX3ziY8ht9vf1dFVpIL210p2aVvoo1UGvyClZPjOKm7qHXP7QLDh GjRYVCi36JmcSTrYG/EvkI+Kat5lmfzrESoKLq9epK57YQRxKJQgmMrB+ZIMTVen4ruC 9RUjo03fbMEOOk1w90uUEWZ0A/mfUhfYq+7EZlH0LRL8A9/za7MUYgrRdZDVycb7KD6b gmvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/65M2NvVHPNZ647B3qjBY2ahO4UF/bEdkiyumd+BZzI=; b=pbegpXDcAS+K0MW33s/SdrnF3TeUTuIB3mhz+qDtuOgSuYGTM2Ld2gkp1XeIZwMr1O aRYZgmYqjDorc1jQZxOT98vh+raedZNcAXXqVDaIluwbi+NSHv+NPgnE9d/xpXnxO5Zy h9MM7CFv9KY2mzKJnrjcmaiyMgvoEHGKtTPxctR30jp+W2gI6F31bp30ef8GfVCvlLeP BtZF22x1C4aAvXUQFyXzJnueKgBrtAPtAC1p2XPYjuhHol+jDHgePI+kEmqEkqWCYsAJ N+AOJ3Dz9Jox/1ILtG0NMCAI4BkUfGf1KPXP+tlaRHe+enmeBBYNnB8BOBRB3yMcK0ld Ukcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LoQSLDwT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a17090332ce00b001b6ba60780dsi766099plr.552.2023.06.22.11.28.20; Thu, 22 Jun 2023 11:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LoQSLDwT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjFVSVq (ORCPT + 99 others); Thu, 22 Jun 2023 14:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbjFVSVo (ORCPT ); Thu, 22 Jun 2023 14:21:44 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D9A210A for ; Thu, 22 Jun 2023 11:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687458102; x=1718994102; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NOcfnpZD4bF03XplDTIMFCM+JoJoCkIzrWRYPdMaj4M=; b=LoQSLDwTKpKpaZUO3uNL89MfeC6HD7MfkReJXORlhAUPazN4ziUnlryJ 3SvSee66S+t/XP99BxmYdfuVeFS+G6hlAKEjf68I87FSvyuA24o1J+4Ap P2MU0ketnSUxAXH8jMmHxxxMg7cA00ySA/ykEaJQOp5PqaVBFPMD62092 qFyaQz8SZTowQ4AF8usHC114OqSF6NpK3BbxcfG6BrOoKtLYGGYDaEf8x wrIZC/LfPBN+k/6iNZNEw/vG4srh9nfGIQIyHosRp0ASw6ekGNKn4j3Z4 aIfhPFvN2BHLeGJSDf+44Bcmqpz+/p2NHQn9/OpS4dNmbsR2TuVSfN3tW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="390396344" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="390396344" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 11:21:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="961678990" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="961678990" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga006.fm.intel.com with ESMTP; 22 Jun 2023 11:21:39 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qCOw6-005pXH-13; Thu, 22 Jun 2023 21:21:38 +0300 Date: Thu, 22 Jun 2023 21:21:38 +0300 From: Andy Shevchenko To: Damian Muszynski Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu Subject: Re: [PATCH v3 0/5] crypto: qat - add heartbeat feature Message-ID: References: <20230622180405.133298-1-damian.muszynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230622180405.133298-1-damian.muszynski@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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-crypto@vger.kernel.org On Thu, Jun 22, 2023 at 08:04:01PM +0200, Damian Muszynski wrote: > This set introduces support for the QAT heartbeat feature. It allows > detection whenever device firmware or acceleration unit will hang. > We're adding this feature to allow our clients having a tool with > they could verify if all of the Quick Assist hardware resources are > healthy and operational. > > QAT device firmware periodically writes counters to a specified physical > memory location. A pair of counters per thread is incremented at > the start and end of the main processing loop within the firmware. > Checking for Heartbeat consists of checking the validity of the pair > of counter values for each thread. Stagnant counters indicate > a firmware hang. > > The first patch adds timestamp synchronization to the firmware. > The second patch removes historical and never used HB definitions. > Patch no. 3 is implementing the hardware clock frequency measuring > interface. > The fourth introduces the main heartbeat implementation with the debugfs > interface. > The last patch implements an algorithm that allows the code to detect > which version of heartbeat API is used at the currently loaded firmware. > > Signed-off-by: Damian Muszynski > Reviewed-by: Giovanni Cabiddu > Reviewed-by: Andy Shevchenko These tags are not for cover letter. -- With Best Regards, Andy Shevchenko