[PATCH v3 3/7] i2c: bcm2835: Use dev_dbg logging on transfer errors

2016-09-28 Thread Noralf Trønnes
dev_err() on transfer error, so switch to dev_dbg() instead. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes: - use dev_dbg instead of dev_err_ratelimited drivers/i2c/busses/i2c-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/buss

[PATCH v3 3/7] i2c: bcm2835: Use dev_dbg logging on transfer errors

2016-09-28 Thread Noralf Trønnes
dev_err() on transfer error, so switch to dev_dbg() instead. Signed-off-by: Noralf Trønnes --- Changes: - use dev_dbg instead of dev_err_ratelimited drivers/i2c/busses/i2c-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers

Re: [PATCH v2 3/8] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-27 Thread Noralf Trønnes
Den 27.09.2016 15:01, skrev Martin Sperl: On 27 Sep 2016, at 13:57, Noralf Trønnes <nor...@tronnes.org> wrote: Writing to an AT24C32 generates on average 2x i2c transfer errors per 32-byte page write. Which amounts to a lot for a 4k write. This is due to the fact that the chip doesn't r

Re: [PATCH v2 3/8] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-27 Thread Noralf Trønnes
Den 27.09.2016 15:01, skrev Martin Sperl: On 27 Sep 2016, at 13:57, Noralf Trønnes wrote: Writing to an AT24C32 generates on average 2x i2c transfer errors per 32-byte page write. Which amounts to a lot for a 4k write. This is due to the fact that the chip doesn't respond during it's internal

Re: [PATCH v2 8/8] ARM: bcm2835: Disable i2c2 in the Device Tree

2016-09-27 Thread Noralf Trønnes
Den 27.09.2016 19:25, skrev Stefan Wahren: Noralf Trønnes <nor...@tronnes.org> hat am 27. September 2016 um 13:57 geschrieben: i2c2 is connected to the HDMI connector and is controlled by the firmware. Disable it to stay out of harms way. Until this point the commit message is okay, th

Re: [PATCH v2 8/8] ARM: bcm2835: Disable i2c2 in the Device Tree

2016-09-27 Thread Noralf Trønnes
Den 27.09.2016 19:25, skrev Stefan Wahren: Noralf Trønnes hat am 27. September 2016 um 13:57 geschrieben: i2c2 is connected to the HDMI connector and is controlled by the firmware. Disable it to stay out of harms way. Until this point the commit message is okay, the rest is more confusing

[PATCH v2 4/8] i2c: bcm2835: Can't support I2C_M_IGNORE_NAK

2016-09-27 Thread Noralf Trønnes
ent. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index 370a322..4e08add 100644 --- a/drivers/i2c/busses/i2c-bcm2835.c +++ b/dr

[PATCH v2 2/8] i2c: bcm2835: Protect against unexpected TXW/RXR interrupts

2016-09-27 Thread Noralf Trønnes
be cleared that way. Add the status value to the error value in case of TXW/RXR errors to distinguish them from the other S_LEN error. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 31 ++- 1 file changed, 22 insertions

[PATCH v2 7/8] i2c: bcm2835: Add support for dynamic clock

2016-09-27 Thread Noralf Trønnes
Support a dynamic clock by reading the frequency and setting the divisor in the transfer function instead of during probe. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 51 +--- 1 file changed, 32 insertions(

[PATCH v2 4/8] i2c: bcm2835: Can't support I2C_M_IGNORE_NAK

2016-09-27 Thread Noralf Trønnes
ent. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index 370a322..4e08add 100644 --- a/drivers/i2c/busses/i2c-bcm2835.c +++ b/drivers/i2c/busses/i2c-bcm283

[PATCH v2 2/8] i2c: bcm2835: Protect against unexpected TXW/RXR interrupts

2016-09-27 Thread Noralf Trønnes
be cleared that way. Add the status value to the error value in case of TXW/RXR errors to distinguish them from the other S_LEN error. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff

[PATCH v2 7/8] i2c: bcm2835: Add support for dynamic clock

2016-09-27 Thread Noralf Trønnes
Support a dynamic clock by reading the frequency and setting the divisor in the transfer function instead of during probe. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 51 +--- 1 file changed, 32 insertions(+), 19 deletions(-) diff

[PATCH v2 8/8] ARM: bcm2835: Disable i2c2 in the Device Tree

2016-09-27 Thread Noralf Trønnes
hed display - use with caution. It is recommended to disable accesses by VideoCore by setting hdmi_ignore_edid=1 or hdmi_edid_file=1 in config.txt. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 1 file changed, 4 deletions(-) diff --git a

[PATCH v2 5/8] i2c: bcm2835: Add support for Repeated Start Condition

2016-09-27 Thread Noralf Trønnes
(eeprom) in parallel without problems. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 101 --- 1 file changed, 63 insertions(+), 38 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/buss

[PATCH v2 0/8] i2c: bcm2835: Bring in changes from downstream

2016-09-27 Thread Noralf Trønnes
. Noralf Trønnes (8): i2c: bcm2835: Fix hang for writing messages larger than 16 bytes i2c: bcm2835: Protect against unexpected TXW/RXR interrupts i2c: bcm2835: Use ratelimited logging on transfer errors i2c: bcm2835: Can't support I2C_M_IGNORE_NAK i2c: bcm2835: Add support for Repeated

[PATCH v2 8/8] ARM: bcm2835: Disable i2c2 in the Device Tree

2016-09-27 Thread Noralf Trønnes
hed display - use with caution. It is recommended to disable accesses by VideoCore by setting hdmi_ignore_edid=1 or hdmi_edid_file=1 in config.txt. Signed-off-by: Noralf Trønnes --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm2

[PATCH v2 5/8] i2c: bcm2835: Add support for Repeated Start Condition

2016-09-27 Thread Noralf Trønnes
(eeprom) in parallel without problems. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 101 --- 1 file changed, 63 insertions(+), 38 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index 4e08add

[PATCH v2 0/8] i2c: bcm2835: Bring in changes from downstream

2016-09-27 Thread Noralf Trønnes
. Noralf Trønnes (8): i2c: bcm2835: Fix hang for writing messages larger than 16 bytes i2c: bcm2835: Protect against unexpected TXW/RXR interrupts i2c: bcm2835: Use ratelimited logging on transfer errors i2c: bcm2835: Can't support I2C_M_IGNORE_NAK i2c: bcm2835: Add support for Repeated

[PATCH v2 3/8] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-27 Thread Noralf Trønnes
of the log by using dev_err_ratelimited(). Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewed-by: Eric Anholt <e...@anholt.net> --- drivers/i2c/busses/i2c-bcm2835.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2

[PATCH v2 6/8] i2c: bcm2835: Support i2c-dev ioctl I2C_TIMEOUT

2016-09-27 Thread Noralf Trønnes
Use i2c_adapter->timeout for the completion timeout value. The core default is 1 second. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/dr

[PATCH v2 6/8] i2c: bcm2835: Support i2c-dev ioctl I2C_TIMEOUT

2016-09-27 Thread Noralf Trønnes
Use i2c_adapter->timeout for the completion timeout value. The core default is 1 second. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm283

[PATCH v2 3/8] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-27 Thread Noralf Trønnes
of the log by using dev_err_ratelimited(). Signed-off-by: Noralf Trønnes Reviewed-by: Eric Anholt --- drivers/i2c/busses/i2c-bcm2835.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index df036ed..370a322 100644

[PATCH v2 1/8] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-27 Thread Noralf Trønnes
when the FIFO contains at least one byte of data. TXW: is set during a write transfer and the FIFO is less than full. RXR: is set during a read transfer and the FIFO is or more full. Implementing the logic from the downstream i2c-bcm2708 driver solved the hang problem. Signed-off-by: Noralf

[PATCH v2 1/8] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-27 Thread Noralf Trønnes
when the FIFO contains at least one byte of data. TXW: is set during a write transfer and the FIFO is less than full. RXR: is set during a read transfer and the FIFO is or more full. Implementing the logic from the downstream i2c-bcm2708 driver solved the hang problem. Signed-off-by: Noralf

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-21 Thread Noralf Trønnes
Den 20.09.2016 13:29, skrev ker...@martin.sperl.org: On 20.09.2016, at 12:56, Noralf Trønnes <nor...@tronnes.org> wrote: Den 20.09.2016 12:15, skrev Martin Sperl: On 20.09.2016 10:41, Noralf Trønnes wrote: Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26,

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-21 Thread Noralf Trønnes
Den 20.09.2016 13:29, skrev ker...@martin.sperl.org: On 20.09.2016, at 12:56, Noralf Trønnes wrote: Den 20.09.2016 12:15, skrev Martin Sperl: On 20.09.2016 10:41, Noralf Trønnes wrote: Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26, Noralf Trønnes wrote: Some

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-20 Thread Noralf Trønnes
Den 20.09.2016 12:15, skrev Martin Sperl: On 20.09.2016 10:41, Noralf Trønnes wrote: Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26, Noralf Trønnes wrote: Some SMBus protocols use Repeated Start Condition to switch from write mode to read mode. Devices like

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-20 Thread Noralf Trønnes
Den 20.09.2016 12:15, skrev Martin Sperl: On 20.09.2016 10:41, Noralf Trønnes wrote: Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26, Noralf Trønnes wrote: Some SMBus protocols use Repeated Start Condition to switch from write mode to read mode. Devices like

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-20 Thread Noralf Trønnes
Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26, Noralf Trønnes wrote: Some SMBus protocols use Repeated Start Condition to switch from write mode to read mode. Devices like MMA8451 won't work without it. When downstream implemented support for this in i2c-bcm2708

Re: [PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-20 Thread Noralf Trønnes
Den 20.09.2016 09:19, skrev Martin Sperl: Hi Noralf! On 19.09.2016 17:26, Noralf Trønnes wrote: Some SMBus protocols use Repeated Start Condition to switch from write mode to read mode. Devices like MMA8451 won't work without it. When downstream implemented support for this in i2c-bcm2708

Re: [PATCH 1/3] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-19 Thread Noralf Trønnes
Den 19.09.2016 18:51, skrev Eric Anholt: Noralf Trønnes <nor...@tronnes.org> writes: Writing messages larger than the FIFO size results in a hang, rendering the machine unusable. This is because the RXD status flag is set on the first interrupt which results in bcm2835_drain_rxfifo() st

Re: [PATCH 1/3] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-19 Thread Noralf Trønnes
Den 19.09.2016 18:51, skrev Eric Anholt: Noralf Trønnes writes: Writing messages larger than the FIFO size results in a hang, rendering the machine unusable. This is because the RXD status flag is set on the first interrupt which results in bcm2835_drain_rxfifo() stealing bytes from

[PATCH 1/3] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-19 Thread Noralf Trønnes
when the FIFO contains at least one byte of data. TXW: is set during a write transfer and the FIFO is less than full. RXR: is set during a read transfer and the FIFO is or more full. Implementing the logic from the downstream i2c-bcm2708 driver solved the hang problem. Signed-off-by: Noralf

[PATCH 1/3] i2c: bcm2835: Fix hang for writing messages larger than 16 bytes

2016-09-19 Thread Noralf Trønnes
when the FIFO contains at least one byte of data. TXW: is set during a write transfer and the FIFO is less than full. RXR: is set during a read transfer and the FIFO is or more full. Implementing the logic from the downstream i2c-bcm2708 driver solved the hang problem. Signed-off-by: Noralf

[PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-19 Thread Noralf Trønnes
to a DS1307 (rtc), MMA8451 (accel) and AT24C32 (eeprom) in parallel without problems. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 107 +++ 1 file changed, 98 insertions(+), 9 deletions(-) diff --git a/drive

[PATCH 3/3] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-19 Thread Noralf Trønnes
of the log by using dev_err_ratelimited(). Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/i2c/busses/i2c-bcm2835.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index b3ce565..dc0a5d5

[PATCH 2/3] i2c: bcm2835: Add support for combined write-read transfer

2016-09-19 Thread Noralf Trønnes
to a DS1307 (rtc), MMA8451 (accel) and AT24C32 (eeprom) in parallel without problems. Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 107 +++ 1 file changed, 98 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c

[PATCH 3/3] i2c: bcm2835: Use ratelimited logging on transfer errors

2016-09-19 Thread Noralf Trønnes
of the log by using dev_err_ratelimited(). Signed-off-by: Noralf Trønnes --- drivers/i2c/busses/i2c-bcm2835.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index b3ce565..dc0a5d5 100644 --- a/drivers/i2c/busses

Re: [PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-25 Thread Noralf Trønnes
Den 23.08.2016 08:17, skrev Daniel Vetter: On Mon, Aug 22, 2016 at 10:25:23PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

Re: [PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-25 Thread Noralf Trønnes
Den 23.08.2016 08:17, skrev Daniel Vetter: On Mon, Aug 22, 2016 at 10:25:23PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

Re: [PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-25 Thread Noralf Trønnes
Den 25.08.2016 15:09, skrev Rob Herring: On Mon, Aug 22, 2016 at 3:25 PM, Noralf Trønnes <nor...@tronnes.org> wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initia

Re: [PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-25 Thread Noralf Trønnes
Den 25.08.2016 15:09, skrev Rob Herring: On Mon, Aug 22, 2016 at 3:25 PM, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb

Re: [PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-23 Thread Noralf Trønnes
Den 23.08.2016 20:01, skrev Daniel Vetter: On Tue, Aug 23, 2016 at 7:52 PM, Noralf Trønnes <nor...@tronnes.org> wrote: +static int sdrm_fbdev_event_notify(struct notifier_block *self, + unsigned long action, void *data) +{ + struct sdrm_device

Re: [PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-23 Thread Noralf Trønnes
Den 23.08.2016 20:01, skrev Daniel Vetter: On Tue, Aug 23, 2016 at 7:52 PM, Noralf Trønnes wrote: +static int sdrm_fbdev_event_notify(struct notifier_block *self, + unsigned long action, void *data) +{ + struct sdrm_device *sdrm; + struct fb_event

Re: [PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-23 Thread Noralf Trønnes
Den 23.08.2016 14:41, skrev Daniel Vetter: On Mon, Aug 22, 2016 at 10:25:25PM +0200, Noralf Trønnes wrote: There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers

Re: [PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-23 Thread Noralf Trønnes
Den 23.08.2016 14:41, skrev Daniel Vetter: On Mon, Aug 22, 2016 at 10:25:25PM +0200, Noralf Trønnes wrote: There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers

[PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 3: - Reworked gem code to match udl - Dropped PRIME support - Dropped dirty_info_property, it's gone - Don't use drm_device.platformdev it's deprecated - Remove

[PATCH v4 4/5] drm: simpledrm: add fbdev fallback support

2016-08-22 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 3: - Remove #ifdef CONFIG_DRM_FBDEV_EMULATION

[PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-22 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes <

[PATCH v4 3/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes --- Changes from version 3: - Reworked gem code to match udl - Dropped PRIME support - Dropped dirty_info_property, it's gone - Don't use drm_device.platformdev it's deprecated - Remove struct sdrm_device

[PATCH v4 4/5] drm: simpledrm: add fbdev fallback support

2016-08-22 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes --- Changes from version 3: - Remove #ifdef CONFIG_DRM_FBDEV_EMULATION - Use drm_fb_helper_set_suspend_lock

[PATCH v4 5/5] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-22 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes

[PATCH v4 2/5] drm/fb-helper: Add drm_fb_helper_set_suspend_lock()

2016-08-22 Thread Noralf Trønnes
driver. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_fb_helper.c | 57 + include/drm/drm_fb_helper.h | 9 +++ 2 files changed, 66 insertions(+) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_he

[PATCH v4 0/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
edesktop.org/archives/dri-devel/2014-January/052584.html [2] https://lists.freedesktop.org/archives/dri-devel/2014-January/052594.html Noralf Trønnes (5): of: Add EXPORT_SYMBOL for of_chosen drm/fb-helper: Add drm_fb_helper_set_suspend_lock() drm: add SimpleDRM driver d

[PATCH v4 1/5] of: Add EXPORT_SYMBOL for of_chosen

2016-08-22 Thread Noralf Trønnes
Export of_chosen so drivers built as modules can get access to it. The simpledrm driver will use this and is compatible with simple-framebuffer which is a subnode of /chosen. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v4 2/5] drm/fb-helper: Add drm_fb_helper_set_suspend_lock()

2016-08-22 Thread Noralf Trønnes
driver. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_helper.c | 57 + include/drm/drm_fb_helper.h | 9 +++ 2 files changed, 66 insertions(+) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index ce54e98

[PATCH v4 0/5] drm: add SimpleDRM driver

2016-08-22 Thread Noralf Trønnes
edesktop.org/archives/dri-devel/2014-January/052584.html [2] https://lists.freedesktop.org/archives/dri-devel/2014-January/052594.html Noralf Trønnes (5): of: Add EXPORT_SYMBOL for of_chosen drm/fb-helper: Add drm_fb_helper_set_suspend_lock() drm: add SimpleDRM driver d

[PATCH v4 1/5] of: Add EXPORT_SYMBOL for of_chosen

2016-08-22 Thread Noralf Trønnes
Export of_chosen so drivers built as modules can get access to it. The simpledrm driver will use this and is compatible with simple-framebuffer which is a subnode of /chosen. Signed-off-by: Noralf Trønnes --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Noralf Trønnes
Den 17.08.2016 11:30, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes <nor...@tronnes.org> wrote: That's still a lot for what amounts to reimplementing mmap on shmem, but badly. What I mean with redirecting is pointing the entire ->mmap operation to the mmap imple

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-17 Thread Noralf Trønnes
Den 17.08.2016 11:30, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 9:38 PM, Noralf Trønnes wrote: That's still a lot for what amounts to reimplementing mmap on shmem, but badly. What I mean with redirecting is pointing the entire ->mmap operation to the mmap implementation for the underly

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 16.08.2016 17:25, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 16.08.2016 17:25, skrev Daniel Vetter: On Tue, Aug 16, 2016 at 02:58:38PM +0200, Noralf Trønnes wrote: Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM

Re: [PATCH v3 2/3] drm: simpledrm: add fbdev fallback support

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:48, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:05PM +0200, Noralf Trønnes wrote: Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes

Re: [PATCH v3 2/3] drm: simpledrm: add fbdev fallback support

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:48, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:05PM +0200, Noralf Trønnes wrote: Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can

[PATCH v3 0/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
/lists.freedesktop.org/archives/dri-devel/2013-July/041090.html [RFC 0/6] SimpleDRM Driver (was: dvbe driver) https://lists.freedesktop.org/archives/dri-devel/2013-June/040386.html [PATCH 0/9] System Framebuffer Bus (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.htm

[PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 2: - Remove superfluos module.h includes - Move includes from header to source files - Set plane.fb before flushing in pipe update, or else the previous one

[PATCH v3 0/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
/lists.freedesktop.org/archives/dri-devel/2013-July/041090.html [RFC 0/6] SimpleDRM Driver (was: dvbe driver) https://lists.freedesktop.org/archives/dri-devel/2013-June/040386.html [PATCH 0/9] System Framebuffer Bus (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.htm

[PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-14 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes --- Changes from version 2: - Remove superfluos module.h includes - Move includes from header to source files - Set plane.fb before flushing in pipe update, or else the previous one gets flushed - Added check

[PATCH v3 3/3] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-14 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes <

[PATCH v3 2/3] drm: simpledrm: add fbdev fallback support

2016-08-14 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 2: - Switch to using drm_fb_helper in preparation for

[PATCH v3 3/3] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-14 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes

[PATCH v3 2/3] drm: simpledrm: add fbdev fallback support

2016-08-14 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes --- Changes from version 2: - Switch to using drm_fb_helper in preparation for future panic handling which

Re: [PATCH v2 2/3] drm: simpledrm: add fbdev fallback support

2016-08-08 Thread Noralf Trønnes
Den 06.08.2016 00:38, skrev Paul Gortmaker: On Fri, Aug 5, 2016 at 11:44 AM, Noralf Trønnes <nor...@tronnes.org> wrote: Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Sign

Re: [PATCH v2 2/3] drm: simpledrm: add fbdev fallback support

2016-08-08 Thread Noralf Trønnes
Den 06.08.2016 00:38, skrev Paul Gortmaker: On Fri, Aug 5, 2016 at 11:44 AM, Noralf Trønnes wrote: Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes

[PATCH v2 2/3] drm: simpledrm: add fbdev fallback support

2016-08-05 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 1: No changes Changes from previous version: -

[PATCH v2 1/3] drm: add SimpleDRM driver

2016-08-05 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from version 1: - Move platform_set_drvdata() before drm_dev_register() - Remove drm_legacy_mmap() call. - Set mode_config.{min,max}_{width,height} to the actual dime

[PATCH v2 2/3] drm: simpledrm: add fbdev fallback support

2016-08-05 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes --- Changes from version 1: No changes Changes from previous version: - Remove the DRM_SIMPLEDRM_FBDEV

[PATCH v2 1/3] drm: add SimpleDRM driver

2016-08-05 Thread Noralf Trønnes
simplefb.c. Cc: dh.herrm...@gmail.com Cc: l...@skynet.be Signed-off-by: Noralf Trønnes --- Changes from version 1: - Move platform_set_drvdata() before drm_dev_register() - Remove drm_legacy_mmap() call. - Set mode_config.{min,max}_{width,height} to the actual dimensions of the native framebuffer

[PATCH v2 3/3] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-05 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes <

[PATCH v2 0/3] drm: add SimpleDRM driver

2016-08-05 Thread Noralf Trønnes
s (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.html Noralf Trønnes (3): drm: add SimpleDRM driver drm: simpledrm: add fbdev fallback support drm: simpledrm: honour remove_conflicting_framebuffers() drivers/gpu/drm/Kconfig | 2 + driver

[PATCH v2 3/3] drm: simpledrm: honour remove_conflicting_framebuffers()

2016-08-05 Thread Noralf Trønnes
There is currently no non-fbdev mechanism in place to kick out simpledrm when the real hw-driver is probed. As a stop gap until that is in place, honour remove_conflicting_framebuffers() and delete the simple-framebuffer platform device when it's called. Signed-off-by: Noralf Trønnes

[PATCH v2 0/3] drm: add SimpleDRM driver

2016-08-05 Thread Noralf Trønnes
s (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.html Noralf Trønnes (3): drm: add SimpleDRM driver drm: simpledrm: add fbdev fallback support drm: simpledrm: honour remove_conflicting_framebuffers() drivers/gpu/drm/Kconfig | 2 + driver

Re: [PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:36, skrev Daniel Vetter: On Thu, Aug 04, 2016 at 04:03:18PM +0200, Noralf Trønnes wrote: This patchset adds the simpledrm driver by David Herrmann based on a patchset[1] from 2014. That patchset also included patches for kicking out simpledrm by real drivers. I have stayed

Re: [PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:36, skrev Daniel Vetter: On Thu, Aug 04, 2016 at 04:03:18PM +0200, Noralf Trønnes wrote: This patchset adds the simpledrm driver by David Herrmann based on a patchset[1] from 2014. That patchset also included patches for kicking out simpledrm by real drivers. I have stayed

Re: [PATCH 1/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:03, skrev Noralf Trønnes: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb-buffers which can be blit into the real framebuffer

Re: [PATCH 1/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:03, skrev Noralf Trønnes: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can create dumb-buffers which can be blit into the real framebuffer

Re: [PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:15, skrev Luc Verhaegen: On Thu, Aug 04, 2016 at 04:03:18PM +0200, Noralf Trønnes wrote: I have tested simpledrm on a Raspberry Pi B+ with U-boot setting up the framebuffer and producing this node: framebuffer@1e887000 { compatible = "s

Re: [PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
Den 04.08.2016 16:15, skrev Luc Verhaegen: On Thu, Aug 04, 2016 at 04:03:18PM +0200, Noralf Trønnes wrote: I have tested simpledrm on a Raspberry Pi B+ with U-boot setting up the framebuffer and producing this node: framebuffer@1e887000 { compatible = "s

[PATCH 2/2] drm: simpledrm: add fbdev fallback support

2016-08-04 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from previous version: - Remove the DRM_SIMPLEDRM_FBDEV kconfig option a

[PATCH 2/2] drm: simpledrm: add fbdev fallback support

2016-08-04 Thread Noralf Trønnes
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes --- Changes from previous version: - Remove the DRM_SIMPLEDRM_FBDEV kconfig option and use DRM_FBDEV_EMULATION

[PATCH 1/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
and rework the probe path to avoid use of the deprecated drm_platform_init() and drm_driver.{load,unload}(). Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes from previous version: - Remove FB_SIMPLE=n dependency to avoid kconfig recursive error - C

[PATCH 1/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
and rework the probe path to avoid use of the deprecated drm_platform_init() and drm_driver.{load,unload}(). Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes --- Changes from previous version: - Remove FB_SIMPLE=n dependency to avoid kconfig recursive error - Changed module name to match

[PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
ists.freedesktop.org/archives/dri-devel/2013-June/040386.html [PATCH 0/9] System Framebuffer Bus (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.html Noralf Trønnes (2): drm: add SimpleDRM driver drm: simpledrm: add fbdev fallback support drivers/gpu/drm/Kconfig

[PATCH 0/2] drm: add SimpleDRM driver

2016-08-04 Thread Noralf Trønnes
ists.freedesktop.org/archives/dri-devel/2013-June/040386.html [PATCH 0/9] System Framebuffer Bus (sysfb) https://lists.freedesktop.org/archives/dri-devel/2013-February/035013.html Noralf Trønnes (2): drm: add SimpleDRM driver drm: simpledrm: add fbdev fallback support drivers/gpu/drm/Kconfig

Re: [PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Den 10.06.2016 17:34, skrev Daniel Vetter: On Fri, Jun 10, 2016 at 04:55:59PM +0200, Noralf Trønnes wrote: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <

Re: [PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Den 10.06.2016 17:34, skrev Daniel Vetter: On Fri, Jun 10, 2016 at 04:55:59PM +0200, Noralf Trønnes wrote: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes

[PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v4: - Remove drm_connector_register() call - Forgot to assign pipe->

[PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes --- Changes since v4: - Remove drm_connector_register() call - Forgot to assign pipe->connector Changes since

<    1   2   3   4   5   6   7   8   9   >