Re: [Intel-gfx] [PATCH 5/9] vfio: Pass in a struct vfio_device * to vfio_dma_rw()

2022-04-13 Thread Christoph Hellwig
This looks good execept the extern nitpick: Reviewed-by: Christoph Hellwig However I'd move this before the previous patch. More of the explanation there.

Re: [Intel-gfx] [PATCH 8/9] vfio: Remove dead code

2022-04-13 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [Intel-gfx] [PATCH 4/9] drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages

2022-04-13 Thread Christoph Hellwig
On Tue, Apr 12, 2022 at 12:53:31PM -0300, Jason Gunthorpe wrote: > Use the existing vfio_device versions of vfio_(un)pin_pages(). There is no > reason to use a group interface here, kvmgt has easy access to a > vfio_device. Once this is moved after the vfio_dma_rw, this is the last user of the

Re: [Intel-gfx] [PATCH 9/9] vfio: Remove calls to vfio_group_add_container_user()

2022-04-13 Thread Christoph Hellwig
On Tue, Apr 12, 2022 at 12:53:36PM -0300, Jason Gunthorpe wrote: > + if (WARN_ON(!READ_ONCE(vdev->open_count))) > + return -EINVAL; I think all the WARN_ON()s in this patch need to be WARN_ON_ONCE, otherwise there will be too many backtraces to be useful if a driver ever gets the

Re: [Intel-gfx] [PATCH 2/2] drm/i915/display/psr: Clear more PSR state during disable

2022-04-13 Thread Hogander, Jouni
Hello Jose, See my comment below. On Tue, 2022-04-12 at 13:55 -0700, José Roberto de Souza wrote: > After commit 805f04d42a6b ("drm/i915/display/psr: Use continuos full > frame to handle frontbuffer invalidations") was merged we started to > get some drm_WARN_ON(_priv->drm, !(tmp & >

[Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Daniel Vetter
I messed up the delayed takover path in the locking conversion in 6e7da3af008b ("fbcon: Move console_lock for register/unlink/unregister"). Fix it by re-extracting the lockless function and using it in the delayed takeover path, where we need to hold the lock already to iterate over the list of

[Intel-gfx] [PATCH] drm/ttm: fixup ttm_bo_add_move_fence

2022-04-13 Thread Matthew Auld
It looks like we still need to call dma_fence_put() on the man->move, otherwise we just end up leaking it, leading to fireworks later. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5689 Fixes: 8bb31587820a ("drm/ttm: remove bo->moving") Cc: Christian König Cc: Daniel Vetter

Re: [Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 11:16:08AM +0200, Javier Martinez Canillas wrote: > Hello Daniel, > > On 4/13/22 10:21, Daniel Vetter wrote: > > I messed up the delayed takover path in the locking conversion in > > 6e7da3af008b ("fbcon: Move console_lock for register/unlink/unregister"). > > > > Maybe a

Re: [Intel-gfx] [PATCH v3 14/17] fbcon: Move console_lock for register/unlink/unregister

2022-04-13 Thread Daniel Vetter
On Mon, Apr 11, 2022 at 03:27:47PM -0700, Nathan Chancellor wrote: > Hi Daniel, > > On Tue, Apr 05, 2022 at 11:03:32PM +0200, Daniel Vetter wrote: > > Ideally console_lock becomes an implementation detail of fbcon.c and > > doesn't show up anywhere in fbmem.c. We're still pretty far from that, >

Re: [Intel-gfx] [PATCH] drm/ttm: fixup ttm_bo_add_move_fence

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 09:21:33AM +0100, Matthew Auld wrote: > It looks like we still need to call dma_fence_put() on the man->move, > otherwise we just end up leaking it, leading to fireworks later. > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5689 > Fixes: 8bb31587820a

Re: [Intel-gfx] [PATCH] drm/ttm: fixup ttm_bo_add_move_fence

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 10:43:02AM +0200, Christian König wrote: > Am 13.04.22 um 10:21 schrieb Matthew Auld: > > It looks like we still need to call dma_fence_put() on the man->move, > > otherwise we just end up leaking it, leading to fireworks later. > > > > Closes: > >

[Intel-gfx] [PATCH v2] drm/ttm: fixup ttm_bo_add_move_fence

2022-04-13 Thread Matthew Auld
It looks like we still need to call dma_fence_put() on the man->move, otherwise we just end up leaking it, leading to fireworks later. v2(Daniel): - Simplify the function tail Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5689 Fixes: 8bb31587820a ("drm/ttm: remove bo->moving") Cc:

Re: [Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Javier Martinez Canillas
Hello Daniel, On 4/13/22 10:21, Daniel Vetter wrote: > I messed up the delayed takover path in the locking conversion in > 6e7da3af008b ("fbcon: Move console_lock for register/unlink/unregister"). > Maybe a few more words of what the issue is ? Something like the following: If

Re: [Intel-gfx] [PATCH v9 1/3] i915/gvt: Separate the MMIO tracking table from GVT-g

2022-04-13 Thread Jani Nikula
On Fri, 08 Apr 2022, "Wang, Zhi A" wrote: > Hi Jani: > > Thanks so much for the help. Can you generate a new tag on > drm-intel-next? I noticed that there was one patch moving the DMC > related registers into display/intel_dmc_regs.h, which is not included > in the latest tag on drm-intel-next.

Re: [Intel-gfx] [PATCH 1/2] drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_config_valid() fails

2022-04-13 Thread Hogander, Jouni
On Tue, 2022-04-12 at 13:55 -0700, José Roberto de Souza wrote: > If any of the PSR2 checks after intel_psr2_sel_fetch_config_valid() > fails, enable_psr2_sel_fetch will be kept enabled causing problems > in the functions that only checks for it and not for has_psr2. > > So here moving the check

Re: [Intel-gfx] [PATCH v7 7/9] drm/ttm: Add a parameter to add extra pages into ttm_tt

2022-04-13 Thread Joonas Lahtinen
(+ Tvrtko and Jani) Quoting Ramalingam C (2022-04-02 06:02:38) > On 2022-04-01 at 16:31:19 +0200, Christian König wrote: > > I would be nicer to push this through drm-misc-next, but the intel branch > > works for me as well. > Hi Christian > > I have pushed this patch into drm-misc-next. I've

[Intel-gfx] [PATCH v2] drm/i915: Check EDID for HDR static metadata when choosing blc

2022-04-13 Thread Jouni Högander
We have now seen panel (XMG Core 15 e21 laptop) advertizing support for Intel proprietary eDP backlight control via DPCD registers, but actually working only with legacy pwm control. This patch adds panel EDID check for possible HDR static metadata and Intel proprietary eDP backlight control is

Re: [Intel-gfx] [PATCH] drm/i915: Check EDID before dpcd for possible HDR aux bl support

2022-04-13 Thread Hogander, Jouni
Hello Lyude, See my respose below. On Tue, 2022-04-12 at 13:50 -0400, Lyude Paul wrote: > On Tue, 2022-04-12 at 08:25 +0300, Jouni Högander wrote: > > We have now seen panel (XMG Core 15 e21 laptop) avertizing support > > for Intel proprietary eDP backlight control via DPCD registers, but > >

Re: [Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 10:21:28AM +0200, Daniel Vetter wrote: > I messed up the delayed takover path in the locking conversion in > 6e7da3af008b ("fbcon: Move console_lock for register/unlink/unregister"). > > Fix it by re-extracting the lockless function and using it in the > delayed takeover

Re: [Intel-gfx] linux-next: build warning after merge of the drm-misc tree

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 10:04:48AM +1000, Stephen Rothwell wrote: > Hi all, > > On Wed, 6 Apr 2022 15:50:30 +1000 Stephen Rothwell > wrote: > > > > After merging the drm-misc tree, today's linux-next build (htmldocs) > > produced this warning: > > > > include/drm/ttm/ttm_resource.h:226:

[Intel-gfx] [PATCH] drm/i915: Remove intel_gvt_init_host declaration

2022-04-13 Thread Cong Liu
this function has been deleted since commit 9bdb073464d6 ("drm/i915/gvt: Change KVMGT as self load module"), remove the deprecated function declaration. Signed-off-by: Cong Liu --- drivers/gpu/drm/i915/intel_gvt.h | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Javier Martinez Canillas
On 4/13/22 11:21, Daniel Vetter wrote: > On Wed, Apr 13, 2022 at 11:16:08AM +0200, Javier Martinez Canillas wrote: >> Hello Daniel, >> >> On 4/13/22 10:21, Daniel Vetter wrote: >>> I messed up the delayed takover path in the locking conversion in >>> 6e7da3af008b ("fbcon: Move console_lock for

Re: [Intel-gfx] [PATCH v9 1/3] i915/gvt: Separate the MMIO tracking table from GVT-g

2022-04-13 Thread Wang, Zhi A
Hi Jani: Previously when I sent a pull request, it will be top of a tag in drm-intel-next. The following patches move the DMC related registers, which is used by GVT-g into intel_dmc_regs.h and it is not included in the latest tag. commit 9c67d9e84c7d4a3a2371a54ee2dddc4699002000 Author: Jani

Re: [Intel-gfx] [PATCH v9 1/3] i915/gvt: Separate the MMIO tracking table from GVT-g

2022-04-13 Thread Jani Nikula
On Wed, 13 Apr 2022, "Wang, Zhi A" wrote: > Hi Jani: > > Previously when I sent a pull request, it will be top of a tag in > drm-intel-next. The following patches move the DMC related registers, which > is used by GVT-g into intel_dmc_regs.h and it is not included in the latest > tag. > >

Re: [Intel-gfx] [CI] PR for DG2 DMC v2.06

2022-04-13 Thread Timo Aaltonen
Tolakanahalli Pradeep, Madhumitha kirjoitti 23.3.2022 klo 20.23: The following changes since commit 681281e49fb6778831370e5d94e6e1d97f0752d6: amdgpu: update PSP 13.0.8 firmware (2022-03-18 07:35:54 -0400) are available in the Git repository at:

[Intel-gfx] [PATCH 0/2] drm/i915/gvt: clean up makefile

2022-04-13 Thread Jani Nikula
This is [1] rebased on gvt-next. (Which means it won't build on CI.) BR, Jani. [1] https://patchwork.freedesktop.org/series/102003/ Cc: Zhi Wang Cc: Christoph Hellwig Jani Nikula (2): drm/i915/gvt: fix trace TRACE_INCLUDE_PATH drm/i915/gvt: better align the Makefile with i915 Makefile

[Intel-gfx] [PATCH 1/2] drm/i915/gvt: fix trace TRACE_INCLUDE_PATH

2022-04-13 Thread Jani Nikula
TRACE_INCLUDE_PATH should be a path relative to define_trace.h, not the file including it. (See the comment in include/trace/define_trace.h.) Cc: Zhi Wang Cc: Christoph Hellwig Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gvt/trace.h | 2 +- 1 file changed, 1 insertion(+), 1

[Intel-gfx] [PATCH 2/2] drm/i915/gvt: better align the Makefile with i915 Makefile

2022-04-13 Thread Jani Nikula
Drop extra ccflags, drop extra intermediate variables, list object files one per line alphabetically. Cc: Zhi Wang Cc: Christoph Hellwig Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile | 6 +++--- drivers/gpu/drm/i915/gvt/Makefile | 30 +++--- 2 files

Re: [Intel-gfx] [PATCH v7 7/9] drm/ttm: Add a parameter to add extra pages into ttm_tt

2022-04-13 Thread Ramalingam C
On 2022-04-13 at 11:28:28 +0300, Joonas Lahtinen wrote: > (+ Tvrtko and Jani) > > Quoting Ramalingam C (2022-04-02 06:02:38) > > On 2022-04-01 at 16:31:19 +0200, Christian König wrote: > > > I would be nicer to push this through drm-misc-next, but the intel branch > > > works for me as well. > >

Re: [Intel-gfx] [PATCH] drm/atomic-helpers: remove legacy_cursor_update hacks

2022-04-13 Thread Daniel Vetter
On Wed, 13 Apr 2022 at 01:36, Abhinav Kumar wrote: > > Hi Daniel > > On 4/8/2022 9:04 PM, Abhinav Kumar wrote: > > > > > > On 4/7/2022 4:12 PM, Rob Clark wrote: > >> On Thu, Apr 7, 2022 at 3:59 PM Abhinav Kumar > >> wrote: > >>> > >>> Hi Rob and Daniel > >>> > >>> On 4/7/2022 3:51 PM, Rob Clark

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for GSC support (rev5)

2022-04-13 Thread Patchwork
== Series Details == Series: GSC support (rev5) URL : https://patchwork.freedesktop.org/series/102160/ State : warning == Summary == Error: dim checkpatch failed c9eb3de40bf4 drm/i915/gsc: add gsc as a mei auxiliary device Traceback (most recent call last): File "scripts/spdxcheck.py", line

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for GSC support (rev5)

2022-04-13 Thread Patchwork
== Series Details == Series: GSC support (rev5) URL : https://patchwork.freedesktop.org/series/102160/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] [PATCH] drm/i915/adl-n: Differentiate ADLP and ADLN steppings

2022-04-13 Thread Tejas Upadhyay
ADL-N and ADL-P stepping are different, thus we need to add check for ADL-N in IS_ADLP_DISPLAY_STEP(). Signed-off-by: Tejas Upadhyay --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h

Re: [Intel-gfx] [PATCH 05/34] drm/i915/gvt: cleanup the Makefile

2022-04-13 Thread Jani Nikula
On Mon, 11 Apr 2022, Christoph Hellwig wrote: > On Mon, Apr 11, 2022 at 07:11:03PM +0300, Jani Nikula wrote: >> > Up to you but I usually sort these lists >> >> Yeah, please do. Otherwise matches what I sent, so ack. > > Let's just merge your 2 patch series ASAP and I'll rebase on top of > that.

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Make the rest of the VFIO driver interface use vfio_device

2022-04-13 Thread Patchwork
== Series Details == Series: Make the rest of the VFIO driver interface use vfio_device URL : https://patchwork.freedesktop.org/series/102606/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. -

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Make the rest of the VFIO driver interface use vfio_device

2022-04-13 Thread Patchwork
== Series Details == Series: Make the rest of the VFIO driver interface use vfio_device URL : https://patchwork.freedesktop.org/series/102606/ State : warning == Summary == Error: dim checkpatch failed 1a0dcd52cf62 vfio: Make vfio_(un)register_notifier accept a vfio_device -:33:

[Intel-gfx] ✓ Fi.CI.BAT: success for Make the rest of the VFIO driver interface use vfio_device

2022-04-13 Thread Patchwork
== Series Details == Series: Make the rest of the VFIO driver interface use vfio_device URL : https://patchwork.freedesktop.org/series/102606/ State : success == Summary == CI Bug Log - changes from CI_DRM_11493 -> Patchwork_102606v1

[Intel-gfx] ✓ Fi.CI.BAT: success for GSC support (rev5)

2022-04-13 Thread Patchwork
== Series Details == Series: GSC support (rev5) URL : https://patchwork.freedesktop.org/series/102160/ State : success == Summary == CI Bug Log - changes from CI_DRM_11493 -> Patchwork_102160v5 Summary --- **SUCCESS** No

Re: [Intel-gfx] [PATCH 05/34] drm/i915/gvt: cleanup the Makefile

2022-04-13 Thread Wang, Zhi A
On 4/13/22 12:33 PM, Jani Nikula wrote: > On Mon, 11 Apr 2022, Christoph Hellwig wrote: >> On Mon, Apr 11, 2022 at 07:11:03PM +0300, Jani Nikula wrote: Up to you but I usually sort these lists >>> >>> Yeah, please do. Otherwise matches what I sent, so ack. >> >> Let's just merge your 2 patch

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: ttm for stolen region (rev3)

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915: ttm for stolen region (rev3) URL : https://patchwork.freedesktop.org/series/102540/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11493 -> Patchwork_102540v3 Summary ---

Re: [Intel-gfx] [PATCH 0/7] drm/i915/fbc: FBC frontbuffer stuff

2022-04-13 Thread Kahola, Mika
> -Original Message- > From: Intel-gfx On Behalf Of Ville > Syrjala > Sent: Tuesday, March 15, 2022 4:00 PM > To: intel-gfx@lists.freedesktop.org > Subject: [Intel-gfx] [PATCH 0/7] drm/i915/fbc: FBC frontbuffer stuff > > From: Ville Syrjälä > > Avoid all the FBC frontbuffer vs. atomic

Re: [Intel-gfx] [PATCH 05/34] drm/i915/gvt: cleanup the Makefile

2022-04-13 Thread Wang, Zhi A
On 4/13/22 1:43 PM, Jason Gunthorpe wrote: > On Wed, Apr 13, 2022 at 01:39:35PM +, Wang, Zhi A wrote: > >> It seems Jani's makefile clean patch has already included this one, I can >> just simply drop this one so that Christoph won't need to re-send everything. >> >> For the branch to move

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: ttm for stolen region (rev3)

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915: ttm for stolen region (rev3) URL : https://patchwork.freedesktop.org/series/102540/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [Intel-gfx] [PATCH 0/2] drm/i915/gvt: clean up makefile

2022-04-13 Thread Wang, Zhi A
On 4/13/22 12:25 PM, Jani Nikula wrote: > This is [1] rebased on gvt-next. (Which means it won't build on CI.) > > BR, > Jani. > > > [1] https://patchwork.freedesktop.org/series/102003/ > > > Cc: Zhi Wang > Cc: Christoph Hellwig > > > Jani Nikula (2): > drm/i915/gvt: fix trace

Re: [Intel-gfx] refactor the i915 GVT support and move to the modern mdev API v3

2022-04-13 Thread Wang, Zhi A
On 4/11/22 2:13 PM, Christoph Hellwig wrote: > Hi all, > > the GVT code in the i915 is a bit of a mess right now due to strange > abstractions and lots of indirect calls. This series refactors various > bits to clean that up. The main user visible change is that almost all > of the GVT code

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_config_valid() fails

2022-04-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_config_valid() fails URL : https://patchwork.freedesktop.org/series/102615/ State : success == Summary == CI Bug Log - changes from CI_DRM_11494 ->

Re: [Intel-gfx] refactor the i915 GVT support and move to the modern mdev API v3

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 06:58:47PM +0300, Jani Nikula wrote: > Acked-by: Jani Nikula I've only added this to the i915 patches for now, let me know if you also want me to add it to the vfio/mdev ones.

Re: [Intel-gfx] [PATCH 1/9] vfio: Make vfio_(un)register_notifier accept a vfio_device

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 01:18:14PM -0300, Jason Gunthorpe wrote: > Yeah, I was thinking about that too, but on the other hand I think it > is completely wrong that gvt requires kvm at all. A vfio_device is not > supposed to be tightly linked to KVM - the only exception possibly > being s390.. So

[Intel-gfx] [PATCH v2 1/2] drm/i915/display/psr: Unset enable_psr2_sel_fetch if other checks in intel_psr2_config_valid() fails

2022-04-13 Thread José Roberto de Souza
If any of the PSR2 checks after intel_psr2_sel_fetch_config_valid() fails, enable_psr2_sel_fetch will be kept enabled causing problems in the functions that only checks for it and not for has_psr2. So here moving the check that do not depend on enable_psr2_sel_fetch and for the remaning ones

[Intel-gfx] [PATCH v2 2/2] drm/i915/display/psr: Do not check for PSR2_MAN_TRK_CTL_ENABLE on alderlake-P

2022-04-13 Thread José Roberto de Souza
Alderlake-P don't have PSR2_MAN_TRK_CTL_ENABLE bit, instead it have ADLP_PSR2_MAN_TRK_CTL_SF_PARTIAL_FRAME_UPDATE in the same bit but this bit is clearead after each vblank so we can't count on having it set after planes are programmed. Cc: Jouni Högander Fixes: 73262db68c27 ("drm/i915/display:

[Intel-gfx] ✓ Fi.CI.IGT: success for Make the rest of the VFIO driver interface use vfio_device

2022-04-13 Thread Patchwork
== Series Details == Series: Make the rest of the VFIO driver interface use vfio_device URL : https://patchwork.freedesktop.org/series/102606/ State : success == Summary == CI Bug Log - changes from CI_DRM_11493_full -> Patchwork_102606v1_full

[Intel-gfx] [PATCH 1/2] drm/i915/fbc: Consult hw.crtc instead of uapi.crtc

2022-04-13 Thread Ville Syrjala
From: Ville Syrjälä plane_state->uapi.crtc is not what we want to be looking at. If bigjoiner is used hw.crtc is what tells us what crtc the plane is supposedly using. Not an actual problem on current hardware as the only FBC capable pipe (A) can't be a bigjoiner slave and thus

[Intel-gfx] [PATCH 2/2] drm/i915/fbc: s/false/0/

2022-04-13 Thread Ville Syrjala
From: Ville Syrjälä intel_fbc_check_plane() is supposed to an int, not a boolean. So replace the bogus 'return false's with the correct 'return 0's. These were accidental copy-paste mistakes when the code got moved into intel_fbc_check_plane() from somewhere else tht did return a boolean. No

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gvt: better align the Makefile with i915 Makefile

2022-04-13 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gvt: fix trace TRACE_INCLUDE_PATH

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 03:25:38PM +0300, Jani Nikula wrote: > TRACE_INCLUDE_PATH should be a path relative to define_trace.h, not the > file including it. (See the comment in include/trace/define_trace.h.) Looks good: Reviewed-by: Christoph Hellwig

[Intel-gfx] [PULL] drm-intel-next

2022-04-13 Thread Jani Nikula
Hi Dave & Daniel - The first drm/i915 pull for v5.19. BR, Jani. drm-intel-next-2022-04-13-1: drm/i915 feature pull for v5.19: Features and functionality: - Add support for new Tile 4 format on DG2 (Stan) - Add support for new CCS clear color compression on DG2 (Mika, Juha-Pekka) - Add

Re: [Intel-gfx] refactor the i915 GVT support and move to the modern mdev API v3

2022-04-13 Thread Jani Nikula
On Wed, 13 Apr 2022, Christoph Hellwig wrote: > On Wed, Apr 13, 2022 at 01:47:05PM +, Wang, Zhi A wrote: >> > the GVT code in the i915 is a bit of a mess right now due to strange >> > abstractions and lots of indirect calls. This series refactors various >> > bits to clean that up. The main

Re: [Intel-gfx] [PATCH 2/2] drm/i915/display/psr: Clear more PSR state during disable

2022-04-13 Thread Souza, Jose
On Wed, 2022-04-13 at 07:27 +, Hogander, Jouni wrote: > Hello Jose, > > See my comment below. > > On Tue, 2022-04-12 at 13:55 -0700, José Roberto de Souza wrote: > > After commit 805f04d42a6b ("drm/i915/display/psr: Use continuos full > > frame to handle frontbuffer invalidations") was

Re: [Intel-gfx] [PATCH 9/9] vfio: Remove calls to vfio_group_add_container_user()

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 11:03:05AM -0300, Jason Gunthorpe wrote: > On Wed, Apr 13, 2022 at 08:11:05AM +0200, Christoph Hellwig wrote: > > On Tue, Apr 12, 2022 at 12:53:36PM -0300, Jason Gunthorpe wrote: > > > + if (WARN_ON(!READ_ONCE(vdev->open_count))) > > > + return -EINVAL; > > > > I

Re: [Intel-gfx] [PATCH 0/2] drm/i915/gvt: clean up makefile

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 07:04:54PM +0300, Jani Nikula wrote: > > v6: > > - Remove the reference of intel_gvt_device_info.(Christoph) > > - Refine the save_mmio() function. (Christoph) > > > > which don't belong in the commit log. It might be worth to fix that > > before sending a pull request.

Re: [Intel-gfx] [PATCH 0/2] drm/i915/gvt: clean up makefile

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 03:25:37PM +0300, Jani Nikula wrote: > This is [1] rebased on gvt-next. (Which means it won't build on CI.) Btw, now that I found that gvt-next branch: Zhi, your commits still have per-commit changelog like: v6: - Remove the reference of

Re: [Intel-gfx] refactor the i915 GVT support and move to the modern mdev API v3

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 01:47:05PM +, Wang, Zhi A wrote: > > the GVT code in the i915 is a bit of a mess right now due to strange > > abstractions and lots of indirect calls. This series refactors various > > bits to clean that up. The main user visible change is that almost all > > of the

Re: [Intel-gfx] [PATCH 1/9] vfio: Make vfio_(un)register_notifier accept a vfio_device

2022-04-13 Thread Christoph Hellwig
On Wed, Apr 13, 2022 at 08:39:52AM -0300, Jason Gunthorpe wrote: > I already looked into that for a while, it is a real mess too because > of how the notifiers are used by the current drivers, eg gvt assumes > the notifier is called during its open_device callback to setup its > kvm. gvt very

Re: [Intel-gfx] [PATCH 0/2] drm/i915/gvt: clean up makefile

2022-04-13 Thread Jani Nikula
On Wed, 13 Apr 2022, Christoph Hellwig wrote: > On Wed, Apr 13, 2022 at 03:25:37PM +0300, Jani Nikula wrote: >> This is [1] rebased on gvt-next. (Which means it won't build on CI.) > > Btw, now that I found that gvt-next branch: > > Zhi, your commits still have per-commit changelog like: > > v6:

Re: [Intel-gfx] commit 15512021eb3975a8c2366e3883337e252bb0eee5 causes white spots in console screens

2022-04-13 Thread Jani Nikula
On Wed, 13 Apr 2022, François Valenduc wrote: > Commit 15512021eb3975a8c2366e3883337e252bb0eee5 > (15512021eb3975a8c2366e3883337e252bb0eee5) causes a lof of white spots > to appears on the right upper corner of all console screens (see >

Re: [Intel-gfx] commit 15512021eb3975a8c2366e3883337e252bb0eee5 causes with spots in console screeens.

2022-04-13 Thread Jani Nikula
On Mon, 11 Apr 2022, François Valenduc wrote: > Commit 15512021eb3975a8c2366e3883337e252bb0eee5 > (15512021eb3975a8c2366e3883337e252bb0eee5) causes a lof of white spots > to appears on the right upper corner of all console screens see the > attached photo). git-bisect shows that this is the

Re: [Intel-gfx] [PATCH 6/8] drm/i915/gt: Fix memory leaks in per-gt sysfs

2022-04-13 Thread Dixit, Ashutosh
On Wed, 13 Apr 2022 11:11:07 -0700, Ashutosh Dixit wrote: > > All kmalloc'd kobjects need a kobject_put() to free memory. For example in > previous code, kobj_gt_release() never gets called. Even if kobj_gt_release() were to get called, the code allocates 'struct kobj_gt' and frees 'struct

Re: [Intel-gfx] [PATCH] fbcon: Fix delayed takeover locking

2022-04-13 Thread Nathan Chancellor
On Wed, Apr 13, 2022 at 11:25:02AM +0200, Daniel Vetter wrote: > On Wed, Apr 13, 2022 at 10:21:28AM +0200, Daniel Vetter wrote: > > I messed up the delayed takover path in the locking conversion in > > 6e7da3af008b ("fbcon: Move console_lock for register/unlink/unregister"). > > > > Fix it by

Re: [Intel-gfx] [PATCH 1/9] vfio: Make vfio_(un)register_notifier accept a vfio_device

2022-04-13 Thread Wang, Zhi A
On 4/13/22 8:04 PM, Jason Gunthorpe wrote: > On Wed, Apr 13, 2022 at 07:17:52PM +, Wang, Zhi A wrote: >> On 4/13/22 5:37 PM, Jason Gunthorpe wrote: >>> On Wed, Apr 13, 2022 at 06:29:46PM +0200, Christoph Hellwig wrote: On Wed, Apr 13, 2022 at 01:18:14PM -0300, Jason Gunthorpe wrote: >

Re: [Intel-gfx] [PATCH 1/4] drm/i915/doc: Convert drm_i915_query_topology_info comment to kerneldoc

2022-04-13 Thread Francisco Jerez
Looks good to me, series is: Reviewed-by: Francisco Jerez Matt Roper writes: > This structure has a great comment describing the fields, but it's not > currently in kerneldoc form and does not show up in the generated > documentation. Let's fix that and also clarify the description of what >

[Intel-gfx] [PATCH 0/8] drm/i915: Media freq factor and per-gt enhancements/fixes

2022-04-13 Thread Ashutosh Dixit
Some recent Intel dGfx platforms allow media IP to work at a different frequency from the base GT. This patch series exposes sysfs controls for this functionality in the new per-gt sysfs. Some enhancements and fixes to previous per-gt functionality are also included to complete the new

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Check EDID for HDR static metadata when choosing blc

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915: Check EDID for HDR static metadata when choosing blc URL : https://patchwork.freedesktop.org/series/102645/ State : warning == Summary == Error: dim checkpatch failed 0cc97e8784e7 drm/i915: Check EDID for HDR static metadata when choosing blc -:71:

[Intel-gfx] ✗ Fi.CI.IGT: failure for Expose max and current bpc via debugfs (rev2)

2022-04-13 Thread Patchwork
== Series Details == Series: Expose max and current bpc via debugfs (rev2) URL : https://patchwork.freedesktop.org/series/102502/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11496_full -> Patchwork_102502v2_full Summary

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Check EDID for HDR static metadata when choosing blc

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915: Check EDID for HDR static metadata when choosing blc URL : https://patchwork.freedesktop.org/series/102645/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11497 -> Patchwork_102645v1

[Intel-gfx] [PATCH] drm/i915: Don't show client busyness in fdinfo with GuC submission

2022-04-13 Thread Ashutosh Dixit
Client busyness is not available when GuC submission is used. Don't show it in fdinfo till this is supported by GuC. Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/5564 Fixes: 055634e4b62f ("drm/i915: Expose client engine utilisation via fdinfo") Cc: Umesh Nerlige Ramappa Cc: John

[Intel-gfx] ✗ Fi.CI.IGT: failure for fbcon: Fix delayed takeover locking

2022-04-13 Thread Patchwork
== Series Details == Series: fbcon: Fix delayed takeover locking URL : https://patchwork.freedesktop.org/series/102641/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11496_full -> Patchwork_102641v1_full Summary ---

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Update to GuC v70

2022-04-13 Thread Patchwork
== Series Details == Series: Update to GuC v70 URL : https://patchwork.freedesktop.org/series/102626/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc/slpc: Use i915_probe_error instead of drm_err

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915/guc/slpc: Use i915_probe_error instead of drm_err URL : https://patchwork.freedesktop.org/series/102625/ State : success == Summary == CI Bug Log - changes from CI_DRM_11496 -> Patchwork_102625v1

Re: [Intel-gfx] [PATCH] drm/i915: Check EDID before dpcd for possible HDR aux bl support

2022-04-13 Thread Lyude Paul
On Wed, 2022-04-13 at 08:31 +, Hogander, Jouni wrote: > Hello Lyude, > > See my respose below. > > On Tue, 2022-04-12 at 13:50 -0400, Lyude Paul wrote: > > On Tue, 2022-04-12 at 08:25 +0300, Jouni Högander wrote: > > > We have now seen panel (XMG Core 15 e21 laptop) avertizing support > > >

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Remove intel_gvt_init_host declaration

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915: Remove intel_gvt_init_host declaration URL : https://patchwork.freedesktop.org/series/102646/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11497 -> Patchwork_102646v1 Summary ---

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/adl-n: Differentiate ADLP and ADLN steppings

2022-04-13 Thread Patchwork
== Series Details == Series: drm/i915/adl-n: Differentiate ADLP and ADLN steppings URL : https://patchwork.freedesktop.org/series/102652/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [Intel-gfx] [PATCH] drm/i915: Remove intel_gvt_init_host declaration

2022-04-13 Thread Jani Nikula
On Wed, 13 Apr 2022, Cong Liu wrote: > this function has been deleted since commit 9bdb073464d6 ("drm/i915/gvt: > Change KVMGT as self load module"), remove the deprecated function > declaration. I don't want to push this right now avoid conflicts in other pending work. Cc'd Zhi & Zhenyu to pick

Re: [Intel-gfx] [PATCH 14/20] drm/i915/dg2: add gsc with special gsc bar offsets

2022-04-13 Thread Ceraolo Spurio, Daniele
On 4/7/2022 5:58 AM, Alexander Usyskin wrote: From: Tomas Winkler DG2 uses different GSC offsets on memory bar and uses PXP head (HECI1). Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele ---

[Intel-gfx] [PATCH 01/10] drm/i915/guc: Update context registration to new GuC API

2022-04-13 Thread Umesh Nerlige Ramappa
From: John Harrison The latest GuC firmware drops the context descriptor pool in favour of passing all creation data in the create H2G. It also greatly simplifies the work queue and removes the process descriptor used for multi-LRC submission. So, remove all mention of LRC and process

[Intel-gfx] [PATCH 07/10] drm/i915/guc: Enable GuC based workarounds for DG2

2022-04-13 Thread Umesh Nerlige Ramappa
From: John Harrison There are some workarounds for DG2 that are implemented in the GuC firmware. However, the KMD is required to enable these by setting the appropriate flag as GuC does not know what platform it is running on. Wa_16011759253 Wa_14012630569 Wa_14013746162 v2: Add a couple

[Intel-gfx] [PATCH 04/10] drm/i915/xehp: Add compute engine ABI

2022-04-13 Thread Umesh Nerlige Ramappa
From: Matt Roper We're now ready to start exposing compute engines to userspace. While we're at it, let's extend the kerneldoc description for the other engine types as well. Cc: Daniele Ceraolo Spurio Cc: Tvrtko Ursulin Cc: Vinay Belgaumkar Cc: Jordan Justen Cc: Szymon Morek UMD (mesa):

[Intel-gfx] [PATCH 08/10] drm/i915/guc: Apply Wa_16011777198

2022-04-13 Thread Umesh Nerlige Ramappa
From: Vinay Belgaumkar Enable GuC Wa to reset RCS/CCS before it goes into RC6. v2: Comments from Matt R. Signed-off-by: Vinay Belgaumkar --- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 5 + drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 1 + 2 files changed, 6 insertions(+) diff --git

[Intel-gfx] [PATCH 05/10] drm/i915: Xe_HP SDV and DG2 have 4 CCS engines

2022-04-13 Thread Umesh Nerlige Ramappa
From: Daniele Ceraolo Spurio Cc: Vinay Belgaumkar Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/i915_pci.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c

[Intel-gfx] [PATCH 00/10] Enable compute and related WAs for DG2

2022-04-13 Thread Umesh Nerlige Ramappa
Enable compute, work arounds and relevant GuC FW for DG2. Signed-off-by: Matt Roper Signed-off-by: Umesh Nerlige Ramappa Signed-off-by: John Harrison Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Vinay Belgaumkar Signed-off-by: Tilak Tangudu Daniele Ceraolo Spurio (1): drm/i915:

[Intel-gfx] [PATCH 03/10] drm/i915/guc: Update to GuC version 70.1.1

2022-04-13 Thread Umesh Nerlige Ramappa
From: John Harrison Update to the latest GuC firmware release. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[Intel-gfx] [PATCH 02/10] drm/i915/guc: Update scheduling policies to new GuC API

2022-04-13 Thread Umesh Nerlige Ramappa
From: John Harrison The latest GuC firmware drops the individual scheduling policy update H2G commands in favour of a single KLV based H2G. So, change the update wrappers accordingly. Unfortunately, the API changes also mean losing the ability to set any scheduling policy values during context

[Intel-gfx] [PATCH 06/10] drm/i915: Add Wa_22011802037 force cs halt

2022-04-13 Thread Umesh Nerlige Ramappa
From: Tilak Tangudu Prior to doing a reset, SW must ensure command streamer is stopped, as a workaround, to eliminate a race condition in GPM flow. Setting both the ring stop and prefetch disable bits, will cause the command streamer to halt. v2: 1. Removed duplicate code and added only

[Intel-gfx] [PATCH 10/10] drm/i915/dg2: Enable Wa_22012727170/Wa_22012727685

2022-04-13 Thread Umesh Nerlige Ramappa
From: John Harrison The above two workaronuds regarding context isolation are implemented by GuC. The KMD just needs to enable them. v2: Use dg2 stepping for ctx isolation WA (Umesh) v3: Rebase (Umesh) v4: Fix WA comments (Daniele) v5: Drop Wa_22012727685 for G10 as it is n/a v6: Undo v5 change

[Intel-gfx] [PATCH 09/10] drm/i915/dg2: Enable Wa_14014475959 - RCS / CCS context exit

2022-04-13 Thread Umesh Nerlige Ramappa
From: Matthew Brost There is bug in DG2 where if the CCS contexts switches out while the RCS is running it can cause memory corruption. To workaround this add an atomic to a memory address with a value 1 and semaphore wait to the same address for a value of 0. The GuC firmware is responsible for

[Intel-gfx] ✓ Fi.CI.BAT: success for Expose max and current bpc via debugfs (rev2)

2022-04-13 Thread Patchwork
== Series Details == Series: Expose max and current bpc via debugfs (rev2) URL : https://patchwork.freedesktop.org/series/102502/ State : success == Summary == CI Bug Log - changes from CI_DRM_11496 -> Patchwork_102502v2 Summary ---

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for fbcon: Fix delayed takeover locking

2022-04-13 Thread Patchwork
== Series Details == Series: fbcon: Fix delayed takeover locking URL : https://patchwork.freedesktop.org/series/102641/ State : warning == Summary == Error: dim checkpatch failed 8854f9cee658 fbcon: Fix delayed takeover locking -:7: ERROR:GIT_COMMIT_ID: Please use git commit description style

[Intel-gfx] [PATCH 2/8] drm/i915/gt: Add media freq factor to per-gt sysfs

2022-04-13 Thread Ashutosh Dixit
Expose new sysfs to program and retrieve media freq factor. Factor values of 0 (dynamic), 0.5 and 1.0 are supported via a u8.8 fixed point representation (corresponding to integer values of 0, 128 and 256 respectively). Media freq factor is converted to media_ratio_mode for GuC. It is programmed

[Intel-gfx] [PATCH 7/8] drm/i915/gt: Expose per-gt RPS defaults in sysfs

2022-04-13 Thread Ashutosh Dixit
Create a gt/gtN/.defaults directory (similar to engine//.defaults) to expose default parameter values for each gt in sysfs. Populate the .defaults directory with RPS parameter default values in order to allow userspace to revert to default values when needed. This patch adds the following sysfs

[Intel-gfx] [PATCH 3/8] drm/i915/pcode: Extend pcode functions for multiple gt's

2022-04-13 Thread Ashutosh Dixit
Each gt contains an independent instance of pcode. Extend pcode functions to interface with pcode on different gt's. Previous (GT0) pcode read/write interfaces are preserved. Cc: Rodrigo Vivi Cc: Mike Ruhl Signed-off-by: Ashutosh Dixit --- drivers/gpu/drm/i915/intel_pcode.c | 108

[Intel-gfx] [PATCH 6/8] drm/i915/gt: Fix memory leaks in per-gt sysfs

2022-04-13 Thread Ashutosh Dixit
All kmalloc'd kobjects need a kobject_put() to free memory. For example in previous code, kobj_gt_release() never gets called. The requirement of kobject_put() now results in a slightly different code organization. Cc: Andi Shyti Cc: Andrzej Hajda Cc: Rodrigo Vivi Fixes: b770bcfae9ad

  1   2   >