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

Re: [PATCH v3 6/8] drm/virtio: Use the hotspot properties from cursor planes

2023-06-27 Thread Javier Martinez Canillas
> Cc: David Airlie > Cc: Gurchetan Singh > Cc: Chia-I Wu > Cc: Daniel Vetter > Cc: virtualizat...@lists.linux-foundation.org > --- > drivers/gpu/drm/virtio/virtgpu_plane.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Javier Martinez Canillas

Re: [PATCH v3 5/8] drm/vboxvideo: Use the hotspot properties from cursor planes

2023-06-27 Thread Javier Martinez Canillas
Airlie > Cc: Daniel Vetter > --- > drivers/gpu/drm/vboxvideo/vbox_mode.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v3 4/8] drm/qxl: Use the hotspot properties from cursor planes

2023-06-27 Thread Javier Martinez Canillas
: Dave Airlie > Cc: Daniel Vetter > Cc: virtualizat...@lists.linux-foundation.org > Cc: spice-de...@lists.freedesktop.org > --- > drivers/gpu/drm/qxl/qxl_display.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) > Reviewed-by: Javier Martinez Canillas

Re: [PATCH v3 3/8] drm/vmwgfx: Use the hotspot properties from cursor planes

2023-06-27 Thread Javier Martinez Canillas
ombasawala > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

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

2023-06-27 Thread Javier Martinez Canillas
ve in > e.g. > https://www.kernel.org/doc/html/latest/gpu/drm-kms.html#plane-composition-properties > > Otherwise looks fine to me. Could drm_plane_create_hotspot_properties() > perhaps assert that the plane type is CURSOR? > I thought the same when reviewing but then I noticed this function is only called from __drm_universal_plane_init() if type is DRM_PLANE_TYPE_CURSOR. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

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

2023-06-27 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 > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v3 1/8] drm: Disable the cursor plane on atomic contexts with virtualized drivers

2023-06-27 Thread Javier Martinez Canillas
, disable cursor planes > + * because they'll be broken due to missing cursor > + * hotspot info. > + */ > + if (plane->type == DRM_PLANE_TYPE_CURSOR && > + drm_core_check_feature(dev, DRIVER_CURSOR_HOTSPOT) && Nit: you have a tab instead of an space before && but this can just be fixed when applying. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v3 27/38] fbdev/sh7760fb: Alloc DMA memory from hardware device

2023-06-26 Thread Javier Martinez Canillas
. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] drm/i2c: Switch i2c drivers back to use .probe()

2023-06-22 Thread Javier Martinez Canillas
rm-misc (drm-misc-next). Thanks! > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-König| > Industrial Linux Solutions | https://www.pengutronix.de/ | -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 0/6] drm: Add mouse cursor hotspot support to atomic KMS

2023-06-22 Thread Javier Martinez Canillas
Zack Rusin writes: [adding Aleix Pol from KDE/kwin to Cc list] Hello Zack, > On Wed, 2023-06-21 at 09:10 +0200, Javier Martinez Canillas wrote: [...] >> > >> > Hi all, >> > >> > We have been testing the v2 of this patch and it works corre

Re: [PATCH 0/6] drm: Add mouse cursor hotspot support to atomic KMS

2023-06-21 Thread Javier Martinez Canillas
dded an IGT test as suggested above: > https://gitlab.freedesktop.org/aesteve/igt-gpu-tools/-/compare/master...modeset-cursor-hotspot-test?from_project_id=1274 > > I could post the IGT patch upstream once Zack's patches land. > Zack, are you planning to re-spin the series soon? Otherwise Albert could continue working on that if you prefer. > Hope that helps! > > -Albert > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 0/5] drm/ssd130x: A few enhancements and cleanups

2023-06-15 Thread Javier Martinez Canillas
Javier Martinez Canillas writes: > Hello, > > While working on adding support for the SSD132X family of 4-bit grayscale > Solomon OLED panel controllers, I noticed a few things in the driver that > can be improved and make extending to support other chip families easier.

