Re: [Intel-gfx] [V3 1/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Bhanuprakash Modem wrote: > Instead of mixing display & non-display stuff together, move > display specific clock info to new debugfs. This patch will > create a new debugfs "i915_cdclk_info" to expose Current & Max > cdclk and Max pixel clock frequency info. > > Example: > $

[Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Suraj Kandpal
On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. As a result of this change, when HPD active going low pulse or HPD IRQ is presented and the refclk (19.2MHz) is not toggling already toggling, there is a 60 to 90us synchronization delay which effectively reduces the duration of the I

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/mtl: Add Support for C10 phy (rev4)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/mtl: Add Support for C10 phy (rev4) URL : https://patchwork.freedesktop.org/series/116191/ State : success == Summary == CI Bug Log - changes from CI_DRM_13005_full -> Patchwork_116191v4_full Summary --

[Intel-gfx] [linux-next:master] BUILD REGRESSION e3342532ecd39bbd9c2ab5b9001cec1589bc37e9

2023-04-14 Thread kernel test robot
nk-link_validation.c:warning:variable-bw_needed-set-but-not-used | |-- drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-link-set-but-not-used | `-- drivers-net-wireless-legacy-ray_cs.c:warning:strncpy-specified-bound-equals-destination-size |-- alpha-randcon

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Ville Syrjälä
On Fri, Apr 14, 2023 at 12:53:45PM +0530, Suraj Kandpal wrote: > On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. > As a result of this change, when HPD active going low pulse or HPD IRQ > is presented and the refclk (19.2MHz) is not toggling already toggling, > there is a 60 to 90u

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Kandpal, Suraj
> -Original Message- > From: Ville Syrjälä > Sent: Friday, April 14, 2023 1:36 PM > To: Kandpal, Suraj > Cc: intel-gfx@lists.freedesktop.org > Subject: Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not > detected with default filter value > > On Fri, Apr 14, 2023 at

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Jani Nikula
On Fri, 14 Apr 2023, Suraj Kandpal wrote: > On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. > As a result of this change, when HPD active going low pulse or HPD IRQ > is presented and the refclk (19.2MHz) is not toggling already toggling, > there is a 60 to 90us synchronization de

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/display: PCH display HPD IRQ is not detected with default filter value URL : https://patchwork.freedesktop.org/series/116468/ State : failure == Summary == Error: make failed CALLscripts/checksyscalls.sh DESCEND objtool INSTALL libsubcmd_headers

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Kandpal, Suraj
> > On Fri, 14 Apr 2023, Suraj Kandpal wrote: > > On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. > > As a result of this change, when HPD active going low pulse or HPD IRQ > > is presented and the refclk (19.2MHz) is not toggling already > > toggling, there is a 60 to 90us synch

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Jani Nikula
On Fri, 14 Apr 2023, "Kandpal, Suraj" wrote: >> >> On Fri, 14 Apr 2023, Suraj Kandpal wrote: >> > On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. >> > As a result of this change, when HPD active going low pulse or HPD IRQ >> > is presented and the refclk (19.2MHz) is not togglin

Re: [Intel-gfx] [PATCH 06/10] drm/i915/display: rename intel_display_driver_* functions

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Gustavo Sousa wrote: > Quoting Jani Nikula (2023-04-13 06:47:32) >> Follow the usual naming conventions. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/display/intel_display.c | 2 +- >> .../drm/i915/display/intel_display_driver.c | 16 +++--- >>

Re: [Intel-gfx] [PATCH 05/10] drm/i915/display: move modeset probe/remove functions to intel_display_driver.c

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Gustavo Sousa wrote: > Quoting Jani Nikula (2023-04-13 06:47:31) >> +/* interface for intel_display_driver.c */ >> +void intel_setup_outputs(struct drm_i915_private *i915); >> +void intel_sanitize_watermarks(struct drm_i915_private *i915); > > I can't find the implementation f

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread Kandpal, Suraj
> > On Fri, 14 Apr 2023, "Kandpal, Suraj" wrote: > >> > >> On Fri, 14 Apr 2023, Suraj Kandpal wrote: > >> > On TGP, the RTC (always running) was reduced from 3MHz to 32KHz. > >> > As a result of this change, when HPD active going low pulse or HPD > >> > IRQ is presented and the refclk (19.2MHz)

Re: [Intel-gfx] [PATCH v3 12/12] vfio/pci: Report dev_id in VFIO_DEVICE_GET_PCI_HOT_RESET_INFO

2023-04-14 Thread Tian, Kevin
> From: Alex Williamson > Sent: Friday, April 14, 2023 2:07 AM > > We had already iterated a proposal where the group-id is replaced with > a dev-id in the existing ioctl and a flag indicates when the return > value is a dev-id vs group-id. This had a gap that userspace cannot > determine if a r

Re: [Intel-gfx] [PATCH 05/10] drm/i915/display: move modeset probe/remove functions to intel_display_driver.c

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Gustavo Sousa wrote: > Quoting Jani Nikula (2023-04-13 06:47:31) >> +/* interface for intel_display_driver.c */ >> +void intel_setup_outputs(struct drm_i915_private *i915); >> +void intel_sanitize_watermarks(struct drm_i915_private *i915); > > I can't find the implementation f

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Make intel_get_crtc_new_encoder() less oopsy

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Ville Syrjala wrote: > From: Ville Syrjälä > > The point of the WARN was to print something, not oops > straight up. Currently that is precisely what happens > if we can't find the connector for the crtc in the atomic > state. Get the dev pointer from the atomic state instead

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread kernel test robot
Hi Suraj, kernel test robot noticed the following build errors: [auto build test ERROR on drm-tip/drm-tip] url: https://github.com/intel-lab-lkp/linux/commits/Suraj-Kandpal/drm-i915-display-PCH-display-HPD-IRQ-is-not-detected-with-default-filter-value/20230414-152733 base: git

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Make intel_mpllb_state_verify() safer

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Ville Syrjala wrote: > From: Ville Syrjälä > > intel_mpllb_state_verify() blows up if you call it for a > non-modeset/fastset commit on account of the relevant > connector not being part of the overall atomic state. > Currently the state checker only runs for modeset/fastset

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Make intel_get_crtc_new_encoder() less oopsy

2023-04-14 Thread Jani Nikula
On Fri, 14 Apr 2023, Jani Nikula wrote: > On Thu, 13 Apr 2023, Ville Syrjala wrote: >> From: Ville Syrjälä >> >> The point of the WARN was to print something, not oops >> straight up. Currently that is precisely what happens >> if we can't find the connector for the crtc in the atomic >> state.

[Intel-gfx] [PATCH v2 01/10] drm/i915/display: remove intel_display_commit_duplicated_state()

2023-04-14 Thread Jani Nikula
This seems like an unnecessary wrapper layer. Removing it will be helpful later. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 28 +++- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v2 00/10] drm/i915/display: split out high level display entry points

2023-04-14 Thread Jani Nikula
v2 of https://patchwork.freedesktop.org/series/116431/ with the minor review comments addressed. BR, Jani. Jani Nikula (10): drm/i915/display: remove intel_display_commit_duplicated_state() drm/i915/display: start high level display driver file drm/i915/display: move intel_modeset_probe_def

[Intel-gfx] [PATCH v2 02/10] drm/i915/display: start high level display driver file

2023-04-14 Thread Jani Nikula
The only way to truly clean up intel_display.[ch] is to move stuff out of them until there's absolutely nothing left. Start moving the high level display driver entry points, i.e. functions called from top level driver code only, to a new file, which we'll call intel_display_driver.c. The intentio

[Intel-gfx] [PATCH v2 03/10] drm/i915/display: move intel_modeset_probe_defer() to intel_display_driver.[ch]

2023-04-14 Thread Jani Nikula
High level display functionality only called from driver top level code. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 23 --- drivers/gpu/drm/i915/display/intel_display.h | 1 - .../drm/i915/display/intel_display_dri

[Intel-gfx] [PATCH v2 04/10] drm/i915/display: rename intel_modeset_probe_defer() -> intel_display_driver_probe_defer()

2023-04-14 Thread Jani Nikula
Follow the usual naming conventions. Reviewed-by: Gustavo Sousa Reviewed-by: Lucas De Marchi Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_driver.c | 2 +- drivers/gpu/drm/i915/display/intel_display_driver.h | 2 +- drivers/gpu/drm/i915/i915_pci.c

[Intel-gfx] [PATCH v2 05/10] drm/i915/display: move modeset probe/remove functions to intel_display_driver.c

2023-04-14 Thread Jani Nikula
High level display functionality only called from driver top level code. v2: - Remove unnecessary declarations for intel_sanitize_watermarks() and intel_atomic_check() (Gustavo) Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 373 + drivers/gpu/d

[Intel-gfx] [PATCH v2 06/10] drm/i915/display: rename intel_display_driver_* functions

2023-04-14 Thread Jani Nikula
Follow the usual naming conventions. v2: - Also rename references in comments (Gustavo) Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_driver.c | 16 ++-- .../drm/i915/display/intel_display_driver.h | 14 +

[Intel-gfx] [PATCH v2 07/10] drm/i915/display: add intel_display_reset.[ch]

2023-04-14 Thread Jani Nikula
Split out the display reset functionality to a separate file to declutter intel_display.c. Rename the functions accordingly. The minor downside is having to expose __intel_display_resume(). Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile |

[Intel-gfx] [PATCH v2 08/10] drm/i915/display: move display suspend/resume to intel_display_driver.[ch]

2023-04-14 Thread Jani Nikula
High level display functionality only called from driver top level code. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 102 -- drivers/gpu/drm/i915/display/intel_display.h | 8 -- .../drm/i915/display/intel_display_d

[Intel-gfx] [PATCH v2 09/10] drm/i915/display: rename intel_display_driver_suspend/resume functions

2023-04-14 Thread Jani Nikula
Follow the usual naming conventions. Switch to i915 arguments and naming while at it. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_driver.c | 24 +-- .../drm/i915/display/intel_display_driver.h | 11 - .../drm/i915/disp

[Intel-gfx] [PATCH v2 10/10] drm/i915/display: add intel_display_driver_early_probe()

2023-04-14 Thread Jani Nikula
Add intel_display_driver_early_probe() as the early probe call to replace intel_init_display_hooks(). The latter will be "demoted" to setting up hooks in intel_display.c only. Reviewed-by: Gustavo Sousa Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 11 -

Re: [Intel-gfx] [PATCH v2] drm/i915: avoid flush_scheduled_work() usage

2023-04-14 Thread Tetsuo Handa
On 2023/03/15 19:47, Luca Coelho wrote: > On Tue, 2023-03-14 at 20:21 +0900, Tetsuo Handa wrote: >> Like commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue() using a >> macro") says, flush_scheduled_work() is dangerous and will be forbidden. >> >> Now that i915 is the last flush_scheduled_wo

Re: [Intel-gfx] [PATCH] drm/i915/display: PCH display HPD IRQ is not detected with default filter value

2023-04-14 Thread kernel test robot
Hi Suraj, kernel test robot noticed the following build errors: [auto build test ERROR on drm-tip/drm-tip] url: https://github.com/intel-lab-lkp/linux/commits/Suraj-Kandpal/drm-i915-display-PCH-display-HPD-IRQ-is-not-detected-with-default-filter-value/20230414-152733 base: git

Re: [Intel-gfx] [RESEND] drm/i915: hide mkwrite_device_info() better

2023-04-14 Thread Jani Nikula
On Thu, 13 Apr 2023, Tvrtko Ursulin wrote: > On 11/04/2023 11:56, Jani Nikula wrote: >> The goal has been to just make device info a pointer to static const >> data, i.e. the static const structs in i915_pci.c. See [1]. However, >> there were issues with intel_device_info_runtime_init() clearing t

Re: [Intel-gfx] [PATCH RESEND v3 2/3] drm/ttm: Reduce the number of used allocation orders for TTM pages

2023-04-14 Thread Christian König
Am 13.04.23 um 15:13 schrieb Daniel Vetter: On Thu, 13 Apr 2023 at 11:46, Christian König wrote: Am 13.04.23 um 10:48 schrieb Daniel Vetter: On Wed, 12 Apr 2023 at 16:18, Christian König wrote: Am 12.04.23 um 11:08 schrieb Daniel Vetter: On Tue, 11 Apr 2023 at 15:45, Daniel Vetter wrote:

Re: [Intel-gfx] [PATCH v2] drm/i915: avoid flush_scheduled_work() usage

2023-04-14 Thread Jani Nikula
On Fri, 14 Apr 2023, Tetsuo Handa wrote: > On 2023/03/15 19:47, Luca Coelho wrote: >> On Tue, 2023-03-14 at 20:21 +0900, Tetsuo Handa wrote: >>> Like commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue() using a >>> macro") says, flush_scheduled_work() is dangerous and will be forbidden. >>>

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: split out high level display entry points (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/display: split out high level display entry points (rev2) URL : https://patchwork.freedesktop.org/series/116431/ State : warning == Summary == Error: dim checkpatch failed 77af4641cabb drm/i915/display: remove intel_display_commit_duplicated_state() 47834b

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/display: split out high level display entry points (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/display: split out high level display entry points (rev2) URL : https://patchwork.freedesktop.org/series/116431/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./arch/

Re: [Intel-gfx] [PATCH v2 9/9] drm/i915: Use kmap_local_page() in gem/i915_gem_execbuffer.c

2023-04-14 Thread Zhao Liu
Hi Tvrtko, On Wed, Apr 12, 2023 at 04:45:13PM +0100, Tvrtko Ursulin wrote: [snip] > > > > [snip] > > > However I am unsure if disabling pagefaulting is needed or not. Thomas, > > > Matt, being the last to touch this area, perhaps you could have a look? > > > Because I notice we have a fallback

Re: [Intel-gfx] [PATCH v2] drm/i915: avoid flush_scheduled_work() usage

2023-04-14 Thread Tetsuo Handa
On 2023/04/14 19:13, Jani Nikula wrote: > On Fri, 14 Apr 2023, Tetsuo Handa wrote: >> On 2023/03/15 19:47, Luca Coelho wrote: >>> On Tue, 2023-03-14 at 20:21 +0900, Tetsuo Handa wrote: Like commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue() using a macro") says, flush_scheduled_

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/mtl: Define MOCS and PAT tables for MTL (rev4)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/mtl: Define MOCS and PAT tables for MTL (rev4) URL : https://patchwork.freedesktop.org/series/115980/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13005 -> Patchwork_115980v4 Summary -

Re: [Intel-gfx] [PATCH 6/9] drm/i915/mtl/display: Implement DisplayPort sequences

2023-04-14 Thread Imre Deak
On Thu, Apr 13, 2023 at 02:24:40PM -0700, Radhakrishna Sripada wrote: > From: José Roberto de Souza > > The differences between MTL and TGL DP sequences are big enough to > MTL have its own functions. > > Also it is much easier to follow MTL sequences against spec with > its own functions. > >

Re: [Intel-gfx] [PATCH v3 12/12] vfio/pci: Report dev_id in VFIO_DEVICE_GET_PCI_HOT_RESET_INFO

2023-04-14 Thread Liu, Yi L
> From: Tian, Kevin > Sent: Friday, April 14, 2023 5:12 PM > > > From: Alex Williamson > > Sent: Friday, April 14, 2023 2:07 AM > > > > We had already iterated a proposal where the group-id is replaced with > > a dev-id in the existing ioctl and a flag indicates when the return > > value is a de

Re: [Intel-gfx] [PATCH 7/9] drm/i915/mtl: Add C10 phy programming for HDMI

2023-04-14 Thread Imre Deak
On Thu, Apr 13, 2023 at 02:24:41PM -0700, Radhakrishna Sripada wrote: > Like DG2, we still don't have a proper algorithm that can be used > for calculating PHY settings, but we do have tables of register > values for a handful of the more common link rates. Some support is > better than none, so le

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: split out high level display entry points (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/display: split out high level display entry points (rev2) URL : https://patchwork.freedesktop.org/series/116431/ State : success == Summary == CI Bug Log - changes from CI_DRM_13006 -> Patchwork_116431v2

[Intel-gfx] linux-next: manual merge of the drm-misc tree with the mm-stable tree

2023-04-14 Thread broonie
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/ttm/ttm_pool.c between commit: 23baf831a32c0 ("mm, treewide: redefine MAX_ORDER sanely") from the mm-stable tree and commit: 56e51681246e5 ("drm/ttm: revert "Reduce the number of used allocation ord

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Introduce intel_hpd_enable_detection()

2023-04-14 Thread Govindapillai, Vinod
On Thu, 2023-03-02 at 18:10 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Add a mechanism by which we can enable the HPD sense for > individual encoders. > > This will be used during eDP probing to figure out if > anything is actually connected. The normal intel_hpd_irq_setup() > thing d

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Check HPD live state during eDP probe

2023-04-14 Thread Govindapillai, Vinod
On Thu, 2023-03-02 at 18:10 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > We need to untangle the mess where some SKL machines (at least) > declare both DDI A and DDI E to be present in their VBT, and > both using AUX A. DDI A is a ghost eDP, wheres DDI E may be a > real DP->VGA converter

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Introduce intel_hpd_enable_detection()

2023-04-14 Thread Govindapillai, Vinod
Hi Ville Btw, I dont see the _hotplug_mask() defined anywhere.. Am I missing any patch? BR Vinod On Fri, 2023-04-14 at 15:59 +0300, Govindapillai, Vinod wrote: > On Thu, 2023-03-02 at 18:10 +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Add a mechanism by which we can enable the H

Re: [Intel-gfx] [PATCH v2 05/10] drm/i915/display: move modeset probe/remove functions to intel_display_driver.c

2023-04-14 Thread Gustavo Sousa
Quoting Jani Nikula (2023-04-14 06:41:57) > High level display functionality only called from driver top level code. > > v2: > - Remove unnecessary declarations for intel_sanitize_watermarks() and > intel_atomic_check() (Gustavo) > > Signed-off-by: Jani Nikula Reviewed-by: Gustavo Sousa > -

Re: [Intel-gfx] [PATCH v2 06/10] drm/i915/display: rename intel_display_driver_* functions

2023-04-14 Thread Gustavo Sousa
Quoting Jani Nikula (2023-04-14 06:41:58) > Follow the usual naming conventions. > > v2: > - Also rename references in comments (Gustavo) > > Signed-off-by: Jani Nikula Reviewed-by: Gustavo Sousa > --- > drivers/gpu/drm/i915/display/intel_display.c | 2 +- > .../drm/i915/display/intel_disp

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Introduce intel_hpd_enable_detection()

2023-04-14 Thread Ville Syrjälä
On Fri, Apr 14, 2023 at 01:23:16PM +, Govindapillai, Vinod wrote: > Hi Ville > > Btw, I dont see the _hotplug_mask() defined anywhere.. > Am I missing any patch? The previous patch in the series. > > BR > Vinod > > On Fri, 2023-04-14 at 15:59 +0300, Govindapillai, Vinod wrote: > > On Thu,

Re: [Intel-gfx] [PATCH v7 6/8] drm/i915/uapi/pxp: Fix UAPI spec comments and add GET_PARAM for PXP

2023-04-14 Thread Teres Alexis, Alan Previn
Hi Lionel, does this patch work for you? On Mon, 2023-04-10 at 10:22 -0700, Ceraolo Spurio, Daniele wrote: > On 4/6/2023 10:44 AM, Alan Previn wrote: alan:snip > > +/* > > + * Query the status of PXP support in i915. > > + * > > + * The query can fail in the following scenarios with the listed er

Re: [Intel-gfx] [PATCH i-g-t 1/3] intel_gpu_top: Display large pids nicely in interactive mode

2023-04-14 Thread Kamil Konieczny
Hi, On 2023-03-28 at 13:54:27 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > So far the width of the PID column was hardcoded to six characters which > is not enough on systems with high uptime, where PID numbers can grow > large, and results in broken line formatting. > > Fix it by tr

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/3] intel_gpu_top: Use full console width for global metrics

2023-04-14 Thread Kamil Konieczny
On 2023-03-28 at 13:54:28 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > It appears we had an off by one of a kind where we were not using the full > width of the terminal window for the global metrics section. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- >

Re: [Intel-gfx] [PATCH i-g-t 3/3] intel_gpu_top: Show non-normalized client usage in numeric mode

2023-04-14 Thread Kamil Konieczny
On 2023-03-28 at 13:54:29 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > When numeric display is selected in the interactive mode it is more > descriptive to show client's non-normalized (by number of engines per > class) usage. Rendering of the visual representation (bar) is kept the >

Re: [Intel-gfx] [PATCH 7/9] drm/i915/mtl: Add C10 phy programming for HDMI

2023-04-14 Thread Sripada, Radhakrishna
Thank you for the review Imre and Mika for submitting the patches. Pushed the series onto drm-tip. -Radhakrishna(RK) Sripada > -Original Message- > From: Deak, Imre > Sent: Friday, April 14, 2023 4:39 AM > To: Sripada, Radhakrishna > Cc: intel-gfx@lists.freedesktop.org > Subject: Re: [

Re: [Intel-gfx] [PATCH 1/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-14 Thread Lucas De Marchi
On Wed, Apr 12, 2023 at 12:22:51PM +0300, Jani Nikula wrote: On Wed, 12 Apr 2023, Bhanuprakash Modem wrote: + static ssize_t i915_displayport_test_active_write(struct file *file, const char __user *ubuf,

[Intel-gfx] [PATCH] drm/i915/gt: Mask media GuC interrupts

2023-04-14 Thread Andi Shyti
MTL features a dedicated media engine that operates on its independent GT, requiring activation of its specific interrupt set. Enable the necessary interrupts in a single action when the media engine is present, bypassing the need to iterate through all the GTs. Signed-off-by: Andi Shyti --- Hi,

Re: [Intel-gfx] [PATCH v3 12/12] vfio/pci: Report dev_id in VFIO_DEVICE_GET_PCI_HOT_RESET_INFO

2023-04-14 Thread Alex Williamson
On Fri, 14 Apr 2023 09:11:30 + "Tian, Kevin" wrote: > > From: Alex Williamson > > Sent: Friday, April 14, 2023 2:07 AM > > > > We had already iterated a proposal where the group-id is replaced with > > a dev-id in the existing ioctl and a flag indicates when the return > > value is a dev-id

Re: [Intel-gfx] [PATCH] drm/i915/gt: Mask media GuC interrupts

2023-04-14 Thread Ceraolo Spurio, Daniele
On 4/14/2023 9:25 AM, Andi Shyti wrote: MTL features a dedicated media engine that operates on its independent GT, requiring activation of its specific interrupt set. Enable the necessary interrupts in a single action when the media engine is present, bypassing the need to iterate through all

Re: [Intel-gfx] [PATCH v3 12/12] vfio/pci: Report dev_id in VFIO_DEVICE_GET_PCI_HOT_RESET_INFO

2023-04-14 Thread Alex Williamson
On Fri, 14 Apr 2023 11:38:24 + "Liu, Yi L" wrote: > > From: Tian, Kevin > > Sent: Friday, April 14, 2023 5:12 PM > > > > > From: Alex Williamson > > > Sent: Friday, April 14, 2023 2:07 AM > > > > > > We had already iterated a proposal where the group-id is replaced with > > > a dev-id in

[Intel-gfx] [PATCH] drm/i915/dp_mst: Fix active port PLL selection for secondary MST streams

2023-04-14 Thread Imre Deak
The port PLL selection needs to be up-to-date in the CRTC state of both the primary and all secondary MST streams. The commit removing the encoder update_prepare/complete hooks (see Fixes: below), stopped doing this for secondary streams, fix this up. Fixes: 0f752b2178c9 ("drm/i915: Remove the enc

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display: split out high level display entry points (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/display: split out high level display entry points (rev2) URL : https://patchwork.freedesktop.org/series/116431/ State : success == Summary == CI Bug Log - changes from CI_DRM_13006_full -> Patchwork_116431v2_full ==

Re: [Intel-gfx] [PATCH] drm/i915/gt: Mask media GuC interrupts

2023-04-14 Thread Andi Shyti
Hi Daniele, > > MTL features a dedicated media engine that operates on its > > independent GT, requiring activation of its specific interrupt > > set. > > > > Enable the necessary interrupts in a single action when the media > > engine is present, bypassing the need to iterate through all the > >

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/4] lib: Make SLPC helper function per GT

2023-04-14 Thread Dixit, Ashutosh
On Thu, 13 Apr 2023 15:44:12 -0700, Vinay Belgaumkar wrote: > > Use default of 0 where GT id is not being used. > > Signed-off-by: Vinay Belgaumkar > --- > lib/igt_pm.c | 20 ++-- > lib/igt_pm.h | 2 +- > tests/i915/i915_pm_rps.c | 6 +++--- > 3 files cha

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gt: Mask media GuC interrupts

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/gt: Mask media GuC interrupts URL : https://patchwork.freedesktop.org/series/116493/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13008 -> Patchwork_116493v1 Summary --- **FAILU

[Intel-gfx] [PATCH v2 1/2] drm/i915: Make intel_{mpllb, c10pll}_state_verify() safer

2023-04-14 Thread Ville Syrjala
From: Ville Syrjälä intel_{mpllb,c10pll}_state_verify() blows up if you call them for a non-modeset/fastset commit on account of the relevant connector not being part of the overall atomic state. Currently the state checker only runs for modeset/fastset commits, but for testing purposes it is som

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp_mst: Fix active port PLL selection for secondary MST streams

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/dp_mst: Fix active port PLL selection for secondary MST streams URL : https://patchwork.freedesktop.org/series/116501/ State : warning == Summary == Error: dim checkpatch failed c712173a3b8b drm/i915/dp_mst: Fix active port PLL selection for secondary MST

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/4] lib: Make SLPC helper function per GT

2023-04-14 Thread Belgaumkar, Vinay
On 4/14/2023 11:10 AM, Dixit, Ashutosh wrote: On Thu, 13 Apr 2023 15:44:12 -0700, Vinay Belgaumkar wrote: Use default of 0 where GT id is not being used. Signed-off-by: Vinay Belgaumkar --- lib/igt_pm.c | 20 ++-- lib/igt_pm.h | 2 +- tests/i915/i

[Intel-gfx] [PATCH v6 i-g-t 0/4] tests/slpc: Add basic IGT test

2023-04-14 Thread Vinay Belgaumkar
Borrow some subtests from xe_guc_pc. Also add per GT debugfs helpers. v3: Review comments and add HAX patch v4: Modify the condition for skipping the test v5: Update the SLPC helper to per GT v6: Review comments (Ashutosh) Signed-off-by: Vinay Belgaumkar Vinay Belgaumkar (4): lib/debugfs: Add

[Intel-gfx] [PATCH i-g-t 1/4] lib/debugfs: Add per GT debugfs helpers

2023-04-14 Thread Vinay Belgaumkar
These can be used to open per-gt debugfs files. Reviewed-by: Ashutosh Dixit Signed-off-by: Tvrtko Ursulin Signed-off-by: Vinay Belgaumkar --- lib/igt_debugfs.c | 60 +++ lib/igt_debugfs.h | 4 2 files changed, 64 insertions(+) diff --git a/lib

[Intel-gfx] [PATCH i-g-t 2/4] lib: Make SLPC helper function per GT

2023-04-14 Thread Vinay Belgaumkar
Use default of 0 where GT id is not being used. v2: Add a helper for GT 0 (Ashutosh) Signed-off-by: Vinay Belgaumkar --- lib/igt_pm.c | 36 ++-- lib/igt_pm.h | 3 ++- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/lib/igt_pm.c b/lib/igt_pm.c in

[Intel-gfx] [PATCH i-g-t 3/4] i915_pm_freq_api: Add some basic SLPC igt tests

2023-04-14 Thread Vinay Belgaumkar
Validate basic api for GT freq control. Also test interaction with GT reset. We skip rps tests with SLPC enabled, this will re-introduce some coverage. SLPC selftests are already covering some other workload related scenarios. v2: Rename test (Rodrigo) v3: Review comments (Ashutosh) v4: Skip when

[Intel-gfx] [PATCH i-g-t 4/4] HAX: tests/i915: Try out the SLPC IGT tests

2023-04-14 Thread Vinay Belgaumkar
Trying out for CI. Do not review. Signed-off-by: Vinay Belgaumkar --- tests/intel-ci/fast-feedback.testlist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist index d9fcb62d..653668dd 100644 --- a/tests/intel-ci/fa

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dp_mst: Fix active port PLL selection for secondary MST streams

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/dp_mst: Fix active port PLL selection for secondary MST streams URL : https://patchwork.freedesktop.org/series/116501/ State : success == Summary == CI Bug Log - changes from CI_DRM_13008 -> Patchwork_116501v1 ==

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v2,1/2] drm/i915: Make intel_{mpllb, c10pll}_state_verify() safer (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915: Make intel_{mpllb, c10pll}_state_verify() safer (rev2) URL : https://patchwork.freedesktop.org/series/116461/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/2] drm/i915: Make intel_{mpllb, c10pll}_state_verify() safer (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915: Make intel_{mpllb, c10pll}_state_verify() safer (rev2) URL : https://patchwork.freedesktop.org/series/116461/ State : success == Summary == CI Bug Log - changes from CI_DRM_13008 -> Patchwork_116461v2 ===

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/4] lib: Make SLPC helper function per GT

2023-04-14 Thread Dixit, Ashutosh
On Fri, 14 Apr 2023 12:16:37 -0700, Vinay Belgaumkar wrote: > Hi Vinay, > Use default of 0 where GT id is not being used. > > v2: Add a helper for GT 0 (Ashutosh) > > Signed-off-by: Vinay Belgaumkar > --- > lib/igt_pm.c | 36 ++-- > lib/igt_pm.h | 3 ++- > 2 fil

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Introduce intel_hpd_enable_detection()

2023-04-14 Thread Govindapillai, Vinod
On Fri, 2023-04-14 at 17:21 +0300, Ville Syrjälä wrote: > On Fri, Apr 14, 2023 at 01:23:16PM +, Govindapillai, Vinod wrote: > > Hi Ville > > > > Btw, I dont see the _hotplug_mask() defined anywhere.. > > Am I missing any patch? > > The previous patch in the series. Thanks! I was following th

[Intel-gfx] [PATCH v2] drm/i915/guc/slpc: Provide sysfs for efficient freq

2023-04-14 Thread Vinay Belgaumkar
SLPC enables use of efficient freq at init by default. It is possible for GuC to request frequencies that are higher than the 'software' max if user has set it lower than the efficient level. Scenarios/tests that require strict fixing of freq below the efficient level will need to disable it throu

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915: Introduce _hotplug_mask()

2023-04-14 Thread Govindapillai, Vinod
On Fri, 2023-03-03 at 18:58 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Pair each _hotplug_enables() function with > a corresponding _hotplug_mask() function so that > we can determine right bits to clear on a per hpd_pin basis. > We'll need this for turning on HPD sense for a specific

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/guc/slpc: Provide sysfs for efficient freq

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/guc/slpc: Provide sysfs for efficient freq URL : https://patchwork.freedesktop.org/series/116510/ State : failure == Summary == Error: make failed CALLscripts/checksyscalls.sh DESCEND objtool INSTALL libsubcmd_headers CC [M] drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Reuse _hotplug_mask() in .hpd_detection_setup()

2023-04-14 Thread Govindapillai, Vinod
On Thu, 2023-03-02 at 18:10 +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Replace the hardcoded masks with just a loop over all hpd > pins using the _hotplug_mask() functions. > > Signed-off-by: Ville Syrjälä > --- Reviewed-by: Vinod Govindapillai >  drivers/gpu/drm/i915/i915_irq.c |

[Intel-gfx] [PATCH v3] drm/i915/guc/slpc: Provide sysfs for efficient freq

2023-04-14 Thread Vinay Belgaumkar
SLPC enables use of efficient freq at init by default. It is possible for GuC to request frequencies that are higher than the 'software' max if user has set it lower than the efficient level. Scenarios/tests that require strict fixing of freq below the efficient level will need to disable it throu

[Intel-gfx] [PATCH v2] drm/i915: Fix memory leaks in i915 selftests

2023-04-14 Thread Andi Shyti
From: Cong Liu This patch fixes memory leaks on error escapes in function fake_get_pages Fixes: c3bfba9a2225 ("drm/i915: Check for integer truncation on scatterlist creation") Signed-off-by: Cong Liu Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti Signed-off-by: Andi Shyti --- Hi, just

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2) URL : https://patchwork.freedesktop.org/series/116510/ 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 drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2) URL : https://patchwork.freedesktop.org/series/116510/ State : warning == Summary == Error: dim checkpatch failed 86d4ab64d0b0 drm/i915/guc/slpc: Provide sysfs for efficient freq -:33: CHECK:PARENTHESIS_ALI

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2)

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/guc/slpc: Provide sysfs for efficient freq (rev2) URL : https://patchwork.freedesktop.org/series/116510/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13009 -> Patchwork_116510v2 Summar

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix memory leaks in i915 selftests

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915: Fix memory leaks in i915 selftests URL : https://patchwork.freedesktop.org/series/116513/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13009 -> Patchwork_116513v1 Summary --- *

Re: [Intel-gfx] [PATCH v3] drm/i915/guc/slpc: Provide sysfs for efficient freq

2023-04-14 Thread Dixit, Ashutosh
On Fri, 14 Apr 2023 15:34:15 -0700, Vinay Belgaumkar wrote: > > @@ -457,6 +458,34 @@ int intel_guc_slpc_get_max_freq(struct intel_guc_slpc > *slpc, u32 *val) > return ret; > } > > +int intel_guc_slpc_set_ignore_eff_freq(struct intel_guc_slpc *slpc, bool val) > +{ > + struct drm_i915_pri

[Intel-gfx] [PATCH] drm/i915/guc: Fix error capture for virtual engines

2023-04-14 Thread John . C . Harrison
From: John Harrison GuC based register dumps in error capture logs were basically broken for virtual engines. This can be seen in igt@gem_exec_balancer@hang: [IGT] gem_exec_balancer: starting subtest hang [drm] GPU HANG: ecode 12:4:e1524110, in gem_exec_balanc [6388] [drm] GT0: GUC: No regi

[Intel-gfx] [PATCH 0/5] Improvements to uc firmare management

2023-04-14 Thread John . C . Harrison
From: John Harrison Enhance the firmware table verification code to catch more potential errors and to generally improve the code itself. Track patch level version even on reduced version files to allow user notification of missing bug fixes. Detect another immediate failure case when loading G

[Intel-gfx] [PATCH 1/5] drm/i915/guc: Decode another GuC load failure case

2023-04-14 Thread John . C . Harrison
From: John Harrison Explain another potential firmware failure mode and early exit the long wait if hit. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 6 ++ 2 files changed, 7 insertions(+) diff --

[Intel-gfx] [PATCH 3/5] drm/i915/uc: Track patch level versions on reduced version firmware files

2023-04-14 Thread John . C . Harrison
From: John Harrison When reduced version firmware files were added (matching major component being the only strict requirement), the minor version was still tracked and a notification reported if it was older. However, the patch version should really be tracked as well for the same reasons. The K

[Intel-gfx] [PATCH 5/5] drm/i915/uc: Reject doplicate entries in firmware table

2023-04-14 Thread John . C . Harrison
From: John Harrison It was noticed that duplicte entries in the firmware table could cause an infinite loop in the firmware loading code if that entry failed to load. Duplicate entries are a bug anyway and so should never happen. Ensure they don't by tweaking the table validation code to reject d

[Intel-gfx] [PATCH 2/5] drm/i915/guc: Print status register when waiting for GuC to load

2023-04-14 Thread John . C . Harrison
From: John Harrison If the GuC load is taking an excessively long time, the wait loop currently prints the GT frequency. Extend that to include the GuC status as well so we can see if the GuC is actually making progress or not. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_

[Intel-gfx] [PATCH 4/5] drm/i915/uc: Split firmware table validation to a separate function

2023-04-14 Thread John . C . Harrison
From: John Harrison The validation of the firmware table was being done inside the code for scanning the table for the next available firmware blob. Which is unnecessary. Potentially, it should be a selftest. But either way, the first step is pulling it out into a separate function that can be ca

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: Fix error capture for virtual engines

2023-04-14 Thread Patchwork
== Series Details == Series: drm/i915/guc: Fix error capture for virtual engines URL : https://patchwork.freedesktop.org/series/116515/ State : success == Summary == CI Bug Log - changes from CI_DRM_13009 -> Patchwork_116515v1 Summary -

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Improvements to uc firmare management

2023-04-14 Thread Patchwork
== Series Details == Series: Improvements to uc firmare management URL : https://patchwork.freedesktop.org/series/116517/ State : warning == Summary == Error: dim checkpatch failed e2f47c7391c0 drm/i915/guc: Decode another GuC load failure case a317c98847de drm/i915/guc: Print status register

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Improvements to uc firmare management

2023-04-14 Thread Patchwork
== Series Details == Series: Improvements to uc firmare management URL : https://patchwork.freedesktop.org/series/116517/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

  1   2   >