[PATCH v2] drm/i915: Try EDID bitbanging on HDMI after failed read

2017-12-31 Thread Stefan Brüns
The ACK/NACK implementation as found in e.g. the G965 has the falling clock edge and the release of the data line after the ACK for the received byte happen at the same time. This is conformant with the I2C specification, which allows a zero hold time, see footnote [3]: "A device must internally p

Re: [RFC PATCH] drm: split up drm_ioctl to allow drivers to hook into "core" functions

2017-12-31 Thread Ilia Mirkin
On Sun, Dec 31, 2017 at 1:15 PM, Ilia Mirkin wrote: > Currently there's no way to allow a driver to reimplement any ioctls > from the drm core. This can be desirable to, e.g., override fixed format > selection logic, without turning to a midlayer-like solution. > > Signed-off-by: Ilia Mirkin > --

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2017-12-31 Thread Ilia Mirkin
On Tue, Dec 19, 2017 at 8:45 AM, Christian König wrote: > Am 19.12.2017 um 11:39 schrieb Michel Dänzer: >> >> On 2017-12-19 11:37 AM, Michel Dänzer wrote: >>> >>> On 2017-12-18 08:01 PM, Tobias Klausmann wrote: On 12/18/17 7:06 PM, Mike Galbraith wrote: > > Greetings, > >

[RFC PATCH] drm: split up drm_ioctl to allow drivers to hook into "core" functions

2017-12-31 Thread Ilia Mirkin
Currently there's no way to allow a driver to reimplement any ioctls from the drm core. This can be desirable to, e.g., override fixed format selection logic, without turning to a midlayer-like solution. Signed-off-by: Ilia Mirkin --- I want drm_mode_addfb to pick a different format for depth=30

[Bug 104362] GPU fault detected on wine-nine Path of Exile

2017-12-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104362 --- Comment #1 from Vladimir Usikov --- What I mean by freezing. The computer does not respond to the keyboard and mouse. When I press 'Num Lock' or 'Caps Lock' the LED does not light up. Clicking on Ctrl+Alt+F# does not switch to the TTY#. Toda

Re: [PATCH v3 3/3] drm/tinydrm: add driver for ST7735R panels

2017-12-31 Thread Noralf Trønnes
Den 21.12.2017 20.35, skrev David Lechner: On 12/21/2017 01:23 PM, David Lechner wrote: This adds a new driver for Sitronix ST7735R display panels. This has been tested using an Adafruit 1.8" TFT. Signed-off-by: David Lechner --- +    mipi_dbi_command(mipi, ST7735R_GAMCTRP1, 0x0f, 0x1a,

Re: [PATCH v3 3/3] drm/tinydrm: add driver for ST7735R panels

2017-12-31 Thread Noralf Trønnes
Den 21.12.2017 20.23, skrev David Lechner: This adds a new driver for Sitronix ST7735R display panels. This has been tested using an Adafruit 1.8" TFT. Signed-off-by: David Lechner --- v3 changes: * Changed compatible string * use SPDX license header * Renamed mode struct to use panel name i

Re: [Intel-gfx] [RFC 4/7] drm/prime: Clear drm_gem_object->dma_buf on release

2017-12-31 Thread Chris Wilson
Quoting Noralf Trønnes (2017-12-31 13:58:40) > Clear the pointer so the buffer can be re-exported. Otherwise use > after free happens in the next call to drm_gem_prime_handle_to_fd(). > > Signed-off-by: Noralf Trønnes > --- > drivers/gpu/drm/drm_prime.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH 4.15] drm/amd/display: call set csc_default if enable adjustment is false

2017-12-31 Thread Alex Deucher
On Fri, Dec 29, 2017 at 6:11 AM, Daniel Drake wrote: > From: Yue Hin Lau > > Signed-off-by: Yue Hin Lau > Reviewed-by: Eric Bernstein > Acked-by: Harry Wentland > Signed-off-by: Alex Deucher > [dr...@endlessm.com: backport to 4.15] > Signed-off-by: Daniel Drake > --- > drivers/gpu/drm/amd/d

[Bug 104289] [regression][vega10] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring sdma0 timeout on exiting certain Steam games

2017-12-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104289 --- Comment #10 from Tom Englund --- i could reliably reproduce this with starting fallout 4 in wine, getting same or similiar crashes in dmesg, however with the last attachment Christian König posted it now runs. https://bugs.freedesktop.org/a

[Bug 103976] Regression: Videogame (Wakfu) no longer works with Mesa 17.2 (17.1 works)

2017-12-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103976 Azari changed: What|Removed |Added CC||azari4...@gmail.com --- Comment #1 from Azari

[RFC 6/7] drm/fb-helper: Add generic fbdev emulation

2017-12-31 Thread Noralf Trønnes
Add generic fbdev emulation which uses a drm_file to get a dumb_buffer and drm_framebuffer. The buffer is exported and vmap/mmap called on the dma-buf. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_helper.c | 289 include/drm/drm_fb_helper.h

[RFC 5/7] drm: Handle fbdev emulation in core

2017-12-31 Thread Noralf Trønnes
Prepare for generic fbdev emulation by letting DRM core work directly with the fbdev compatibility layer. This is done by adding new fbdev helper vtable callbacks for restore, hotplug_event, unregister and release. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_file.c | 12 +++

[RFC 7/7] drm/vc4: Test generic fbdev emulation

2017-12-31 Thread Noralf Trønnes
Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/vc4/vc4_drv.c | 3 --- drivers/gpu/drm/vc4/vc4_kms.c | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index ceb385fd69c5..ef8a2d3a6d1f 100644 --- a/drivers/gpu/drm

[RFC 4/7] drm/prime: Clear drm_gem_object->dma_buf on release

2017-12-31 Thread Noralf Trønnes
Clear the pointer so the buffer can be re-exported. Otherwise use after free happens in the next call to drm_gem_prime_handle_to_fd(). Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_prime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/d

[RFC 3/7] drm/fb-helper: Don't restore if fbdev is not in use

2017-12-31 Thread Noralf Trønnes
Keep track of fbdev users and only restore fbdev in drm_fb_helper_restore_fbdev_mode_unlocked() when in use. This avoids fbdev being restored in drm_driver.last_close when nothing uses it. Additionally fbdev is turned off when the last user is closing. fbcon is a user in this context. Signed-off-b

[RFC 0/7] drm: Add generic fbdev emulation

2017-12-31 Thread Noralf Trønnes
This patchset explores the possibility of having generic fbdev emulation in DRM for drivers that supports dumb buffers which they can export. I was about to polish up my 'vmalloc BO helper' series, which has fbdev support, when this idea[1] of Laurent popped into my mind: Ideally I'd like to re

[RFC 2/7] drm/fb-helper: Ensure driver module is pinned in fb_open()

2017-12-31 Thread Noralf Trønnes
If struct fb_ops is defined in a library like cma, fb_open() and fbcon takes a ref on the library instead of the driver module. Use fb_ops.fb_open/fb_release to ensure that the driver module is pinned. Add drm_fb_helper_fb_open() and drm_fb_helper_fb_release() to DRM_FB_HELPER_DEFAULT_OPS(). Sign

[RFC 1/7] drm: provide management functions for drm_file

2017-12-31 Thread Noralf Trønnes
From: David Herrmann Rather than doing drm_file allocation/destruction right in the fops, lets provide separate helpers. This decouples drm_file management from the still-mandatory drm-fops. It prepares for use of drm_file without the fops, both by possible separate fops implementations and APIs

Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2017-12-31 Thread Bryan O'Donoghue
On 30/12/17 16:36, Mikko Perttunen wrote: FWIW, we had this problem some years ago with the Tegra CPU clock - then it was determined that a simpler solution was to have the determine_rate callback support unsigned long rates - so clock drivers that need to return rates higher than 2^31 can inst

Re: [RFC PATCH v2 03/13] bootsplash: Flush framebuffer after drawing

2017-12-31 Thread Alan Cox
On Tue, 19 Dec 2017 15:07:53 +0100 Oliver Neukum wrote: > Am Dienstag, den 19.12.2017, 14:57 +0100 schrieb Daniel Vetter: > > > Would you like me to extend the FB API or not? > > > > Yes. Well for real I'd like you to do kms, so maybe you need to explain > > why exactly you absolutely have to

Re: [RFC PATCH v2 00/13] Kernel based bootsplash

2017-12-31 Thread Alan Cox
> So fundamentally I don't think an in-kernel bootsplash is a bad idea. > But most likely you want this on a highly embedded system, which It wouldn't be in kernel on such a device, it'll be in the bootstrap before (or on a dual core device quite possibly while) the kernel data is being uncompress

Re: [RFC PATCH v2 00/13] Kernel based bootsplash

2017-12-31 Thread Alan Cox
On Tue, 19 Dec 2017 19:40:12 +0100 Max Staudt wrote: > On 12/19/2017 06:26 PM, Daniel Vetter wrote: > > On Tue, Dec 19, 2017 at 6:04 PM, Max Staudt wrote: > >> Well, those could enable fbcon if they want the bootsplash. Shouldn't make > >> a difference anyway if they're powerful enough to run