Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4862581rwr; Mon, 8 May 2023 13:56:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4gx8aO6u+4cP0rtwWmT9x1/iFsvpmFOlKc5O8P6lAzG4niTb8b2jPuVEJ+xEUcE4IFmR4z X-Received: by 2002:a17:903:41ca:b0:1a6:abac:9cc with SMTP id u10-20020a17090341ca00b001a6abac09ccmr14079554ple.66.1683579406591; Mon, 08 May 2023 13:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683579406; cv=none; d=google.com; s=arc-20160816; b=iW2SKG6Qxz1DnITKW/UfohzRdz1MVyXYE7xStdw5m05Oer4l9Mnn1ZSHFGrrnmIH9J ZdfqPq5sVDtgbKRE3pX1ndmG9lxNnfHqwDO8QXvSPUcR+9FpGWHqYk3ct65D5zogXPie pqqbYboZ/o/sst3TT/s3yFQKcVA+OwmL4WTHWw9t2tSm+JaK3AabHt0sYwCjBcsiobx4 fy5otMoJm4pD3Abg2UekXrLmBe4S1bSxuNXh2qAQSBocoURsyynL07kteU5D2tENjlxF 8m22B334JO5wiBCAsY9ER1xkOJRgpsvIOmQMNP+JAkrqwvqsY8hXOWbsXZoUzErkOxhk gK8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=QFP9WhtbudiCSMqQuH58GiD4k9Fn38XJ8vfoggmT+YM=; b=K+j+Cjdy+a7H9HR/Kn/EMePHojB0Edczsyp+98TK5k+/owWRGPvgDdSvZemeo3y8Pl Zkx9KYa4JeOopxfw+VjFvvf1SiIHfnq/56Q5vZMwN6UN8VS+rQFnAeZUjK7jpH4+Z2Uy KK1nI6Hvqc/RSaMUo7X2owaWB/hobQM6MJwgJzrvphG1ETENYMhUXz6BBqAyMaAD63kx aE+oo92FPXtv69P/yx94bnE2jdkTdNclbuSzvj7tdQh1HQgGrss9UseZNEul1BD/i/4w PraK3uiMqAPT6PwKzGFsQPOh4FsQHbwrh8t3RpEaBfAjSv0pvYaqzVSUZiS5NIal/3ML KmVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="V5MUXSN/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a1709026b4c00b001aae82caf75si8364406plt.66.2023.05.08.13.56.32; Mon, 08 May 2023 13:56:46 -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; dkim=pass header.i=@intel.com header.s=Intel header.b="V5MUXSN/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233791AbjEHU43 (ORCPT + 99 others); Mon, 8 May 2023 16:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbjEHU41 (ORCPT ); Mon, 8 May 2023 16:56:27 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8AF986BD; Mon, 8 May 2023 13:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683579370; x=1715115370; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=QFP9WhtbudiCSMqQuH58GiD4k9Fn38XJ8vfoggmT+YM=; b=V5MUXSN/n/e412Wxu9pnrAonkIJkS+DOcagxLBGTEvbbpQ1QaIPU0T2h yq/Yme2IAXBTqlEcGigLgBoeVOx3jb1hXJ+k/rncbV0o3GgHKGvLoeaT3 Sz26fMAIwkGpKgewGhAK0azIfhuS03ykN4mbTCauwaMvWaVZi2pq29f5G t2dNRmijpqKa3UMNUc63uUQStBGOheKfaDvtHS/fAhtV3zIIDkG8b9FTe JldvZWLnPr/h+KlOzpvaCTPbZHSz/ro9Heg62TAt1TXz+dspEjWqD3l6p OgPJkEL2q0hxFsig4v1W1Mb0Jy32YPdENdy5iGPznsS5qKUJ5oU0P8i82 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="413017336" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="413017336" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:55:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="872921730" X-IronPort-AV: E=Sophos;i="5.99,259,1677571200"; d="scan'208";a="872921730" Received: from aadepoju-mobl1.amr.corp.intel.com ([10.212.34.185]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 13:55:56 -0700 Message-ID: <5c2f8cd03b03627ca726ca2782887e501827ea7b.camel@linux.intel.com> Subject: Re: [PATCH v4 06/15] dmaengine: idxd: Add wq private data accessors From: Tom Zanussi To: Dave Jiang , herbert@gondor.apana.org.au, davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org Cc: 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 Date: Mon, 08 May 2023 15:55:55 -0500 In-Reply-To: <2618f557-01a5-f76b-ad09-6eb0871cdf00@intel.com> References: <038db785a87dc59c0073989633eee0205958cb67.1683573703.git.zanussi@kernel.org> <2618f557-01a5-f76b-ad09-6eb0871cdf00@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 2023-05-08 at 13:43 -0700, Dave Jiang wrote: >=20 >=20 > On 5/8/23 1:07 PM, Tom Zanussi wrote: > > Add the accessors set_idxd_wq_private() and idxd_wq_private() > > allowing > > users to set and retrieve a private void * associated with an > > idxd_wq. > >=20 > > The private data is stored in the idxd_dev.conf_dev associated with > > each idxd_wq. > >=20 > > Signed-off-by: Tom Zanussi > > --- > > =C2=A0 drivers/dma/idxd/idxd.h | 10 ++++++++++ > > =C2=A0 1 file changed, 10 insertions(+) > >=20 > > diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h > > index 193552dea224..71cd4ca7d27a 100644 > > --- a/drivers/dma/idxd/idxd.h > > +++ b/drivers/dma/idxd/idxd.h > > @@ -552,6 +552,16 @@ static inline int idxd_wq_refcount(struct > > idxd_wq *wq) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return wq->client_count= ; > > =C2=A0 }; > > =C2=A0=20 > > +static inline void set_idxd_wq_private(struct idxd_wq *wq, void > > *private) >=20 > I would go with the same kernel naming convention: >=20 > idxd_wq_set_private() and idxd_wq_get_private()? Yeah, makes sense, will change. Thanks, Tom > > +{ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0dev_set_drvdata(wq_confdev(w= q), private); > > +} > > + > > +static inline void *idxd_wq_private(struct idxd_wq *wq) > > +{ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return dev_get_drvdata(wq_co= nfdev(wq)); > > +} > > + > > =C2=A0 /* > > =C2=A0=C2=A0 * Intel IAA does not support batch processing. > > =C2=A0=C2=A0 * The max batch size of device, max batch size of wq and