Re: [PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-02-16 Thread Madhavan Srinivasan
On Thu, 30 Jan 2025 12:38:54 -0600, Gaurav Batra wrote: > iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This > notifier call is responsible to add/remove TCEs from the Dynamic DMA Window > (DDW) when TCEs are pre-mapped. TCEs are pre-mapped only for RAM and not > for persis

Re: [PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-02-05 Thread Donet Tom
On 2/5/25 19:28, Gaurav Batra wrote: On 2/5/25 6:43 AM, Donet Tom wrote: On 1/31/25 00:08, Gaurav Batra wrote: iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This notifier call is responsible to add/remove TCEs from the Dynamic DMA Window (DDW) when TCEs are pre-map

Re: [PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-02-05 Thread Donet Tom
On 1/31/25 00:08, Gaurav Batra wrote: iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This notifier call is responsible to add/remove TCEs from the Dynamic DMA Window (DDW) when TCEs are pre-mapped. TCEs are pre-mapped only for RAM and not for persistent memory (pmemory).

Re: [PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-02-05 Thread Gaurav Batra
On 2/5/25 6:43 AM, Donet Tom wrote: On 1/31/25 00:08, Gaurav Batra wrote: iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This notifier call is responsible to add/remove TCEs from the Dynamic DMA Window (DDW) when TCEs are pre-mapped. TCEs are pre-mapped only for RAM

[PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-01-30 Thread Gaurav Batra
iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This notifier call is responsible to add/remove TCEs from the Dynamic DMA Window (DDW) when TCEs are pre-mapped. TCEs are pre-mapped only for RAM and not for persistent memory (pmemory). For DMA buffers in pmemory, TCEs are dyna