[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7418bfcd-c572-4574-accc-7f2ae117529f@kernel.org>
Date: Sat, 27 Jul 2024 10:56:18 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Roman Kisel <romank@...ux.microsoft.com>, arnd@...db.de,
bhelgaas@...gle.com, bp@...en8.de, catalin.marinas@....com,
dave.hansen@...ux.intel.com, decui@...rosoft.com, haiyangz@...rosoft.com,
hpa@...or.com, kw@...ux.com, kys@...rosoft.com, lenb@...nel.org,
lpieralisi@...nel.org, mingo@...hat.com, rafael@...nel.org, robh@...nel.org,
tglx@...utronix.de, wei.liu@...nel.org, will@...nel.org,
linux-acpi@...r.kernel.org, linux-arch@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-hyperv@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org, x86@...nel.org
Cc: apais@...rosoft.com, benhill@...rosoft.com, ssengar@...rosoft.com,
sunilmut@...rosoft.com, vdso@...bites.dev
Subject: Re: [PATCH v3 6/7] Drivers: hv: vmbus: Get the IRQ number from DT
On 27/07/2024 00:59, Roman Kisel wrote:
> @@ -2338,6 +2372,21 @@ static int vmbus_device_add(struct platform_device *pdev)
> cur_res = &res->sibling;
> }
>
> + /*
> + * Hyper-V always assumes DMA cache coherency, and the DMA subsystem
> + * might default to 'not coherent' on some architectures.
> + * Avoid high-cost cache coherency maintenance done by the CPU.
> + */
> +#if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
> + defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || \
> + defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL)
> +
> + if (!of_property_read_bool(np, "dma-coherent"))
> + pr_warn("Assuming cache coherent DMA transactions, no 'dma-coherent' node supplied\n");
Why do you need this property at all, if it is allways dma-coherent? Are
you supporting dma-noncoherent somewhere?
Best regards,
Krzysztof
Powered by blists - more mailing lists