Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2578166rwd; Fri, 16 Jun 2023 05:44:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7d0eCz98/A0sNWMKdZmMH2lblagcuclFvYhBUHPQlX12OJNC6xPn9K+EM9qiYfy84EaetH X-Received: by 2002:a17:903:32c4:b0:1b3:e352:6d88 with SMTP id i4-20020a17090332c400b001b3e3526d88mr2038619plr.6.1686919467539; Fri, 16 Jun 2023 05:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686919467; cv=none; d=google.com; s=arc-20160816; b=HKnDNjOaxyrBPuSAHTULaLIMAGHIg8AcS+AUnk6+UYTAVTfOt9xNxikyDPt4ulqx7i Xd/ESfuQYPZvmEj/bHdtBhLc6gSZTfp2aesP+n3I6QLQ36xsJ7mRk3r+dKHBrEcqcJeL d2QsjX0ld4x+gY26+p6xL5yE0Hpqer1pJq+HuYcOIErx0Dk4ZVtre0mmSoORe/KfLc01 0F844UDfnQzZI/5Hz1q+OXWb7QuSRMc4PcfTw/Ep9PrBY0JzyR/GA9RiALoZocIeuoYm oaCQ4PcWS5DtT0lT3vRHiPEdm6idmp8JbW/h+rEHLaaYFmEEvOQNAhR69DJ3nCwn+d/e HGkg== 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=N6rMXtxN2hjZSys0n5b6E6cCPU6zV8jnqr09dFfP2pI=; b=hpPbC54i0YawjbElIMGvdjkuYqgMxGsJC3a7kcsm6ghOtUIGuQL+6EDaFBbIP4YCWS a0clZ8B3FMF5eFR3mvP9rWTc/5oZGp0fydk9ApSFhbfpvSIbex7HoHDkIz5UuNT2nLHc t3T/pWVpyn1Muf2qAasBw0n3cpaU1LZQrS+yw9H2UX56Ck1hLoWqMTNIluESMJ3vV1ZF rjCzL49TYsQHmbZTvKscjKe7EBDqUwM/yvJ/1FNyeIURAoikZvSUe8uan3ZB6PMzkopg 2n8Tk1PdrrOwhm1FXW6C3DfXwP3xsBw/+p6zTIV/CvT+K9Q13GaFX8vk210K1rX2Ielu gE9A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a17090341d100b001ac4f733007si12542638ple.549.2023.06.16.05.44.13; Fri, 16 Jun 2023 05:44:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345026AbjFPMf3 (ORCPT + 99 others); Fri, 16 Jun 2023 08:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344909AbjFPMfZ (ORCPT ); Fri, 16 Jun 2023 08:35:25 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA2830E1 for ; Fri, 16 Jun 2023 05:35: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 1qA8ff-003p22-B3; Fri, 16 Jun 2023 20:35:20 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Jun 2023 20:35:19 +0800 Date: Fri, 16 Jun 2023 20:35:19 +0800 From: Herbert Xu To: Lucas Segarra Fernandez Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu , Andy Shevchenko Subject: Re: [PATCH] crypto: qat - expose pm_idle_enabled through sysfs Message-ID: References: <20230609170614.28237-1-lucas.segarra.fernandez@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609170614.28237-1-lucas.segarra.fernandez@intel.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 Fri, Jun 09, 2023 at 07:06:14PM +0200, Lucas Segarra Fernandez wrote: > Expose 'pm_idle_enabled' sysfs attribute. This attribute controls how > idle conditions are handled. If it is set to 1 (idle support enabled) > when the device detects an idle condition, the driver will transition > the device to the 'MIN' power configuration. > > In order to set the value of this attribute for a device, the device > must be in the 'down' state. > > This only applies to qat_4xxx generation. > > Signed-off-by: Lucas Segarra Fernandez > Reviewed-by: Giovanni Cabiddu > Reviewed-by: Andy Shevchenko > --- > Documentation/ABI/testing/sysfs-driver-qat | 35 ++++++++++++ > .../intel/qat/qat_common/adf_cfg_strings.h | 1 + > .../crypto/intel/qat/qat_common/adf_gen4_pm.c | 12 ++++- > .../crypto/intel/qat/qat_common/adf_gen4_pm.h | 1 + > .../crypto/intel/qat/qat_common/adf_sysfs.c | 53 +++++++++++++++++++ > 5 files changed, 101 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