Re: [PATCH v2 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-12 Thread Javier Martinez Canillas
Conor Dooley writes: > On Mon, Jun 12, 2023 at 09:47:12AM +0200, Thomas Zimmermann wrote: >> Am 11.06.23 um 01:18 schrieb Javier Martinez Canillas: > >> > But I will be OK to drop the "solomon,ssd130?fb-i2c" compatible strings >> > from the DRM driver

Re: [PATCH v2 00/38] fbdev: Make userspace interfaces optional

2023-06-12 Thread Javier Martinez Canillas
lse needs to provide review here. > And same for these. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 22/30] fbdev/smscufx: Detect registered fb_info from refcount

2023-06-12 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Hi Javier > > Am 08.06.23 um 00:22 schrieb Javier Martinez Canillas: >> Thomas Zimmermann writes: >> >>> Detect registered instances of fb_info by reading the reference >>> counter from struct fb_inf

Re: [PATCH] drm/i2c: Switch i2c drivers back to use .probe()

2023-06-11 Thread Javier Martinez Canillas
convert back to (the new) .probe() to be able to eventually drop > .probe_new() from struct i2c_driver. > > Signed-off-by: Uwe Kleine-König > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-10 Thread Javier Martinez Canillas
Conor Dooley writes: > On Sat, Jun 10, 2023 at 07:51:35PM +0200, Javier Martinez Canillas wrote: >> Conor Dooley writes: >> >> > On Fri, Jun 09, 2023 at 07:09:37PM +0200, Javier Martinez Canillas wrote: >> >> A default resolution in the ssd130x dr

Re: [PATCH v2 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-10 Thread Javier Martinez Canillas
Conor Dooley writes: > On Fri, Jun 09, 2023 at 07:09:37PM +0200, Javier Martinez Canillas wrote: >> A default resolution in the ssd130x driver isn't set to an arbitrary 96x16 >> anymore. Instead is set to a width and height that's controller dependent. > > Did that change to

[PATCH v2 5/5] drm/ssd130x: Remove hardcoded bits-per-pixel in ssd130x_buf_alloc()

2023-06-09 Thread Javier Martinez Canillas
to compute the size of the buffer, used to store the pixels in native format. Signed-off-by: Javier Martinez Canillas Reviewed-by: Thomas Zimmermann --- (no changes since v1) drivers/gpu/drm/solomon/ssd130x.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers

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

2023-06-09 Thread Javier Martinez Canillas
and teardown operations are done. Signed-off-by: Javier Martinez Canillas Reviewed-by: Thomas Zimmermann --- (no changes since v1) drivers/gpu/drm/solomon/ssd130x.c | 88 +++ drivers/gpu/drm/solomon/ssd130x.h | 3 ++ 2 files changed, 56 insertions(+), 35 deletions(-) diff

[PATCH v2 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-09 Thread Javier Martinez Canillas
Matrix OLED/PLED - SSD1306: 128 x 64 Dot Matrix OLED/PLED - SSD1307: 128 x 39 Dot Matrix OLED/PLED - SSD1309: 128 x 64 Dot Matrix OLED/PLED Update DT schema to reflect what the driver does and make its users aware. Signed-off-by: Javier Martinez Canillas Reviewed-by: Thomas Zimmermann --- Changes

[PATCH v2 3/5] drm/ssd130x: Set the page height value in the device info data

2023-06-09 Thread Javier Martinez Canillas
The driver only supports OLED controllers that have a page height of 8 but there are devices that have different page heights. So it is better to not hardcode this value and instead have it as a per controller data value. Signed-off-by: Javier Martinez Canillas Reviewed-by: Thomas Zimmermann

[PATCH v2 1/5] drm/ssd130x: Make default width and height to be controller dependent

2023-06-09 Thread Javier Martinez Canillas
- SSD1306: 128 x 64 Dot Matrix OLED/PLED - SSD1307: 128 x 39 Dot Matrix OLED/PLED - SSD1309: 128 x 64 Dot Matrix OLED/PLED Add this information to the devices' info structures, and use it set as a default if not defined in DT rather than hardcoding to an arbitrary value. Signed-off-by: Javier Martinez

[PATCH v2 0/5] drm/ssd130x: A few enhancements and cleanups

2023-06-09 Thread Javier Martinez Canillas
the actual SSD132X support as a separate patch-set once this one is merged. Best regards, Javier Changes in v2: - List per controller default width/height values in DT schema (Maxime Ripard). Javier Martinez Canillas (5): drm/ssd130x: Make default width and height to be controller dependent dt

Re: [PATCH 30/30] fbdev: Make support for userspace interfaces configurable

2023-06-09 Thread Javier Martinez Canillas
ONFIG_FB_DEVICE. I think that there's value on a FB_CORE option to allow disabling all the fbdev drivers with a single option but still keep DRM_FBDEV_EMULATION enabled. But I can repost my old series on top of this patch-set once it lands. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 30/30] fbdev: Make support for userspace interfaces configurable

2023-06-09 Thread Javier Martinez Canillas
RM drivers, fbdev drivers, DRM emulation for fbcon and emulation for fbdev user-space. And I think that Thomas' series + a FB_CORE as you suggested and done in my old series should be enough to have that. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 30/30] fbdev: Make support for userspace interfaces configurable

2023-06-09 Thread Javier Martinez Canillas
ojects I will probably keep it enabled. That's why I think that we should support the following combinations: * fbdev drivers + DRM fbdev emulation + fbdev user-space * only DRM drivers without fbdev emulation nor fbdev user-space (your series) * only DRM fbdev emulation + fbdev user-space enabled (FB_CORE) -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 30/30] fbdev: Make support for userspace interfaces configurable

2023-06-07 Thread Javier Martinez Canillas
e that other users want the opposite, they have an old user-space that requires fbdev, but is running on newer hardware that only have a DRM driver. So they will want DRM fbdev emulation but none fbdev driver at all. That's why I think that FB_DEVICE and FB_CORE are complementary and we can support any combination of the two, if you agree there are uses for either. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 28/30] fbdev/core: Move file-I/O code into separate file

2023-06-07 Thread Javier Martinez Canillas
vers/video/fbdev/core/fb_devfs.c:183:9: error: unknown type name 'compat_caddr_t' -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 23/30] fbdev/tdfxfb: Set i2c adapter parent to hardware device

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

Re: [PATCH 22/30] fbdev/smscufx: Detect registered fb_info from refcount

2023-06-07 Thread Javier Martinez Canillas
is change is for an old fbdev driver anyways. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 21/30] fbdev/sm501fb: Output message with fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix case were dev_err() is being called with struct fb_info.dev. > Use fb_err() instead. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 20/30] fbdev/rivafb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
c: Antonino Daplas > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 19/30] fbdev/rivafb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > --- Reviewed-by: Javier Martine

Re: [PATCH 18/30] fbdev/radeonfb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
amin Herrenschmidt > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 17/30] fbdev/radeonfb: Reorder backlight and framebuffer cleanup

2023-06-07 Thread Javier Martinez Canillas
amin Herrenschmidt > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 16/30] fbdev/pxa168fb: Do not assign to struct fb_info.dev

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Do not assign the hardware device to struct fb_info.dev. The > field references the fbdev software device, which is unrelated. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martine

Re: [PATCH 15/30] fbdev/nvidiafb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
c: Antonino Daplas > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 14/30] fbdev/nvidiafb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > --- Reviewed-by: Javier Martine

Re: [PATCH 13/30] fbdev/metronomefb: Use hardware device for dev_err()

2023-06-07 Thread Javier Martinez Canillas
rm() with the rest of the driver and > prepares fbdev for making struct fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 12/30] fbdev/mb862xxfb: Output messages with fb_dbg() and fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix cases were output helpers are called with struct fb_info.dev. > Use fb_dbg() and fb_err() instead. Prepares fbdev for making struct > fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas

Re: [PATCH 11/30] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev

2023-06-07 Thread Javier Martinez Canillas
device's reference counter and leaks the fbdev device. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 10/30] fbdev/ep93xx-fb: Output messages with fb_info() and fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix cases were output helpers are called with struct fb_info.dev. > Use fb_info() and fb_err() instead. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 09/30] fbdev/ep93xx-fb: Alloc DMA memory from hardware device

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

