Re: [PATCH 0/8] drm: fb-helper/ssd130x: Add support for DRM_FORMAT_R1

2023-07-17 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: > Hi Javier, > > On Mon, Jul 17, 2023 at 11:33 AM Javier Martinez Canillas > wrote: >> Geert Uytterhoeven writes: >> >> >> penguin in test004 is not displayed correctly. I was expecting that to >> >> >> be >

Re: [PATCH] drm/ssd130x: Fix an oops when attempting to update a disabled plane

2023-07-17 Thread Javier Martinez Canillas
versations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like > that. > -- Linus Torvalds > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 0/8] drm: fb-helper/ssd130x: Add support for DRM_FORMAT_R1

2023-07-17 Thread Javier Martinez Canillas
t check for minimum num_colors and skip that test then? > > The test still works (you did see an ugly black-and-white penguin), doesn't > it? > Fair enough. But when it defaulted to XRGB, it looked better. So I thought that it was a regression. No strong opinion though if the test should be skipped or not. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 0/8] drm: fb-helper/ssd130x: Add support for DRM_FORMAT_R1

2023-07-17 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Sun, Jul 16, 2023 at 3:30 PM Javier Martinez Canillas > wrote: >> Geert Uytterhoeven writes: >> > The native display format of ssd1306 OLED displays is monochrome >> > light-on-dark (R1). This

Re: [PATCH] drm/ssd130x: Fix an oops when attempting to update a disabled plane

2023-07-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Hi > > Am 13.07.23 um 18:32 schrieb Javier Martinez Canillas: [...] >> >> +static const struct drm_mode_config_helper_funcs >> ssd130x_mode_config_helpers = { >> +.atomic_commit_tail = drm_atomic_helper_commi

Re: [PATCH 0/8] drm: fb-helper/ssd130x: Add support for DRM_FORMAT_R1

2023-07-16 Thread Javier Martinez Canillas
YPanStep: 1 YWrapStep : 0 LineLength : 16 Accelerator : No Maybe I'm doing something wrong or misunderstading about how should work? -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

[PATCH v5 3/4] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-14 Thread Javier Martinez Canillas
CONFIG_FB to be disabled (and automatically disabling all the fbdev drivers). Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation layer so these two objects can be compiled out when CONFIG_FB is disabled. Signed-off-by: Javier Martinez Canillas --- Changes in v5: - Fix ifdef

[PATCH v5 4/4] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled

2023-07-14 Thread Javier Martinez Canillas
. Signed-off-by: Javier Martinez Canillas --- (no changes since v3) Changes in v3: - Make the DRM symbol to select FB_CORE if DRM_FBDEV_EMULATION is enabled (Arnd Bergmann). - Also make DRM select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION - Make DRM_FBDEV_EMULATION to depend on DRM instead

[PATCH v5 2/4] fbdev: Move core fbdev symbols to a separate Kconfig file

2023-07-14 Thread Javier Martinez Canillas
-by: Arnd Bergmann Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/video/fbdev/Kconfig | 203 +-- drivers/video/fbdev/core/Kconfig | 202 ++ 2 files changed, 204 insertions(+), 201 deletions(-) create mode 100644

[PATCH v5 1/4] video: Add auxiliary display drivers to Graphics support menu

2023-07-14 Thread Javier Martinez Canillas
The drivers in this subsystem are for character-based LCD displays, which can fall into the same category of the DRM/KMS and fbdev drivers that are located under the "Graphics support" menu. Add auxdisplay there as well. Suggested-by: Thomas Zimmermann Signed-off-by: Javier Martine

[PATCH v5 0/4] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-14 Thread Javier Martinez Canillas
ect FB_CORE (Thomas Zimmermann). Javier Martinez Canillas (4): video: Add auxiliary display drivers to Graphics support menu fbdev: Move core fbdev symbols to a separate Kconfig file fbdev: Split frame buffer support in FB and FB_CORE symbols drm: Make FB_CORE to be selected if DRM fbdev

Re: [PATCH 4/8] drm/ssd130x: Add support for DRM_FORMAT_R1

2023-07-14 Thread Javier Martinez Canillas
the shadow buffer -> native buffer copy, I thought of it as if as a user-visible (well, user-accessible I guess) but you are correct that's not and trying to write to the device will fail anyways. So devm_* should be enough indeed and if there are problems with that, it would be a different bug in the driver to fix. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 4/8] drm/ssd130x: Add support for DRM_FORMAT_R1

2023-07-14 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Fri, Jul 14, 2023 at 12:14 PM Javier Martinez Canillas > wrote: >> Geert Uytterhoeven writes: >> Thanks a lot for your patch, this has been on my TODO for some time! >> >> > The native display

Re: [PATCH 8/8] drm/ssd130x: Switch preferred_bpp/depth to 1

2023-07-14 Thread Javier Martinez Canillas
> --- Reviewed-by: Javier Martinez Canillas Thanks again for the series! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 7/8] drm/fb-helper: Add support for DRM_FORMAT_R1

