Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-06-06 Thread Javier Martinez Canillas
ONFIG_VIRTIO_UML=y \ > --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=y > > Suggested-by: Javier Martinez Canillas > Signed-off-by: José Expósito > > --- Thanks for addressing the issues pointed out. Patch looks good to me now. Reviewed-by: Javier Martinez Canillas By the way, I think you

Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-06-06 Thread Javier Martinez Canillas
tecture with something like "--arch=x86_64". The following works correctly but it won't use User Mode Linux: ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/.kunitconfig --arch=x86_64 -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-06-06 Thread Javier Martinez Canillas
Hello Maxime, On 6/6/22 15:52, Maxime Ripard wrote: > hi, > > On Mon, Jun 06, 2022 at 03:49:57PM +0200, Javier Martinez Canillas wrote: >> Hello Maxime, >> >> On 6/6/22 15:42, Maxime Ripard wrote: >>> Hi, >>> >>> On Mon, Jun 06, 2022 a

Re: [PATCH 1/1] drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()

2022-06-06 Thread Javier Martinez Canillas
n, it was David who explicitly suggested it shouldn't > go in there. > https://lists.freedesktop.org/archives/dri-devel/2022-June/357611.html > Ups, sorry for getting that wrong. I should had looked at the thread again before writing my answer. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v5 5/7] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-07 Thread Javier Martinez Canillas
e needed if sysfb does the disable (and unregistration) before the loop. So by doing it before the loop, we should be able to drop [PATCH v5 4/7] fbdev: Make sysfb to unregister its own registered devices: https://lists.freedesktop.org/archives/dri-devel/2022-May/355201.html Since by the

Re: [PATCH 0/2] Improve vfio-pci primary GPU assignment behavior

2022-06-07 Thread Javier Martinez Canillas
o you want to remove the {vesa,efi,simple}fb and simpledrm drivers or is there a need to also remove real fbdev and DRM drivers? [0]: https://lore.kernel.org/lkml/ynvrxicnisxu6...@ravnborg.org/T/ [1]: https://www.ibm.com/docs/en/linux-on-systems?topic=through-pci [2]: https://www.kernel.org/doc/Documentation/vfio.txt -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

[PATCH v6 2/5] firmware: sysfb: Add sysfb_disable() helper function

2022-06-07 Thread Javier Martinez Canillas
This can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform device registration in sysfb. Suggested-by: Daniel Vetter Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Vetter --- Changes in v6: - Drop sysfb_try_unregister

[PATCH v6 1/5] firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer

2022-06-07 Thread Javier Martinez Canillas
This function just returned 0 on success or an errno code on error, but it could be useful for sysfb_init() callers to have a pointer to the device. Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Vetter Reviewed-by: Thomas Zimmermann --- (no changes since v3) Changes in v3

[PATCH v6 3/5] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-07 Thread Javier Martinez Canillas
registration by calling sysfb_disable(), if a driver requests to remove the conflicting framebuffers. Suggested-by: Daniel Vetter Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Vetter --- Changes in v6: - Move the sysfb_disable() before the remove conflicting framebuffers loop

[PATCH v6 5/5] fbdev: Make registered_fb[] private to fbmem.c

2022-06-07 Thread Javier Martinez Canillas
: linux-stag...@lists.linux.dev Signed-off-by: Daniel Vetter Signed-off-by: Daniel Vetter Reviewed-by: Javier Martinez Canillas Cc: Daniel Vetter Cc: Helge Deller Cc: Matthew Wilcox Cc: Sam Ravnborg Cc: Tetsuo Handa Cc: Zhen Lei Cc: Alex Deucher Cc: Xiyu Yang Cc: linux-fb...@vger.kernel.org

[PATCH v6 4/5] Revert "fbdev: Prevent probing generic drivers if a FB is already registered"

2022-06-07 Thread Javier Martinez Canillas
and we can remove this somewhat hackish check here (e.g. this won't catch drm drivers if fbdev emulation isn't enabled). Cc: Thomas Zimmermann Cc: Zack Rusin Cc: Javier Martinez Canillas Cc: Zack Rusin Cc: Hans de Goede Cc: Ilya Trukhanov Signed-off-by: Daniel Vetter Signed-off-

[PATCH v6 0/5] Fix some races between sysfb device registration and drivers probe

2022-06-07 Thread Javier Martinez Canillas
rs registering devices (Daniel Vetter). - Drop RFC prefix since patches were already reviewed by Daniel Vetter. - Add Daniel Reviewed-by tags to the patches. Daniel Vetter (2): Revert "fbdev: Prevent probing generic drivers if a FB is already registered" fbdev: Make registered_fb[]

Re: [PATCH 0/2] Improve vfio-pci primary GPU assignment behavior

2022-06-08 Thread Javier Martinez Canillas
pci_request_region() / request_mem_region() and drivers that want to unbind another bound device could do something like pci_request_region_force() / request_mem_region_force() to kick them out. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v6 0/6] Raspberry PI 4 V3D enablement

2022-06-08 Thread Javier Martinez Canillas
tches through the Broadcom ARM SoC pull request, > but the first three should probably go via the DRM tree unless you want > me to merge them all? I can merge the first 3 patches through the drm-misc tree. Can I get an ack from you for those ? The changes are independent so there's no need for an immutable branch or any kind of cross tree coordination. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v6 0/6] Raspberry PI 4 V3D enablement

2022-06-08 Thread Javier Martinez Canillas
e I don't plan to push patches that are known to cause issues. I mentioned that could help merging the DRM changes if needed before you sent your bug report. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v6 5/5] fbdev: Make registered_fb[] private to fbmem.c

2022-06-09 Thread Javier Martinez Canillas
Hello Thomas, On 6/9/22 13:49, Thomas Zimmermann wrote: > Hi Javier > > Am 07.06.22 um 20:23 schrieb Javier Martinez Canillas: >> From: Daniel Vetter >> >> Well except when the olpc dcon fbdev driver is enabled, that thing >> digs around in there in rat

Re: [PATCH v6 0/5] Fix some races between sysfb device registration and drivers probe

2022-06-09 Thread Javier Martinez Canillas
On 6/7/22 20:23, Javier Martinez Canillas wrote: > The patches in this series contain mostly changes suggested by Daniel Vetter > Thomas Zimmermann. They aim to fix existing races between the Generic System > Framebuffer (sysfb) infrastructure and the fbdev and DRM device registration.

Re: Mark olpc_dcon BROKEN [Was: [PATCH v6 5/5] fbdev: Make registered_fb[] private to fbmem.c]

2022-06-09 Thread Javier Martinez Canillas
ed to DRM if is something that's still useful. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

[PATCH] staging: olpc_dcon: mark driver as broken

2022-06-09 Thread Javier Martinez Canillas
one can then work on making it not depend on the num_registered_fb symbol, allowing to drop the broken dependency again. Suggested-by: Sam Ravnborg Signed-off-by: Javier Martinez Canillas --- drivers/staging/olpc_dcon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH] Revert "fbdev: vesafb: Allow to be built if COMPILE_TEST is enabled"

2022-06-10 Thread Javier Martinez Canillas
uilt if COMPILE_TEST is enabled") was to have more build coverage for the driver but it wrongly assumed that all architectures would define a screen_info. Reported-by: kernel test robot Signed-off-by: Javier Martinez Canillas --- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 inser

Re: linux-next: build failure after merge of the drm-misc tree

2022-06-10 Thread Javier Martinez Canillas
https://lkml.org/lkml/2022/6/10/316 -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v6 0/6] Raspberry PI 4 V3D enablement

2022-06-10 Thread Javier Martinez Canillas
Hello Melissa, On 6/10/22 13:05, Melissa Wen wrote: > On 06/08, Javier Martinez Canillas wrote: [snip] > > Hi Javier, > > Thanks for waiting a little. > > Stefan guided me to the missing part and I'm okay on this serie. > No worries and thanks for the testing.

Re: [PATCH] Revert "fbdev: vesafb: Allow to be built if COMPILE_TEST is enabled"

2022-06-13 Thread Javier Martinez Canillas
On 6/10/22 11:47, Daniel Vetter wrote: > On Fri, Jun 10, 2022 at 10:54:50AM +0200, Javier Martinez Canillas wrote: >> This reverts commit fa0e256450f27a7d85f65c63f05e6897954a1d53. The kernel >> test robot reported that attempting to build the vesafb driver fails on >> some a

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-13 Thread Javier Martinez Canillas
On 6/13/22 17:35, andriy.shevche...@linux.intel.com wrote: > On Mon, Jun 13, 2022 at 11:39:30AM +, Dominik Kierner wrote: >> On 5/25/2022 21:46, Javier Martinez Canillas wrote: > > ... > >>> Thanks, I looked at the code briefly and think that there are things there

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-13 Thread Javier Martinez Canillas
ry otherwise. > Great that we are on the same page here. > >>> What is Your opinion on using drm_panel for Your driver? >>> >> >> I can't remember exactly why I decided to stop using drm_panel, but I think >> that >> was because struct drm_panel doesn't have a DRM device and so couldn't use >> any of >> the helper functions that needed one? > > I likely hit the same roadblock. > I would say, this approach should be revisited, when appropriate > helpers for this approach exist, as it would further clean up and > generify the ssd130x device configuration. > It's unlikely that drm_panel will get a drm_device since that was the case but was changed by commit aa6c43644bc5 ("drm/panel: drop drm_device from drm_panel"). But yes, I agree that we could revisit if there are helpers in the future to manage a backlight device that is handled by a DRM driver. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 3/3] drm/doc: Add KUnit documentation

2022-06-14 Thread Javier Martinez Canillas
/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/kunit \ --arch=x86_64 Regardless, the patch looks good to me: Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 0/3] KUnit tests for drm_format_helper

2022-06-14 Thread Javier Martinez Canillas
her things that could be made more consistent, like the naming conventions for the tests, suites, etc. [0]: https://lore.kernel.org/all/20220608010709.272962-4-maira.ca...@usp.br/T/ -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH] drm/arm/hdlcd: Take over EFI framebuffer properly

2022-06-14 Thread Javier Martinez Canillas
e: Inline fbdev conflict helpers into aperture helpers"). Instead, you should use the drm_aperture_remove_framebuffers() function, i.e: + drm_aperture_remove_framebuffers(false, &hdlcd_driver); If you do that and re-spin the patch, feel free to add: Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 3/3] drm/doc: Add KUnit documentation

2022-06-14 Thread Javier Martinez Canillas
On 6/14/22 20:09, José Expósito wrote: > Hi Javier, > > On Tue, Jun 14, 2022 at 02:58:29PM +0200, Javier Martinez Canillas wrote: >> Hello José, >> >> On 6/13/22 19:17, José Expósito wrote: >> >> [snip] >> >>> +KUnit (Kernel unit testing fram

Re: [PATCH] drm/arm/hdlcd: Take over EFI framebuffer properly

2022-06-15 Thread Javier Martinez Canillas
got bug reports on Fedora about regressions caused by the fact that some programs made the (wrong) assumption that /dev/dri/card0 would be the "main" display and just hard-coded that path. But removing the conflicting framebuffers after calling devm_drm_dev_alloc() breaks this assumption, since the registered device will be /dev/dri/card1. All this is to say that doing it too late, even if nothing is touching the HW yet, could still have unexpected consequences across your graphics stack. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH] drm/arm/hdlcd: Take over EFI framebuffer properly

2022-06-15 Thread Javier Martinez Canillas
On 6/15/22 09:53, Thomas Zimmermann wrote: > > > Am 15.06.22 um 09:50 schrieb Javier Martinez Canillas: > [...] >>> Historically, most drivers call this function very early. But for error >>> recovery it would be better to do it as late as possible. Ideally, >

Re: [PATCH v2] drm/arm/hdlcd: Take over EFI framebuffer properly

2022-06-16 Thread Javier Martinez Canillas
vely) a lot here, I didn't want to > second-guess Javier's opinion so left off the R-b tag from v1. > Yes, v2 looks good to me so feel free to keep my R-b: Reviewed-by: Javier Martinez Canillas [snip] > > + /* If EFI left us running, take over from efifb/sysfb */

Re: [PATCH 00/10] drm: selftest: Convert to KUnit

2022-06-16 Thread Javier Martinez Canillas
ion/gpu/todo.rst, so I think that you could add a patch removing that as a part of this series. [0]: https://cgit.freedesktop.org/drm/drm/tree/Documentation/gpu/todo.rst#n620 -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v6 3/5] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-16 Thread Javier Martinez Canillas
Hello Zack, On 6/16/22 21:29, Zack Rusin wrote: > On Tue, 2022-06-07 at 20:23 +0200, Javier Martinez Canillas wrote: >> The platform devices registered by sysfb match with firmware-based DRM or >> fbdev drivers, that are used to have early graphics using a framebuffer >> p

Re: [PATCH v6 3/5] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-16 Thread Javier Martinez Canillas
On 6/16/22 23:03, Zack Rusin wrote: > On Thu, 2022-06-16 at 21:55 +0200, Javier Martinez Canillas wrote: >> Hello Zack, >> >> On 6/16/22 21:29, Zack Rusin wrote: >>> On Tue, 2022-06-07 at 20:23 +0200, Javier Martinez Canillas wrote: >>>> The platform devic

Re: [PATCH v6 3/5] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-16 Thread Javier Martinez Canillas
On 6/17/22 00:18, Javier Martinez Canillas wrote: > On 6/16/22 23:03, Zack Rusin wrote: [snip] > > I'll look at this tomorrow but in the meantime, could you please look if the > following > commits on top of drm-misc-next help ? > > d258d00fb9c7 fbdev: efifb: Clea

