[PATCH v17 02/23] arc: mm: Add p?d_leaf() definitions

2019-12-18 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information will be provided by the p?d_leaf() functions/macros. For arc, we only have two levels, so only pmd_leaf()

Re: [RFC PATCH v1] devres: align devres.data strictly only for devm_kmalloc()

2019-12-18 Thread Marc Gonzalez
On 18/12/2019 15:20, Alexey Brodkin wrote: > On 17/12/2019 16:30, Marc Gonzalez wrote: > >> Commit a66d972465d15 ("devres: Align data[] to ARCH_KMALLOC_MINALIGN") >> increased the alignment of devres.data unconditionally. >> >> Some platforms have very strict alignment requirements for DMA-safe

RE: [RFC PATCH v1] devres: align devres.data strictly only for devm_kmalloc()

2019-12-18 Thread Alexey Brodkin
Hi Marc, We sort of expected something like that to happen at some point. Funny enough it's been a year since my change was accepted in v4.20 and only now somebody noticed :) Though quite a few questions below. > Commit a66d972465d15 ("devres: Align data[] to ARCH_KMALLOC_MINALIGN") > increased