2023-07-14 Thread Javier Martinez Canillas
lper_find_format() is modified to try to fall back to R1 if C1 > is not supported. > > Signed-off-by: Geert Uytterhoeven > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 6/8] drm/fb-helper: Pass buffer format via drm_fb_helper_surface_size

2023-07-14 Thread Javier Martinez Canillas
this will be useful, maybe do it as a separate patch ? The rest of the patch looks good to me though. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 5/8] drm/client: Convert drm_mode_create_dumb() to drm_mode_addfb2()

2023-07-14 Thread Javier Martinez Canillas
orth between buffer > format and bpp/depth, and the function can just call drm_mode_addfb2() > directly instead. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/gpu/drm/drm_client.c | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > Nice cleanup! R

Re: [PATCH 4/8] drm/ssd130x: Add support for DRM_FORMAT_R1

2023-07-14 Thread Javier Martinez Canillas
t attempt to update planes for disabled CRTCs ? It's OK for me to be paranoid though, specially after the other issue that you found. So I'll let you decide if you think is worth to keep the check. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH/RFC 3/8] drm/ssd130x: Bail out early if data_array is not yet available

2023-07-14 Thread Javier Martinez Canillas
ate+0x26c/0x284 > drm_atomic_helper_commit_planes+0xfc/0x27c > > Work around that by checking if data_array is valid. > > Obviously this needs a better fix... > This should be fixed by [0] so we can drop this patch from the set. [0]: https://lists.freedesktop.org/archives/dri-devel/2023-July/413630.html -

Re: [PATCH 2/8] drm/dumb-buffers: Fix drm_mode_create_dumb() for bpp < 8

2023-07-14 Thread Javier Martinez Canillas
MAX / args->width) > return -EINVAL; > - stride = cpp * args->width; > + stride = DIV_ROUND_UP(args->bpp * args->width, 8); > if (args->height > U32_MAX / stride) > return -EINVAL; > Good catch. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 1/8] drm/ssd130x: Fix pitch calculation in ssd130x_fb_blit_rect()

2023-07-14 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: > Hi Javier, > > On Fri, Jul 14, 2023 at 11:34 AM Javier Martinez Canillas > wrote: >> Geert Uytterhoeven writes: >> > The page height must be taken into account only for vertical coordinates >> > and heights, not f

Re: [PATCH 1/8] drm/ssd130x: Fix pitch calculation in ssd130x_fb_blit_rect()

2023-07-14 Thread Javier Martinez Canillas
rm_rect_width(rect), 2) instead since the width is not 8 in that case. So I would prefer to skip this patch from your set, because otherwise we will need to revert it when adding support for SSD132x controllers. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] drm/ssd130x: Fix an oops when attempting to update a disabled plane

2023-07-14 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Thu, Jul 13, 2023 at 6:32 PM Javier Martinez Canillas > wrote: >> Geert reports that the following NULL pointer dereference happens for him >> after commit 49d7d581ceaf ("drm/ssd130x: Don't allocate bu

Re: [PATCH v7 5/8] drm/bridge: sii902x: Support format negotiation hooks

2023-07-14 Thread Javier Martinez Canillas
merged in drm-misc-next works. Thanks! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 4/5] drm/ssd130x: Don't allocate buffers on each plane update

2023-07-13 Thread Javier Martinez Canillas
epth = 24; >> drm->mode_config.funcs = _mode_config_funcs; >> + drm->mode_config.helper_private = _mode_config_helpers; >> >> /* Primary plane */ >> > > Thanks, that works! > Thanks for testing! Proper patch sent: https://lists.freedesktop.org/archives/dri-devel/2023-July/413630.html -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

[PATCH] drm/ssd130x: Fix an oops when attempting to update a disabled plane