Re: [PATCH v6 3/5] fbdev: Disable sysfb device registration when removing conflicting FBs

2022-06-16 Thread Javier Martinez Canillas
Hello Zack, On 6/17/22 03:35, Zack Rusin wrote: > On Fri, 2022-06-17 at 01:21 +0200, Javier Martinez Canillas wrote: >> On 6/17/22 00:18, Javier Martinez Canillas wrote: >>> On 6/16/22 23:03, Zack Rusin wrote: >> >> [snip] >> >>> >>> I&#

Re: [PATCH] drm/aperture: Run fbdev removal before internal helpers

2022-06-17 Thread Javier Martinez Canillas
IMO. That way we won't re-introduce the issue that was fixed by the sysfb_unregister() function, that is to remove a pdev even if wasn't bound to a driver to prevent a late simpledrm registration to match. Reviewed-by: Javier Martinez Canillas I wonder what's the best way to coo

[PATCH] drm/ssd130x: Use new regmap bulk write support to drop custom bus

2022-06-18 Thread Javier Martinez Canillas
ymore and could just be dropped. Signed-off-by: Javier Martinez Canillas --- This patch depends on the following regmap fixes: https://lkml.org/lkml/2022/6/16/198 drivers/gpu/drm/solomon/ssd130x-spi.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/dr

Re: [PATCH v2] drm: panel-orientation-quirks: Add quirk for Aya Neo Next

2022-06-19 Thread Javier Martinez Canillas
t; Due to a production error a batch or two have their board names prefixed > by "AYANEO", this makes it 6 different DMI board names. To save some > space in final kernel image DMI_MATCH is used instead of > DMI_EXACT_MATCH. > > Signed-off-by: Maya Matuszczyk > Patch

Re: [PATCH] drm: hisilicon: depends on MMU

