Re: [PATCH 2/3] fbdev/deferred-io: Support contiguous kernel memory framebuffers
From: Christoph Hellwig
Date: Wed Apr 09 2025 - 06:52:40 EST
On Tue, Apr 08, 2025 at 11:36:45AM -0700, mhkelley58@xxxxxxxxx wrote:
> In any case, for x86 and arm64 today, commit 37b4837959cb9 is not
> sufficient to support contiguous kernel memory framebuffers. The problem
> can be seen with the hyperv_fb driver, which may allocate the framebuffer
> memory using vmalloc() or alloc_pages(), depending on the configuration
> of the Hyper-V guest VM (Gen 1 vs. Gen 2) and the size of the framebuffer.
And neither is this code. You need to provide the functionality at
the DMA layer as users must not poke into the returned DMA coherent
memory.