Thread (4 messages) 4 messages, 3 authors, 2023-11-27

Re: [PATCH] Replace ioremap_cache() with memremap()

From: Nischala Yelchuri <hidden>
Date: 2023-11-27 18:56:16
Also in: dri-devel, linux-hyperv, lkml

Wei, this is one of the Hyper-V code improvement tasks that Michael Kelley identified.
Using memremap() is the right thing to do here. Abhinav Singh (cc'ed) also
tried to fix this earlier as there are sparse warnings with ioremap_cache().

On Sun, Nov 12, 2023 at 11:12:33PM +0000, Wei Liu wrote:
On Wed, Nov 01, 2023 at 09:01:48AM -0700, Nischala Yelchuri wrote:
quoted
Current Hyper-V code for CoCo VMs uses ioremap_cache() to map normal memory as decrypted.
ioremap_cache() is ideally used to map I/O device memory when it has the characteristics
of normal memory. It should not be used to map normal memory as the returned pointer
has the __iomem attribute.
Do you find any real world issues with the current code? How do you
discover these issues?

Thanks,
Wei.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help