RE: [RFC][PATCH v2 00/13] iommu/arm-smmu-v3: Add NVIDIA implementation

2021-09-02 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, September 2, 2021 10:45 PM > > On Wed, Sep 01, 2021 at 06:55:55AM +, Tian, Kevin wrote: > > > From: Alex Williamson > > > Sent: Wednesday, September 1, 2021 12:16 AM > > > > > > On Mon, 30 Aug 2021 19:59:10 -0700 > > > Nicolin Chen wrote: > > > > > >

Re: [PATCH v2 3/8] iommu/dma: Disable get_sgtable for granule > PAGE_SIZE

2021-09-02 Thread Robin Murphy
On 2021-09-02 19:19, Sven Peter wrote: On Wed, Sep 1, 2021, at 23:10, Alyssa Rosenzweig wrote: My biggest issue is that I do not understand how this function is supposed to be used correctly. It would work fine as-is if it only ever gets passed buffers allocated by the coherent API but there'

Re: [PATCH v2 3/8] iommu/dma: Disable get_sgtable for granule > PAGE_SIZE

2021-09-02 Thread Sven Peter via iommu
On Wed, Sep 1, 2021, at 23:10, Alyssa Rosenzweig wrote: > > My biggest issue is that I do not understand how this function is supposed > > to be used correctly. It would work fine as-is if it only ever gets passed > > buffers > > allocated by the coherent API but there's not way to check or gua

Re: [GIT PULL] dma-mapping updates for Linux 5.15

2021-09-02 Thread pr-tracker-bot
The pull request you sent on Wed, 1 Sep 2021 13:31:30 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.15 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4a3bb4200a5958d76cc26ebe4db4257efa56812b Thank you! -- Deet-doot-dot, I am a bot. ht

RE: [PATCH V4 08/13] hyperv/vmbus: Initialize VMbus ring buffer for Isolation VM

2021-09-02 Thread Michael Kelley via iommu
From: Tianyu Lan Sent: Thursday, September 2, 2021 6:36 AM > > On 9/2/2021 8:23 AM, Michael Kelley wrote: > >> + } else { > >> + pages_wraparound = kcalloc(page_cnt * 2 - 1, > >> + sizeof(struct page *), > >> + GFP_

Re: [PATCH 0/3] iommu/amd: Fix unable to handle page fault due to AVIC

2021-09-02 Thread Suthikulpanit, Suravee via iommu
On 9/2/2021 12:38 AM, Joerg Roedel wrote: Hi Suravee, On Tue, Aug 31, 2021 at 12:10:27PM -0500, Suthikulpanit, Suravee wrote: Here is an dditional tags for this series: Fixes: 8bda0cfbdc1a ("iommu/amd: Detect and initialize guest vAPIC log") Are there any concerns with this series? No co

RE: [PATCH V4 00/13] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-09-02 Thread Michael Kelley via iommu
From: Christoph Hellwig Sent: Thursday, September 2, 2021 1:00 AM > > On Tue, Aug 31, 2021 at 05:16:19PM +, Michael Kelley wrote: > > As a quick overview, I think there are four places where the > > shared_gpa_boundary must be applied to adjust the guest physical > > address that is used. Ea

Re: [PATCH v4] iommu/of: Fix pci_request_acs() before enumerating PCI devices

2021-09-02 Thread Bjorn Helgaas
[+cc Marek, Anders, Robin] On Fri, Aug 20, 2021 at 02:57:12PM -0500, Bjorn Helgaas wrote: > On Fri, May 21, 2021 at 03:03:24AM +, Wang Xingang wrote: > > From: Xingang Wang > > > > When booting with devicetree, the pci_request_acs() is called after the > > enumeration and initialization of P

Re: [RFC][PATCH v2 00/13] iommu/arm-smmu-v3: Add NVIDIA implementation

2021-09-02 Thread Jason Gunthorpe via iommu
On Wed, Sep 01, 2021 at 06:55:55AM +, Tian, Kevin wrote: > > From: Alex Williamson > > Sent: Wednesday, September 1, 2021 12:16 AM > > > > On Mon, 30 Aug 2021 19:59:10 -0700 > > Nicolin Chen wrote: > > > > > The SMMUv3 devices implemented in the Grace SoC support NVIDIA's > > custom > > > CM

Re: [PATCH V4 08/13] hyperv/vmbus: Initialize VMbus ring buffer for Isolation VM

2021-09-02 Thread Tianyu Lan
On 9/2/2021 8:23 AM, Michael Kelley wrote: + } else { + pages_wraparound = kcalloc(page_cnt * 2 - 1, + sizeof(struct page *), + GFP_KERNEL); + + pages_wraparound[0] = pages; +

Re: [PATCH v4] iommu/of: Fix pci_request_acs() before enumerating PCI devices

2021-09-02 Thread Robin Murphy
On 2021-09-02 13:51, Anders Roxell wrote: On Wed, 1 Sept 2021 at 11:58, Robin Murphy wrote: On 2021-09-01 09:59, Marek Szyprowski wrote: On 21.05.2021 05:03, Wang Xingang wrote: From: Xingang Wang When booting with devicetree, the pci_request_acs() is called after the enumeration and initi

Re: [PATCH v4] iommu/of: Fix pci_request_acs() before enumerating PCI devices

2021-09-02 Thread Anders Roxell
On Wed, 1 Sept 2021 at 11:58, Robin Murphy wrote: > > On 2021-09-01 09:59, Marek Szyprowski wrote: > > On 21.05.2021 05:03, Wang Xingang wrote: > >> From: Xingang Wang > >> > >> When booting with devicetree, the pci_request_acs() is called after the > >> enumeration and initialization of PCI devi

Re: [PATCH V4 00/13] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-09-02 Thread Tianyu Lan
On 9/2/2021 3:59 PM, Christoph Hellwig wrote: On Tue, Aug 31, 2021 at 05:16:19PM +, Michael Kelley wrote: As a quick overview, I think there are four places where the shared_gpa_boundary must be applied to adjust the guest physical address that is used. Each requires mapping a correspond

Re: [PATCH V4 00/13] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-09-02 Thread Christoph Hellwig
On Tue, Aug 31, 2021 at 05:16:19PM +, Michael Kelley wrote: > As a quick overview, I think there are four places where the > shared_gpa_boundary must be applied to adjust the guest physical > address that is used. Each requires mapping a corresponding > virtual address range. Here are the fou

Re: [PATCH V4 00/13] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-09-02 Thread Christoph Hellwig
On Tue, Aug 31, 2021 at 11:20:06PM +0800, Tianyu Lan wrote: >> If so I suspect the best way to allocate them is by not using vmalloc >> but just discontiguous pages, and then use kmap_local_pfn where the >> PFN includes the share_gpa offset when actually copying from/to the >> skbs. >> > When netvs

Re: [PATCH 0/3] iommu/amd: Fix unable to handle page fault due to AVIC

2021-09-02 Thread Joerg Roedel
Hi Suravee, On Tue, Aug 31, 2021 at 12:10:27PM -0500, Suthikulpanit, Suravee wrote: > Here is an dditional tags for this series: > > Fixes: 8bda0cfbdc1a ("iommu/amd: Detect and initialize guest vAPIC log") > > Are there any concerns with this series? No concerns, please add the tag and re-post