2023-07-13 Thread Javier Martinez Canillas
ut instead the drm_atomic_helper_commit_tail_rpm() function that doesn't attempt to commit the atomic state for planes related to inactive CRTCs. Reported-by: Geert Uytterhoeven Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 5 + 1 file changed, 5 insertions(+)

Re: [PATCH 00/17] drm: rename various struct members "dev" -> "drm"

2023-07-13 Thread Javier Martinez Canillas
Maxime Ripard writes: > On Thu, Jul 13, 2023 at 04:10:23PM +0200, Uwe Kleine-König wrote: [...] >> - Javier Martinez Canillas >>Generally in favour (also via irc) >>Wants a single patch >>naming: drm > drm_dev > dev > > drm-misc driver ma

Re: [PATCH v2 4/5] drm/ssd130x: Don't allocate buffers on each plane update

2023-07-13 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Thu, Jul 13, 2023 at 3:21 PM Javier Martinez Canillas > wrote: >> Geert Uytterhoeven writes: >> > On Fri, Jun 9, 2023 at 7:09 PM Javier Martinez Canillas >> > wrote: >> >> The re

Re: [PATCH v2 4/5] drm/ssd130x: Don't allocate buffers on each plane update

2023-07-13 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Fri, Jun 9, 2023 at 7:09 PM Javier Martinez Canillas > wrote: >> The resolutions for these panels are fixed and defined in the Device Tree, >> so there's no point to allocate the buffers on each plane upd

Re: [PATCH] drm/ssd130x: Change pixel format used to compute the buffer size

2023-07-13 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Am 13.07.23 um 10:58 schrieb Javier Martinez Canillas: >> The commit e254b584dbc0 ("drm/ssd130x: Remove hardcoded bits-per-pixel in >> ssd130x_buf_alloc()") used a pixel format info instead of a hardcoded bpp >> to calculate the size o

[PATCH] drm/ssd130x: Change pixel format used to compute the buffer size

2023-07-13 Thread Javier Martinez Canillas
ld be used. Suggested-by: Geert Uytterhoeven Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c index b3dc1ca9dc10..afb08a8aa

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Javier Martinez Canillas
gt; > > detect. >> > >> > Really? >> >> FWIW, I agree with Christian here. >> FWIW I agree with Christian and Maxime as well. It's easier to review and merge as a single patch, and also makes the resulting git history better. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 2/2] drm/client: Fix memory leak in drm_client_modeset_probe

2023-07-11 Thread Javier Martinez Canillas
> kthread+0x29f/0x340 > ret_from_fork+0x1f/0x30 > > cc: > Reported-by: Zhang Yi > Signed-off-by: Jocelyn Falempe > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 1/2] drm/client: Fix memory leak in drm_client_target_cloned

2023-07-11 Thread Javier Martinez Canillas
8d770833>] ret_from_fork+0x1f/0x30 > unreferenced object 0xff11000333089a00 (size 128): > > cc: > Fixes: 1d42bbc8f7f9 ("drm/fbdev: fix cloning on fbcon") > Reported-by: Zhang Yi > Signed-off-by: Jocelyn Falempe > --- The patch looks good to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v4 3/5] drm/arm: Make ARM devices menu depend on DRM

2023-07-10 Thread Javier Martinez Canillas
Liviu Dudau writes: Hello Liviu, > On Tue, Jul 04, 2023 at 01:05:27AM +0200, Javier Martinez Canillas wrote: >> Otherwise if CONFIG_DRM is disabled, menuconfig will show an empty menu. >> >> Signed-off-by: Javier Martinez Canillas > > Acked-by: Liviu Dudau > T

Re: [PATCH v7 0/8] drm/tidss: Use new connector model for tidss

2023-07-10 Thread Javier Martinez Canillas
separately built >>> without any issue, the tidss functionality will break if only the bridge >>> patches get picked up, and not the tidss. >>> >>> Would it be possible for you to pick all the patches together once Tomi >>> acks the tidss patch? >> >> Sure > > I think this looks fine. For the series: > > Reviewed-by: Tomi Valkeinen > It seems this series fell through the cracks? Since you both already reviewed the patches, I've just pushed all the set to drm-misc-next. Thanks all! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] drm/client: Send hotplug event after registering a client

