Message ID | 20230328153535.126223-7-tom.zanussi@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2333698vqo; Tue, 28 Mar 2023 09:09:10 -0700 (PDT) X-Google-Smtp-Source: AK7set8CGCWRojZtT3BPdOnz2mtyWTFYUJ8Fz1CfucGb56JfThqS3VnS8ZqUxrjav93Lh5Sr5Rco X-Received: by 2002:a62:6d87:0:b0:62b:38ed:6507 with SMTP id i129-20020a626d87000000b0062b38ed6507mr12778380pfc.20.1680019749708; Tue, 28 Mar 2023 09:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680019749; cv=none; d=google.com; s=arc-20160816; b=hrXd6894ZtK/tRgxo24rkR6c2icJvXFvI1fv3xDXkxSe2kmBOV4mE2yEV3M66CVTK7 PAFA+YIGl1ZCoF5rvkY+7cT1DWUMHlg1fr7EwOBFy79bSSDTkOoCZG0er/RbGMsLbj6L KQ9QSg5N7bpE0LmjEGKBxBfFKCmytq3tuztMQeaOqwfy79mxilt9LRhaBt+DgaVubmqi vszJArQOnk1ksmDY+9G7i4zQe/i9vo+ghI+36njAjPFkbNyZCPIwlG6Cu5Kgrvg6FZat i6gbVyOrZ7BOABlSoZBA8NHn4kbMU++vdfJvlhjTKdL/4cmD0cysWfdsYZ9KN5do5Wsw hQeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WWbzRMXMJ8cxAN3UhR8xWWH29mL7D3PHrgc/GscIiyo=; b=GXSEZbNzG2okqASkWP55NTBspQexIKi6qrB9HQ3YOIXh/tVTuXE9wYpNYahoQcS6Tv zRm5o1dX0/1eA/wjyT0TqMaMTxhna4IPH6J9+Tnx/U7sM8afmx90PYUQVH4S+BgpkVIO WNV6iOY7WArqlnpPQmexik5apdFhzYxYg7dqq8GFg/IHD3+AV4y6YBDpG5FFmdx1W6MN Kjd8buVK0fC5oo8++t0O/VVnNauKvl1JQ/WXvkt9rqeGZKumMsiIV1mFpHevj2HIsijL P+6P59Rx2HQqOe4egEXfAEgTGT2mGCkkU23YaM/IiYWUiMZjY412Bs4QODmybNC6xLbw VTow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DBxUY6EB; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k196-20020a6284cd000000b0062ae6345c63si10613038pfd.382.2023.03.28.09.08.52; Tue, 28 Mar 2023 09:09:09 -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=@intel.com header.s=Intel header.b=DBxUY6EB; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234064AbjC1Pgj (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Tue, 28 Mar 2023 11:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234051AbjC1PgS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 11:36:18 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C926BF76A; Tue, 28 Mar 2023 08:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680017761; x=1711553761; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=T24PujgQYZHqfnkCbqb1TyiF+r+EUpp8fid20iaYFLk=; b=DBxUY6EBc41zeEjSH0SFJnyOaloIbPZrzKFXIGJadV2LSj1/tTPxZpO3 Mm0ebYNX8sxskIlSIXkip5+VJC7fm9Q1mXLVAGkftu0wdhm9yQkrTh5Pl wWgAslNbt17HrT/Bu4bWIAlnO1AFJMPB3NQnEKFDbsE9iTySAfKRAjFTz 3dS84pJe+/1gBc5dkeCnsEp4nUy8N4HV64Bsd2Bf2JqjQuhfJopp7paXx zej0uNiSWqWRKA94RT21O1+u4npDKr3aPsfbVwwmOJK6yripbY2AZ5GlL hvLgLgPDa5MWva9f3bNCzDvnA27ZymAAUdWqR6pmy1PAAtm+UkpwYMUOY A==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="342192144" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="342192144" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:35:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="683948364" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="683948364" Received: from sdwarak1-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.intel.com) ([10.212.127.200]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:35:54 -0700 From: Tom Zanussi <tom.zanussi@linux.intel.com> To: herbert@gondor.apana.org.au, davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org Cc: dave.jiang@intel.com, tony.luck@intel.com, wajdi.k.feghali@intel.com, james.guilford@intel.com, kanchana.p.sridhar@intel.com, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH v2 06/15] dmaengine: idxd: Add private_data to struct idxd_wq Date: Tue, 28 Mar 2023 10:35:26 -0500 Message-Id: <20230328153535.126223-7-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230328153535.126223-1-tom.zanussi@linux.intel.com> References: <20230328153535.126223-1-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761628389045310219?= X-GMAIL-MSGID: =?utf-8?q?1761628389045310219?= |
Series |
crypto: Add Intel Analytics Accelerator (IAA) crypto compression driver
|
|
Commit Message
Tom Zanussi
March 28, 2023, 3:35 p.m. UTC
Add a void * to idxd_wqs for user-defined context data.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
drivers/dma/idxd/idxd.h | 2 ++
1 file changed, 2 insertions(+)
Comments
On 3/28/23 8:35 AM, Tom Zanussi wrote: > Add a void * to idxd_wqs for user-defined context data. I wonder if we should add accessor functions like get and set private data for the wq. > > Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> > --- > drivers/dma/idxd/idxd.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h > index 719f9f1662ad..e55213b5153e 100644 > --- a/drivers/dma/idxd/idxd.h > +++ b/drivers/dma/idxd/idxd.h > @@ -216,6 +216,8 @@ struct idxd_wq { > u32 max_batch_size; > > char driver_name[WQ_NAME_SIZE + 1]; > + > + void *private_data; > }; > > struct idxd_engine {
On Tue, 2023-03-28 at 09:06 -0700, Dave Jiang wrote: > > > On 3/28/23 8:35 AM, Tom Zanussi wrote: > > Add a void * to idxd_wqs for user-defined context data. > > I wonder if we should add accessor functions like get and set private > data for the wq. > > Yeah, makes sense, will do that in v3. Tom > > Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> > > --- > > drivers/dma/idxd/idxd.h | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h > > index 719f9f1662ad..e55213b5153e 100644 > > --- a/drivers/dma/idxd/idxd.h > > +++ b/drivers/dma/idxd/idxd.h > > @@ -216,6 +216,8 @@ struct idxd_wq { > > u32 max_batch_size; > > > > char driver_name[WQ_NAME_SIZE + 1]; > > + > > + void *private_data; > > }; > > > > struct idxd_engine {
diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index 719f9f1662ad..e55213b5153e 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -216,6 +216,8 @@ struct idxd_wq { u32 max_batch_size; char driver_name[WQ_NAME_SIZE + 1]; + + void *private_data; }; struct idxd_engine {