Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-17 Thread Fr. Chuck Zmudzinski, C.P.M.
On 11/14/2023 5:20 PM, Stefano Stabellini wrote: > On Tue, 14 Nov 2023, Robin Murphy wrote: >> On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: >> > Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when >> > attaching the Exynos mixer in Linux dom0 on Xen on the Chromebook Snow >> >

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-17 Thread Stefano Stabellini
On Fri, 17 Nov 2023, Fr. Chuck Zmudzinski, C.P.M. wrote: > On 11/14/2023 5:20 PM, Stefano Stabellini wrote: > > On Tue, 14 Nov 2023, Robin Murphy wrote: > >> On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: > >> > Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when > >> > attaching

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-16 Thread Chuck Zmudzinski
On 11/15/2023 12:56 PM, Chuck Zmudzinski wrote: > On 11/14/2023 5:20 PM, Stefano Stabellini wrote: >> On Tue, 14 Nov 2023, Robin Murphy wrote: >>> On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: >>> > Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when >>> > attaching the Exynos

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-16 Thread Stefano Stabellini
My guess is that the issue is one of these two: 1) version mismatch between Xen and Xen tools E.g. Xen from staging and Xen Tools from 4.18 2) missing Xen modules in Linux Dom0 Was /etc/init.d/xencommons run at boot? Is /proc/xen mounted? Are the privcmd, gntdev, xenfs, modules

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-16 Thread Mario Marietto
I've found a similar error on this post,made on 2012 : https://groups.google.com/g/qubes-devel/c/W1lM4ELuVVI and according to what has been asked there,I want to post some further relevant informations to help you to help me to debug the problem : root@devuan-bunsen:/Dati/xen# xl dmesg --->

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-16 Thread Mario Marietto
Hello to everyone. I'm trying to boot Linux 6.1.y as Xen dom0 on the Chromebook xe303c12, aka Snow and configure and start a very basic domU guest,following the Chuck's tutorial,located here : https://github.com/mobile-virt/u-boot-chromebook-xe303c12/tree/chromebook/xen#starting-a-domu-guest

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-15 Thread Mario Marietto
---> So I plan to do some tests and see what DMA ops the other devices use if swiotlb-xen is disabled and also what DMA ops the other devices use when Linux runs on the Chromebook on bare metal without Xen. If these tests show the problem can be fixed by disabling swiotlb-xen with a Kconfig or

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-15 Thread Chuck Zmudzinski
On 11/14/2023 5:20 PM, Stefano Stabellini wrote: > On Tue, 14 Nov 2023, Robin Murphy wrote: >> On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: >> > Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when >> > attaching the Exynos mixer in Linux dom0 on Xen on the Chromebook Snow >> >

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-14 Thread Stefano Stabellini
On Tue, 14 Nov 2023, Robin Murphy wrote: > On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: > > Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when > > attaching the Exynos mixer in Linux dom0 on Xen on the Chromebook Snow > > (and probably on other devices that use the Exynos

Re: [PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-14 Thread Robin Murphy
On 11/11/2023 6:45 pm, Chuck Zmudzinski wrote: Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when attaching the Exynos mixer in Linux dom0 on Xen on the Chromebook Snow (and probably on other devices that use the Exynos mixer): [drm] Exynos DRM: using 1440.fimd device for

[PATCH] arm/mm: add option to prefer IOMMU ops for DMA on Xen

2023-11-11 Thread Chuck Zmudzinski
Enabling the new option, ARM_DMA_USE_IOMMU_XEN, fixes this error when attaching the Exynos mixer in Linux dom0 on Xen on the Chromebook Snow (and probably on other devices that use the Exynos mixer): [drm] Exynos DRM: using 1440.fimd device for DMA mapping operations exynos-drm exynos-drm: