[PATCH v5 3/3] drm: Add Generic USB Display driver

2021-02-12 Thread Noralf Trønnes
t doesn't really add anything. - Set dma mask, needed by dma-buf importers Cc: Peter Stuge Tested-by: Lubomir Rintel Acked-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile

[PATCH v5 0/3] GUD USB Display driver

2021-02-12 Thread Noralf Trønnes
] for more information and images for the Raspberry Pi Zero/4. Minor changes this time, no protocol changes. Noralf. [1] https://github.com/notro/gud/wiki Noralf Trønnes (3): drm/uapi: Add USB connector type drm/probe-helper: Check epoch counter in output_poll_execute() drm: Add Generic USB

[PATCH v5 2/3] drm/probe-helper: Check epoch counter in output_poll_execute()

2021-02-12 Thread Noralf Trønnes
anges. v2: - Add Fixes tag (Daniel) Fixes: 5186421cbfe2 ("drm: Introduce epoch counter to drm_connector") Reviewed-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_probe_helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --g

Re: [PATCH v4 0/3] Generic USB Display driver

2021-01-24 Thread Noralf Trønnes
Den 24.01.2021 19.38, skrev Lubomir Rintel: > On Wed, Jan 20, 2021 at 06:00:30PM +0100, Noralf Trønnes wrote: >> Hi, >> >> A while back I had the idea to turn a Raspberry Pi Zero into a $5 >> USB to HDMI/SDTV/DSI/DPI display adapter. >> >> The reason fo

Re: [PATCH v4 3/3] drm: Add Generic USB Display driver

2021-01-24 Thread Noralf Trønnes
Den 20.01.2021 19.02, skrev Daniel Vetter: > On Wed, Jan 20, 2021 at 6:11 PM Noralf Trønnes wrote: >> >> This adds a generic USB display driver with the intention that it can be >> used with future USB interfaced low end displays/adapters. The Linux >> gadg

Re: [PATCH v4 0/3] Generic USB Display driver

2021-01-23 Thread Noralf Trønnes
Den 21.01.2021 11.20, skrev Simon Ser: > On Thursday, January 21st, 2021 at 10:59 AM, Thomas Zimmermann > wrote: > >> Well, I'd strongly ask to not call it "generic", because it isn't. We >> have other USB drivers and anyone can make a USB display with these >> protocols as well. That

Re: [PATCH v4 1/3] drm/uapi: Add USB connector type

2021-01-22 Thread Noralf Trønnes
Den 22.01.2021 15.55, skrev Thomas Zimmermann: > Hi > > Am 22.01.21 um 15:35 schrieb Noralf Trønnes: >> >> >> Den 22.01.2021 13.47, skrev Thomas Zimmermann: >>> Hi >>> >>> Am 22.01.21 um 12:44 schrieb Noralf Trønnes: >>>> &g

Re: [PATCH v4 1/3] drm/uapi: Add USB connector type

2021-01-22 Thread Noralf Trønnes
Den 22.01.2021 13.47, skrev Thomas Zimmermann: > Hi > > Am 22.01.21 um 12:44 schrieb Noralf Trønnes: >> >> And wrt PCI it wouldn't be a PCI connector if the card has some other >> connector for the display, but if it was possible to connect a display >> directly

Re: [PATCH v4 1/3] drm/uapi: Add USB connector type

2021-01-22 Thread Noralf Trønnes
Den 22.01.2021 08.54, skrev Thomas Zimmermann: > Hi > > Am 21.01.21 um 19:07 schrieb Noralf Trønnes: >> >> >> Den 21.01.2021 11.01, skrev Thomas Zimmermann: >>> Hi >>> >>> Am 21.01.21 um 09:27 schrieb Daniel Vetter: >>>

Re: [PATCH v4 1/3] drm/uapi: Add USB connector type

2021-01-21 Thread Noralf Trønnes
omas! >>> >>> Am 20.01.21 um 18:42 schrieb Daniel Vetter: >>>> On Wed, Jan 20, 2021 at 6:10 PM Noralf Trønnes >>>> wrote: >>>>> >>>>> Add a connector type for USB connected display panels. >>>>> >&g

[PATCH v4 0/3] Generic USB Display driver

2021-01-20 Thread Noralf Trønnes
change this time is that I've followed Peter Stuge's advice to not let DRM stuff leak into the USB protocol. This has made the protocol easier to understand just from reading the header file. Noralf. [1] https://github.com/notro/gud/wiki Noralf Trønnes (3): drm/uapi: Add USB connector type drm

[PATCH v4 3/3] drm: Add Generic USB Display driver

2021-01-20 Thread Noralf Trønnes
tching when connector status is forced - Check EDID length reported by the device - Use drm_do_get_edid() so userspace can overrride EDID - Set epoch counter to signal connector status change - gud_drm_driver can be const now Cc: Peter Stuge Cc: Lubomir Rintel Signed-off-by: Noralf T

[PATCH v4 1/3] drm/uapi: Add USB connector type

2021-01-20 Thread Noralf Trønnes
Add a connector type for USB connected display panels. Signed-off-by: Noralf Trønnes --- include/uapi/drm/drm_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index fed66a03c7ae..33024cc5d26e 100644 --- a/include/uapi/drm

[PATCH v4 2/3] drm/probe-helper: Check epoch counter in output_poll_execute()

2021-01-20 Thread Noralf Trønnes
ue changes. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_probe_helper.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c index d6017726cc2a..e5432dcf6999 100644 --- a/drivers/gpu/drm/drm_probe_help

Re: [PATCH 3/6] drm/xen-front: Add YUYV to supported formats

2020-08-07 Thread Noralf Trønnes
Den 31.07.2020 14.51, skrev Oleksandr Andrushchenko: > From: Oleksandr Andrushchenko > > Add YUYV to supported formats, so the frontend can work with the > formats used by cameras and other HW. > > Signed-off-by: Oleksandr Andrushchenko > --- Ack

Re: [PATCH 5/6] drm/xen-front: Pass dumb buffer data offset to the backend

2020-08-07 Thread Noralf Trønnes
> > Signed-off-by: Oleksandr Andrushchenko > --- Acked-by: Noralf Trønnes ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 0/6] Generic USB Display driver

2020-07-16 Thread Noralf Trønnes
Den 14.07.2020 21.38, skrev Peter Stuge: > Noralf Trønnes wrote: >>> In all cases, the driver on the host knows/has available how many bytes >>> were successfully transfered. >> >> I was thinking about the device, that it could get out of sync. Let's >&

Re: [PATCH v3 0/6] Generic USB Display driver

2020-07-14 Thread Noralf Trønnes
Den 14.07.2020 19.40, skrev Peter Stuge: > Hi Noralf, > > Noralf Trønnes wrote: >> I would like to keep the SET_BUFFER request since it will serve as a >> syncing point between the host and the device. I'm no USB expert but I >> assume that a bulk transfer can fail

Re: [PATCH v3 4/6] drm: Add Generic USB Display driver

2020-07-14 Thread Noralf Trønnes
Den 02.06.2020 13.46, skrev Noralf Trønnes: > > > Den 02.06.2020 04.32, skrev Alan Stern: >> On Tue, Jun 02, 2020 at 12:12:07AM +, Peter Stuge wrote: >> >> ... >> >>> The way I read composite_setup() after try_fun_setup: it calls f->setup(

Re: [PATCH v3 0/6] Generic USB Display driver

2020-07-14 Thread Noralf Trønnes
Den 09.07.2020 18.32, skrev Lubomir Rintel: > Hello, > > On 29 May 2020 Noralf Trønnes wrote: > ... >> This series adds a USB host driver and a device/gadget driver to achieve >> that. >> >> The reason for calling it 'Generic' is so anyone can make a USB &g

Re: [RFC PATCH 0/4] DSI/DBI and TinyDRM driver

2020-07-08 Thread Noralf Trønnes
Den 08.07.2020 14.49, skrev Paul Cercueil: > Hi Daniel, > > Le mer. 8 juil. 2020 à 9:23, Daniel Vetter a écrit : >> On Tue, Jul 07, 2020 at 04:32:25PM +0200, Noralf Trønnes wrote: >>>  (cc Dillon) >>> >>>  Den 03.07.2020 19.26, skrev Sam Ravnborg: &

Re: [RFC PATCH 0/4] DSI/DBI and TinyDRM driver

2020-07-07 Thread Noralf Trønnes
(cc Dillon) Den 03.07.2020 19.26, skrev Sam Ravnborg: > Hi Noralf/Paul. > > Trying to stir up this discussion again. > > On Sun, Jun 14, 2020 at 06:36:22PM +0200, Noralf Trønnes wrote: >> >> >> Den 07.06.2020 15.38, skrev Paul Cercueil: >>> Hi,

Re: [PATCH] drm/dbi: Fix SPI Type 1 (9-bit) transfer

2020-07-05 Thread Noralf Trønnes
l > --- Thanks for fixing this, clearly I didn't test this. Probably because the aux spi ip block on the Raspberry Pi that can do 9 bit didn't have a driver at the time. Did you actually test this or was it spotted reading the code? Reviewed-by: Noralf Trønnes > drivers/gpu/drm/drm_mipi_dbi.c | 2

Re: [PATCH v4] drm/doc: device hot-unplug for userspace

2020-06-27 Thread Noralf Trønnes
sky > Cc: Dave Airlie > Cc: Sean Paul > Cc: Simon Ser > Cc: Noralf Trønnes > Cc: Ben Skeggs > Cc: Christian König > Cc: Harry Wentland > Cc: Karol Herbst > > --- > > Harry and Christian, could one of you ack this on behalf of AMD > drivers?

Re: [RFC PATCH 0/4] DSI/DBI and TinyDRM driver

2020-06-14 Thread Noralf Trønnes
Den 07.06.2020 15.38, skrev Paul Cercueil: > Hi, > > Here's a follow-up on the previous discussion about the current state of > DSI/DBI panel drivers, TinyDRM, and the need of a cleanup. > > This patchset introduces the following: > * It slightly tweaks the MIPI DSI code so that it supports

Re: [PATCH 8/8] drm/tiny/repaper: Drop edp->enabled

2020-06-13 Thread Noralf Trønnes
Den 12.06.2020 18.00, skrev Daniel Vetter: > Same patch as the mipi-dbi one, atomic tracks this for us already, we > just have to check the right thing. > > Signed-off-by: Daniel Vetter > Cc: "Noralf Trønnes" > ---

Re: [PATCH 7/8] drm/mipi-dbi: Remove ->enabled

2020-06-13 Thread Noralf Trønnes
crtc is off. And we don't want to > upload frames when that's the case, so filter that out too. > > Signed-off-by: Daniel Vetter > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Thomas Zimmermann > Cc: David Airlie > Cc: Daniel Vetter > Cc: David Lechner &g

Re: MIPI DSI, DBI, and tinydrm drivers

2020-06-05 Thread Noralf Trønnes
Hi Emil, Den 03.06.2020 22.25, skrev Emil Velikov: > Hi Noralf, > > On Wed, 3 Jun 2020 at 13:15, Noralf Trønnes wrote: >> >> Den 28.05.2020 17.27, skrev Emil Velikov: >>> On Sun, 24 May 2020 at 19:35, Daniel Vetter wrote: >>>> >>>>

Re: [PATCH v3 4/6] drm: Add Generic USB Display driver

2020-06-05 Thread Noralf Trønnes
Den 02.06.2020 20.38, skrev Peter Stuge: > Alan Stern wrote: A gadget driver can STALL in response to a control-OUT data packet, but only before it has seen the packet. >>> >>> How can it do that for OUT, and IN if possible there too? >> >> In the way described just above: The gadget

Re: [PATCH v3 4/6] drm: Add Generic USB Display driver

2020-06-03 Thread Noralf Trønnes
Den 02.06.2020 02.12, skrev Peter Stuge: > Hi Noralf, > > Thanks a lot for going into more detail. > > Noralf Trønnes wrote: >>> Several Linux/DRM internals have "leaked" into the USB protocol - this >>> should be avoided if you want device implemen

Re: [PATCH v2 03/10] drm/client: Add drm_client_framebuffer_flush()

2020-06-03 Thread Noralf Trønnes
Den 28.05.2020 15.48, skrev Emil Velikov: > Hi all, > > I realise this has landed, so a small FYI comment. > > On Sat, 9 May 2020 at 15:16, Noralf Trønnes wrote: > >> +int drm_client_framebuffer_flush(struct drm_client_buffer *buffer, struct >> drm_rect *rect

Re: MIPI DSI, DBI, and tinydrm drivers

2020-06-03 Thread Noralf Trønnes
Den 28.05.2020 17.27, skrev Emil Velikov: > On Sun, 24 May 2020 at 19:35, Daniel Vetter wrote: >> >> On Sun, May 24, 2020 at 7:46 PM Noralf Trønnes wrote: >>> >>> >>> >>> Den 24.05.2020 18.13, skrev Paul Cercueil: >>>> Hi list, &g

Re: [PATCH v3 6/6] usb: gadget: function: Add Generic USB Display support

2020-06-02 Thread Noralf Trønnes
Hi, Den 02.06.2020 19.05, skrev Felipe Balbi: > > Hi, > > I missed this completely until now. > Noralf Trønnes writes: >> This adds the gadget side support for the Generic USB Display. It presents >> a DRM display device as a USB Display configured through

Re: [PATCH v3 4/6] drm: Add Generic USB Display driver

2020-06-02 Thread Noralf Trønnes
Den 02.06.2020 04.32, skrev Alan Stern: > On Tue, Jun 02, 2020 at 12:12:07AM +, Peter Stuge wrote: > > ... > >> The way I read composite_setup() after try_fun_setup: it calls f->setup() >> when available, and that can return < 0 to stall. >> >> I expect that composite_setup() and thus

Re: [PATCH v3 4/6] drm: Add Generic USB Display driver

2020-06-01 Thread Noralf Trønnes
Hi Peter, Den 30.05.2020 00.45, skrev Peter Stuge: > Hi Noralf, > > Noralf Trønnes wrote: >> This adds a generic USB display driver with the intention that it can be >> used with future USB interfaced low end displays/adapters. > > Fun! > > >> Th

[PATCH v3 1/6] drm/client: Add drm_client_init_from_id()

2020-05-29 Thread Noralf Trønnes
drm_client_register() return status so clients can know if the DRM device is gone or not. v3: - Forgot to remove locking with the change in the previous version. No need for locking when drm_client_register() is not called. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client.c | 44

[PATCH v3 5/6] drm/gud: Add functionality for the USB gadget side

2020-05-29 Thread Noralf Trønnes
side can disable the gadget, special care has been taken to make that safe. v2: - Use drm_client_modeset_disable() Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/gud/Kconfig |6 + drivers/gpu/drm/gud/Makefile |1 + drivers/gpu/drm/gud/gud_drm_gadget.c | 1167

[PATCH v3 4/6] drm: Add Generic USB Display driver

2020-05-29 Thread Noralf Trønnes
gud_drm_req_set_buffer - Fix protocol version negotiation - Remove mode->vrefresh, it's calculated Signed-off-by: Noralf Trønnes --- MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile| 1 + drivers/gpu/drm/

[PATCH v3 6/6] usb: gadget: function: Add Generic USB Display support

2020-05-29 Thread Noralf Trønnes
framebuffer data/pixels are sent over the bulk endpoint. The DRM part of the gadget is placed in the DRM subsystem since it reaches into the DRM internals. Cc: Felipe Balbi Signed-off-by: Noralf Trønnes --- .../ABI/testing/configfs-usb-gadget-gud_drm | 10 + MAINTAINERS

[PATCH v3 0/6] Generic USB Display driver

2020-05-29 Thread Noralf Trønnes
ext=479da1f538a2f3547e15f9d5922c611b69ec2fbc Noralf Trønnes (6): drm/client: Add drm_client_init_from_id() drm/client: Add drm_client_modeset_disable() drm/client: Add a way to set modeset, properties and rotation drm: Add Generic USB Display driver drm/gud: Add functionality for the USB gadget side usb: gad

[PATCH v3 3/6] drm/client: Add a way to set modeset, properties and rotation

2020-05-29 Thread Noralf Trønnes
is not atomic (Sam) Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 137 +++ include/drm/drm_client.h | 38 +++- 2 files changed, 174 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm

[PATCH v3 2/6] drm/client: Add drm_client_modeset_disable()

2020-05-29 Thread Noralf Trønnes
Add a way for clients to disable all outputs. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 20 include/drm/drm_client.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm

Re: [PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-26 Thread Noralf Trønnes
Den 26.05.2020 11.08, skrev dillon min: > Hi Andy, > > Thanks for input. > > On Tue, May 26, 2020 at 3:46 PM Andy Shevchenko > wrote: >> >> On Mon, May 25, 2020 at 6:46 AM wrote: >>> >>> From: dillon min >>> >>> This driver combine tiny/ili9341.c mipi_dbi_interface driver >>> with

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-25 Thread Noralf Trønnes
Den 25.05.2020 04.05, skrev Paul Cercueil: > > > Le lun. 25 mai 2020 à 2:46, Noralf Trønnes a écrit : >> >> >> Den 24.05.2020 23.33, skrev Paul Cercueil: >>> >>> >>>  Le dim. 24 mai 2020 à 23:24, Noralf Trønnes a >>> éc

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-25 Thread Noralf Trønnes
Den 24.05.2020 20.35, skrev Daniel Vetter: > On Sun, May 24, 2020 at 7:46 PM Noralf Trønnes wrote: >> >> >> >> Den 24.05.2020 18.13, skrev Paul Cercueil: >>> Hi list, >>> >>> I'd like to open a discussion about the current support of MIPI D

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-24 Thread Noralf Trønnes
Den 24.05.2020 23.33, skrev Paul Cercueil: > > > Le dim. 24 mai 2020 à 23:24, Noralf Trønnes a écrit : >> >> >> Den 24.05.2020 22.42, skrev Paul Cercueil: >>> >>> >>>  Le dim. 24 mai 2020 à 22:14, Noralf Trønnes a >>> éc

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-24 Thread Noralf Trønnes
Den 24.05.2020 22.42, skrev Paul Cercueil: > > > Le dim. 24 mai 2020 à 22:14, Noralf Trønnes a écrit : >> >> >> Den 24.05.2020 21.54, skrev Paul Cercueil: >>>  Hi Noralf, >>> >>>  Le dim. 24 mai 2020 à 19:46, Noralf Trønnes a >&g

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-24 Thread Noralf Trønnes
Den 24.05.2020 21.54, skrev Paul Cercueil: > Hi Noralf, > > Le dim. 24 mai 2020 à 19:46, Noralf Trønnes a écrit : >> >> >> Den 24.05.2020 18.13, skrev Paul Cercueil: >>>  Hi list, >>> >>>  I'd like to open a discussion about the current

Re: MIPI DSI, DBI, and tinydrm drivers

2020-05-24 Thread Noralf Trønnes
Den 24.05.2020 18.13, skrev Paul Cercueil: > Hi list, > > I'd like to open a discussion about the current support of MIPI DSI and > DBI panels. > > Both are standards from the MIPI alliance, both are communication > protocols between a LCD controller and a LCD panel, they generally both > use

Re: [PATCH v2 2/2] drm/udl: Use GEM vmap/mmap function from SHMEM helpers

2020-05-21 Thread Noralf Trønnes
Den 19.05.2020 10.04, skrev Thomas Zimmermann: > The udl driver contains an implementation of GEM vmap and mmap > operations that is identical to the common SHMEM helper; except > that udl's code uses cached pages by default. > > Convert udl to regular SHMEM helper functions. There's no reason

[PATCH v2 07/10] drm/format-helper: Add drm_fb_swab()

2020-05-09 Thread Noralf Trønnes
This replaces drm_fb_swab16() with drm_fb_swab() supporting 16 and 32-bit. Also make pixel line caching optional. v2: - Bail out on cpp != 2 && 4 (Sam) Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_format_helper.c | 61 +++--

[PATCH v2 05/10] drm/client: Add drm_client_modeset_disable()

2020-05-09 Thread Noralf Trønnes
Add a way for clients to disable all outputs. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 20 include/drm/drm_client.h | 1 + 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm

[PATCH v2 06/10] drm/client: Add a way to set modeset, properties and rotation

2020-05-09 Thread Noralf Trønnes
is not atomic (Sam) Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 137 +++ include/drm/drm_client.h | 38 +++- 2 files changed, 174 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm

[PATCH v2 10/10] usb: gadget: function: Add Generic USB Display support

2020-05-09 Thread Noralf Trønnes
framebuffer data/pixels are sent over the bulk endpoint. The DRM part of the gadget is placed in the DRM subsystem since it reaches into the DRM internals. Cc: Felipe Balbi Signed-off-by: Noralf Trønnes --- .../ABI/testing/configfs-usb-gadget-gud_drm | 10 + MAINTAINERS

[PATCH v2 02/10] drm/client: Add drm_client_init_from_id()

2020-05-09 Thread Noralf Trønnes
drm_client_register() return status so clients can know if the DRM device is gone or not. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client.c | 48 +++- include/drm/drm_client.h | 4 ++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git

[PATCH v2 04/10] drm/client: Add drm_client_modeset_check()

2020-05-09 Thread Noralf Trønnes
Add a way for client to check the configuration before comitting. v2: - Fix docs (Sam) Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 35 include/drm/drm_client.h | 1 + 2 files changed, 32

[PATCH v2 09/10] drm/gud: Add functionality for the USB gadget side

2020-05-09 Thread Noralf Trønnes
side can disable the gadget, special care has been taken to make that safe. v2: - Use drm_client_modeset_disable() Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/gud/Kconfig |6 + drivers/gpu/drm/gud/Makefile |1 + drivers/gpu/drm/gud/gud_drm_gadget.c | 1165

[PATCH v2 08/10] drm: Add Generic USB Display driver

2020-05-09 Thread Noralf Trønnes
-off-by: Noralf Trønnes --- MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile| 1 + drivers/gpu/drm/gud/Kconfig | 14 + drivers/gpu/drm/gud/Makefile| 4 + drivers/gpu/drm/gud

[PATCH v2 01/10] backlight: Add backlight_device_get_by_name()

2020-05-09 Thread Noralf Trønnes
Add a way to lookup a backlight device based on its name. Will be used by a USB display gadget getting the name from configfs. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Reviewed-by: Sam Ravnborg Reviewed-by: Daniel Thompson Acked-by: Lee Jones Signed-off-by: Noralf Trønnes

[PATCH v2 00/10] Generic USB Display driver

2020-05-09 Thread Noralf Trønnes
comments Noralf. [1] https://youtu.be/AhGZWwUm8JU [2] tools/usb/usbip/README [3] https://magpi.raspberrypi.org/articles/raspberry-pi-specs-benchmarks Noralf Trønnes (10): backlight: Add backlight_device_get_by_name() drm/client: Add drm_client_init_from_id() drm/client: Add

[PATCH v2 03/10] drm/client: Add drm_client_framebuffer_flush()

2020-05-09 Thread Noralf Trønnes
Some drivers need explicit flushing of buffer changes, add a function that does that. v2: - Put all clip rect stuff inside if statement (Sam) Reviewed-by: Sam Ravnborg Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client.c | 33 + include/drm

Re: [PATCH 02/10] drm: Add backlight helper

2020-05-04 Thread Noralf Trønnes
Den 04.05.2020 14.06, skrev Daniel Vetter: > On Wed, Apr 29, 2020 at 02:48:22PM +0200, Noralf Trønnes wrote: >> This adds a function that creates a backlight device for a connector. >> It does not deal with the KMS backlight ABI proposition[1] to add a >> connector pr

Re: [PATCH 07/10] drm/format-helper: Add drm_fb_swab()

2020-05-03 Thread Noralf Trønnes
Den 03.05.2020 12.29, skrev Sam Ravnborg: > Hi Noralf > > On Wed, Apr 29, 2020 at 02:48:27PM +0200, Noralf Trønnes wrote: >> This replaces drm_fb_swab16() with drm_fb_swab() supporting 16 and 32-bit. >> Also make pixel line caching optional. >> >> Signed-o

Re: [PATCH 06/10] drm/client: Add a way to set modeset, properties and rotation

2020-05-03 Thread Noralf Trønnes
r that state/property and 2 weeks later the insight is gone. It just doesn't stick. What makes it difficult for me I believe is that I have never looked much at the userspace side, how this is all used. > > Sam > > On Wed, Apr 29, 2020 at 02:48:26PM +0200, Noralf Trønnes wrote

Re: [PATCH 05/10] drm/client: Add drm_client_modeset_check()

2020-05-03 Thread Noralf Trønnes
Den 03.05.2020 10.03, skrev Sam Ravnborg: > Hi Noralf. > > On Wed, Apr 29, 2020 at 02:48:25PM +0200, Noralf Trønnes wrote: >> Add a way for client to check the configuration before comitting. >> >> Signed-off-by: Noralf Trønnes > Two small ntis. With these

Re: [PATCH 04/10] drm/client: Add drm_client_framebuffer_flush()

2020-05-03 Thread Noralf Trønnes
Den 03.05.2020 09.48, skrev Sam Ravnborg: > Hi Noralf. > > On Wed, Apr 29, 2020 at 02:48:24PM +0200, Noralf Trønnes wrote: >> Some drivers need explicit flushing of buffer changes, add a function >> that does that. > I trust you on this. All drivers in tiny/ and at l

Re: [PATCH 08/10] drm: Add Generic USB Display driver

2020-05-02 Thread Noralf Trønnes
Den 29.04.2020 14.48, skrev Noralf Trønnes: > This adds a generic USB display driver with the intention that it can be > used with future USB interfaced low end displays/adapters. The Linux > gadget device driver will serve as the canonical device implementation. > > Th

Re: [PATCH 00/10] Generic USB Display driver

2020-05-01 Thread Noralf Trønnes
Den 29.04.2020 14.48, skrev Noralf Trønnes: > Hi, > > A while back I had the idea to turn a Raspberry Pi Zero into a $5 > USB to HDMI/SDTV/DSI/DPI display adapter. > > This series adds a USB host driver and a device/gadget driver to achieve > that. > > The rea

Re: [PATCH 01/10] backlight: Add backlight_device_get_by_name()

2020-04-30 Thread Noralf Trønnes
Den 30.04.2020 12.15, skrev Lee Jones: > On Thu, 30 Apr 2020, Noralf Trønnes wrote: > >> >> >> Den 30.04.2020 10.32, skrev Lee Jones: >>> On Wed, 29 Apr 2020, Noralf Trønnes wrote: >>> >>>> Add a way to lookup a backlight device based

Re: [PATCH 01/10] backlight: Add backlight_device_get_by_name()

2020-04-30 Thread Noralf Trønnes
Den 30.04.2020 10.32, skrev Lee Jones: > On Wed, 29 Apr 2020, Noralf Trønnes wrote: > >> Add a way to lookup a backlight device based on its name. >> Will be used by a USB display gadget getting the name from configfs. >> >> Cc: Lee Jones >> Cc: Daniel Th

Re: [PATCH 02/10] drm: Add backlight helper

2020-04-29 Thread Noralf Trønnes
Den 29.04.2020 16.13, skrev Hans de Goede: > Hi Noralf, > > On 4/29/20 2:48 PM, Noralf Trønnes wrote: >> This adds a function that creates a backlight device for a connector. >> It does not deal with the KMS backlight ABI proposition[1] to add a >> connector property

[PATCH 08/10] drm: Add Generic USB Display driver

2020-04-29 Thread Noralf Trønnes
the path for any BSD port of the driver. Signed-off-by: Noralf Trønnes --- MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile| 1 + drivers/gpu/drm/gud/Kconfig | 14 + drivers/gpu/drm/gud

[PATCH 03/10] drm/client: Add drm_client_init_from_id()

2020-04-29 Thread Noralf Trønnes
drm_client_register() return status so clients can know if the DRM device is gone or not. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client.c | 48 +++- include/drm/drm_client.h | 4 ++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git

[PATCH 01/10] backlight: Add backlight_device_get_by_name()

2020-04-29 Thread Noralf Trønnes
Add a way to lookup a backlight device based on its name. Will be used by a USB display gadget getting the name from configfs. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Signed-off-by: Noralf Trønnes --- drivers/video/backlight/backlight.c | 21 + include/linux

[PATCH 10/10] usb: gadget: function: Add Generic USB Display support

2020-04-29 Thread Noralf Trønnes
framebuffer data/pixels are sent over the bulk endpoint. The DRM part of the gadget is placed in the DRM subsystem since it reaches into the DRM internals. Cc: Felipe Balbi Signed-off-by: Noralf Trønnes --- .../ABI/testing/configfs-usb-gadget-gud_drm | 10 + MAINTAINERS

[PATCH 07/10] drm/format-helper: Add drm_fb_swab()

2020-04-29 Thread Noralf Trønnes
This replaces drm_fb_swab16() with drm_fb_swab() supporting 16 and 32-bit. Also make pixel line caching optional. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_format_helper.c | 61 +++-- drivers/gpu/drm/drm_mipi_dbi.c | 2 +- include/drm

[PATCH 04/10] drm/client: Add drm_client_framebuffer_flush()

2020-04-29 Thread Noralf Trønnes
Some drivers need explicit flushing of buffer changes, add a function that does that. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client.c | 31 +++ include/drm/drm_client.h | 1 + 2 files changed, 32 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 00/10] Generic USB Display driver

2020-04-29 Thread Noralf Trønnes
another USB interface of type VENDOR, so it's still possible for the display to be part of a multi function device. Noralf. [1] https://youtu.be/AhGZWwUm8JU [2] https://magpi.raspberrypi.org/articles/raspberry-pi-specs-benchmarks [3] https://patchwork.freedesktop.org/series/73508/ Noralf Trønnes (10

[PATCH 09/10] drm/gud: Add functionality for the USB gadget side

2020-04-29 Thread Noralf Trønnes
side can disable the gadget, special care has been taken to make that safe. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/gud/Kconfig |6 + drivers/gpu/drm/gud/Makefile |1 + drivers/gpu/drm/gud/gud_drm_gadget.c | 1169 ++ include/drm/gud_drm.h

[PATCH 05/10] drm/client: Add drm_client_modeset_check()

2020-04-29 Thread Noralf Trønnes
Add a way for client to check the configuration before comitting. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 35 include/drm/drm_client.h | 1 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/drivers/gpu

[PATCH 02/10] drm: Add backlight helper

2020-04-29 Thread Noralf Trønnes
/hw/xfree86/drivers/modesetting/drmmode_display.c [8] https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/blob/master/src/backlight.c Cc: Hans de Goede Cc: Jani Nikula Cc: Martin Peres Cc: Daniel Thompson Signed-off-by: Noralf Trønnes --- Documentation/gpu/drm-kms-helpers.rst |

[PATCH 06/10] drm/client: Add a way to set modeset, properties and rotation

2020-04-29 Thread Noralf Trønnes
drm_client_modeset_set_property(). Property setting is only implemented for atomic drivers. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_client_modeset.c | 139 +++ include/drm/drm_client.h | 38 +++- 2 files changed, 176 insertions(+), 1 deletion

Re: [PATCH 05/10] drm/mediathek: Remove error check from fbdev setup

2020-04-07 Thread Noralf Trønnes
Den 06.04.2020 15.44, skrev Thomas Zimmermann: > Remove the error check from the fbdev setup function. The function > will print a warning. > > Signed-off-by: Thomas Zimmermann > --- Subject: s/mediathek/mediatek/ ___ dri-devel mailing list

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Noralf Trønnes
t; > [1] > https://lore.kernel.org/dri-devel/20200403135828.2542770-1-daniel.vet...@ffwll.ch/T/#m216b5b37aeeb7b28d55ad73b7a702b3d1d7bf867 > Thanks for doing this, series is: Reviewed-by: Noralf Trønnes With so many drivers using generic fbdev I wondered if we could make it the d

Re: [PATCH 15/44] drm/udl: Use demv_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 05.04.2020 15.47, skrev Daniel Vetter: > On Sun, Apr 5, 2020 at 12:18 PM Noralf Trønnes wrote: >> >> >> >> Den 03.04.2020 15.57, skrev Daniel Vetter: >>> Also init the fbdev emulation before we register the device, that way >>> we can rely on

Re: [PATCH 44/44] drm/managed: Cleanup of unused functions and polishing docs

2020-04-05 Thread Noralf Trønnes
parent can be NULL. > - * > - * Drivers that wish to subclass or embed drm_device into their > - * own struct should look at using drm_dev_init() instead. > + * This is the deprecated version of devm_drm_dev_alloc(), which doesn not > support s/doesn/does/ > + * subclassing through embedding t

Re: [PATCH 02/44] drm: Add devm_drm_dev_alloc macro

2020-04-05 Thread Noralf Trønnes
ons and make the documentation for driver authors a lot > cleaner and less confusing. There will be only one true way to > initialize a drm_device at the end of this, which is going to be > devm_drm_dev_alloc. > > Cc: Paul Kocialkowski > Cc: Laurent Pinchart > Signed-off-by: Daniel Vetter

Re: [PATCH 15/44] drm/udl: Use demv_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 03.04.2020 15.57, skrev Daniel Vetter: > Also init the fbdev emulation before we register the device, that way > we can rely on the auto-cleanup and simplify the probe error code even > more. > > Signed-off-by: Daniel Vetter > Cc: Dave Airlie > Cc: Sean Paul > Cc: Thomas Zimmermann >

Re: [PATCH 39/44] drm/cirrus: Use devm_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 03.04.2020 15.58, skrev Daniel Vetter: > Already using devm_drm_dev_init, so very simple replacment. > > Signed-off-by: Daniel Vetter > Cc: Dave Airlie > Cc: Gerd Hoffmann > Cc: Daniel Vetter > Cc: Sam Ravnborg > Cc: "Noralf Trønnes" > Cc: Rob H

Re: [PATCH 21/44] drm/ili9486: Use devm_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 03.04.2020 15.58, skrev Daniel Vetter: > Already using devm_drm_dev_init, so very simple replacment. > > Signed-off-by: Daniel Vetter > Cc: Kamlesh Gurudasani > --- Acked-by: Noralf Trønnes ___ dri-devel mailing

Re: [PATCH 20/44] drm/mi0283qt: Use devm_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 03.04.2020 15.58, skrev Daniel Vetter: > Already using devm_drm_dev_init, so very simple replacment. > > Signed-off-by: Daniel Vetter > Cc: "Noralf Trønnes" > --- Acked-by: Noralf Trønnes ___ dri-dev

Re: [PATCH 19/44] drm/repaper: Use devm_drm_dev_alloc

2020-04-05 Thread Noralf Trønnes
Den 03.04.2020 15.58, skrev Daniel Vetter: > Already using devm_drm_dev_init, so very simple replacment. > > Signed-off-by: Daniel Vetter > Cc: "Noralf Trønnes" > --- Acked-by: Noralf Trønnes ___ dri-dev

Re: [PATCH] drm/mipi-dbi: Make mipi_dbi_command_stackbuf() data parameter const

2020-03-20 Thread Noralf Trønnes
; > OK to merge? > Looks good to me and build did not break. Sure, I planned to look at it this weekend, but if you can apply it, great. Reviewed-by: Noralf Trønnes Noralf. > > Sam > >> --- >> drivers/gpu/drm/drm_mipi_dbi.c | 3 ++- >> include/drm/drm_mipi_

Re: [PATCH 2/2] drm/format_helper: Dual licence the header in GPL-2 and MIT

2020-03-20 Thread Noralf Trønnes
Den 20.03.2020 03.21, skrev Emmanuel Vadot: > Source file was dual licenced but the header was omitted, fix that. > Contributors for this file are: > Noralf Trønnes > Gerd Hoffmann > Thomas Gleixner > > Signed-off-by: Emmanuel Vadot > ---

Re: [PATCH 1/2] drm/client: Dual licence the header in GPL-2 and MIT

2020-03-20 Thread Noralf Trønnes
Den 20.03.2020 03.21, skrev Emmanuel Vadot: > Source file was dual licenced but the header was omitted, fix that. > Contributors for this file are: > Daniel Vetter > Matt Roper > Maxime Ripard > Noralf Trønnes > Thomas Zimmermann > > Signed-off-by: Emmanuel Vad

Re: [RFC 2/9] mfd: Add driver for Multifunction USB Device

2020-02-29 Thread Noralf Trønnes
Den 27.02.2020 10.09, skrev Lee Jones: > I'd really like someone from USB to have a look through this too. > > I'll do a quick first pass and provide some general comments though. > > On Sun, 16 Feb 2020, Noralf Trønnes wrote: >> A Multifunction USB Device is a device th

Re: [PATCH v2 1/2] drm/client: Dual licence the file in GPL-2 and MIT

2020-02-28 Thread Noralf Trønnes
l Vadot wrote: >>>>> From: Emmanuel Vadot >>>>> >>>>> Contributors for this file are : >>>>> Chris Wilson >>>>> Denis Efremov >>>>> Jani Nikula >>>>> Maxime Ripard >>>>> N

Re: [RFC 8/9] drm/client: Add drm_client_init_from_id() and drm_client_modeset_set()

2020-02-23 Thread Noralf Trønnes
Den 17.02.2020 10.38, skrev Daniel Vetter: > On Sun, Feb 16, 2020 at 06:21:16PM +0100, Noralf Trønnes wrote: >> drm_client_init_from_id() provides a way for clients to add a client based >> on the minor. drm_client_modeset_set() provides a way to set the modeset >> for

Re: [PATCH 26/51] drm: Manage drm_mode_config_init with drmm_

2020-02-23 Thread Noralf Trønnes
n fails, we'd be > missing some mutex_destroy and ida_cleanup otherwise (Laurent) > > v4: Add a drmm_add_action_or_reset (like devm_ has) to encapsulate this > pattern (Noralf). > > Cc: Laurent Pinchart > Cc: "Noralf Trønnes" > Cc: Sam Ravnborg > Cc: Thomas

Re: [PATCH 48/52] drm/mipi-dbi: Move drm_mode_config_init into mipi library

2020-02-20 Thread Noralf Trønnes
Den 19.02.2020 11.21, skrev Daniel Vetter: > 7/7 drivers agree that's the right choice, let's do this. > > This avoids duplicating the same old error checking code over all 7 > drivers, which is the motivation here. > > Signed-off-by: Daniel Vetter > --- Review

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