Re: [PATCH v2 5/5] fbdev: Define framebuffer I/O from Linux' I/O functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>, Robin Murphy <robin.murphy@xxxxxxx>
- Subject: Re: [PATCH v2 5/5] fbdev: Define framebuffer I/O from Linux' I/O functions
- From: Thomas Zimmermann <tzimmermann@xxxxxxx>
- Date: Fri, 28 Apr 2023 15:10:57 +0200
- Cc: linux-fbdev@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, James.Bottomley@xxxxxxxxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, kernel@xxxxxxxxxx, sam@xxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, deller@xxxxxx, chenhuacai@xxxxxxxxxx, javierm@xxxxxxxxxx, vgupta@xxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, arnd@xxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx
- In-reply-to: <CAMuHMdUGjtiAR37L4_e0_p8ee2=gxoUj7+e7rqMLTBK+vpV4yw@mail.gmail.com>
- References: <20230428092711.406-1-tzimmermann@suse.de> <20230428092711.406-6-tzimmermann@suse.de> <430c73f0-45f4-f81e-6506-bc8cc955d936@arm.com> <CAMuHMdUGjtiAR37L4_e0_p8ee2=gxoUj7+e7rqMLTBK+vpV4yw@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0
Hi
Am 28.04.23 um 14:27 schrieb Geert Uytterhoeven:
[...]
In addition, the non-raw variants may do some extras to guarantee
ordering, which you do not need on a frame buffer.
Given this comment, should we declare the fb_() helpers in
<asm-generic/io.h> or <linux/io.h>?
I still don't like the idea of having the functions in <linux/fb.h>. We
have code in DRM that also accesses framebuffer memory (via
memcpy_toio()). It would make sense to use the fb_() helpers, if they
are tailored towards this usecase.
Best regards
Thomas
So I'd go for the __raw_*() variants everywhere.
Gr{oetje,eeting}s,
Geert
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]