Re: [PATCH v2 01/19] fbdev: Prepare generic architecture helpers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Thomas Zimmermann" <tzimmermann@xxxxxxx>, "Geert Uytterhoeven" <geert@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH v2 01/19] fbdev: Prepare generic architecture helpers
- From: "Arnd Bergmann" <arnd@xxxxxxxx>
- Date: Mon, 17 Apr 2023 11:22:24 +0200
- Cc: "Daniel Vetter" <daniel.vetter@xxxxxxxx>, "Helge Deller" <deller@xxxxxx>, "Javier Martinez Canillas" <javierm@xxxxxxxxxx>, "Greg Kroah-Hartman" <gregkh@xxxxxxxxxxxxxxxxxxx>, Linux-Arch <linux-arch@xxxxxxxxxxxxxxx>, linux-fbdev@xxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
- Feedback-id: i56a14606:Fastmail
- In-reply-to: <2b4f75b8-aa83-8e41-7c99-7c8d573c0f31@suse.de>
- References: <20230406143019.6709-1-tzimmermann@suse.de> <20230406143019.6709-2-tzimmermann@suse.de> <CAMuHMdUfViWzPbB+GcGUwxmGNxAohfq71Jed3DzS=Cb+gBzotg@mail.gmail.com> <2b4f75b8-aa83-8e41-7c99-7c8d573c0f31@suse.de>
- User-agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6
On Mon, Apr 17, 2023, at 11:03, Thomas Zimmermann wrote:
> Am 11.04.23 um 10:08 schrieb Geert Uytterhoeven:
>> On Thu, Apr 6, 2023 at 4:30 PM Thomas Zimmermann <tzimmermann@xxxxxxx> wrote:
>>> +#ifndef fb_pgprotect
>>> +#define fb_pgprotect fb_pgprotect
>>> +static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
>>> + unsigned long off)
>>
>> Does this affect any noMMU platforms that relied on fb_pgprotect()
>> doing nothing before?
>> Perhaps the body below should be protected by "#ifdef CONFIG_MMU"?
>
> I cannot conclusively answer this question, but I did some grep'ing
> ('git grep ndef | grep CONFIG_MMU'):
>
> Only the architectures in this patchset provide <asm/fb.h> but nothing
> anywhere uses <asm-generic/fb.h> yet. And of those architectures, only
> arm and m68k have !CONFIG_MMU cases. Those are handled in the rsp
> patches. I think we're good.
Agreed. The generic version is just a more elaborate way to do
nothing here, as the
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
line on nommu just turns into a self-assignment of the same member
that was set the line before.
Arnd
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]