From: Dave Jiang <dave.jiang@intel.com>
To: Fenghua Yu <fenghua.yu@intel.com>, Vinod Koul <vkoul@kernel.org>
Cc: dmaengine@vger.kernel.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] dmaengine: idxd: Add descriptor definitions for 16 bytes of pattern in memory fill operation
Date: Tue, 8 Nov 2022 08:13:57 -0800 [thread overview]
Message-ID: <b7527fc3-8750-69b8-40fa-214962ef50ed@intel.com> (raw)
In-Reply-To: <20221108003944.2095567-2-fenghua.yu@intel.com>
On 11/7/2022 4:39 PM, Fenghua Yu wrote:
> 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 <fenghua.yu@intel.com>
> Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> ---
> 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 {
I don't think the anon struct is needed here. If there are others, that
can be added later with the next patch that needs it.
> + uint64_t pattern_upper;
> + };
> +
> uint8_t op_specific[24];
> };
> } __attribute__((packed));
next prev parent reply other threads:[~2022-11-08 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 0:39 [PATCH 0/3] Add descriptor definitions for a few new DSA operations Fenghua Yu
2022-11-08 0:39 ` [PATCH 1/3] dmaengine: idxd: Add descriptor definitions for 16 bytes of pattern in memory fill operation Fenghua Yu
2022-11-08 16:13 ` Dave Jiang [this message]
2022-11-08 0:39 ` [PATCH 2/3] dmaengine: idxd: Add descriptor definitions for DIX generate operation Fenghua Yu
2022-11-08 0:39 ` [PATCH 3/3] dmaengine: idxd: Add descriptor definitions for translation fetch operation Fenghua Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7527fc3-8750-69b8-40fa-214962ef50ed@intel.com \
--to=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox