[Intel-gfx] [PATCH 18/51] drm/: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
These are the leftover drivers that didn't have a ->release hook that needed to be updated. Signed-off-by: Daniel Vetter Cc: "James (Qian) Wang" Cc: Liviu Dudau Cc: Mihail Atanassov Cc: Russell King Cc: Hans de Goede --- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 ++ drivers/gpu/dr

[Intel-gfx] [PATCH 11/51] drm/tidss: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. Acked-by: Jyri Sarha Signed-off-by: Daniel Vetter Cc: Jyri Sarha Cc: Tomi Valkeinen --- drivers/gpu/drm/tidss/tidss_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tidss/tidss_drv.c

[Intel-gfx] [PATCH 03/51] drm: add managed resources tied to drm_device

2020-02-27 Thread Daniel Vetter
We have lots of these. And the cleanup code tends to be of dubious quality. The biggest wrong pattern is that developers use devm_, which ties the release action to the underlying struct device, whereas all the userspace visible stuff attached to a drm_device can long outlive that one (e.g. after a

[Intel-gfx] [PATCH 07/51] drm/qxl: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: virtualizat...@lists.linux-foundation.org Cc: spice-de...@lists.freedesktop.org --- drivers/gpu/drm/qxl/qxl_drv.c | 2 -- drivers/gpu/drm/qxl/qxl_kms.c | 2 ++ 2

[Intel-gfx] [PATCH 06/51] drm/udl: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. v2: We need drm_dev_put to unroll the driver creation (once drm_dev_init and drmm_add_final_kfree suceeded), otherwise the drmm_ magic doesn't happen. v3: Actually squash in the fixup (Laurent). Signed-off-by: Daniel Vetter Cc: La

[Intel-gfx] [PATCH 13/51] drm/vgem: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. v2: After drm_dev_init/drmm_add_final_kfree we need to clean up everything through a drm_dev_put. Rework the unwind code to match that. Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Emil Velikov Cc: Chris Wilson Cc: Sean Pa

[Intel-gfx] [PATCH 33/51] drm/mcde: More devm_drm_dev_init

2020-02-27 Thread Daniel Vetter
Auto-unwind ftw, now possible with the fixed drm_device related management. Aside, clk/regulator seem to be missing devm versions for a bunch of functions, preventing a pile of these simpler drivers from outright losing their ->remove hook. Reviewed-by: Linus Walleij Signed-off-by: Daniel Vetter

[Intel-gfx] [PATCH 23/51] drm: Manage drm_gem_init with drmm_

2020-02-27 Thread Daniel Vetter
We might want to look into pushing this down into drm_mm_init, but that would mean rolling out return codes to a pile of functions unfortunately. So let's leave that for now. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_drv.c | 8 +--- drivers/gpu/drm/drm_gem.c | 21 ++

[Intel-gfx] [PATCH 27/51] drm/bochs: Remove leftover drm_atomic_helper_shutdown

2020-02-27 Thread Daniel Vetter
Small mistake that crept into commit 81da8c3b8d3df6f05b11300b7d17ccd1f3017fab Author: Gerd Hoffmann Date: Tue Feb 11 14:52:18 2020 +0100 drm/bochs: add drm_driver.release callback where drm_atomic_helper_shutdown was left in both places. The ->release callback really shouldn't touch hardw

[Intel-gfx] [PATCH 32/51] drm/mcde: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
Allows us to drop the drm_driver.release callback. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init().

[Intel-gfx] [PATCH 22/51] drm: manage drm_minor cleanup with drmm_

2020-02-27 Thread Daniel Vetter
The cleanup here is somewhat tricky, since we can't tell apart the allocated minor index from 0. So register a cleanup action first, and if the index allocation fails, unregister that cleanup action again to avoid bad mistakes. The kdev for the minor already handles NULL, so no problem there. Hen

[Intel-gfx] [PATCH 36/51] drm/rcar-du: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: Another

[Intel-gfx] [PATCH 31/51] drm/ingenic: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
Allows us to drop the drm_driver.release callback. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init().

[Intel-gfx] [PATCH 38/51] drm/stm: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: Another

[Intel-gfx] [PATCH 37/51] drm/rockchip: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's (almost, there's some iommu stuff without significance) right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup

[Intel-gfx] [PATCH 26/51] drm: Manage drm_mode_config_init with drmm_

2020-02-27 Thread Daniel Vetter
drm_mode_config_cleanup is idempotent, so no harm in calling this twice. This allows us to gradually switch drivers over by removing explicit drm_mode_config_cleanup calls. With this step it's not also possible that (at least for simple drivers) automatic resource cleanup can be done correctly wit

[Intel-gfx] [PATCH 28/51] drm/bochs: Drop explicit drm_mode_config_cleanup

2020-02-27 Thread Daniel Vetter
Instead rely on the automatic clean, for which we just need to check that drm_mode_config_init succeeded. To avoid an inversion in the cleanup we also have to move the dev_private allocation over to drmm_kzalloc. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm

[Intel-gfx] [PATCH 29/51] drm/cirrus: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
We can even delete the drm_driver.release hook now! This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init().

[Intel-gfx] [PATCH 34/51] drm/meson: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: This dr

[Intel-gfx] [PATCH 39/51] drm/shmob: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: Another

[Intel-gfx] [PATCH 43/51] drm/gm12u320: Use devm_drm_dev_init

2020-02-27 Thread Daniel Vetter
Only drops the drm_dev_put, but hey a few lines! Reviewed-by: Hans de Goede Signed-off-by: Daniel Vetter Cc: Hans de Goede Cc: "Noralf Trønnes" --- drivers/gpu/drm/tiny/gm12u320.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/tiny/gm1

[Intel-gfx] [PATCH 30/51] drm/cirrus: Fully embrace devm_

2020-02-27 Thread Daniel Vetter
With the drm_device lifetime fun cleaned up there's nothing in the way anymore to use devm_ for everything hw releated. Do it, and in the process, throw out the entire onion unwinding. Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: Daniel Vetter Cc: "Noralf Trønnes" Cc: Em

[Intel-gfx] [PATCH 21/51] drm: Use drmm_ for drm_dev_init cleanup

2020-02-27 Thread Daniel Vetter
Well for the simple stuff at least, vblank, gem and minor cleanup I want to further split up as a demonstration. v2: We need to clear drm_device->dev otherwise the debug drm printing after our cleanup hook (e.g. in drm_manged_release) will chase released memory and result in a use-after-free. Not

[Intel-gfx] [PATCH 40/51] drm/mtk: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: Another

[Intel-gfx] [PATCH 25/51] drm: Garbage collect drm_dev_fini

2020-02-27 Thread Daniel Vetter
It has become empty. Given the few users I figured not much point splitting this up. v2: Rebase over i915 changes. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/cirrus/cirrus.c | 1 - drivers/gpu/drm/drm_drv.c | 23 +-- drivers/gpu/drm/drm_m

[Intel-gfx] [PATCH 41/51] drm/tidss: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: Another

[Intel-gfx] [PATCH 24/51] drm: Manage drm_vblank_cleanup with drmm_

2020-02-27 Thread Daniel Vetter
Nothing special here, except that this is the first time that we automatically clean up something that's initialized with an explicit driver call. But the cleanup was done at the very of the release sequence for all drivers, and that's still the case. At least without more uses of drmm_ through exp

[Intel-gfx] [PATCH 42/51] drm/gm12u320: More drmm_

2020-02-27 Thread Daniel Vetter
The drm_mode_config_cleanup call we can drop, and all the allocations we can switch over to drmm_kzalloc. Unfortunately the work queue is still present, so can't get rid of the drm_driver->release function outright. Reviewed-by: Hans de Goede Signed-off-by: Daniel Vetter Cc: Hans de Goede Cc: "

[Intel-gfx] [PATCH 47/51] drm/mipi-dbi: Move drm_mode_config_init into mipi library

2020-02-27 Thread 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. Reviewed-by: Noralf Trønnes Tested-by: Noralf Trønnes Signed-off-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc:

[Intel-gfx] [PATCH 45/51] drm/gm12u320: Simplify upload work

2020-02-27 Thread Daniel Vetter
Instead of having a work item that never stops (which really should be a kthread), with a dedicated workqueue to not upset anyone else, use a delayed work. A bunch of changes: - We can throw out all the custom wakeup and requeue logic and state tracking. If we schedule the work with a 0 delay it

[Intel-gfx] [PATCH 51/51] drm: Add docs for managed resources

2020-02-27 Thread Daniel Vetter
All collected together to provide a consistent story in one patch, instead of the somewhat bumpy refactor-evolution leading to this. Also some thoughts on what the next steps could be: - Create a macro called devm_drm_dev_alloc() which essentially wraps the kzalloc(); devm_drm_dev_init(); drmm_

[Intel-gfx] [PATCH 35/51] drm/pl111: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init(). Aside: This dr

[Intel-gfx] [PATCH 14/51] drm/vkms: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. v2: After drm_dev_init/drmm_add_final_kfree we need to clean up everything through a drm_dev_put. Rework the unwind code to match that. Signed-off-by: Daniel Vetter Cc: Rodrigo Siqueira Cc: Haneen Mohammed Cc: Daniel Vetter ---

[Intel-gfx] [PATCH 46/51] drm/repaper: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
Allows us to drop the drm_driver.release callback. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init().

[Intel-gfx] [PATCH 44/51] drm/gm12u320: Use helpers for shutdown/suspend/resume

2020-02-27 Thread Daniel Vetter
Also there's a race in the disconnect implemenation. First shut down, then unplug, leaves a window where userspace could sneak in and restart the entire machinery. With this we can also delete the very un-atomic global pipe_enabled tracking. Reviewed-by: Hans de Goede Signed-off-by: Daniel Vette

[Intel-gfx] [PATCH 50/51] drm/udl: drop drm_driver.release hook

2020-02-27 Thread Daniel Vetter
There's only two functions called from that: drm_kms_helper_poll_fini() and udl_free_urb_list(). Both of these are also called from the ubs_driver->disconnect hook, so entirely pointless to do the same again in the ->release hook. Furthermore by the time we clean up the drm_driver we really should

[Intel-gfx] [PATCH 49/51] drm/udl: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
It's right above the drm_dev_put(). This allows us to delete a bit of onion unwinding in udl_modeset_init(). This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final d

[Intel-gfx] [PATCH 48/51] drm/mipi-dbi: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
Allows us to drop the drm_driver.release callback from all drivers, and remove the mipi_dbi_release() function. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915/vgpu: improve vgpu abstractions

2020-02-27 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915/vgpu: improve vgpu abstractions URL : https://patchwork.freedesktop.org/series/74024/ State : success == Summary == CI Bug Log - changes from CI_DRM_8020 -> Patchwork_16735 Su

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dram: hide the dram structs better

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915/dram: hide the dram structs better URL : https://patchwork.freedesktop.org/series/74025/ State : warning == Summary == $ dim checkpatch origin/drm-tip 3bee11e22182 drm/i915/dram: hide the dram structs better -:9: ERROR:GIT_COMMIT_ID: Please use git commit

Re: [Intel-gfx] [PATCH 11/13] drm/i915/skl, cnl: Split out the WRPLL/LCPLL frequency calculation

2020-02-27 Thread Imre Deak
On Thu, Feb 27, 2020 at 07:57:41PM +0200, Ville Syrjälä wrote: > On Wed, Feb 26, 2020 at 10:34:53PM +0200, Imre Deak wrote: > > Split out the PLL parameter->frequency conversion logic for each type of > > PLL for symmetry with their corresponding inverse conversion functions. > > > > Signed-off-by

Re: [Intel-gfx] [PATCH 18/51] drm/: Use drmm_add_final_kfree

2020-02-27 Thread Liviu Dudau
On Thu, Feb 27, 2020 at 07:14:49PM +0100, Daniel Vetter wrote: > These are the leftover drivers that didn't have a ->release hook that > needed to be updated. > > Signed-off-by: Daniel Vetter > Cc: "James (Qian) Wang" > Cc: Liviu Dudau > Cc: Mihail Atanassov > Cc: Russell King > Cc: Hans de G

Re: [Intel-gfx] 5.6 DP-MST regression: 1 of 2 monitors on TB3 (DP-MST) dock no longer light up

2020-02-27 Thread Lyude Paul
hi - I almost certainly know the solution to this, the patches that we got from amd to do bandwidth checking in the DP MST helpers don't actually work correctly in a lot of cases and I need to fix them. I've just been busy on PTO and only just got back today, and have been busy with fixing a lot of

Re: [Intel-gfx] 5.6 DP-MST regression: 1 of 2 monitors on TB3 (DP-MST) dock no longer light up

2020-02-27 Thread Lyude Paul
On Thu, 2020-02-27 at 10:04 -0500, Mikita Lipski wrote: > > On 2/26/20 6:41 PM, Souza, Jose wrote: > > Hi Hans > > > > Just commenting in the "[3.309061] [drm:intel_dump_pipe_config > > [i915]] MST master transcoder: " message, it is the expected > > behaviour for anything older than Tigerlak

Re: [Intel-gfx] 5.6 DP-MST regression: 1 of 2 monitors on TB3 (DP-MST) dock no longer light up

2020-02-27 Thread Hans de Goede
Hi, On 2/27/20 7:41 PM, Lyude Paul wrote: hi - I almost certainly know the solution to this, the patches that we got from amd to do bandwidth checking in the DP MST helpers don't actually work correctly in a lot of cases and I need to fix them. I've just been busy on PTO and only just got back t

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Set up PIPE_MISC truncate bit on tgl+

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915: Set up PIPE_MISC truncate bit on tgl+ URL : https://patchwork.freedesktop.org/series/73960/ State : success == Summary == CI Bug Log - changes from CI_DRM_8010_full -> Patchwork_16719_full Summary

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dram: hide the dram structs better

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915/dram: hide the dram structs better URL : https://patchwork.freedesktop.org/series/74025/ State : success == Summary == CI Bug Log - changes from CI_DRM_8020 -> Patchwork_16736 Summary --- **SUCCE

Re: [Intel-gfx] [PATCH 11/13] drm/i915/skl, cnl: Split out the WRPLL/LCPLL frequency calculation

2020-02-27 Thread Ville Syrjälä
On Thu, Feb 27, 2020 at 08:34:53PM +0200, Imre Deak wrote: > On Thu, Feb 27, 2020 at 07:57:41PM +0200, Ville Syrjälä wrote: > > On Wed, Feb 26, 2020 at 10:34:53PM +0200, Imre Deak wrote: > > > Split out the PLL parameter->frequency conversion logic for each type of > > > PLL for symmetry with their

[Intel-gfx] [PATCH v4 13.5/14] drm/i915: Print HDCP version info for all connectors

2020-02-27 Thread Sean Paul
From: Sean Paul De-duplicate the HDCP version code and print it for all connectors. Cc: Juston Li Signed-off-by: Sean Paul Changes in v4: - Added to the set --- .../drm/i915/display/intel_display_debugfs.c| 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

Re: [Intel-gfx] [PATCH 14/51] drm/vkms: Use drmm_add_final_kfree

2020-02-27 Thread Rodrigo Siqueira
Hi, Thanks for the patch. I reviewed and tested this patch, and everything looks fine. Reviewed-by: Rodrigo Siqueira Tested-by: Rodrigo Siqueira On 02/27, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > v2: After drm_dev_init/drmm_add_final_kfree w

Re: [Intel-gfx] [PATCH 13/13] drm/i915: Unify the DPLL ref clock frequency tracking

2020-02-27 Thread Imre Deak
On Thu, Feb 27, 2020 at 08:13:29PM +0200, Ville Syrjälä wrote: > On Wed, Feb 26, 2020 at 10:34:55PM +0200, Imre Deak wrote: > > All platforms using the shared DPLL framework use 3 reference clocks for > > their DPLLs: SSC, non-SSC and DSI. For a more unified way across > > platforms store the frequ

Re: [Intel-gfx] [PATCH 45/51] drm/gm12u320: Simplify upload work

2020-02-27 Thread Hans de Goede
Hi, On 2/27/20 7:15 PM, Daniel Vetter wrote: Instead of having a work item that never stops (which really should be a kthread), with a dedicated workqueue to not upset anyone else, use a delayed work. A bunch of changes: - We can throw out all the custom wakeup and requeue logic and state tr

[Intel-gfx] [PATCH 0/1] Adding YUV444 packed format support for skl+

2020-02-27 Thread Bob Paauwe
Test-with: 20200127192859.20029-1-bob.j.paa...@intel.com Stanislav Lisovskiy (1): drm/i915: Adding YUV444 packed format support for skl+ (V15) drivers/gpu/drm/i915/display/intel_display.c | 5 + drivers/gpu/drm/i915/display/intel_sprite.c | 8 drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH 1/1] drm/i915: Adding YUV444 packed format support for skl+ (V15)

2020-02-27 Thread Bob Paauwe
From: Stanislav Lisovskiy PLANE_CTL_FORMAT_AYUV is already supported, according to hardware specification. v2: Edited commit message, removed redundant whitespaces. v3: Fixed fallthrough logic for the format switch cases. v4: Yet again fixed fallthrough logic, to reuse code from other case

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Use intel_plane_data_rate for min_cdclk calculation (rev6)

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915: Use intel_plane_data_rate for min_cdclk calculation (rev6) URL : https://patchwork.freedesktop.org/series/73718/ State : success == Summary == CI Bug Log - changes from CI_DRM_8020 -> Patchwork_16737 S

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc URL : https://patchwork.freedesktop.org/series/74031/ State : warning == Summary == $ dim checkpatch origin/drm-tip 4a7fff1e2426 drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc -:64: CH

[Intel-gfx] [PATCH] drm/i915: Lock gmbus/aux mutexes while changing cdclk

2020-02-27 Thread Ville Syrjala
From: Ville Syrjälä gmbus/aux may be clocked by cdclk, thus we should make sure no transfers are ongoing while the cdclk frequency is being changed. We do that by simply grabbing all the gmbus/aux mutexes. No one else should be holding any more than one of those at a time so the lock ordering her

[Intel-gfx] ✓ Fi.CI.IGT: success for 3 display pipes combination system support (rev5)

2020-02-27 Thread Patchwork
== Series Details == Series: 3 display pipes combination system support (rev5) URL : https://patchwork.freedesktop.org/series/72468/ State : success == Summary == CI Bug Log - changes from CI_DRM_8010_full -> Patchwork_16721_full Summary --

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915/crc: move pipe_crc from drm_i915_private to intel_crtc URL : https://patchwork.freedesktop.org/series/74031/ State : success == Summary == CI Bug Log - changes from CI_DRM_8020 -> Patchwork_16738 Summar

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Proper dbuf global state (rev3)

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915: Proper dbuf global state (rev3) URL : https://patchwork.freedesktop.org/series/73421/ State : warning == Summary == $ dim checkpatch origin/drm-tip 3643e15727b1 drm/i915: Handle some leftover s/intel_crtc/crtc/ c2f2161d6505 drm/i915: Remove garbage WARNs

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915: Fix 400 MHz FSB readout on elk

2020-02-27 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Fix 400 MHz FSB readout on elk URL : https://patchwork.freedesktop.org/series/73965/ State : success == Summary == CI Bug Log - changes from CI_DRM_8010_full -> Patchwork_16722_full ==

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Proper dbuf global state (rev3)

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915: Proper dbuf global state (rev3) URL : https://patchwork.freedesktop.org/series/73421/ State : success == Summary == CI Bug Log - changes from CI_DRM_8021 -> Patchwork_16739 Summary --- **SUCCESS

[Intel-gfx] [PATCH] drm/i915/gt: Check engine-is-awake on reset later

2020-02-27 Thread Chris Wilson
As we drop the engine-pm on retiring, that may happen while there are still CS events in the buffer. As such we cannot assert the engine is still active on reset, until we know that the current request is still in flight. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gt/intel_lrc.c | 7 ++

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: add i915_ioc32.h for compat

2020-02-27 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: add i915_ioc32.h for compat URL : https://patchwork.freedesktop.org/series/74033/ State : warning == Summary == $ dim checkpatch origin/drm-tip 663fbcd4dcd6 drm/i915: add i915_ioc32.h for compat -:80: WARNING:FILE_PATH_CHANGES:

Re: [Intel-gfx] [PATCH 51/51] drm: Add docs for managed resources

2020-02-27 Thread Sam Ravnborg
Hi Daniel. Nicely written overview. Acked-by: Sam Ravnborg snip - detailed changelog + patch ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH backported to v5.6-rc3] drm/i915/psr: Force PSR probe only after full initialization

2020-02-27 Thread José Roberto de Souza
Commit 60c6a14b489b ("drm/i915/display: Force the state compute phase once to enable PSR") was forcing the state compute too earlier causing errors because not everything was initialized, so here moving to the end of i915_driver_modeset_probe() when the display is all initialized. Also fixing the

Re: [Intel-gfx] [PATCH 05/51] drm/mipi_dbi: Use drmm_add_final_kfree in all drivers

2020-02-27 Thread Sam Ravnborg
On Thu, Feb 27, 2020 at 07:14:36PM +0100, Daniel Vetter wrote: > They all share mipi_dbi_release so we need to switch them all > together. With this we can drop the final kfree from the release > function. > > Aside, I think we could perhaps have a tiny additional helper for > these mipi_dbi drive

Re: [Intel-gfx] [PATCH 06/51] drm/udl: Use drmm_add_final_kfree

2020-02-27 Thread Sam Ravnborg
On Thu, Feb 27, 2020 at 07:14:37PM +0100, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > v2: We need drm_dev_put to unroll the driver creation (once > drm_dev_init and drmm_add_final_kfree suceeded), otherwise > the drmm_ magic doesn't happen. > > v3:

Re: [Intel-gfx] [PATCH 09/51] drm/cirrus: Use drmm_add_final_kfree

2020-02-27 Thread Sam Ravnborg
On Thu, Feb 27, 2020 at 07:14:40PM +0100, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > I also noticed that cirrus forgot to call drm_dev_fini(). > > v2: Don't call kfree(cirrus) after we've handed overship of that to > drm_device and the drmm_ stuff.

Re: [Intel-gfx] [PATCH 13/51] drm/vgem: Use drmm_add_final_kfree

2020-02-27 Thread Sam Ravnborg
On Thu, Feb 27, 2020 at 07:14:44PM +0100, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > v2: After drm_dev_init/drmm_add_final_kfree we need to clean up > everything through a drm_dev_put. Rework the unwind code to match > that. > > Signed-off-by: Dani

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/3] drm/i915: add i915_ioc32.h for compat

2020-02-27 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: add i915_ioc32.h for compat URL : https://patchwork.freedesktop.org/series/74033/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8021 -> Patchwork_16740 Summa

[Intel-gfx] gitlab.fd.o financial situation and impact on services

2020-02-27 Thread Daniel Vetter
Hi all, You might have read the short take in the X.org board meeting minutes already, here's the long version. The good news: gitlab.fd.o has become very popular with our communities, and is used extensively. This especially includes all the CI integration. Modern development process and tooling

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/3] drm/i915/gem: Consolidate ctx->engines[] release

2020-02-27 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915/gem: Consolidate ctx->engines[] release URL : https://patchwork.freedesktop.org/series/73966/ State : failure == Summary == CI Bug Log - changes from CI_DRM_8010_full -> Patchwork_16723_full =

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix kbuild test robot build error (rev2)

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915: Fix kbuild test robot build error (rev2) URL : https://patchwork.freedesktop.org/series/73990/ State : success == Summary == CI Bug Log - changes from CI_DRM_8021 -> Patchwork_16741 Summary ---

[Intel-gfx] [PATCH v3 02/11] drm/i915/tgl: Implement Wa_1806527549

2020-02-27 Thread José Roberto de Souza
This will whitelist the HIZ_CHICKEN register so mesa can disable the optimizations and avoid hang when using D16_UNORM. v2: moved to the right place and used the right function() (Chris) Cc: Matt Roper Cc: Rafael Antognolli Cc: Chris Wilson Signed-off-by: José Roberto de Souza --- drivers/gp

[Intel-gfx] [PATCH v3 06/11] drm/i915/tgl: Add note about Wa_1607063988

2020-02-27 Thread José Roberto de Souza
This issue workaround in Wa_1607063988 has the same fix as Wa_1607138336, so just adding a note in the code. Reviewed-by: Matt Roper Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drive

[Intel-gfx] [PATCH v3 10/11] drm/i915/tgl: Add Wa number to WaAllowPMDepthAndInvocationCountAccessFromUMD

2020-02-27 Thread José Roberto de Souza
Just to make easier to check that the Wa was implemetend when comparing to the number in BSpec. BSpec: 52890 Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/dri

[Intel-gfx] [PATCH v3 04/11] drm/i915/tgl: Extend Wa_1606931601 for all steppings

2020-02-27 Thread José Roberto de Souza
From: Anusha Srivatsa According to BSpec. Wa_1606931601 applies for all TGL steppings. This patch moves the WA implementation out of A0 only block of rcs_engine_wa_init(). The WA is has also been referred to by an alternate name Wa_1607090982. Bspec: 46045, 52890 Fixes: 3873fd1a43c7 ("drm/i915

[Intel-gfx] [PATCH v3 09/11] drm/i915/tgl: Restrict Wa_1408615072 to A0 stepping

2020-02-27 Thread José Roberto de Souza
It is fixed in B0 stepping. Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_pm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 22aa205793e5..a101d8072b5b 100644 --- a/drivers/gp

[Intel-gfx] [PATCH v3 03/11] drm/i915/tgl: Add Wa_1409085225, Wa_14010229206

2020-02-27 Thread José Roberto de Souza
From: Matt Atwood Disable Push Constant buffer addition for TGL. v2: typos, add additional Wa reference v3: use REG_BIT macro, move to rcs_engine_wa_init, clean up commit message. Bspec: 52890 Cc: Rafael Antognolli Cc: Matt Roper Reviewed-by: Matt Roper Signed-off-by: Matt Atwood Signed-off

[Intel-gfx] [PATCH v3 07/11] drm/i915/tgl: Fix the Wa number of a fix

2020-02-27 Thread José Roberto de Souza
The Wa number for this fix is Wa_1607087056 the BSpec bug id is 1607087056, just updating to match BSpec. BSpec: 52890 Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/

[Intel-gfx] [PATCH v3 05/11] drm/i915/tgl: Add note to Wa_1607297627

2020-02-27 Thread José Roberto de Souza
Add note about the confliting information in BSpec about this WA. BSpec: 52890 Acked-by: Matt Roper Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_w

[Intel-gfx] [PATCH v3 11/11] drm/i915/tgl: Implement Wa_1407901919

2020-02-27 Thread José Roberto de Souza
This will fix a memory coherence issue. v3: using whitespace to make easy to read WA (Chris) BSpec: 52890 Cc: Chris Wilson Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 8 drivers/gpu/drm/i915/i915_reg.h | 20 +++-

[Intel-gfx] [PATCH v3 08/11] drm/i915/tgl: Add note about Wa_1409142259

2020-02-27 Thread José Roberto de Souza
Different issues with the same fix, so justing adding Wa_1409142259, Wa_1409252684, Wa_1409217633, Wa_1409207793, Wa_1409178076 and 1408979724 to the comment so other devs can check if this Was were implemetend with a simple grep. Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/

[Intel-gfx] [PATCH v3 01/11] drm/i915/tgl: Implement Wa_1409804808

2020-02-27 Thread José Roberto de Souza
This workaround the CS not done issue on PIPE_CONTROL. v2: - replaced BIT() by REG_BIT() in all GEN7_ROW_CHICKEN2() bits - shortened the name of the new bit BSpec: 52890 BSpec: 46218 Cc: Matt Roper Reviewed-by: Matt Roper Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/gt/intel_

[Intel-gfx] [PATCH] drm/i915: Minimize uaccess exposure in i915_gem_execbuffer2_ioctl()

2020-02-27 Thread Josh Poimboeuf
With CONFIG_CC_OPTIMIZE_FOR_SIZE, objtool reports: drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: i915_gem_execbuffer2_ioctl()+0x5b7: call to gen8_canonical_addr() with UACCESS enabled This means i915_gem_execbuffer2_ioctl() is calling gen8_canonical_addr() -- and indirectl

Re: [Intel-gfx] [PATCH] drm/i915/gt: Check engine-is-awake on reset later

2020-02-27 Thread Andi Shyti
Hi Chris, On Thu, Feb 27, 2020 at 08:47:27PM +, Chris Wilson wrote: > As we drop the engine-pm on retiring, that may happen while there are > still CS events in the buffer. As such we cannot assert the engine is > still active on reset, until we know that the current request is still > in flig

Re: [Intel-gfx] [PATCH] drm/i915: Minimize uaccess exposure in i915_gem_execbuffer2_ioctl()

2020-02-27 Thread Chris Wilson
Quoting Josh Poimboeuf (2020-02-27 22:08:26) > With CONFIG_CC_OPTIMIZE_FOR_SIZE, objtool reports: > > drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: > i915_gem_execbuffer2_ioctl()+0x5b7: call to gen8_canonical_addr() with > UACCESS enabled > > This means i915_gem_execbuffer

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/ggtt: do not set bits 1-11 in gen12 ptes

2020-02-27 Thread Patchwork
== Series Details == Series: drm/i915/ggtt: do not set bits 1-11 in gen12 ptes URL : https://patchwork.freedesktop.org/series/73969/ State : success == Summary == CI Bug Log - changes from CI_DRM_8010_full -> Patchwork_16724_full Summary --

Re: [Intel-gfx] [PATCH v3 10/11] drm/i915/tgl: Add Wa number to WaAllowPMDepthAndInvocationCountAccessFromUMD

2020-02-27 Thread Lionel Landwerlin
On 28/02/2020 00:01, José Roberto de Souza wrote: Just to make easier to check that the Wa was implemetend when comparing to the number in BSpec. BSpec: 52890 Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 1 + 1 file

Re: [Intel-gfx] [PATCH 01/20] drm/i915: Skip barriers inside waits

2020-02-27 Thread Andi Shyti
Hi Cris, > Attaching to the i915_active barrier is a two stage process, and a flush > is only effective when the barrier is activation. Thus it is possible > for us to see a barrier, and attempt to flush, only for our flush to > have no effect. As such, before attempting to activate signaling on t

[Intel-gfx] [CI] PR for TGL HuC v7.0.12

2020-02-27 Thread Daniele Ceraolo Spurio
The following changes since commit efcfa03ae6100dfe523ebf612e03c3a90fc4c794: linux-firmware: Update firmware file for Intel Bluetooth AX201 (2020-02-24 07:43:42 -0500) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm-firmware tgl_huc_7.0.12 for you to fetch cha

[Intel-gfx] [PATCH] drm/i915/huc: update TGL HuC to v7.0.12

2020-02-27 Thread Daniele Ceraolo Spurio
Update to the latest available TGL HuC, which includes changes required by the media team. Requested-by: Tony Ye Signed-off-by: Daniele Ceraolo Spurio Cc: Tony Ye Cc: Michal Wajdeczko Cc: Anusha Srivatsa --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm managed resources, v3

2020-02-27 Thread Patchwork
== Series Details == Series: drm managed resources, v3 URL : https://patchwork.freedesktop.org/series/74035/ State : warning == Summary == $ dim checkpatch origin/drm-tip e3a16eee86fc mm/sl[uo]b: export __kmalloc_track(_node)_caller -:58: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm managed resources, v3

2020-02-27 Thread Patchwork
== Series Details == Series: drm managed resources, v3 URL : https://patchwork.freedesktop.org/series/74035/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: mm/sl[uo]b: export __kmalloc_track(_node)_caller Okay!

Re: [Intel-gfx] [PATCH 08/20] drm/i915/selftests: Disable heartbeat around manual pulse tests

2020-02-27 Thread Andi Shyti
Hi Chris, On Thu, Feb 27, 2020 at 08:57:11AM +, Chris Wilson wrote: > Still chasing the mystery of the stray idle flush, let's ensure that the > heartbeat does not run at the same time as our test and confuse us. > > References: https://gitlab.freedesktop.org/drm/intel/issues/541 > Signed-off

Re: [Intel-gfx] [PATCH] drm/i915: Minimize uaccess exposure in i915_gem_execbuffer2_ioctl()

2020-02-27 Thread Al Viro
On Thu, Feb 27, 2020 at 04:08:26PM -0600, Josh Poimboeuf wrote: > With CONFIG_CC_OPTIMIZE_FOR_SIZE, objtool reports: > > drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: > i915_gem_execbuffer2_ioctl()+0x5b7: call to gen8_canonical_addr() with > UACCESS enabled > > This means

Re: [Intel-gfx] [PATCH] drm/i915/display: nuke skl workaround for pre-production hw

2020-02-27 Thread Lucas De Marchi
On Tue, Jan 07, 2020 at 06:36:55PM +0200, Ville Syrjälä wrote: On Mon, Dec 23, 2019 at 12:59:55PM -0800, Lucas De Marchi wrote: On Fri, Dec 20, 2019 at 10:11:15PM +, Chris Wilson wrote: >Quoting Lucas De Marchi (2019-12-20 22:06:50) >> According to intel_detect_preproduction_hw(), the SKL st

Re: [Intel-gfx] [PATCH v2 1/1] drm/i915/tgl: Add definitions for VRR registers and bits

2020-02-27 Thread Manasi Navare
On Fri, Feb 14, 2020 at 04:27:51AM -0800, Aditya Swarup wrote: > Add definitions for registers grouped under Transcoder VRR function > with necessary bitfields. > > Bspec: 49268 > > v2: Use REG_GENMASK, correct tabs/space indentation and move the > definitions near the transcoder section.(Jani) >

[Intel-gfx] ✓ Fi.CI.BAT: success for drm managed resources, v3

2020-02-27 Thread Patchwork
== Series Details == Series: drm managed resources, v3 URL : https://patchwork.freedesktop.org/series/74035/ State : success == Summary == CI Bug Log - changes from CI_DRM_8022 -> Patchwork_16742 Summary --- **SUCCESS** No regress

<    1   2   3   >