Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4809316pxb; Tue, 28 Sep 2021 04:45:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFlKzhAVmEgOZCFscAbUyF6He+QnyyxcnZYk5Uyu/ICw5mhbFbMXzg8F95WVd8Z02VZ4ZA X-Received: by 2002:a17:902:b095:b029:12c:de88:7d3b with SMTP id p21-20020a170902b095b029012cde887d3bmr4700758plr.15.1632829518614; Tue, 28 Sep 2021 04:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632829518; cv=none; d=google.com; s=arc-20160816; b=L30ztQHBX7/2Qw+8kuJhG0zUIzwDXAbyE220HfkJi60IGcBPOd4uoMBKTwSj0clVpa Kq6iUmUvlB3ob5twfWtTQ5iM5d/pEjwdvihI3yQSisvbhYtgzS9S9vOLNuKMs9OEvDO8 zivHNW7IXmUbI9u+CuCbJw+xg5usXErEMPDW2Cr3thMxXBVePd7u1KMOYBN1QsV6iARr Jg7My+4D3cjaWsKy+CDRfD2ZtbV9iLO+1vGinIhlxpYdRkKxXrZUX/oaz98IAj6FPL9y ENH/E4a09DTqkKr/hKpL3z9SEz8nqjfeuW8ZTIsQU6gyRg7Jjl7VcydpzMU6wm0OAkPt TCvQ== 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; bh=iC+q6GyMbPMK/oIRRavAfPl/PeA/v4FwM77xq7+/YKs=; b=YAAJw7Rc9Qsf+0LIZ4Qbf/g7I1ezP+bhPDQr6aRd+yl+u1Od0Apdu7nIk2J3jj9bEy 4YK8IDe7j2uktI9IDu1c3XPPqoEht7rlvHq5wQ2GDYDtvub1w9GBx78qEdWXIzXbCTDm inVfzlhubDG9sZlKvpRai+mBTOrjrXhfzmY8eJimn4J1yQWhPEJVhJssWurLFc3grNAu yGH6mnengl4D5bMrJQr69WiLBAxH4FJM7G9oYvtIcfUR51VmP3AC4OoTUV/mtkcu1kgE P2pAb4k9u/a8yQOsa+gaMbIQxw84fhHxTrKQpqHov7Ws8cfU098lh/mzVTdzs8eO/oDl GJ7Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si1755642plq.361.2021.09.28.04.44.58; Tue, 28 Sep 2021 04:45:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240336AbhI1Lqa (ORCPT + 99 others); Tue, 28 Sep 2021 07:46:30 -0400 Received: from mga07.intel.com ([134.134.136.100]:37909 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbhI1Lqa (ORCPT ); Tue, 28 Sep 2021 07:46:30 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="288339029" X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="288339029" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2021 04:44:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="562224599" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.51]) by fmsmga002.fm.intel.com with ESMTP; 28 Sep 2021 04:44:49 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu Subject: [PATCH 00/12] crypto: qat - PFVF fixes and refactoring Date: Tue, 28 Sep 2021 12:44:28 +0100 Message-Id: <20210928114440.355368-1-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.31.1 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 This set includes few fixes and refactors in the QAT driver, mainly related to the PFVF communication mechanism. Here is a summary of the changes: * Patches #1 and #2 fix a bug in the PFVF protocol related to collision detection; * Patch #3 optimizes the PFVF protocol protocol by removing an unnecessary timeout; * Patch #4 makes the VF to PF interrupt related logic device specific; * Patches #5 and #6 remove duplicated logic across devices and homegrown logic; * Patches #7 to #12 are just refactoring of the PFVF code in preparation for updates to the protocol. Giovanni Cabiddu (3): crypto: qat - detect PFVF collision after ACK crypto: qat - disregard spurious PFVF interrupts crypto: qat - use hweight for bit counting Marco Chiappero (9): crypto: qat - remove unnecessary collision prevention step in PFVF crypto: qat - fix handling of VF to PF interrupts crypto: qat - remove duplicated logic across GEN2 drivers crypto: qat - make pfvf send message direction agnostic crypto: qat - move pfvf collision detection values crypto: qat - rename pfvf collision constants crypto: qat - add VF and PF wrappers to common send function crypto: qat - extract send and wait from adf_vf2pf_request_version() crypto: qat - share adf_enable_pf2vf_comms() from adf_pf2vf_msg.c .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 4 +- .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c | 89 +------ .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.h | 13 +- .../crypto/qat/qat_c62x/adf_c62x_hw_data.c | 87 +------ .../crypto/qat/qat_c62x/adf_c62x_hw_data.h | 12 - .../crypto/qat/qat_common/adf_accel_devices.h | 5 + .../crypto/qat/qat_common/adf_common_drv.h | 9 +- .../crypto/qat/qat_common/adf_gen2_hw_data.c | 98 ++++++++ .../crypto/qat/qat_common/adf_gen2_hw_data.h | 27 ++ drivers/crypto/qat/qat_common/adf_isr.c | 20 +- drivers/crypto/qat/qat_common/adf_pf2vf_msg.c | 238 ++++++++++-------- drivers/crypto/qat/qat_common/adf_pf2vf_msg.h | 9 - drivers/crypto/qat/qat_common/adf_vf2pf_msg.c | 4 +- drivers/crypto/qat/qat_common/adf_vf_isr.c | 6 + .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c | 123 ++++----- .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.h | 14 +- 16 files changed, 361 insertions(+), 397 deletions(-) -- 2.31.1