Thread (34 messages) 34 messages, 7 authors, 2025-10-06

Re: [PATCH v1 3/9] parisc: Convert DMA map_page to map_phys interface

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-10-05 23:31:42
Also in: linux-alpha, linux-iommu, linux-mips, lkml, sparclinux, virtualization, xen-devel

On Sun, Oct 05, 2025 at 04:22:59PM +0300, Leon Romanovsky wrote:
quoted hunk ↗ jump to hunk
@@ -582,7 +582,7 @@ ccio_io_pdir_entry(__le64 *pdir_ptr, space_t sid, unsigned long vba,
        ** Grab virtual index [0:11]
        ** Deposit virt_idx bits into I/O PDIR word
        */
-       asm volatile ("lci %%r0(%1), %0" : "=r" (ci) : "r" (vba));
+       asm volatile ("lci %%r0(%1), %0" : "=r" (ci) : "r" (pba));
Don't know how I missed this, but this is the virtual address for the
cache invalidate James mentioned

So the optimal is to drop the lpa() and to use phys_to_virt() to get
vba for this instruction.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help