2023-07-10 Thread Javier Martinez Canillas
l client") > Fixes: 9e69bcd88e45 ("drm/omapdrm: Implement fbdev emulation as in-kernel > client") > Fixes: e317a69fe891 ("drm/radeon: Implement client-based fbdev emulation") > Fixes: 71ec16f45ef8 ("drm/tegra: Implement fbdev emulation as in-kernel >

Re: [PATCH] fbdev/hyperv_fb: Include

2023-07-10 Thread Javier Martinez Canillas
") > Signed-off-by: Thomas Zimmermann > Cc: "K. Y. Srinivasan" (supporter:Hyper-V/Azure CORE AND > DRIVERS) > Cc: Haiyang Zhang (supporter:Hyper-V/Azure CORE AND > DRIVERS) > Cc: Wei Liu (supporter:Hyper-V/Azure CORE AND DRIVERS) > Cc: Dexuan Cui (supporter:Hype

Re: [PATCH 2/4] vgacon: rework screen_info #ifdef checks

2023-07-07 Thread Javier Martinez Canillas
"Arnd Bergmann" writes: > On Fri, Jul 7, 2023, at 15:40, Javier Martinez Canillas wrote: [...] >> And this is only used by mdacon (not supported by ia64), vgacon and >> vga16fb (not supported by ia64 either). >> >> So this could just be guarded just by CO

