RE: [PATCH] dma-direct: use the correct size for dma_set_encrypted()

2022-06-23 Thread Dexuan Cui via iommu
> From: Christoph Hellwig > Sent: Wednesday, June 22, 2022 10:44 PM > To: Dexuan Cui > ... > On Wed, Jun 22, 2022 at 12:14:24PM -0700, Dexuan Cui wrote: > > The third parameter of dma_set_encrypted() is a size in bytes rather than > > the number of pages. > > > > Fixes: 4d0564785bb0 ("dma-direct

[PATCH] dma-direct: use the correct size for dma_set_encrypted()

2022-06-22 Thread Dexuan Cui via iommu
The third parameter of dma_set_encrypted() is a size in bytes rather than the number of pages. Fixes: 4d0564785bb0 ("dma-direct: factor out dma_set_{de,en}crypted helpers") Signed-off-by: Dexuan Cui --- kernel/dma/direct.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/

RE: [RFC PATCH V3 2/2] net: netvsc: Allocate per-device swiotlb bounce buffer for netvsc

2022-05-26 Thread Dexuan Cui via iommu
> From: Tianyu Lan > Sent: Thursday, May 26, 2022 5:01 AM > ... > @@ -119,6 +124,10 @@ static void netvsc_subchan_work(struct work_struct > *w) > nvdev->max_chn = 1; > nvdev->num_chn = 1; > } > + > + /* Allocate boucne buffer.*/

RE: [PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-11-02 Thread Dexuan Cui via iommu
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Wei Hu > Sent: Tuesday, October 22, 2019 4:11 AM > ... > + /* Allocate from CMA */ > + // request_pages = (request_size >> PAGE_SHIFT) + 1; "//" seems rare in Linux kernel code. IMO "/* */" is more common. > +