Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp825173rwi; Wed, 19 Oct 2022 03:31:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zRrOtHadcwA22mJqHBqrGSjHsvLgWAS5LP6IqzgCstXQigAfilewbNKi3qCkKtUlQBv6j X-Received: by 2002:a05:6402:360d:b0:459:5f40:5b0a with SMTP id el13-20020a056402360d00b004595f405b0amr6511438edb.168.1666175513002; Wed, 19 Oct 2022 03:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666175512; cv=none; d=google.com; s=arc-20160816; b=mfe3FAkDG7wW3YE0cDwIx+Fa2ZzIWWm0JAY346vuIlBQO2GlBjCko4KNglnjQeM5rQ 6cY83I4iaB/gOJ0/1PUMC27dPuNHjWVKezZ7BhTRs9JuLC8y2a28cmpnyVUnZQFibBnh whLJQ8e4JbV55eDItpv2NhTV2xU2RBElZpb5dhRJDzUrbRlVjqiRp8UunhW+nWPqPbt2 x7fR+UDfq/byvIX+a5jJm1iMIykEh/uaHBgzRZWhof6ekmJXnearJ5+t3wtUVVdrM98t QJHkYJoSY1BS35Yg7qTxTV+q5lVTL1YMgZ17k68Sss2rHZ2xzpWuCaf+zIw0IBOvckC5 +56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eBp7S9F95/JHolxKOxyqCzhzhLPacV4tuaEw9EH8h54=; b=bkvVd25InOzl1/oOZbuAsddv5OE72vKfCRSf/jmUq7tMojFdHEmvD4uNFbHvge1Zuw wjgltnHk6U/31tmWEEzcUChwVDd7FqrVH6TO4qjEsQ8etM8qLOqNADmMV9wNpok/ZW76 Hp3Hemais1dEfZy5W4ZA/mSHEGuo6Amsj9NVBCBTual1qx6k7Wfzcd+Lds8PkSH+GeZB 1/Mt4wv8miBL/7k9Ux5VZM7Q0R7dbtKpweHaDZRxq6idVEgw39cYFHPo2hH62uS4+VqX sZD9ZbuVWOL4pJOVb++aNSJifcYLwmSkdCliksftpECXcPaekA5zxqUKMw/3Yugkf28T Fu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PHplZGMR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg7-20020a170907a40700b00779e6c93108si11673908ejc.598.2022.10.19.03.31.26; Wed, 19 Oct 2022 03:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=PHplZGMR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233313AbiJSJSS (ORCPT + 99 others); Wed, 19 Oct 2022 05:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233156AbiJSJQT (ORCPT ); Wed, 19 Oct 2022 05:16:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C30CA59AE; Wed, 19 Oct 2022 02:06:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1531C61825; Wed, 19 Oct 2022 09:06:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23D00C433D6; Wed, 19 Oct 2022 09:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170377; bh=vujw5cF2w9ojqX9/fEY6xpNzZwk1Hc103xQkPvbWCdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PHplZGMRdqviz9Kqjff3VWgHRkS2QPIi4Uj1PjTOtguDUJJMD080DuZZlDsyl77Pl o+YJwzypXWgzM42YU7lnAKfmWn3w9ZQBrbcJ9sPEcYL0hlGSi0PI8jJkA4S5SubYdu tvJw8qCEJunnkg80tF5x9xdEYl+S7ZdZ/JIIZDcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Giovanni Cabiddu , Lucas Segarra Fernandez , Herbert Xu , Sasha Levin Subject: [PATCH 6.0 631/862] crypto: qat - fix default value of WDT timer Date: Wed, 19 Oct 2022 10:31:58 +0200 Message-Id: <20221019083317.803319512@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org From: Lucas Segarra Fernandez [ Upstream commit cc40b04c08400d86d2d6ea0159e0617e717f729c ] The QAT HW supports an hardware mechanism to detect an accelerator hang. The reporting of a hang occurs after a watchdog timer (WDT) expires. The value of the WDT set previously was too small and was causing false positives. Change the default value of the WDT to 0x7000000ULL to avoid this. Fixes: 1c4d9d5bbb5a ("crypto: qat - enable detection of accelerators hang") Reviewed-by: Giovanni Cabiddu Signed-off-by: Lucas Segarra Fernandez Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/qat/qat_common/adf_gen4_hw_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_common/adf_gen4_hw_data.h b/drivers/crypto/qat/qat_common/adf_gen4_hw_data.h index 43b8f864806b..4fb4b3df5a18 100644 --- a/drivers/crypto/qat/qat_common/adf_gen4_hw_data.h +++ b/drivers/crypto/qat/qat_common/adf_gen4_hw_data.h @@ -107,7 +107,7 @@ do { \ * Timeout is in cycles. Clock speed may vary across products but this * value should be a few milli-seconds. */ -#define ADF_SSM_WDT_DEFAULT_VALUE 0x200000 +#define ADF_SSM_WDT_DEFAULT_VALUE 0x7000000ULL #define ADF_SSM_WDT_PKE_DEFAULT_VALUE 0x8000000 #define ADF_SSMWDTL_OFFSET 0x54 #define ADF_SSMWDTH_OFFSET 0x5C -- 2.35.1