Thread (1 message) 1 message, 1 author, 2021-06-17

RE: [PATCH] iommu/io-pgtable-arm: Optimize partial walk flush for large scatter-gather list

From: Krishna Reddy <vdumpa@nvidia.com>
Date: 2021-06-17 21:18:39
Also in: linux-arm-msm, linux-iommu, lkml

Instead of flush_ops in init_context hook, perhaps a io_pgtable quirk since this is
related to tlb, probably a bad name but IO_PGTABLE_QUIRK_TLB_INV which will
be set in init_context impl hook and the prev condition in
io_pgtable_tlb_flush_walk()
becomes something like below. Seems very minimal and neat instead of poking
into tlb_flush_walk functions or touching dma strict with some flag?

if (iop->cfg.quirks & IO_PGTABLE_QUIRK_NON_STRICT ||
     iop->cfg.quirks & IO_PGTABLE_QUIRK_TLB_INV) {
         iop->cfg.tlb->tlb_flush_all(iop->cookie);
         return;
}
Can you name it as IO_PGTABLE_QUIRK_TLB_INV_ASID or IO_PGTABLE_QUIRK_TLB_INV_ALL_ASID?

-KR

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help