|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 01/12] x86: introduce ioremap_wc()
Hi Jan, On 27/05/2021 14:09, Jan Beulich wrote: On 27.05.2021 14:48, Julien Grall wrote:On 27/05/2021 13:30, Jan Beulich wrote: I am open to other name. That's because ioremap() will not vmap() the first MB, am I correct? If so, I am not sure why you want to do that in ioremap() but not ioremap_wc(). Wouldn't this result access the memory with mismatched attributes?In particular you may note that x86'es ioremap() is sort of the equivalent of Arm's ioremap_nocache(), but is different from the new ioremap_wc() by more than just the different PTE attributes. Also I was specifically asked to make ioremap_wc() __init; ioremap() cannot be, because of at least the use from pci_vtd_quirk(). I am not sure this is relevant to the conversation here. I am sure there are other function that would benefits to be __init in one arch but can't in the other. Yet, common code can be beneficials. Plus I'd need to clean up Arm's lack of __iomem if I wanted to foldthings. __iomem is NOP on Xen. So while the annotation may not be consistently used, I don't see the clean-up a requirement to consolidate the code... Or wait - it's declaration and definition which are out of sync there, i.e. a pre-existing issue. We don't usually add __init on both the declaration and definition. So why would it be necessary to add __iomem in both cases? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |