Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2716254rwb; Mon, 7 Nov 2022 17:18:11 -0800 (PST) X-Google-Smtp-Source: AMsMyM5XTVZAZkxlUjdYRLxGgjkjEFzsU95ZFiakfp+6jEgs1foK0f1ez9p3+NwYQpmOipusf7vV X-Received: by 2002:a17:907:2bd2:b0:7ad:9ada:a6ca with SMTP id gv18-20020a1709072bd200b007ad9adaa6camr50012436ejc.637.1667870291064; Mon, 07 Nov 2022 17:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667870291; cv=none; d=google.com; s=arc-20160816; b=a10AGZ5Su0i465GUAmlidBDIgoJ8niUhzoNO3gFZZJcMN7y7rEh+QdgejbHO57BtFR Lo1vwPFucLIlrlfFA2CFQUBA70+GEMb1LMVBuP4TOkYblGb6u5XpJyQk5tILKrCd5na+ HT8FuIUvy5Ls2nS+NZr2yXpWSvV8D+727cLqyzcO3iSV2X9lPeWdBF7r/0b78dx/8m1Q Ia4OtzDxZDSPqUNhOG3+rT9t67xKAnugRk23wFA0YLDSiWCg2xGY84wExq+fe2ShgAfI irN9wHFcIT4A6puvH3itjH46UjbRUdzGlTxJZ6UqvQ5fm95EIn9CGwlIwrdCxCqNpv3r ACUQ== 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=mHT4XkL3gzFUWu0dtZ3CU/Kb62vlfZ+aa6Aszpmngww=; b=aqXE9+RPHhyZdYC08PPMhCZxQEPhQK2qMyBiz8zrRz8ApCgs8sNqyINFBdgBi35i2N Ypf2pMGR0H/igihzm2NyhzuTo6ZVagA6k6sGO7ZjT+P3ja9y3rAAWKYjdU6Sax7gGNxB u3UJfTGkENPgqJywY9oJQJwQ3s/WUheaXH9fGHkEsV85jtnN5IdthjRPzguKBC7Ai0kt X0zvH+45LIv6JSirmDG/YbhRhr28QgR0JmY7y7mFb3lstB35hiRHrgxD/qV+EcjyC8Yf yZPCRiG8IBh68Hh8VPvQSJsXSZxszKkNWgsKqFgvHBkVt2f2eV/NqYKGOGuX0SRxNsti KCqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iTZsEW51; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc19-20020a1709071c1300b0073d9c29892csi12708372ejc.939.2022.11.07.17.17.49; Mon, 07 Nov 2022 17:18:11 -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=iTZsEW51; 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 S233073AbiKHAjz (ORCPT + 92 others); Mon, 7 Nov 2022 19:39:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233019AbiKHAjw (ORCPT ); Mon, 7 Nov 2022 19:39:52 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC2413F6F; Mon, 7 Nov 2022 16:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667867991; x=1699403991; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p/aKgQPwXxZNULQAZONJmKS+Fb81oYGXbZJp0mJgn80=; b=iTZsEW51SlMoFbkLQjBuu/OIMmyZlT/VW77R1vyxp/sstt+uBfLfkxyt Io50VA/6VP0NlT1b00AIWzXs0Pd3wKY+O8LQnQ1A7/9Qxr6gj7Fcf7rX9 njxGXk5mN2eNN//AzShJzXexX4dX7ONPNwmQCXUV8OatImINvBx9/UrsT YaqG+AutiJq3eufFT9vOdQ0r3Wu7KJBc+p3CnGMzyh8QThLeKaj9NsUo4 zgPQ4OvqMoEs+4Wsh0wpKWy/jsUy53eQeJWnhWVISOBHL6bjoPotKU64O psoUuPWOf2NQhgjhYkp4LyO7DYgGfjmyB19u4Kw81SMhrUjnqWuafF+Mm g==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="374833334" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="374833334" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 16:39:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="811041351" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="811041351" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga005.jf.intel.com with ESMTP; 07 Nov 2022 16:39:50 -0800 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Fenghua Yu Subject: [PATCH 1/3] dmaengine: idxd: Add descriptor definitions for 16 bytes of pattern in memory fill operation Date: Mon, 7 Nov 2022 16:39:42 -0800 Message-Id: <20221108003944.2095567-2-fenghua.yu@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221108003944.2095567-1-fenghua.yu@intel.com> References: <20221108003944.2095567-1-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 The memory fill operation (0x04) can fill in memory with either 8 bytes or 16 bytes of pattern. To fill in memory with 16 bytes of pattern, the first 8 bytes are provided in pattern lower in bytes 16-23 and the next 8 bytes are in pattern upper in bytes 40-47 in the descriptor. Currently only 8 bytes of pattern is enabled. Add descriptor definitions for pattern lower and pattern upper so that user can use 16 bytes of pattern to fill memory. Signed-off-by: Fenghua Yu Reviewed-by: Dave Jiang --- include/uapi/linux/idxd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index 095299c75828..04a2f6411820 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -179,6 +179,7 @@ struct dsa_hw_desc { uint64_t rdback_addr; uint64_t pattern; uint64_t desc_list_addr; + uint64_t pattern_lower; }; union { uint64_t dst_addr; @@ -243,6 +244,11 @@ struct dsa_hw_desc { uint16_t dest_app_tag_seed; }; + /* Fill */ + struct { + uint64_t pattern_upper; + }; + uint8_t op_specific[24]; }; } __attribute__((packed)); -- 2.32.0