2022-06-19 Thread Javier Martinez Canillas
mp; MMU [=n] > Selected by [m]: > - DRM_TTM_HELPER [=m] && HAS_IOMEM [=y] && DRM [=m] > - DRM_HISI_HIBMC [=m] && HAS_IOMEM [=y] && DRM [=m] && PCI [=y] && (ARM64 > || COMPILE_TEST [=y]) > > Fixes: 4f7f1973b0c8 ("drm/vram: fix Kc

Re: [PATCH] drm: hisilicon: depends on MMU

2022-06-19 Thread Javier Martinez Canillas
On 6/19/22 16:05, Javier Martinez Canillas wrote: > Hello Randy, > > On 5/31/22 04:55, Randy Dunlap wrote: >> Prevent a kconfig warning when MMU is not enabled by making >> DRM_HISI_HIBMC depend on MMU. >> >> WARNING: unmet direct dependencies detected for DRM_T

Re: [DRM/hisilicon/hibmc] kernel robot reports build errors, patch(es) available but not merged

2022-06-19 Thread Javier Martinez Canillas
it description. There's no need to resend though, I can do it when pushing. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2] drm: panel-orientation-quirks: Add quirk for Aya Neo Next

2022-06-19 Thread Javier Martinez Canillas
Hello Hans, On 6/19/22 16:57, Hans de Goede wrote: > Hi, > > On 6/19/22 13:46, Javier Martinez Canillas wrote: >> Hello Maya, >> >> On 6/19/22 13:19, Maccraft123 wrote: >>> From: Maya Matuszczyk >>> >>> The device is identified by "NE

Re: [PATCH v2 1/2] drm: Implement DRM aperture helpers under video/

2022-06-20 Thread Javier Martinez Canillas
;m wrong on this. [...] > +static void detach_platform_device(struct device *dev) > +{ > + struct platform_device *pdev = to_platform_device(dev); > + > + /* > + * Remove the device from the device hierarchy. This is the right thing > + * to do for firmware-based DRM drivers, such as EFI, VESA or VGA. After > + * the new driver takes over the hardware, the firmware device's state > + * will be lost. > + * > + * For non-platform devices, a new callback would be required. > + * I wonder if we ever are going to need this. AFAICT the problem only happens for platform devices. Or do you envision a case when some a bus could need this and the aperture unregister the device instead of the Linux kernel device model ? -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 2/2] vfio/pci: Remove console drivers

2022-06-20 Thread Javier Martinez Canillas
the aperture helpers to remove these conflicts. > > Reported-by: Laszlo Ersek > Suggested-by: Gerd Hoffmann > Signed-off-by: Alex Williamson > --- Patch looks good to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 1/2] drm: Implement DRM aperture helpers under video/

2022-06-21 Thread Javier Martinez Canillas
struct device. > Ok, I was wondering what was the value of the indirection level other than making the code more complex and supporting an hypothetical case of a FW driver that would not bind against a platform device. But if the goal is to move this at some point to a more generic place (i.e: the Linux device model itself) then I agree that we can just keep it as is. When you re-spin this patch, feel free to add my R-b since looks good to me. And thanks again for working on this! -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 0/3] drm/panel: Ensure DT compatibles have SPI device IDs

2022-02-03 Thread Javier Martinez Canillas
as for devices registered via OF)" but it was a considerable amount of effort. For the whole series: Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 0/2] drm/tiny: Ensure DT compatibles have SPI device IDs

2022-02-03 Thread Javier Martinez Canillas
s changed, 3 insertions(+) > Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 1/8] drm/ast: Fail if connector initialization fails

2022-02-03 Thread Javier Martinez Canillas
> --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 2/8] drm/ast: Move connector mode_valid function to CRTC

2022-02-03 Thread Javier Martinez Canillas
eviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 3/8] drm/ast: Remove AST_TX_ITE66121 constant

2022-02-03 Thread Javier Martinez Canillas
On 1/11/22 13:00, Thomas Zimmermann wrote: > The ITE66121 is an HDMI transmitter chip. There's no code for > detecting or programming the chip within ast. Remove the enum > constant. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas B

Re: [PATCH 4/8] drm/ast: Remove unused value dp501_maxclk

2022-02-03 Thread Javier Martinez Canillas
On 1/11/22 13:00, Thomas Zimmermann wrote: > Remove reading the link-rate. The value is maintained by the connector > code but never used. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 5/8] drm/ast: Rename struct ast_connector to struct ast_vga_connector

2022-02-03 Thread Javier Martinez Canillas
On 1/11/22 13:00, Thomas Zimmermann wrote: > Prepare for introducing other connectors besides VGA. No functional > changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 6/8] drm/ast: Initialize encoder and connector for VGA in helper function

2022-02-03 Thread Javier Martinez Canillas
ned-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas [snip] > - encoder->possible_crtcs = 1; [snip] > + encoder->possible_crtcs = drm_crtc_mask(crtc); This is a somewhat unrelated change. It's OK because is fairly simple but I would probably still

Re: [PATCH 7/8] drm/ast: Move DP501-based connector code into separate helpers

2022-02-03 Thread Javier Martinez Canillas
a VGA connector. > > Remove the DP501 code from ast_vga_connector_helper_get_modes(). Also > remove the call to drm_connector_update_edid_property(), which is > performed by drm_get_edid(). > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best r

Re: [PATCH 8/8] drm/ast: Move SIL164-based connector code into separate helpers

2022-02-03 Thread Javier Martinez Canillas
> &ast_sil164_connector->i2c->adapter); > + else > + ret = drm_connector_init(dev, connector, > &ast_sil164_connector_funcs, > + DRM_MODE_CONNECTOR_DVII); > + if (ret) I think you want a kfree(i2c) here before returning. And where is the struct ast_i2c_chan freed if the function succeeds ? With that, Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

[PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-04 Thread Javier Martinez Canillas
o_mono_reversed_line() helper (Thomas Zimmermann) Javier Martinez Canillas (4): drm/format-helper: Add drm_fb_{xrgb,gray8}_to_mono_reversed() drm/tiny: Add driver for Solomon SSD130X OLED displays MAINTAINERS: Add entry for Solomon SSD130X OLED displays DRM driver dt-bindings: display: ssd1

[PATCH v2 1/4] drm/format-helper: Add drm_fb_{xrgb8888, gray8}_to_mono_reversed()

2022-02-04 Thread Javier Martinez Canillas
-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/drm_format_helper.c | 80 + include/drm/drm_format_helper.h | 7 +++ 2 files changed, 87 insertions(+) diff --git a/drivers/gpu/drm/drm_format_helper.c b/drivers/gpu/drm/drm_format_helper.c

[PATCH v2 3/4] MAINTAINERS: Add entry for Solomon SSD130X OLED displays DRM driver

2022-02-04 Thread Javier Martinez Canillas
+++ b/MAINTAINERS @@ -6102,6 +6102,13 @@ T: git git://anongit.freedesktop.org/drm/drm-misc F: Documentation/devicetree/bindings/display/repaper.txt F: drivers/gpu/drm/tiny/repaper.c +DRM DRIVER FOR SOLOMON SSD130X OLED DISPLAYS +M: Javier Martinez Canillas +S: Maintained

[PATCH v2 2/4] drm/tiny: Add driver for Solomon SSD130X OLED displays

2022-02-04 Thread Javier Martinez Canillas
binding for the ssd1307fb driver. Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/gpu/drm/tiny/Kconfig | 12 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ssd130x.c | 971 + 3 files changed, 984 insertions(+) create

[PATCH v2 4/4] dt-bindings: display: ssd1307fb: Add myself as binding co-maintainer

2022-02-04 Thread Javier Martinez Canillas
-by: Sam Ravnborg Signed-off-by: Javier Martinez Canillas --- (no changes since v1) Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree

Re: [PATCH v2 3/4] MAINTAINERS: Add entry for Solomon SSD130X OLED displays DRM driver

2022-02-04 Thread Javier Martinez Canillas
Hello Andy, On 2/4/22 14:57, Andy Shevchenko wrote: > On Fri, Feb 04, 2022 at 02:43:46PM +0100, Javier Martinez Canillas wrote: >> To make sure that tools like the get_maintainer.pl script will suggest >> to Cc me if patches are posted for this driver. >> >> Also incl

Re: [PATCH v2 3/4] MAINTAINERS: Add entry for Solomon SSD130X OLED displays DRM driver

2022-02-04 Thread Javier Martinez Canillas
On 2/4/22 15:28, Andy Shevchenko wrote: > On Fri, Feb 04, 2022 at 03:12:17PM +0100, Javier Martinez Canillas wrote: >> On 2/4/22 14:57, Andy Shevchenko wrote: >>> On Fri, Feb 04, 2022 at 02:43:46PM +0100, Javier Martinez Canillas wrote: > > ... > >>> Stray

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-04 Thread Javier Martinez Canillas
Hello Geert, On 2/4/22 15:31, Geert Uytterhoeven wrote: > Hi Javier, > > On Fri, Feb 4, 2022 at 2:43 PM Javier Martinez Canillas > wrote: >> This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306, >> SSD1307 and SSD1309 displays. It is a port of th

Re: [PATCH v2 2/4] drm/tiny: Add driver for Solomon SSD130X OLED displays

2022-02-04 Thread Javier Martinez Canillas
Hello Andy, Thanks for your feedback. On 2/4/22 15:26, Andy Shevchenko wrote: > On Fri, Feb 04, 2022 at 02:43:45PM +0100, Javier Martinez Canillas wrote: >> Add a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon OLED >> controllers that can be programmed via an I2C int

Re: [PATCH v2 1/4] drm/format-helper: Add drm_fb_{xrgb8888,gray8}_to_mono_reversed()

2022-02-04 Thread Javier Martinez Canillas
p = kmalloc(size of a single line of gray8) > > for (heigth) { > drm_fb_xrgb_to_gray8_line(tmp, ..., src, ...); > drm_fb_gray8_to_mono_reversed(dst, ..., tmp, ...); > > src += fb->pitches[0] > dst += dst_pitch; > } > > kfree(tmp); >} > I see. Yes, that sounds a much better approach. I'll change it in v3. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 2/4] drm/tiny: Add driver for Solomon SSD130X OLED displays

2022-02-05 Thread Javier Martinez Canillas
On 2/5/22 14:04, Andy Shevchenko wrote: > On Fri, Feb 04, 2022 at 08:19:12PM +0100, Javier Martinez Canillas wrote: >> On 2/4/22 15:26, Andy Shevchenko wrote: >>> On Fri, Feb 04, 2022 at 02:43:45PM +0100, Javier Martinez Canillas wrote: > > ... > >>>>

Re: [PATCH v2 7/9] drm/ast: Read encoder possible-CRTC mask from drm_crtc_mask()

2022-02-07 Thread Javier Martinez Canillas
On 2/7/22 15:15, Thomas Zimmermann wrote: > Read the encoder's possible-CRTC mask from the involved CRTC instead > of hard-coding it. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-08 Thread Javier Martinez Canillas
Hello Geert, Thanks a lot for testing! On 2/8/22 15:19, Geert Uytterhoeven wrote: > Hi Javier, > > On Fri, Feb 4, 2022 at 2:43 PM Javier Martinez Canillas > wrote: >> This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306, >> SSD1307 and SSD1309 displ

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-08 Thread Javier Martinez Canillas
Hello Mark, On 2/8/22 16:18, Mark Brown wrote: > On Tue, Feb 08, 2022 at 04:10:49PM +0100, Javier Martinez Canillas wrote: >> On 2/8/22 15:19, Geert Uytterhoeven wrote: > >>> - "time ls" on the serial console (no files in the current directory, >>> s

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-08 Thread Javier Martinez Canillas
the fbdev API. > > Fbcon does small writes to the shadow frame buffer, while fbtest > writes to the mmap()ed /dev/fbX, causing a full page to be updated. > I see. Thanks for the information. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-08 Thread Javier Martinez Canillas
On 2/8/22 16:40, Javier Martinez Canillas wrote: > On 2/8/22 16:23, Geert Uytterhoeven wrote: [snip] >> >> Fbcon does small writes to the shadow frame buffer, while fbtest >> writes to the mmap()ed /dev/fbX, causing a full page to be updated. >> > > I see.

Re: [PATCH v2 02/19] fbcon: Move fbcon_bmove(_rec) functions

2022-02-08 Thread Javier Martinez Canillas
> Signed-off-by: Daniel Vetter Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 06/19] fbcon: Use delayed work for cursor

2022-02-08 Thread Javier Martinez Canillas
time on fb_flashcursor(). The patch looks good to me and makes the logic much simpler than before. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 18/19] Revert "fbdev: Prevent probing generic drivers if a FB is already registered"

2022-02-08 Thread Javier Martinez Canillas
appens when the DRM driver is probed before the {efi,simple}fb and other fbdev drivers, the kicking out of conflicting framebuffers already happened and these drivers will be allowed to probe even when a DRM driver is already present. We need a clearer way to prevent it, but can't reve

[PATCH v3 1/7] drm/format-helper: Add drm_fb_xrgb8888_to_gray8_line()

2022-02-09 Thread Javier Martinez Canillas
Pull the per-line conversion logic into a separate helper function. This will allow to do line-by-line conversion in other helpers that convert to a gray8 format. Suggested-by: Thomas Zimmermann Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Add a drm_fb_xrgb_to_gray8_line

[PATCH v3 0/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
probe to make it more legible (Thomas Zimmermann) - ssd130x_write_cmd() uses varargs to simplify I2C code (Thomas Zimmermann) - Move regulator/pwm init logic to display pipe enable callback. - Add Sam Ravnborg's acked-by to patch adding a MAINTAINERS entry (Sam Ravnborg) - Add myself as

[PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon OLED display controllers. It's only the core part of the driver and a bus specific driver is needed for each transport interface supported by the display controllers. Signed-off-by: Javier Martinez Canillas --- Chang

[PATCH v3 2/7] drm/format-helper: Add drm_fb_{xrgb8888, gray8}_to_mono_reversed()

2022-02-09 Thread Javier Martinez Canillas
-by: Javier Martinez Canillas --- Changes in v3: - Also add a drm_fb_xrgb_to_mono_reversed() helper (Thomas Zimmermann) - Split lines copy to drm_fb_gray8_to_mono_reversed_line() (Thomas Zimmermann) - Handle case where the source buffer is not aligned to 8 (Thomas Zimmermann) drivers/gpu/drm

[PATCH v3 4/7] drm/solomon: Add SSD130X OLED displays I2C support

2022-02-09 Thread Javier Martinez Canillas
The ssd130x driver only provides the core support for these devices but it does not have any bus transport logic. Add a driver to interface over I2C. Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Add a separate driver for SSD130X chips I2C support (Andy Shevchenko) drivers/gpu

[PATCH v3 5/7] (WIP) drm/solomon: Add SSD130X OLED displays SPI support

2022-02-09 Thread Javier Martinez Canillas
The ssd130x driver only provides the core support for these devices but it does not have any bus transport logic. Add a driver to interface over SPI. Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Add a separate driver for SSD130X chips SPI support (Andy Shevchenko) drivers/gpu

[PATCH v3 6/7] MAINTAINERS: Add entry for Solomon SSD130X OLED displays DRM driver

2022-02-09 Thread Javier Martinez Canillas
RIVER FOR SOLOMON SSD130X OLED DISPLAYS +M: Javier Martinez Canillas +S: Maintained +T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +F: drivers/gpu/drm/solomon/ssd130x* + DRM DRIVER FOR QEMU'S CIRRUS

[PATCH v3 7/7] dt-bindings: display: ssd1307fb: Add myself as binding co-maintainer

2022-02-09 Thread Javier Martinez Canillas
-by: Sam Ravnborg Signed-off-by: Javier Martinez Canillas --- (no changes since v2) Changes in v2: - Add myself as co-maintainer of the ssd1370fb DT binding (Sam Ravnborg). Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [PATCH] lima: avoid error task dump attempt when not enabled

2022-02-09 Thread Javier Martinez Canillas
ly set the max_error_tasks parameter to enable the > feature. > > Signed-off-by: Erico Nunes > --- Looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 1/5] drm/fb-helper: Fix clip rectangle height

2022-02-09 Thread Javier Martinez Canillas
ngth. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 2/5] drm/fb-helper: Fix vertical damage clipping

2022-02-09 Thread Javier Martinez Canillas
ates the buffer object from the shadow buffer for all > such areas. The graphics driver's later has the option of clipping > the damaged area against the viewport when updating the screen > from the buffer object. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 3/5] drm/fb-helper: Calculate damaged area in separate helper

2022-02-09 Thread Javier Martinez Canillas
ry_range() or drm_fb_helper_memory_range_to_clip() instead ? Otherwise it looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 4/5] drm/fb-helper: Clip damage area to written memory range

2022-02-09 Thread Javier Martinez Canillas
accordingly. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas > drivers/gpu/drm/drm_fb_helper.c | 28 +--- > 1 file changed, 21 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/drm_fb_helper.c b/driver

Re: [PATCH 5/5] drm/fb-helper: Clip damage area horizontally

2022-02-09 Thread Javier Martinez Canillas
On 2/6/22 20:29, Thomas Zimmermann wrote: > Clip the damage area horizontally if only a single scanline has been > changed. This is helpful to reduce the memcpy overhead for small writes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best rega

Re: [PATCH v3 0/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Geert, On 2/9/22 13:19, Geert Uytterhoeven wrote: > Hi Javier, > > On Wed, Feb 9, 2022 at 10:03 AM Javier Martinez Canillas > wrote: >> This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306, >> SSD1307 and SSD1309 displays. It is a port of th

Re: [PATCH v3 4/7] drm/solomon: Add SSD130X OLED displays I2C support

2022-02-09 Thread Javier Martinez Canillas
= (void *)&ssd130x_ssd1305_deviceinfo, > > The casts are not needed. > Right. I copied the table from the ssd1307fb driver verbatim. I'll clean it up. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 5/7] (WIP) drm/solomon: Add SSD130X OLED displays SPI support

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 13:25, Geert Uytterhoeven wrote: > Hi Javier, > > On Wed, Feb 9, 2022 at 10:12 AM Javier Martinez Canillas > wrote: >> The ssd130x driver only provides the core support for these devices but it >> does not have any bus transport logic. Add a driver to interfac

Re: [PATCH v3 2/7] drm/format-helper: Add drm_fb_{xrgb8888, gray8}_to_mono_reversed()

2022-02-09 Thread Javier Martinez Canillas
t;> + * >> + * Calculate if the start and end pixels are not aligned and set the >> + * offsets for the reversed mono line conversion function to adjust. >> + */ >> +start_offset = clip->x1 % 8; >> +end_offset = clip->x2 % 8; > > end_len, again. If you have 1 single bit set in the final byte, the > offset is 0, but the length is 1. > Agreed, will change it too. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Mark, Thanks for your feedback. On 2/9/22 14:43, Mark Brown wrote: > On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: > >> +if (ssd130x->vbat_reg) { >> +ret = regulator_enable(ssd130x->vbat_reg);

Re: [PATCH v2 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Geert, On 2/9/22 15:27, Geert Uytterhoeven wrote: > Hi Andy, > > On Wed, Feb 9, 2022 at 2:48 PM Andy Shevchenko > wrote: >> On Tue, Feb 08, 2022 at 04:10:49PM +0100, Javier Martinez Canillas wrote: >>> On 2/8/22 15:19, Geert Uytterhoeven wrote: >>>>

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 15:22, Mark Brown wrote: > On Wed, Feb 09, 2022 at 03:17:06PM +0100, Javier Martinez Canillas wrote: >> On 2/9/22 14:43, Mark Brown wrote: > >>> Unless the device supports power being physically omitted regulator >>> usage should not be optional, it'

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 16:03, Mark Brown wrote: > On Wed, Feb 09, 2022 at 03:50:13PM +0100, Javier Martinez Canillas wrote: [snip] > >> But I understand why the Device Tree binding and fbdev driver used VBAT >> since that's what the documentation mentions. > > What is "

Re: [PATCH v3 2/7] drm/format-helper: Add drm_fb_{xrgb8888, gray8}_to_mono_reversed()

2022-02-09 Thread Javier Martinez Canillas
are not aligned and set the >>>> + * offsets for the reversed mono line conversion function to adjust. >>>> + */ >>>> + start_offset = clip->x1 % 8; >>>> + end_offset = clip->x2 % 8; >>> >>> end_len, again. If you have 1 single bit set in the final byte, the >>> offset is 0, but the length is 1. >>> >> >> Agreed, will change it too. > > Feel free to add my > > Reviewed-by: Thomas Zimmermann > Thanks! Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Andy, Thanks for your feedback. On 2/9/22 16:12, Andy Shevchenko wrote: > On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: >> This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon >> OLED display controllers. >> >> It&

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