Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp244338pxb; Fri, 16 Apr 2021 04:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH+FbEGBp0sqhykKXQaQ0hQBsPZWMYNaPgctsXUmEcuQ9pQNYKIB0Ogj7/YsGC1wYYTCOV X-Received: by 2002:a63:da04:: with SMTP id c4mr7607803pgh.144.1618573471736; Fri, 16 Apr 2021 04:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618573471; cv=none; d=google.com; s=arc-20160816; b=LgLztP9qdDuIxJM048uaQIlUCN7Ruc+GWdU8hrxUwrmq0RCmfoipNKQIDXTkLdpQm5 St/qHEc5ZhtoEvIcJ8Ep5wCHqVAgRh0RoKg+x2tMl6Mx7astayZoFJnQ4uiMrwThOlK9 T0q1c1Wt+ApCh3oAUcCvOI7UXiwZTxiz62trhhIrXqZKRAodxES2z/ub7dRJslkK1XuS 3XRVpGeNiu8Cz/wX06De48sCsKZZ+oNHUwEa3qOqiDrxF3kUq+ugzy633IR9Fh7mSDwb F/ZmZqgRIkhaRcJKmjgb1/hR5PpfbB9TJguo1c+eJ2QqSW35dhgHzFOlELQf4kSXUSPD bQdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XwyybCt3sYkvR/OXmg5o83cCUfm91ikTfL725hykCcM=; b=eByTLXyFfD/kWmd8U78wb1qwT/xeNZqNz2YeBeIT/0D35g39YUaPs+Od5BhRx1bjOS UaVBuDr+kBgOUKNIuncUHnquH82wbOjRsh8Z7HTuv1PXcsMm23j3URG5K7IS9H8r4jzA Cd6EvZ1Afnjn86TfqO82ijw9fH812niqAOzMyUAHrKpaXAurF63O2A2Ks8txkfL0BMSL t8wuMU8Bg5Z3PTJrXOVh5aoPxSmwHhQKUFi4oefHJ6aIwUgbvQwWZEFEl1IECsUgJ3sl FqFWSd1NLmKEsBmalm1kt2JREZJx38V4BEB2q/IxEz4tVWOZsVaulZdwpm2iOVlkHJfU bNDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u133si6095513pgc.332.2021.04.16.04.44.18; Fri, 16 Apr 2021 04:44:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240007AbhDPLdC (ORCPT + 99 others); Fri, 16 Apr 2021 07:33:02 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:53120 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238757AbhDPLdC (ORCPT ); Fri, 16 Apr 2021 07:33:02 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1lXMi9-0003WY-2n; Fri, 16 Apr 2021 21:32:34 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Apr 2021 21:32:32 +1000 Date: Fri, 16 Apr 2021 21:32:32 +1000 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Wojciech Ziemba Subject: Re: [PATCH] crypto: qat - enable detection of accelerators hang Message-ID: <20210416113232.GL16633@gondor.apana.org.au> References: <20210409135619.3879-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409135619.3879-1-giovanni.cabiddu@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Apr 09, 2021 at 02:56:19PM +0100, Giovanni Cabiddu wrote: > From: Wojciech Ziemba > > Enable the detection of hangs by setting watchdog timers (WDTs) on > generations that supports that feature. > > The default timeout value comes from HW specs. WTDs are reset each time > an accelerator wins arbitration and is able to send/read a command to/from > an accelerator. > > The value has added significant margin to make sure there are no spurious > timeouts. The scope of watchdog is per QAT device. > > If a timeout is detected, the firmware resets the accelerator and > returns a response descriptor with an appropriate error code. > > Signed-off-by: Wojciech Ziemba > Reviewed-by: Giovanni Cabiddu > --- > .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 1 + > .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c | 1 + > .../crypto/qat/qat_c62x/adf_c62x_hw_data.c | 1 + > .../crypto/qat/qat_common/adf_accel_devices.h | 1 + > .../crypto/qat/qat_common/adf_gen2_hw_data.c | 25 ++++++++++++ > .../crypto/qat/qat_common/adf_gen2_hw_data.h | 13 ++++++ > .../crypto/qat/qat_common/adf_gen4_hw_data.c | 40 +++++++++++++++++++ > .../crypto/qat/qat_common/adf_gen4_hw_data.h | 14 ++++++- > drivers/crypto/qat/qat_common/adf_init.c | 4 ++ > 9 files changed, 99 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt