Re: [PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-28 Thread Noralf Trønnes
Den 28.02.2021 02.52, skrev Peter Stuge: > Noralf Trønnes wrote: >> Peter, please have a look at this diff and see if I'm on the right track >> here: https://gist.github.com/notro/a43a93a3aa0cc75d930890b7b254fc0a > > Yes that's exactly what I meant; this way the possibil

Re: [PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-26 Thread Noralf Trønnes
Den 25.02.2021 22.37, skrev Peter Stuge: > Noralf Trønnes wrote: >>> I forgot, but I have a two-tone (black/red) e-ink display here, and I >>> also have a 3-bpp RGB TFT display. >> >> I've been anticipating the need for more formats, but I didn't want to

Re: [PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-26 Thread Noralf Trønnes
Den 20.02.2021 18.27, skrev Noralf Trønnes: > > > Den 19.02.2021 22.42, skrev Peter Stuge: >> >> More generally it's not very typical in USB to report the data size >> separately from the data itself, if reporting size explicitly at all. >> >> Sizes c

Re: [PATCH v5] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-26 Thread Noralf Trønnes
Den 26.02.2021 10.26, skrev Thomas Zimmermann: > USB devices cannot perform DMA and hence have no dma_mask set in their > device structure. Therefore importing dmabuf into a USB-based driver > fails, which breaks joining and mirroring of display in X11. > > For USB devices, pick the associated

Re: [PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-25 Thread Noralf Trønnes
Den 25.02.2021 10.58, skrev Peter Stuge: > Hi Noralf, > > Noralf Trønnes wrote: >> The driver supports a one bit monochrome transfer format: R1. This is not >> implemented in the gadget driver. It is added in preparation for future >> monochrome e-ink displays. >

Re: [PATCH] drm/shmem-helpers: vunmap: Don't put pages for dma-buf

2021-02-25 Thread Noralf Trønnes
Den 25.02.2021 09.12, skrev Thomas Zimmermann: > Hi > > Am 24.02.21 um 18:14 schrieb Noralf Trønnes: >> >> >> Den 19.02.2021 14.54, skrev Thomas Zimmermann: >>> Hi >>> >>> Am 19.02.21 um 13:22 schrieb Noralf Trønnes: >>>> dma-

Re: [PATCH] drm/shmem-helpers: vunmap: Don't put pages for dma-buf

2021-02-24 Thread Noralf Trønnes
Den 19.02.2021 14.54, skrev Thomas Zimmermann: > Hi > > Am 19.02.21 um 13:22 schrieb Noralf Trønnes: >> dma-buf importing was reworked in commit 7d2cd72a9aa3 >> ("drm/shmem-helpers: Simplify dma-buf importing"). Before that commit >> drm_gem_

Re: [PATCH] drm/prime: Only call dma_map_sgtable() for devices with DMA support

2021-02-22 Thread Noralf Trønnes
Den 22.02.2021 08.54, skrev Thomas Zimmermann: > Hi > > Am 20.02.21 um 14:02 schrieb Noralf Trønnes: >> >> >> Den 19.02.2021 14.40, skrev Thomas Zimmermann: >>> Fixes a regression for udl and probably other USB-based drivers where >>> joining

Re: [PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-20 Thread Noralf Trønnes
Den 19.02.2021 22.42, skrev Peter Stuge: > Hi Noralf, > > Noralf Trønnes wrote: >> +++ b/drivers/gpu/drm/gud/gud_connector.c > .. >> +static int gud_connector_get_edid_block(void *data, u8 *buf, unsigned int >> block, size_t len) > .. >> +s

Re: [PATCH] drm/prime: Only call dma_map_sgtable() for devices with DMA support

2021-02-20 Thread Noralf Trønnes
Den 19.02.2021 14.40, skrev Thomas Zimmermann: > Fixes a regression for udl and probably other USB-based drivers where > joining and mirroring displays fails. > > Joining displays requires importing a dma_buf from another DRM driver. > These devices don't support DMA and therefore have no DMA

[PATCH] drm/shmem-helpers: vunmap: Don't put pages for dma-buf

2021-02-19 Thread Noralf Trønnes
thout the use count set, put pages is called also on dma-bufs. Fix this by only putting pages if it's not imported. Fixes: 7d2cd72a9aa3 ("drm/shmem-helpers: Simplify dma-buf importing") Cc: Daniel Vetter Cc: Thomas Zimmermann Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm

[PATCH v6 3/3] drm: Add GUD USB Display driver

2021-02-19 Thread Noralf Trønnes
drm/panel/panel-feiyang-fy07024di26a30d.c +DRM DRIVER FOR GENERIC USB DISPLAY +M: Noralf Trønnes +S: Maintained +W: https://github.com/notro/gud/wiki +T: git git://anongit.freedesktop.org/drm/drm-misc +F: drivers/gpu/drm/gud/ +F: include/drm/gud.h + DRM DRIVER FOR GR

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

2021-02-19 Thread Noralf Trønnes
-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_connector.c | 1 + include/uapi/drm/drm_mode.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 717c4e7271b0..52712daed3bc 100644 --- a/drivers

[PATCH v6 0/3] GUD USB Display driver

2021-02-19 Thread Noralf Trønnes
] for more information and images for the Raspberry Pi Zero/4. Changes in this version: - Use obj-y in Makefile (Peter) - Fix missing le32_to_cpu() when using GUD_DISPLAY_MAGIC (Peter) - Set initial brightness on backlight device Noralf. [1] https://github.com/notro/gud/wiki Noralf Trønnes (3

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

2021-02-19 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 v5 3/3] drm: Add Generic USB Display driver

2021-02-16 Thread Noralf Trønnes
Den 16.02.2021 17.40, skrev Noralf Trønnes: > > > Den 16.02.2021 14.36, skrev Oliver Neukum: >> Am Freitag, den 12.02.2021, 18:46 +0100 schrieb Noralf Trønnes: >>> +static void gud_connector_early_unregister(struct drm_connector *connector) >>> +{ >&g

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

2021-02-16 Thread Noralf Trønnes
Den 16.02.2021 14.36, skrev Oliver Neukum: > Am Freitag, den 12.02.2021, 18:46 +0100 schrieb Noralf Trønnes: >> +static void gud_connector_early_unregister(struct drm_connector *connector) >> +{ >> + struct gud_connector *gconn = to_gu

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

2021-02-16 Thread Noralf Trønnes
Den 15.02.2021 12.58, skrev Peter Stuge: > Hi Noralf, > > I was happy to see v4 - thanks for accepting so much of my feedback - > and I have to say that the new recursive acronym makes me smile! :) > Yeah I also had to smile when Simon Ser suggested it. > > Noralf Tr

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

2021-02-12 Thread Noralf Trønnes
-by: Daniel Vetter Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_connector.c | 1 + include/uapi/drm/drm_mode.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 717c4e7271b0..52712daed3bc 100644 --- a/drivers

[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 |

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