Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3810114rdb; Thu, 14 Sep 2023 03:28:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOTsun0yIuM1SmkEZHk/LZ90Yf8K33ys2eBpcBrQ8lUvjlJbWEv9WQw0tkHhLOK6FlvnYc X-Received: by 2002:a05:6358:9142:b0:13c:dcbc:375c with SMTP id r2-20020a056358914200b0013cdcbc375cmr5170585rwr.21.1694687308402; Thu, 14 Sep 2023 03:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694687308; cv=none; d=google.com; s=arc-20160816; b=tYG3G6me71jfHzkgZ4UnyonLw9wGB9n6x0BKBGT4T1tw26t87pV3PS2fVzVOSdbOUh OYKkYVgXDq+oeyEPxp1LOTCqsRu3W6QlPm/x6ZnA9MUcYgaeZhJDiEWglkCbn1c6d9ys PRs8R6TwgeGO13indXN0JHHxl6VjgCGjpSTLYx44y0vS7jFJQLNLMYKGNoe/2IFki8c/ 4cimTO5vAcPPQpLW5b01PdECdrL/UJ2U01w4BGYvWu6MNybYQ6o9kTkGo/6OmdfEiRli BIlMmlHRxU56mBCsEK3MCM6kWdbKGGFOwdRFOR3ok4F99cOqqUO+Y67XWaz/Nh5TAfHh wGvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=WH9S7uYUaHIbp0j9Hbu0txXXa6MdyP9f/sZxlNFceJ4=; fh=wyo9D10N/KY6BtMBdBaaWDl6TvLT61Cqzi/w+RmGvHQ=; b=xQgey/Yl12cGP53dvKaAa/7k4CWQTaRNs8cC7ioiKw9UtwBIzCP8rd2uyBAgm6cqJY CH2jyaTnbE8ubG0QQp3GdoWgptstB1u/Kn+NfG4Qa2y+YbRw53ryY24HjL61SQECHgBG BhLX4538mJ0HgaVapoOG/jlCsnMICsFeBcsStw4RqHPeW8k4Mr2yQailgEIXaq25x4F+ QDZVZfmVZZbp+3iObu8yc8UAPRYgxsEz2qvPvHlLQoluIOGqqhBPz5j4DDybAPnvfKsE E206fiKbekJhbEVtC8t+C0xsD+BJD1pH0EMzkIGQCJxHLNJ55uTOLu5aVtPt1j6isMFg i00A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lWRDtBOC; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u13-20020a63d34d000000b005650ad0d543si1177524pgi.113.2023.09.14.03.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lWRDtBOC; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B9A2E8092487; Thu, 14 Sep 2023 02:57:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237510AbjINJ5P (ORCPT + 99 others); Thu, 14 Sep 2023 05:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237518AbjINJ5P (ORCPT ); Thu, 14 Sep 2023 05:57:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FCE1EB for ; Thu, 14 Sep 2023 02:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694685431; x=1726221431; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=l4UFqki804+CMonkcgu8e4qmRYXFHAhg7vqgIjJlcus=; b=lWRDtBOCId8I+VIp0m06nsmZnVIQyICt9oncjz8Wd+JzO3EIlkud/jAP dV3F+MjGSEh8/1zf1dX4A0CQrkdscMBMDthlot5lQjhuvWn+WNGd9eioc 2b5/IpHODPTxI7OAp52yLx2rOgK1x19R7XrgunyFC8A6OFhbD5y+bo8PW mD+GoAYiFhCGYJGAC2xEjkzjtiJX4laGdNwa1oKiPXuZUAW/HFQuCemSt zfvKEvxz/0p7u/bZrerEOHAvR0VWVUqAGVjsE5VxzwFz9Dr2M+cFixILh ck4K0gKFs3G1mcRgLcg7sYxLa8mRTXlpyo+Wv8RhS6dPfotgFwaLlTRzb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="465279147" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="465279147" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 02:57:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="814619709" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="814619709" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.216]) by fmsmga004.fm.intel.com with ESMTP; 14 Sep 2023 02:57:09 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu Subject: [PATCH 0/5] crypto: qat - state change fixes Date: Thu, 14 Sep 2023 10:55:44 +0100 Message-ID: <20230914095658.27166-1-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:57:13 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email This set combines a set of fixes in the QAT driver related to the core state machines and the change in state that can be triggered through sysfs. Here is a summary of the changes: * Patch #1 resolves a bug that prevents resources to be freed up. * Patch #2 is a simple cleanup. * Patch #3 fix the behaviour of the command `up` triggered through a write to /sys/bus/pci/devices//qat/state. * Patches #4 and #5 fix a corner case in the un-registration of algorithms in the state machines. Giovanni Cabiddu (5): crypto: qat - fix state machines cleanup paths crypto: qat - do not shadow error code crypto: qat - ignore subsequent state up commands crypto: qat - fix unregistration of crypto algorithms crypto: qat - fix unregistration of compression algorithms .../intel/qat/qat_common/adf_common_drv.h | 2 ++ drivers/crypto/intel/qat/qat_common/adf_init.c | 17 ++++++++--------- drivers/crypto/intel/qat/qat_common/adf_sysfs.c | 15 ++++++++++++--- 3 files changed, 22 insertions(+), 12 deletions(-) base-commit: be369945f2f612c40f771fe265db1ca658cdc0d1 -- 2.41.0