From patchwork Mon Mar 6 18:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Zanussi X-Patchwork-Id: 65071 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2023943wrd; Mon, 6 Mar 2023 11:12:40 -0800 (PST) X-Google-Smtp-Source: AK7set/VcV4CjBZ1F9Nq9x4oTeGWpu/x+n3bJxgeuZKYHvMTJ2zNaslTSPoZih1vm+Bh+xBsCXON X-Received: by 2002:a17:906:13d7:b0:881:a3ec:2b43 with SMTP id g23-20020a17090613d700b00881a3ec2b43mr9949522ejc.56.1678129960798; Mon, 06 Mar 2023 11:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678129960; cv=none; d=google.com; s=arc-20160816; b=U0lGtbIikrb+t2Yzru606z/G31wQXaOX1tDJSck/6XfKrfOFxAf1EUgMdnCD69LCkE gT08BGnfHsFkR4zxFyY22BJUMpErGiMRfNkOoZrT4kZmi0HzTcNs6NYZLAHUfLU7lk4C I1SGc1AYDVAmQVqkEiji7FP1vUpG7RuyvsT95zSbN8lHrZzSzdZU/kVJ5l3PBfv9CSYy oGqLUcB1jmYhNVEWHseRZq5xHJ4gwYLvSf7Y9geo8QfImZRO2LIPLivm5vKFKc1Q4ZlD Tms1SGakMZxU6tXDrIQSMNZsoVH2MSLBgN1Cpfi3V/5te8kc1yMxsYf9hTeFUjztceQw NDLw== 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=ebiPbCMh/FAhy1JfsfE0ZLLJ2qGAbv+eKLoFd/22u+TY1MbOGq5ucmzoT6IFSg0VS/ d8Ay2OXAqdCpNPA/j1X7tiha4B4peJkRFE06kQ6/k91uC+Prz4u0VBh5l3mz7gIQggO0 QTSxqPWjRSw3ek85m3vE5MU5ygdMUHEm5TuvnALXQ+t3MNb3KAgDg85oLaqLkOdgO3Hx nt9LBJppPZwBT7JF8Aks4AYClkDkNGGj0yNcTN4KITVyq5AmrK1ndif0As89HrfBOqsq m868hXMt0V0QXLFPAgPGMEcPk2Gbc+i9OeN2VftSz4sJ/Q0DEmXgsi9COjWSAy/Vuq+p Wm3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IGzNEBzs; 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 hc39-20020a17090716a700b008ddf3c18314si13868312ejc.372.2023.03.06.11.12.17; Mon, 06 Mar 2023 11:12:40 -0800 (PST) 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=IGzNEBzs; 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 S230225AbjCFSxV (ORCPT + 99 others); Mon, 6 Mar 2023 13:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjCFSwt (ORCPT ); Mon, 6 Mar 2023 13:52:49 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD766BDFA; Mon, 6 Mar 2023 10:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678128765; x=1709664765; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=T24PujgQYZHqfnkCbqb1TyiF+r+EUpp8fid20iaYFLk=; b=IGzNEBzsssHXOGdryWx89dYwbWQhS0wK2r6eNvLUF7FpVt6WM1Z4Kebb BYUNkNexLu9e3LpO/jEIweFzVurXpIAxdZ3W35aOWZNkkxWqQBcF2al+C b8gTmRpyGjfXqo4SNcHop6BbHrIaPH3q7mPVjnpvvsdc4E2rPwnbi15IP wGTGuz5H5rBetyir/dSgKGfVyXnzZJYXkWo1xlzlDJHBOSjqgXXnS3udL hI4gzqgfZ0ahmmu17Oz2FWGYAM8LE5VQ6AuN2WE25ULgGjqN2WA+anW+W qwgLC4sfOHWXyVq9mTqmOB2K12/A/6kSkaCzvwBY/gU5uyPn5vwkgYhnN Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="398227727" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="398227727" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 10:52:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="626255798" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="626255798" Received: from jeblanco-mobl.amr.corp.intel.com (HELO tzanussi-mobl1.hsd1.il.comcast.net) ([10.212.118.26]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 10:52:44 -0800 From: Tom Zanussi 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, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH 06/16] dmaengine: idxd: Add private_data to struct idxd_wq Date: Mon, 6 Mar 2023 12:52:16 -0600 Message-Id: <20230306185226.26483-7-tom.zanussi@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230306185226.26483-1-tom.zanussi@linux.intel.com> References: <20230306185226.26483-1-tom.zanussi@linux.intel.com> 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 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759646801550520236?= X-GMAIL-MSGID: =?utf-8?q?1759646801550520236?= Add a void * to idxd_wqs for user-defined context data. Signed-off-by: Tom Zanussi --- 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 {