Re: [PATCH 4/4] vgacon, arch/*: remove unused screen_info definitions

2023-07-07 Thread Javier Martinez Canillas
gt; console driver in an allmodconfig build. > > Now that vgacon no longer builds on these architectures, remove the > stale definitions. > > Signed-off-by: Arnd Bergmann > --- Nice cleanup! Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 3/4] dummycon: limit Arm console size hack to footbridge

2023-07-07 Thread Javier Martinez Canillas
o limit the amount of surprises on Arm, change the Kconfig default > to the previously used 80x30 setting instead of the usual 80x25. > > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 2/4] vgacon: rework screen_info #ifdef checks

2023-07-07 Thread Javier Martinez Canillas
ot;[IA64-SGI] pcdp: add PCDP pci interface support") ? > unsigned long vga_console_membase; And this is only used by mdacon (not supported by ia64), vgacon and vga16fb (not supported by ia64 either). So this could just be guarded just by CONFIG_VGA_CONSOLE for ia64 ? The rest of the patch looks g

Re: [PATCH 1/4] vgacon: rework Kconfig dependencies

2023-07-07 Thread Javier Martinez Canillas
d parts of the x86 system architecture. > > Signed-off-by: Arnd Bergmann > --- Both our explanation and changes look good to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v3 05/12] drm/tegra: Store pointer to vmap'ed framebuffer in screen_buffer

2023-07-07 Thread Javier Martinez Canillas
ding > Signed-off-by: Thomas Zimmermann > Cc: Thierry Reding > Cc: Mikko Perttunen > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 11/11] fbdev: Harmonize some comments in

2023-07-06 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Make the comments for I/O, system and DMA memory say the same. > Makes the header file's structure more obvious. > > Signed-off-by: Thomas Zimmermann > Suggested-by: Javier Martinez Canillas > --- Looks good to me. Thanks! R

Re: [PATCH 06/10] drm/exynos: Set fbdev flags

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Hi > > Am 05.07.23 um 10:49 schrieb Javier Martinez Canillas: [...] >> >> The #define FBINFO_FLAG_DEFAULT FBINFO_DEFAULT seems to be there since >> the >> original v2.6.12-rc2 git import in commit 1da177e4c3f4, so is h

Re: [PATCH 04/10] drm/tegra: Set fbdev flags

2023-07-05 Thread Javier Martinez Canillas
ARN_ONCE if the _READS_FAST flag has not been set. > Agreed. Maybe you could add those warn (or at least info or debug?) even if not all drivers have been annotated correctly. That way people can be aware that is missing and fix if there are remaining drivers. > Best regards > Thomas > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 01/10] fbdev: Add fb_ops init macros for framebuffers in DMA-able memory

2023-07-05 Thread Javier Martinez Canillas
> Sure, I had the same thought. I think I'll rather change the existing > comments a bit. > Yes, that works for me too. Thanks! > Best regards > Thomas > > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 10/10] fbdev: Remove FB_DEFAULT_SYS_OPS

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Remove the initializer macro FB_DEFAULT_SYS_OPS and its helper macro > __FB_DEFAULT_SYS_OPS_MMAP. There are no users. > > Signed-off-by: Thomas Zimmermann > Cc: Helge Deller (maintainer:FRAMEBUFFER LAYER) > --- Reviewed-by: Javier Martinez C

Re: [PATCH 09/10] drm/omapdrm: Set fbdev flags

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Set fbdev default flags FBNFO_DEFAULT and mark the framebuffer with FBINFO_DEFAULT. I noticed that the same typo is in patch 04/10 as well. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 08/10] drm/omapdrm: Use GEM mmap for fbdev emulation

2023-07-05 Thread Javier Martinez Canillas
alkeinen > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 07/10] drm/omapdrm: Set VM flags in GEM-object mmap function

2023-07-05 Thread Javier Martinez Canillas
t(>vma_node); > vma_set_file(vma, obj->filp); > > vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); > } > > + vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot); > + > return 0; > } > I think

Re: [PATCH 06/10] drm/exynos: Set fbdev flags

2023-07-05 Thread Javier Martinez Canillas
t;flags = FBINFO_FLAG_DEFAULT; The #define FBINFO_FLAG_DEFAULT FBINFO_DEFAULT seems to be there since the original v2.6.12-rc2 git import in commit 1da177e4c3f4, so is hard to know why was introduced. FBINFO_DEFAULT is more used, I will just stick to that: $ git grep FBINFO_DEFAULT | wc -l 92 $

Re: [PATCH 05/10] drm/exynos: Use fbdev DMA helpers

2023-07-05 Thread Javier Martinez Canillas
? I would just drop it, since it might confuse the different kernel stable scripts that attempt to backport by looking at this tag. As you said, it has been present from the beginning of this driver. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 04/10] drm/tegra: Set fbdev flags

2023-07-05 Thread Javier Martinez Canillas
uess you are doing in two assignments to be consistent with drm_fbdev_dma.c ? I was just curious about the rationale for setting the flags in two steps. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 03/10] drm/tegra: Use fbdev DMA helpers

2023-07-05 Thread Javier Martinez Canillas
d-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 02/10] drm/fbdev-dma: Use fbdev DMA helpers

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Use fbdev's DMA helpers for fbdev-dma. They are equivalent to the > previously used system-memory helpers, so no functional changes here. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Ma

Re: [PATCH 01/10] fbdev: Add fb_ops init macros for framebuffers in DMA-able memory

2023-07-05 Thread Javier Martinez Canillas
ULT_DMA_OPS_DRAW \ > + .fb_fillrect= sys_fillrect, \ > + .fb_copyarea= sys_copyarea, \ > + .fb_imageblit = sys_imageblit > + Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 10/12] fbdev/core: Use fb_is_primary_device() in fb_firmware_edid()

2023-07-05 Thread Javier Martinez Canillas
enough and the check is redundant. Still, I think that this change should be documented in your commit message. With that change, Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 08/12] drivers/firmware: Remove trailing whitespaces

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix coding style. No functional changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 05/12] arch: Remove trailing whitespaces

2023-07-04 Thread Javier Martinez Canillas
Kirill A. Shutemov" > Cc: Anshuman Khandual > Cc: Niklas Schnelle > Cc: Zi Yan > Cc: "Mike Rapoport (IBM)" > Cc: Peter Zijlstra > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 04/12] staging/sm750fb: Do not include

2023-07-04 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The sm750fb driver does not need anything from . > Remove the include statements. > > Signed-off-by: Thomas Zimmermann > Cc: Sudip Mukherjee > Cc: Teddy Wang > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Ca

Re: [PATCH 03/12] sysfb: Do not include from sysfb header

2023-07-04 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The header file does not need anything from > . Declare struct screen_info and remove > the include statements. > > Signed-off-by: Thomas Zimmermann > Cc: Ard Biesheuvel > Cc: Hans de Goede > Cc: Javier Martinez Canillas > --- R

Re: [PATCH 02/12] fbdev/sm712fb: Do not include

2023-07-04 Thread Javier Martinez Canillas
Sudip Mukherjee > Cc: Teddy Wang > Cc: Helge Deller > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 01/12] efi: Do not include from EFI header

2023-07-04 Thread Javier Martinez Canillas
heuvel > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v4 1/5] video: Add auxiliary display drivers to Graphics support menu

2023-07-04 Thread Javier Martinez Canillas
rce outside of the if block, are you OK with this patch? >> >> I think Thomas is correct and would make sense to put the character-based >> drivers next to the DRM and fbdev drivers since all these are for display. > > Yes, makes sense to me. > Good to know. Thanks! > Gr{oetje,eeting}s, -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v4 2/5] fbdev: Move core fbdev symbols to a separate Kconfig file

2023-07-04 Thread Javier Martinez Canillas
Andy Shevchenko writes: > On Tue, Jul 04, 2023 at 01:05:26AM +0200, Javier Martinez Canillas wrote: >> The drivers/video/fbdev/Kconfig defines both symbols for fbdev drivers and >> core fbdev symbols, that can be enabled independently of the fbdev drivers. >> >> Sp

Re: [PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-04 Thread Javier Martinez Canillas
Hello Andy, Andy Shevchenko writes: > On Tue, Jul 04, 2023 at 01:05:28AM +0200, Javier Martinez Canillas wrote: >> Currently the CONFIG_FB option has to be enabled even if no legacy fbdev >> drivers are needed (e.g: only to have support for framebuffer consoles). >> >

Re: [PATCH v4 1/5] video: Add auxiliary display drivers to Graphics support menu

2023-07-04 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: Hello Geert, > Hi Javier, > > On Tue, Jul 4, 2023 at 1:05 AM Javier Martinez Canillas > wrote: >> The drivers in this subsystem are for character-based LCD displays, which >> can fall into the same category of the DRM/KMS and fbdev drivers t

[PATCH v4 5/5] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled

2023-07-03 Thread Javier Martinez Canillas
. Signed-off-by: Javier Martinez Canillas --- (no changes since v3) Changes in v3: - Make the DRM symbol to select FB_CORE if DRM_FBDEV_EMULATION is enabled (Arnd Bergmann). - Also make DRM select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION - Make DRM_FBDEV_EMULATION to depend on DRM instead

[PATCH v4 2/5] fbdev: Move core fbdev symbols to a separate Kconfig file

2023-07-03 Thread Javier Martinez Canillas
-by: Arnd Bergmann Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/video/fbdev/Kconfig | 203 +-- drivers/video/fbdev/core/Kconfig | 202 ++ 2 files changed, 204 insertions(+), 201 deletions(-) create mode 100644

[PATCH v4 1/5] video: Add auxiliary display drivers to Graphics support menu

2023-07-03 Thread Javier Martinez Canillas
The drivers in this subsystem are for character-based LCD displays, which can fall into the same category of the DRM/KMS and fbdev drivers that are located under the "Graphics support" menu. Add auxdisplay there as well. Suggested-by: Thomas Zimmermann Signed-off-by: Javier Martine

[PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-03 Thread Javier Martinez Canillas
CONFIG_FB to be disabled (and automatically disabling all the fbdev drivers). Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation layer so these two objects can be compiled out when CONFIG_FB is disabled. Signed-off-by: Javier Martinez Canillas --- Changes in v4: - Fix menuconfig

[PATCH v4 3/5] drm/arm: Make ARM devices menu depend on DRM

2023-07-03 Thread Javier Martinez Canillas
Otherwise if CONFIG_DRM is disabled, menuconfig will show an empty menu. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/arm/Kconfig b/drivers/gpu/drm/arm/Kconfig index

[PATCH v4 0/5] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-03 Thread Javier Martinez Canillas
ake CONFIG_DRM_FBDEV_EMULATION to select FB_CORE (Thomas Zimmermann). Javier Martinez Canillas (5): video: Add auxiliary display drivers to Graphics support menu fbdev: Move core fbdev symbols to a separate Kconfig file drm/arm: Make ARM devices menu depend on DRM fbdev: Split frame buffer sup

Re: [PATCH v3 1/3] drm: Improve Kconfig symbol prompt and help texts

2023-07-03 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Hi Javier > > Am 02.07.23 um 21:15 schrieb Javier Martinez Canillas: [...] >> - Kernel-level support for the Direct Rendering Infrastructure (DRI) >> - introduced in XFree86 4.0. If you say Y here, you need to select >> -

Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-03 Thread Javier Martinez Canillas
e menuconfig ends broken (no sub-level for fbdev drivers anymore). I was talking with Arnd and Geert about this. I think that will pause this series and instead first focus on cleaning up the fbdev Kconfig, then it should be easier to add the FB_CORE on top of that. > Best regards > Thomas > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-03 Thread Javier Martinez Canillas
Andy Shevchenko writes: > On Fri, Jun 30, 2023 at 10:29:20PM +0200, Javier Martinez Canillas wrote: >> Andy Shevchenko writes: >> > On Fri, Jun 30, 2023 at 07:38:01PM +0200, Javier Martinez Canillas wrote: >> >> Andy Shevchenko writes: >> >> > On

Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-03 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, Thanks for your review. > Hi > > Am 01.07.23 um 23:44 schrieb Javier Martinez Canillas: [...] >> >> +menuconfig FB_CORE >> +tristate "Core support for frame buffer devices" > > With the text,

[PATCH v3 3/3] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled

2023-07-02 Thread Javier Martinez Canillas
. Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Make the DRM symbol to select FB_CORE if DRM_FBDEV_EMULATION is enabled (Arnd Bergmann). - Also make DRM select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION - Make DRM_FBDEV_EMULATION to depend on DRM instead of DRM_KMS_HELPER. Changes

[PATCH v3 2/3] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Javier Martinez Canillas
CONFIG_FB to be disabled (and automatically disabling all the fbdev drivers). Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation layer so these two objects can be compiled out when CONFIG_FB is disabled. Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Really make

[PATCH v3 1/3] drm: Improve Kconfig symbol prompt and help texts

2023-07-02 Thread Javier Martinez Canillas
The current text were not changed since the original Linux-2.6.12-rc2 git import. Let's improve it and make that more aligned with the DRM/KMS docs. Suggested-by: Geert Uytterhoeven Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/Kconfig | 22

[PATCH v3 0/3] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-02 Thread Javier Martinez Canillas
lect FB_CORE (Thomas Zimmermann). Javier Martinez Canillas (3): drm: Improve Kconfig symbol prompt and help texts fbdev: Split frame buffer support in FB and FB_CORE symbols drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled arch/x86/Makefile | 2 +- arc

Re: [PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-02 Thread Javier Martinez Canillas
it may be a possible combination. Not sure how useful what would be in practice but we shouldn't restrict that IMO. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 2/2] drm: Make fbdev emulation select FB_CORE instead of depends on FB

2023-07-02 Thread Javier Martinez Canillas
Geert Uytterhoeven writes: > Hi Arnd, > > On Sun, Jul 2, 2023 at 12:07 AM Arnd Bergmann wrote: >> On Sat, Jul 1, 2023, at 23:44, Javier Martinez Canillas wrote: >> > Now that the fbdev core has been split in FB_CORE and FB, make DRM fbdev >> > emulatio

[PATCH v2 2/2] drm: Make fbdev emulation select FB_CORE instead of depends on FB

2023-07-01 Thread Javier Martinez Canillas
Now that the fbdev core has been split in FB_CORE and FB, make DRM fbdev emulation layer to just select the former. This allows to disable the CONFIG_FB option if is not needed, which will avoid the need to explicitly disable each of the legacy fbdev drivers. Signed-off-by: Javier Martinez

[PATCH v2 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-07-01 Thread Javier Martinez Canillas
RE (Thomas Zimmermann). Javier Martinez Canillas (2): fbdev: Split frame buffer support in FB and FB_CORE symbols drm: Make fbdev emulation select FB_CORE instead of depends on FB arch/x86/Makefile | 2 +- arch/x86/video/Makefile | 2 +- drivers/gpu/drm/Kconfig

[PATCH v2 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-07-01 Thread Javier Martinez Canillas
CONFIG_FB to be disabled (and automatically disabling all the fbdev drivers). Signed-off-by: Javier Martinez Canillas --- Changes in v2: - Keep "depends on FB" for FB_DDC, FB_HECUBA, FB_SVGALIB, FB_MACMODES, FB_BACKLIGHT, FB_MODE_HELPERS and FB_TILEBLITTING (Arnd Bergmann). - Don't chang

Re: [PATCH 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-06-30 Thread Javier Martinez Canillas
Andy Shevchenko writes: > On Fri, Jun 30, 2023 at 07:38:01PM +0200, Javier Martinez Canillas wrote: >> Andy Shevchenko writes: >> > On Fri, Jun 30, 2023 at 12:51:02AM +0200, Javier Martinez Canillas wrote: >> >> This patch series splits the fbdev core su

Re: [PATCH 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-06-30 Thread Javier Martinez Canillas
Andy Shevchenko writes: Hello Andy, > On Fri, Jun 30, 2023 at 12:51:02AM +0200, Javier Martinez Canillas wrote: >> This patch series splits the fbdev core support in two different Kconfig >> symbols: FB and FB_CORE. The motivation for this is to allow CONFIG_FB to >> be

Re: [PATCH 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-06-30 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, Thanks a lot for your review. > Hi Javier > > Am 30.06.23 um 00:51 schrieb Javier Martinez Canillas: >> This patch series splits the fbdev core support in two different Kconfig >> symbols: FB and FB_CORE. The motivation for this

Re: [PATCH 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-06-30 Thread Javier Martinez Canillas
"Arnd Bergmann" writes: > On Fri, Jun 30, 2023, at 12:51, Javier Martinez Canillas wrote: >> "Arnd Bergmann" writes: >> >>>> @@ -59,7 +71,7 @@ config FIRMWARE_EDID >>>> >>>> config FB_DEVICE >>>>boo

Re: [PATCH 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-06-30 Thread Javier Martinez Canillas
"Arnd Bergmann" writes: Hello Arnd, Thanks for your review! > On Fri, Jun 30, 2023, at 00:51, Javier Martinez Canillas wrote: >> Currently the CONFIG_FB option has to be enabled even if no legacy fbdev >> drivers are needed (e.g: only to have support for framebuffer

[PATCH 1/2] fbdev: Split frame buffer support in FB and FB_CORE symbols

2023-06-29 Thread Javier Martinez Canillas
to be disabled (and automatically disabling all fbdev drivers). Signed-off-by: Javier Martinez Canillas --- arch/x86/Makefile | 2 +- arch/x86/video/Makefile | 2 +- drivers/video/console/Kconfig | 2 +- drivers/video/fbdev/Kconfig | 62

[PATCH 2/2] drm: Make fbdev emulation depend on FB_CORE instead of FB

2023-06-29 Thread Javier Martinez Canillas
Now that the fbdev core has been split in FB_CORE and FB, make DRM fbdev emulation layer to just depend on the former. This allows to disable the CONFIG_FB option if is not needed, which will avoid the need to explicitly disable each of the legacy fbdev drivers. Signed-off-by: Javier Martinez

[PATCH 0/2] Allow disabling all native fbdev drivers and only keeping DRM emulation

2023-06-29 Thread Javier Martinez Canillas
on the new FB_CORE symbol instead of FB. Javier Martinez Canillas (2): fbdev: Split frame buffer support in FB and FB_CORE symbols drm: Make fbdev emulation depend on FB_CORE instead of FB arch/x86/Makefile | 2 +- arch/x86/video/Makefile | 2 +- drivers/gpu/drm

Re: [PATCH v4 2/8] drm/atomic: Add support for mouse hotspots

2023-06-28 Thread Javier Martinez Canillas
ling atomic modesetting for virtualized >> > drivers in the userspace. >> > >> > Signed-off-by: Zack Rusin >> > Cc: Maarten Lankhorst >> > Cc: Maxime Ripard >> > Cc: Thomas Zimmermann >> > Cc: David Airlie >> > Cc: Daniel Vetter

Re: [PATCH v3 2/8] drm/atomic: Add support for mouse hotspots

2023-06-27 Thread Javier Martinez Canillas
Pekka Paalanen writes: > On Tue, 27 Jun 2023 10:56:39 +0200 > Javier Martinez Canillas wrote: > [...] >> > Hi Zack, >> > >> > where is the UAPI documentation for these new properties? I mean >> > something ending up in the HTML docs like what o

Re: [PATCH v3 8/8] drm: Introduce DRM_CLIENT_CAP_VIRTUALIZED_CURSOR_PLANE

2023-06-27 Thread Javier Martinez Canillas
dealing with those extra restrictions. > > To do that introduce DRM_CLIENT_CAP_VIRTUALIZED_CURSOR_PLANE which I agree with Pekka that DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT is a better name for this capability. I don't have a strong opinion though so I am also OK with the chosen name. Reviewed-by:

Re: [PATCH v3 7/8] drm: Remove legacy cursor hotspot code

2023-06-27 Thread Javier Martinez Canillas
n > Cc: David Airlie > Cc: Daniel Vetter > --- > drivers/gpu/drm/drm_plane.c | 3 --- > include/drm/drm_framebuffer.h | 12 > 2 files changed, 15 deletions(-) > Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

<    1   2   3   4   5   6   7   8   9   10   >