Re: [PATCH 08/30] fbdev/broadsheetfb: Call device_remove_file() with hardware device

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

Re: [PATCH 07/30] fbdev/aty128fb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
y: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 06/30] fbdev/aty128fb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards

Re: [PATCH 05/30] fbdev/atyfb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
y: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 04/30] fbdev/atyfb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards

Re: [PATCH 03/30] backlight/lv5207lp: Compare against struct fb_info.device

2023-06-07 Thread Javier Martinez Canillas
ng to struct fb_info.device. > > Fixes a bug in the backlight driver and prepares fbdev for making > struct fb_info.dev optional. > Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 01/30] backlight/bd6107: Compare against struct fb_info.device

2023-06-07 Thread Javier Martinez Canillas
the check fix and rename could be split in separate patches to make it easier to understand what is changed. Regardless, feel free to add: Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 01/30] backlight/bd6107: Compare against struct fb_info.device

2023-06-07 Thread Javier Martinez Canillas
_info.device. > > Fixes a bug in the backlight driver and prepares fbdev for making > struct fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > --- Reviewed-by: Javier Martinez Canillas -- Best

Re: [PATCH 0/5] drm/ssd130x: A few enhancements and cleanups

2023-06-07 Thread Javier Martinez Canillas
, the issue is already present in the driver. We could fix it as follow-up. > Best regards > Thomas > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 2/2] drm/vkms: Fix all kernel-doc warnings of the vkms_composer file

2023-06-06 Thread Javier Martinez Canillas
on name. > > Signed-off-by: Maíra Canal > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 1/2] drm/vkms: Add kernel-doc to the function vkms_compose_row()

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

Re: [PATCH 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-05 Thread Javier Martinez Canillas
Maxime Ripard writes: Hello Maxime, Thanks for your feedback. > Hi, > > On Mon, Jun 05, 2023 at 09:47:50AM +0200, Javier Martinez Canillas wrote: [...] >>solomon,width: >> $ref: /schemas/types.yaml#/definitions/uint32 >> -default: 96 >> desc

[PATCH 5/5] drm/ssd130x: Remove hardcoded bits-per-pixel in ssd130x_buf_alloc()

2023-06-05 Thread Javier Martinez Canillas
to compute the size of the buffer, used to store the pixels in native format. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon

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

2023-06-05 Thread Javier Martinez Canillas
and teardown operations are done. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 88 +++ drivers/gpu/drm/solomon/ssd130x.h | 3 ++ 2 files changed, 56 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers

[PATCH 1/5] drm/ssd130x: Make default width and height to be controller dependent

2023-06-05 Thread Javier Martinez Canillas
- SSD1307: 128 x 39 Dot Matrix OLED/PLED - SSD1309: 128 x 64 Dot Matrix OLED/PLED Add this information to the devices' info structures, and use it set as a default if not defined in DT rather than hardcoding to an arbitrary value. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon

[PATCH 3/5] drm/ssd130x: Set the page height value in the device info data

2023-06-05 Thread Javier Martinez Canillas
The driver only supports OLED controllers that have a page height of 8 but there are devices that have different page heights. So it is better to not hardcode this value and instead have it as a per controller data value. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon

[PATCH 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values

2023-06-05 Thread Javier Martinez Canillas
A default resolution in the ssd130x driver isn't set to an arbitrary 96x16 anymore. Instead is set to a width and height that's controller dependent. Update DT schema to reflect what the driver does and make its users aware. Signed-off-by: Javier Martinez Canillas --- .../devicetree/bindings

[PATCH 0/5] drm/ssd130x: A few enhancements and cleanups

2023-06-05 Thread Javier Martinez Canillas
the actual SSD132X support as a separate patch-set once this one is merged. Best regards, Javier Javier Martinez Canillas (5): drm/ssd130x: Make default width and height to be controller dependent dt-bindings: display: ssd1307fb: Remove default width and height values drm/ssd130x: Set

Re: [PATCH 1/3] drm/todo: Add atomic modesetting references

2023-06-02 Thread Javier Martinez Canillas
[1] and all you need is a GPU for a > non-converted driver (again virtual HW drivers for KVM are still all > -suitable). Are any of the virtual drivers not yet ported to atomic? This sentence seems to be outdated and maybe you could remove it on a following patch? Reviewed-by: Javier Martinez C

Re: [PATCH v2] drm: Switch i2c drivers back to use .probe()

2023-05-26 Thread Javier Martinez Canillas
I strongly second what Kieran just said. I was also involved in the commit mentioned and it is so great to see your efforts to finish that change. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] drm/msm: Use struct fb_info.screen_buffer

2023-05-23 Thread Javier Martinez Canillas
n > assignment (different address spaces) > ../drivers/gpu/drm/msm/msm_fbdev.c:124:26:expected char [noderef] __iomem > *screen_base > ../drivers/gpu/drm/msm/msm_fbdev.c:124:26:got void * > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas

Re: [PATCH] drm/drm_atomic.h: fixup typos

2023-05-17 Thread Javier Martinez Canillas
Hello Sui, I would still add something to the commit description even when your changes are trivial. Sui Jingfeng writes: > Signed-off-by: Sui Jingfeng > --- The fixes look good to me though Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Pla

Re: drm/ssd130x: Fix include guard name

2023-05-15 Thread Javier Martinez Canillas
Sui Jingfeng <15330273...@189.cn> writes: > Reviewed-by: Sui Jingfeng > > Pushed to drm-misc (drm-misc-next). Thanks! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH V3] drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync

2023-05-15 Thread Javier Martinez Canillas
this one. Pushed to drm-misc (drm-misc-next). Thanks! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

[PATCH] drm/ssd130x: Fix include guard name

2023-05-12 Thread Javier Martinez Canillas
This is a leftover from an early iteration of the driver when it was still named ssd1307 instead of ssd130x. Change it for consistency with the rest. Signed-off-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [PATCH] MAINTAINERS: Add Maira to VKMS maintainers

2023-05-08 Thread Javier Martinez Canillas
Maíra Canal writes: > I've been contributing to VKMS with improvements, reviews, testing and > debugging. Therefore, add myself as a co-maintainer of the VKMS driver. > > Signed-off-by: Maíra Canal > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martine

Re: [PATCH v2 1/8] drm: Disable the cursor plane on atomic contexts with virtualized drivers

2023-05-03 Thread Javier Martinez Canillas
Zack Rusin writes: > On Tue, 2023-05-02 at 11:32 +0200, Javier Martinez Canillas wrote: >> !! External Email >> >> Daniel Vetter writes: >> >> > On Mon, Jul 11, 2022 at 11:32:39PM -0400, Zack Rusin wrote: >> > > From: Zack Rusin >>

Re: [PATCH v3 4/6] fbdev: Include via

2023-05-03 Thread Javier Martinez Canillas
derstanding the above it the preferred way to do it. > > Where did youher this? I only know about this in the case of asm/io.h > vs. linux/io.h. > I understand that's the case too. I believe even checkpatch.pl complains about it? (not that the script always get right, but just as an example). -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 1/8] drm: Disable the cursor plane on atomic contexts with virtualized drivers

2023-05-02 Thread Javier Martinez Canillas
dom pile of midlayer-mistake driver flags" would be a lot better. > > Otherwise I think the series looks roughly how I'd expect it to look. > -Daniel > AFAICT this is the only remaining thing to be addressed for this series ? Zack, are you planning to re-spin a v3 of this patch-set? Asking because we want to take virtio-gpu out of the atomic KMS deny list in mutter, but first need this to land. If you think that won't be able to do it in the short term, Bilal (Cc'ed) or me would be glad to help with that. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 13/19] fbdev/xen-fbfront: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
framebuffer is stored in I/O memory, > or info->screen_buffer if the framebuffer is stored in system memory. > > As the driver operates on the latter address space, it is wrong to use > .screen_base and .screen_buffer must be used instead. > > Signed-off-by: Thomas Zimmermann &g

Re: [PATCH v2 12/19] fbdev/vfb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 11/19] fbdev/udlfb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 10/19] fbdev/smscufx: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
framebuffer is stored in I/O memory, > or info->screen_buffer if the framebuffer is stored in system memory. > > As the driver operates on the latter address space, it is wrong to use > .screen_base and .screen_buffer must be used instead. > > Signed-off-by: Thomas Zimmermann &g

