From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eddie James Subject: Re: [PATCH v2 2/7] drivers/soc: Add Aspeed XDMA Engine Driver Date: Fri, 24 May 2019 11:08:57 -0500 Message-ID: <687e4a77-0df1-4982-1edd-9d0559c489fe@linux.vnet.ibm.com> References: <1558383565-11821-1-git-send-email-eajames@linux.ibm.com> <1558383565-11821-3-git-send-email-eajames@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann , Eddie James Cc: linux-aspeed@lists.ozlabs.org, Linux Kernel Mailing List , Rob Herring , Mark Rutland , DTML , Joel Stanley , Andrew Jeffery List-Id: devicetree@vger.kernel.org On 5/21/19 7:02 AM, Arnd Bergmann wrote: > On Mon, May 20, 2019 at 10:19 PM Eddie James wrote: >> diff --git a/include/uapi/linux/aspeed-xdma.h b/include/uapi/linux/aspeed-xdma.h >> new file mode 100644 >> index 0000000..2a4bd13 >> --- /dev/null >> +++ b/include/uapi/linux/aspeed-xdma.h >> @@ -0,0 +1,26 @@ >> +/* SPDX-License-Identifier: GPL-2.0+ */ >> +/* Copyright IBM Corp 2019 */ >> + >> +#ifndef _UAPI_LINUX_ASPEED_XDMA_H_ >> +#define _UAPI_LINUX_ASPEED_XDMA_H_ >> + >> +#include >> + >> +/* >> + * aspeed_xdma_op >> + * >> + * upstream: boolean indicating the direction of the DMA operation; upstream >> + * means a transfer from the BMC to the host >> + * >> + * host_addr: the DMA address on the host side, typically configured by PCI >> + * subsystem >> + * >> + * len: the size of the transfer in bytes; it should be a multiple of 16 bytes >> + */ >> +struct aspeed_xdma_op { >> + __u32 upstream; >> + __u64 host_addr; >> + __u32 len; >> +}; >> + >> +#endif /* _UAPI_LINUX_ASPEED_XDMA_H_ */ > If this is a user space interface, please remove the holes in the > data structure. Surely it's 4-byte aligned and there won't be holes?? > > I don't see how this is actually used in this patch, maybe you meant > the definition to be part of another patch? The structure is used in this patch as an argument to aspeed_xdma_start(). Thanks, Eddie > > Arnd >