From patchwork Thu Jun 22 09:26:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Cabiddu, Giovanni" X-Patchwork-Id: 13288920 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 637F6EB64D8 for ; Thu, 22 Jun 2023 09:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbjFVJdr (ORCPT ); Thu, 22 Jun 2023 05:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbjFVJdP (ORCPT ); Thu, 22 Jun 2023 05:33:15 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5731BC3 for ; Thu, 22 Jun 2023 02:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687426008; x=1718962008; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1oR9R38eqvpZgm/7JAWq34x2KGCGiLRLr5vxygOX4Uc=; b=Eel/B7tDsZl6D9XXfuj+0GIgSCKt9yeN8JBBXhV3IXU93cJl9VHVzy25 K+4G76WQmTevEHHHClv4BH3G9VyVtT55hcy2CcMJhFhilq3TOXc/tIBEq ARZYq52/EmTItbiD9ls4D4UObRtqigvvro6++iUB7ti6dOckt+FS6zSo3 P1FuUvTnJSjjwcxq3vrRO5us2ZaGZRkXX7ckOq80zU4bhjMzmVdWMtPCh ltjI53jcZ0HhCFTqjByLqgtOOW9jRMkJY6aUVgJtNV+ZnyWN62ZtZ5K4K HKwOlRez3vYQPZAnel0Y52QKVexqX3K05jHWSn0dXa6vULIgmQk1MF7V+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="390124029" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="390124029" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 02:26:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="784836913" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="784836913" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.175]) by fmsmga004.fm.intel.com with ESMTP; 22 Jun 2023 02:26:46 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu , Damian Muszynski Subject: [PATCH] crypto: qat - change value of default idle filter Date: Thu, 22 Jun 2023 10:26:35 +0100 Message-Id: <20230622092635.6175-1-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The power management configuration of 4xxx devices is too aggressive and in some conditions the device might be prematurely put to a low power state. Increase the idle filter value to prevent that. In future, this will be set by firmware. Fixes: e5745f34113b ("crypto: qat - enable power management for QAT GEN4") Signed-off-by: Giovanni Cabiddu Reviewed-by: Damian Muszynski --- drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h index dd112923e006..c2768762cca3 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h +++ b/drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h @@ -35,7 +35,7 @@ #define ADF_GEN4_PM_MSG_PENDING BIT(0) #define ADF_GEN4_PM_MSG_PAYLOAD_BIT_MASK GENMASK(28, 1) -#define ADF_GEN4_PM_DEFAULT_IDLE_FILTER (0x0) +#define ADF_GEN4_PM_DEFAULT_IDLE_FILTER (0x6) #define ADF_GEN4_PM_MAX_IDLE_FILTER (0x7) #define ADF_GEN4_PM_DEFAULT_IDLE_SUPPORT (0x1)