Re: [PATCH v2 09/19] fbdev/ps3fb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 08/19] fbdev/metronomefb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 07/19] fbdev/hecubafb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 06/19] fbdev/broadsheetfb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 05/19] fbdev/au1200fb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 04/19] fbdev/arcfb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 03/19] hid/hid-picolcd_fb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 02/19] auxdisplay/ht16k33: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 01/19] auxdisplay/cfag12864bfb: Use struct fb_info.screen_buffer

2023-04-28 Thread Javier Martinez Canillas
due to not using the correct data type. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 6/6] drm/fb-helper: Use fb_{cfb,sys}_{read, write}()

2023-04-25 Thread Javier Martinez Canillas
--- > 1 file changed, 4 insertions(+), 170 deletions(-) > Very nice cleanup! Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 5/6] fbdev: Move CFB read and write code into helper functions

2023-04-25 Thread Javier Martinez Canillas
I guess you are doing this because is going to be used in DRM but still would be good to explain it in the commit message. > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 4/6] fbdev: Validate info->screen_{base,buffer} in fb_ops implementations

2023-04-25 Thread Javier Martinez Canillas
by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 3/6] fbdev: Don't re-validate info->state in fb_ops implementations

2023-04-25 Thread Javier Martinez Canillas
Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 2/6] fbdev: Use screen_buffer in fb_sys_{read,write}()

2023-04-25 Thread Javier Martinez Canillas
een_buffer must be used instead. This also get rids of all the casting needed due not using the correct data type." > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 1/6] fbdev: Return number of bytes read or written

2023-04-25 Thread Javier Martinez Canillas
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/tests/fbdev.c > # 1 > --- The patch looks good to me and indeed the correct semantics AFAICT. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-04-25 Thread Javier Martinez Canillas
Maxime Ripard writes: > Hi Javier, > > On Sat, Apr 22, 2023 at 07:26:13AM +0200, Javier Martinez Canillas wrote: >> Maxime Ripard writes: >> > container_of_const() allows to preserve the pointer constness and is >> > thus more flexible than inline function

Re: [PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-04-21 Thread Javier Martinez Canillas
es from Greg all over the kernel that do exactly this, dropping static inline functions in favor of using container_of_const() directly. So it seems the convention is what you do. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2] firmware/sysfb: Fix VESA format selection

2023-04-19 Thread Javier Martinez Canillas
selection") > Signed-off-by: Pierre Asselin > --- [...] > + bits_per_pixel= max(bits_per_pixel, (u32)si->lfb_depth); You are missing a space here. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 4/4] drm/armada: Implement fbdev emulation as in-kernel client

2023-04-17 Thread Javier Martinez Canillas
rmada. If the fbdev framebuffer > has been fully set up, struct fb_ops.fb_destroy implements the > release. For partially initialized emulation, the fbdev client > reverts the initial setup. > > Signed-off-by: Thomas Zimmermann > --- > Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 3/4] drm/armada: Initialize fbdev DRM client

2023-04-17 Thread Javier Martinez Canillas
Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] firmware/sysfb: Fix wrong stride when bits-per-pixel is calculated

2023-04-17 Thread Javier Martinez Canillas
with the system framebuffer. Messing with the > stride would break them. > I see, is not that simple then. Thanks a lot for the clarification. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH] firmware/sysfb: Fix wrong stride when bits-per-pixel is calculated

2023-04-17 Thread Javier Martinez Canillas
cualted. That's why I mentioned that we need Pierre's fix + my patch [1] that did: stride = DIV_ROUND_UP(si->lfb_width * bits_per_pixel, 8) But calculating a BPP yet blindly using linelength doens't make sense to me. [1]: https://lists.freedesktop.org/archives/dri-devel/2023-April/399963.html [2]: https://lore.kernel.org/dri-devel/dfb4f25ca8dfb0d81d778d6315f104ad.squir...@mail.panix.com/ [3]: https://lists.freedesktop.org/archives/dri-devel/2023-April/400088.html -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

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