[Intel-gfx] [PATCH] i915/guc: Run busyness worker only if gt is awake

2023-09-08 Thread Umesh Nerlige Ramappa
The worker is canceled in the __gt_park path, but we still see it running sometimes during suspend. This is likely because some code is getting a gt wakeref in the __gt_park path. Only update stats if gt is awake. If not, intel_guc_busyness_park would have already updated the stats. Note that we

Re: [Intel-gfx] [PATCH 3/3] drm/i915/perf: Initialize gen12 OA buffer unconditionally

2023-09-08 Thread Dixit, Ashutosh
On Fri, 08 Sep 2023 18:16:26 -0700, Ashutosh Dixit wrote: > Hi Umesh, > From: Umesh Nerlige Ramappa > > Correct values for OAR counters are still dependent on enabling the > GEN12_OAG_OACONTROL_OA_COUNTER_ENABLE in OAG_OACONTROL. Enabling this > bit means OAG unit will write reports to the OAG

[Intel-gfx] [PATCH 3/3] drm/i915/perf: Initialize gen12 OA buffer unconditionally

2023-09-08 Thread Ashutosh Dixit
From: Umesh Nerlige Ramappa Correct values for OAR counters are still dependent on enabling the GEN12_OAG_OACONTROL_OA_COUNTER_ENABLE in OAG_OACONTROL. Enabling this bit means OAG unit will write reports to the OAG buffer, so initialize the OAG buffer unconditionally for all use cases. BSpec:

[Intel-gfx] [PATCH 0/3] drm/i915/perf: A few fixes and enhancements

2023-09-08 Thread Ashutosh Dixit
Ashutosh Dixit (2): drm/i915/perf: Subtract gtt_offset from hw_tail drm/i915/perf: Remove gtt_offset from stream->oa_buffer.head/.tail Umesh Nerlige Ramappa (1): drm/i915/perf: Initialize gen12 OA buffer unconditionally drivers/gpu/drm/i915/i915_perf.c | 62

[Intel-gfx] [PATCH 1/3] drm/i915/perf: Subtract gtt_offset from hw_tail

2023-09-08 Thread Ashutosh Dixit
The code in oa_buffer_check_unlocked() is correct only if the OA buffer is 16 MB aligned (which seems to be the case today in i915). However when the 16 MB alignment is dropped, when we "Subtract partial amount off the tail", the "& (OA_BUFFER_SIZE - 1)" operation in OA_TAKEN() will result in an

[Intel-gfx] [PATCH 2/3] drm/i915/perf: Remove gtt_offset from stream->oa_buffer.head/.tail

2023-09-08 Thread Ashutosh Dixit
There is no reason to add gtt_offset to the cached head/tail pointers stream->oa_buffer.head and stream->oa_buffer.tail. This causes the code to constantly add gtt_offset and subtract gtt_offset and is error prone (e.g. see previous patch). It is much simpler to maintain stream->oa_buffer.head

Re: [Intel-gfx] [Intel-xe] [PATCH v2 02/27] drm/i915/lnl: Add display definitions

2023-09-08 Thread Matt Roper
On Fri, Sep 08, 2023 at 06:25:04PM -0500, Lucas De Marchi wrote: > On Thu, Sep 07, 2023 at 09:10:44AM -0700, Matt Roper wrote: > > On Thu, Sep 07, 2023 at 08:37:32AM -0700, Lucas De Marchi wrote: > > > From: Balasubramani Vivekanandan > > > > > > Add Lunar Lake platform definitions for i915

Re: [Intel-gfx] [PATCH 09/12] drm/i915: Disable VRR during seamless M/N changes

2023-09-08 Thread Manasi Navare
On Thu, Sep 7, 2023 at 10:54 PM Ville Syrjälä wrote: > > On Thu, Sep 07, 2023 at 11:49:10AM -0700, Manasi Navare wrote: > > Hi Ville, > > > > Since we are always disabling when update_m_n, that means if in gaming > > mode if VRR enable is requested by userspace, it cannot > > be enabled if

Re: [Intel-gfx] [Intel-xe] [PATCH v2 02/27] drm/i915/lnl: Add display definitions

2023-09-08 Thread Lucas De Marchi
On Thu, Sep 07, 2023 at 09:10:44AM -0700, Matt Roper wrote: On Thu, Sep 07, 2023 at 08:37:32AM -0700, Lucas De Marchi wrote: From: Balasubramani Vivekanandan Add Lunar Lake platform definitions for i915 display. The support for LNL will be added to the xe driver, with i915 only driving the

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for Separate display workarounds from clock gating (rev4)

2023-09-08 Thread Matt Roper
On Fri, Sep 08, 2023 at 06:32:46AM +, Patchwork wrote: > == Series Details == > > Series: Separate display workarounds from clock gating (rev4) > URL : https://patchwork.freedesktop.org/series/123363/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_13612_full ->

Re: [Intel-gfx] [PATCH v2 24/27] drm/i915/lnl: Introduce MDCLK_CDCLK ratio to DBuf

2023-09-08 Thread Matt Roper
On Thu, Sep 07, 2023 at 08:37:54AM -0700, Lucas De Marchi wrote: > From: Stanislav Lisovskiy > > When we change MDCLK/CDCLK the BSpec now instructs us to write a ratio > between MDCLK/CDCLK to MBUS CTL and DBUF CTL registers during that > change. > > Previsouly DBuf state and CDCLK were not

Re: [Intel-gfx] [PATCH v3] drm/i915: Run relevant bits of debugfs drop_caches per GT

2023-09-08 Thread Andi Shyti
Hi Rodrigo and Nirmoy, On Thu, Sep 07, 2023 at 09:47:19AM -0400, Rodrigo Vivi wrote: > On Thu, Sep 07, 2023 at 02:58:08PM +0200, Andi Shyti wrote: > > From: Tvrtko Ursulin > > > > Walk all GTs when doing the respective bits of drop_caches work. > > > > Signed-off-by: Tvrtko Ursulin > >

Re: [Intel-gfx] [PATCH v2 25/27] drm/i915/lnl: Add support for CDCLK initialization sequence

2023-09-08 Thread Matt Roper
On Thu, Sep 07, 2023 at 08:37:55AM -0700, Lucas De Marchi wrote: > From: Ravi Kumar Vodapalli > > Add CDCLK initialization sequence changes and CDCLK set frequency The title and first line of this commit message don't seem to really match the patch anymore. The changes here aren't about the

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Stop forcing clock gating init for future platforms

2023-09-08 Thread Lucas De Marchi
On Fri, Sep 08, 2023 at 02:50:55PM -0700, Matt Roper wrote: On Fri, Sep 08, 2023 at 04:45:33PM -0500, Lucas De Marchi wrote: On Wed, Sep 06, 2023 at 04:47:34PM -0700, Matt Roper wrote: > In the early days of i915, pretty much every platform needed to > initialize _something_ in the clock gating

Re: [Intel-gfx] [PATCH 4/4] drm/i915/display: Apply workarounds during display init

2023-09-08 Thread Lucas De Marchi
On Wed, Sep 06, 2023 at 04:47:37PM -0700, Matt Roper wrote: Rather than applying display workarounds as part of intel_clock_gating_init() (which in turn is confusingly called from i915_gem_init during device probe), handle them at the point we're actually initializing the display hardware. This

Re: [Intel-gfx] [PATCH 3/4] drm/i915/display: Extract display workarounds from clock gating init

2023-09-08 Thread Lucas De Marchi
On Wed, Sep 06, 2023 at 04:47:36PM -0700, Matt Roper wrote: Several of the register updates that are currently done in the clock gating init functions are actually display workarounds that should move into the display-specific part of the code. Furthermore, some of the registers being

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Stop forcing clock gating init for future platforms

2023-09-08 Thread Matt Roper
On Fri, Sep 08, 2023 at 04:45:33PM -0500, Lucas De Marchi wrote: > On Wed, Sep 06, 2023 at 04:47:34PM -0700, Matt Roper wrote: > > In the early days of i915, pretty much every platform needed to > > initialize _something_ in the clock gating init functions. In some > > cases the items initialized

Re: [Intel-gfx] [PATCH 2/4] drm/i915/adlp: Stop calling gen12lp_init_clock_gating()

2023-09-08 Thread Lucas De Marchi
On Wed, Sep 06, 2023 at 04:47:35PM -0700, Matt Roper wrote: The only programming that happens in gen12lp_init_clock_gating is for display workarounds that are specific to display version 12 and are not relevant to ADL-P's display version 13. Signed-off-by: Matt Roper Reviewed-by: Lucas De

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Stop forcing clock gating init for future platforms

2023-09-08 Thread Lucas De Marchi
On Wed, Sep 06, 2023 at 04:47:34PM -0700, Matt Roper wrote: In the early days of i915, pretty much every platform needed to initialize _something_ in the clock gating init functions. In some cases the items initialized were inside the GT (and really should have been initialized through the GT

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Run relevant bits of debugfs drop_caches per GT (rev5)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Run relevant bits of debugfs drop_caches per GT (rev5) URL : https://patchwork.freedesktop.org/series/123386/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613_full -> Patchwork_123386v5_full

Re: [Intel-gfx] [PATCH v2 06/22] drm/i915: Add helper to modeset a set of pipes

2023-09-08 Thread Imre Deak
On Fri, Sep 08, 2023 at 10:25:59PM +0300, Ville Syrjälä wrote: > On Thu, Aug 24, 2023 at 11:05:01AM +0300, Imre Deak wrote: > > Add intel_modeset_pipes_in_mask() to modeset a provided set of pipes, > > used in a follow-up patch. > > > > While at it add DocBook descriptions for the exported

Re: [Intel-gfx] [PATCH v2] drm/i915: Added Wa_18022495364

2023-09-08 Thread Matt Roper
On Fri, Sep 08, 2023 at 12:39:18PM -0700, Matt Roper wrote: > On Fri, Sep 08, 2023 at 03:11:42PM +0530, Dnyaneshwar Bhadane wrote: > > This workaround has two different implementations, > > one for gen 12 to DG2 and another for DG2 and later. > > BSpec: 11354, 56551 > > Side note: it's generally

Re: [Intel-gfx] [PATCH v2] drm/i915: Added Wa_18022495364

2023-09-08 Thread Matt Roper
On Fri, Sep 08, 2023 at 03:11:42PM +0530, Dnyaneshwar Bhadane wrote: > This workaround has two different implementations, > one for gen 12 to DG2 and another for DG2 and later. > BSpec: 11354, 56551 Side note: it's generally not worth adding bspec references for simple register pages these days.

Re: [Intel-gfx] [PATCH v2 07/22] drm/i915: Factor out a helper to check/compute all the CRTC states

2023-09-08 Thread Ville Syrjälä
On Thu, Aug 24, 2023 at 11:05:02AM +0300, Imre Deak wrote: > Factor out intel_atomic_check_config() to check and compute all the CRTC > states. This will be used by a follow up patch to recompute/check the > state until required by BW limitations between CRTCs. > > Signed-off-by: Imre Deak

Re: [Intel-gfx] [PATCH v2 06/22] drm/i915: Add helper to modeset a set of pipes

2023-09-08 Thread Ville Syrjälä
On Thu, Aug 24, 2023 at 11:05:01AM +0300, Imre Deak wrote: > Add intel_modeset_pipes_in_mask() to modeset a provided set of pipes, > used in a follow-up patch. > > While at it add DocBook descriptions for the exported functions. > > v2: > - Add a flag controlling if active planes are force

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Added Wa_18022495364 (rev3)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Added Wa_18022495364 (rev3) URL : https://patchwork.freedesktop.org/series/123377/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613_full -> Patchwork_123377v3_full Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Run relevant bits of debugfs drop_caches per GT (rev5)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Run relevant bits of debugfs drop_caches per GT (rev5) URL : https://patchwork.freedesktop.org/series/123386/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613 -> Patchwork_123386v5

Re: [Intel-gfx] [Intel-xe] [PATCH v2 05/27] drm/i915/xe2lpd: Add fake PCH

2023-09-08 Thread Lucas De Marchi
On Fri, Sep 08, 2023 at 09:03:40AM +0300, Ville Syrjälä wrote: On Fri, Sep 08, 2023 at 08:56:53AM +0300, Ville Syrjälä wrote: On Fri, Sep 08, 2023 at 12:51:09AM -0500, Lucas De Marchi wrote: > On Fri, Sep 08, 2023 at 08:39:48AM +0300, Ville Syrjälä wrote: > >On Thu, Sep 07, 2023 at 05:57:19PM

Re: [Intel-gfx] [Intel-xe] [PATCH v2 09/27] drm/i915/xe2lpd: Move registers to PICA

2023-09-08 Thread Gustavo Sousa
Quoting Lucas De Marchi (2023-09-07 12:37:39-03:00) >Some registers for DDI A/B moved to PICA and now follow the same format >as the ones for the PORT_TC ports. The wrapper here deals with 2 issues: > >- Share the implementation between xe2lpd and previous > platforms: there are

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Run relevant bits of debugfs drop_caches per GT (rev4)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Run relevant bits of debugfs drop_caches per GT (rev4) URL : https://patchwork.freedesktop.org/series/123386/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13613_full -> Patchwork_123386v4_full

[Intel-gfx] [PATCH i-g-t v2 17/17] lib/kunit: Omit suite name prefix if the same as subtest name

2023-09-08 Thread Janusz Krzysztofik
Kunit test modules usually contain one test suite, named after the module name with the trailing "_test" or "_kunit" suffix omitted. Since we follow the same convention when we derive subtest names from module names, there is a great chance that those two names match. Take this into account when

[Intel-gfx] [PATCH i-g-t v2 15/17] lib/kunit: Parse KTAP report from the main process thread

2023-09-08 Thread Janusz Krzysztofik
There was an attempt to parse KTAP reports in the background while a kunit test module is loading. However, since dynamic sub-subtests can be executed only from the main thread, that attempt was not quite successful, as IGT results from all executed kunit test cases were generated only after

[Intel-gfx] [PATCH i-g-t v2 11/17] lib/kunit: Fail / skip on kernel taint

2023-09-08 Thread Janusz Krzysztofik
Similar to how igt_kselftest() handles kernel taints, fail current dynamic sub-subtest and skip remaining ones when a kernel taint is detected during execution of kunit test cases. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 12 +++- 1 file changed, 11 insertions(+), 1

[Intel-gfx] [PATCH i-g-t v2 16/17] lib/kunit: Strip "_test" or "_kunit" suffix from subtest names

2023-09-08 Thread Janusz Krzysztofik
If a user (an IGT test) doesn't provide a subtest name when calling igt_kunit() then we now use the requested kernel module name as IGT subtest name. Since names of kunit test modules usually end with a "_test" or "_kunit" suffix, those parts of the names don't carry any useful information.

[Intel-gfx] [PATCH i-g-t v2 14/17] lib/kunit: Load test modules in background

2023-09-08 Thread Janusz Krzysztofik
For igt_runner to be able to correlate a stream of IGT results from dynamic sub-subtests that correspond to individual kunit test cases, read by the igt_runner from stdout / stderr of the test process, with a stream of kernel messages read from /dev/kmsg, we need both result streams being fed with

[Intel-gfx] [PATCH i-g-t v2 13/17] lib/ktap: Reimplement KTAP parser

2023-09-08 Thread Janusz Krzysztofik
Current implementation of KTAP parser suffers from several issues: - in most cases, kernel messages that are not part of KTAP output but happen to appear in between break the parser, - results from parametrized test cases, not preceded with a "1..N" test plan, break the parser, - skips are not

[Intel-gfx] [PATCH i-g-t v2 12/17] lib/ktap: Use IGT linked lists for storing KTAP results

2023-09-08 Thread Janusz Krzysztofik
For code simplicity and clarity, use existing IGT linked lists library instead of open coding a custom implementation of a list of KTAP results. While being at it, flatten the code by inverting a check for pending results. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 28

[Intel-gfx] [PATCH i-g-t v2 10/17] lib/ktap: Read /dev/kmsg in blocking mode

2023-09-08 Thread Janusz Krzysztofik
We obtain KTAP report from /dev/kmsg. That file is now opened from igt_ktest_begin(), a function originally designed for i915 selftests and now reused with kunit tests. The original intention of opening that file was to dump kernel messages to stderr on selftest error. For that purpose, the

[Intel-gfx] [PATCH i-g-t v2 09/17] lib/ktap: Drop is_running flag

2023-09-08 Thread Janusz Krzysztofik
Since we now call pthread_cancel() when we want to stop KTAP parser before it completes, and we take care of returning failure in that case as a result of KTAP parsing, we no longer need to check a flag that indicates whether we should continue parsing or return a failure. Drop that flag.

[Intel-gfx] [PATCH i-g-t v2 08/17] lib/kunit: Cancel KTP parser on module load failure

2023-09-08 Thread Janusz Krzysztofik
For our KTAP parser to be running in parallel with kunit test module loading, we now start it in a separate thread before we load the module. If the module loading fails then we join the KTAP parser thread right after that failure. If the KTAP thread sleeps for some reason then we can fail to

[Intel-gfx] [PATCH i-g-t v2 07/17] lib/ktap: Don't ignore interrupt signals

2023-09-08 Thread Janusz Krzysztofik
While reading KTAP data from /dev/kmsg we now ignore interrupt signals that may occur during read() and we continue reading the data. No explanation has been provided on what that could be needed for. Always return with an error code to the caller when read() fails with errno == EINTR, so

[Intel-gfx] [PATCH i-g-t v2 06/17] lib/ktap: Make sure we fail on premature cancel

2023-09-08 Thread Janusz Krzysztofik
After loading a kunit test module that executes some kunit test cases, we evaluate overall result of an IGT subtest that corresponds to that module based on an error code returned by kunit_parser_stop() helper, obtained from a .ret field of a ktap_args structure. That code is now assigned to that

[Intel-gfx] [PATCH i-g-t v2 05/17] lib/kunit: Fix illegal igt_fail() calls inside subtest body

2023-09-08 Thread Janusz Krzysztofik
In a body of a subtest with dynamic sub-subtests, it is illegal to call igt_fail() and its variants from outside of a dynamic sub-subtest body. On the other hand, it is perfectly legal to call either igt_skip() and friends or __igt_abort() or its variant from there. In the current implementation

[Intel-gfx] [PATCH i-g-t v2 04/17] lib/kunit: Optimize calls to igt_success/skip/fail()

2023-09-08 Thread Janusz Krzysztofik
Calling igt_success() explicitly at the end of subtest body is not needed. Other calls to igt_success() can be usually avoided by inverting test result checks. Optimize the code that now calls igt_success(). Moreover, using more advanced variants of igt_skip() and igt_fail() where applicable

[Intel-gfx] [PATCH i-g-t v2 02/17] lib/kunit: Stop loading kunit module explicitly

2023-09-08 Thread Janusz Krzysztofik
Since kmod functions we use for module loading can process module dependencies, there is no need to load the "kunit" module explicitly before loading a kunit test module. For the same reason we already don't unload the "kunit" module explicitly on cleanup. Drop the unnecessary operation.

[Intel-gfx] [PATCH i-g-t v2 03/17] lib/kunit: Fix struct kmod_module kunit_kmod not freed

2023-09-08 Thread Janusz Krzysztofik
We obtain a kmod_module structure for kunit module in order to check if it is modular or built-in, then we never release that structure. Fix it. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index

[Intel-gfx] [PATCH i-g-t v2 01/17] lib/kunit: Drop unused file stream

2023-09-08 Thread Janusz Krzysztofik
In the process of reviewing patches that introduced kunit support, I asked once if we could use line buffered input instead of explicitly looking for newlines in KTAP data. While my idea was wrong because reading raw data from /dev/kmsg already returns full log records that always end with a

[Intel-gfx] [PATCH i-g-t v2 00/17] Fix IGT Kunit implementation issues

2023-09-08 Thread Janusz Krzysztofik
v2: Fix incorrect and missing includes in the test source file, - add license and copyright clauses to the test source file. Janusz Krzysztofik (17): lib/kunit: Drop unused file stream lib/kunit: Stop loading kunit module explicitly lib/kunit: Fix struct kmod_module kunit_kmod not freed

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Only check eDP HPD when AUX CH is shared (rev2)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Only check eDP HPD when AUX CH is shared (rev2) URL : https://patchwork.freedesktop.org/series/123389/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13613_full -> Patchwork_123389v2_full

[Intel-gfx] [PATCH i-g-t 17/17] lib/kunit: Omit suite name prefix if the same as subtest name

2023-09-08 Thread Janusz Krzysztofik
Kunit test modules usually contain one test suite, named after the module name with the trailing "_test" or "_kunit" suffix omitted. Since we follow the same convention when we derive subtest names from module names, there is a great chance that those two names match. Take this into account when

[Intel-gfx] [PATCH i-g-t 15/17] lib/kunit: Parse KTAP report from the main process thread

2023-09-08 Thread Janusz Krzysztofik
There was an attempt to parse KTAP reports in the background while a kunit test module is loading. However, since dynamic sub-subtests can be executed only from the main thread, that attempt was not quite successful, as IGT results from all executed kunit test cases were generated only after

[Intel-gfx] [PATCH i-g-t 16/17] lib/kunit: Strip "_test" or "_kunit" suffix from subtest names

2023-09-08 Thread Janusz Krzysztofik
If a user (an IGT test) doesn't provide a subtest name when calling igt_kunit() then we now use the requested kernel module name as IGT subtest name. Since names of kunit test modules usually end with a "_test" or "_kunit" suffix, those parts of the names don't carry any useful information.

[Intel-gfx] [PATCH i-g-t 14/17] lib/kunit: Load test modules in background

2023-09-08 Thread Janusz Krzysztofik
For igt_runner to be able to correlate a stream of IGT results from dynamic sub-subtests that correspond to individual kunit test cases, read by the igt_runner from stdout / stderr of the test process, with a stream of kernel messages read from /dev/kmsg, we need both result streams being fed with

[Intel-gfx] [PATCH i-g-t 13/17] lib/ktap: Reimplement KTAP parser

2023-09-08 Thread Janusz Krzysztofik
Current implementation of KTAP parser suffers from several issues: - in most cases, kernel messages that are not part of KTAP output but happen to appear in between break the parser, - results from parametrized test cases, not preceded with a "1..N" test plan, break the parser, - skips are not

[Intel-gfx] [PATCH i-g-t 12/17] lib/ktap: Use IGT linked lists for storing KTAP results

2023-09-08 Thread Janusz Krzysztofik
For code simplicity and clarity, use existing IGT linked lists library instead of open coding a custom implementation of a list of KTAP results. While being at it, flatten the code by inverting a check for pending results. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 28

[Intel-gfx] [PATCH i-g-t 09/17] lib/ktap: Drop is_running flag

2023-09-08 Thread Janusz Krzysztofik
Since we now call pthread_cancel() when we want to stop KTAP parser before it completes, and we take care of returning failure in that case as a result of KTAP parsing, we no longer need to check a flag that indicates whether we should continue parsing or return a failure. Drop that flag.

[Intel-gfx] [PATCH i-g-t 11/17] lib/kunit: Fail / skip on kernel taint

2023-09-08 Thread Janusz Krzysztofik
Similar to how igt_kselftest() handles kernel taints, fail current dynamic sub-subtest and skip remaining ones when a kernel taint is detected during execution of kunit test cases. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 12 +++- 1 file changed, 11 insertions(+), 1

[Intel-gfx] [PATCH i-g-t 08/17] lib/kunit: Cancel KTP parser on module load failure

2023-09-08 Thread Janusz Krzysztofik
For our KTAP parser to be running in parallel with kunit test module loading, we now start it in a separate thread before we load the module. If the module loading fails then we join the KTAP parser thread right after that failure. If the KTAP thread sleeps for some reason then we can fail to

[Intel-gfx] [PATCH i-g-t 10/17] lib/ktap: Read /dev/kmsg in blocking mode

2023-09-08 Thread Janusz Krzysztofik
We obtain KTAP report from /dev/kmsg. That file is now opened from igt_ktest_begin(), a function originally designed for i915 selftests and now reused with kunit tests. The original intention of opening that file was to dump kernel messages to stderr on selftest error. For that purpose, the

[Intel-gfx] [PATCH i-g-t 07/17] lib/ktap: Don't ignore interrupt signals

2023-09-08 Thread Janusz Krzysztofik
While reading KTAP data from /dev/kmsg we now ignore interrupt signals that may occur during read() and we continue reading the data. No explanation has been provided on what that could be needed for. Always return with an error code to the caller when read() fails with errno == EINTR, so

[Intel-gfx] [PATCH i-g-t 03/17] lib/kunit: Fix struct kmod_module kunit_kmod not freed

2023-09-08 Thread Janusz Krzysztofik
We obtain a kmod_module structure for kunit module in order to check if it is modular or built-in, then we never release that structure. Fix it. Signed-off-by: Janusz Krzysztofik --- lib/igt_kmod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index

[Intel-gfx] [PATCH i-g-t 06/17] lib/ktap: Make sure we fail on premature cancel

2023-09-08 Thread Janusz Krzysztofik
After loading a kunit test module that executes some kunit test cases, we evaluate overall result of an IGT subtest that corresponds to that module based on an error code returned by kunit_parser_stop() helper, obtained from a .ret field of a ktap_args structure. That code is now assigned to that

[Intel-gfx] [PATCH i-g-t 05/17] lib/kunit: Fix illegal igt_fail() calls inside subtest body

2023-09-08 Thread Janusz Krzysztofik
In a body of a subtest with dynamic sub-subtests, it is illegal to call igt_fail() and its variants from outside of a dynamic sub-subtest body. On the other hand, it is perfectly legal to call either igt_skip() and friends or __igt_abort() or its variant from there. In the current implementation

[Intel-gfx] [PATCH i-g-t 04/17] lib/kunit: Optimize calls to igt_success/skip/fail()

2023-09-08 Thread Janusz Krzysztofik
Calling igt_success() explicitly at the end of subtest body is not needed. Other calls to igt_success() can be usually avoided by inverting test result checks. Optimize the code that now calls igt_success(). Moreover, using more advanced variants of igt_skip() and igt_fail() where applicable

[Intel-gfx] [PATCH i-g-t 02/17] lib/kunit: Stop loading kunit module explicitly

2023-09-08 Thread Janusz Krzysztofik
Since kmod functions we use for module loading can process module dependencies, there is no need to load the "kunit" module explicitly before loading a kunit test module. For the same reason we already don't unload the "kunit" module explicitly on cleanup. Drop the unnecessary operation.

[Intel-gfx] [PATCH i-g-t 01/17] lib/kunit: Drop unused file stream

2023-09-08 Thread Janusz Krzysztofik
In the process of reviewing patches that introduced kunit support, I asked once if we could use line buffered input instead of explicitly looking for newlines in KTAP data. While my idea was wrong because reading raw data from /dev/kmsg already returns full log records that always end with a

[Intel-gfx] [PATCH i-g-t 00/17] Fix IGT Kunit implementation issues

2023-09-08 Thread Janusz Krzysztofik
Janusz Krzysztofik (17): lib/kunit: Drop unused file stream lib/kunit: Stop loading kunit module explicitly lib/kunit: Fix struct kmod_module kunit_kmod not freed lib/kunit: Optimize calls to igt_success/skip/fail() lib/kunit: Fix illegal igt_fail() calls inside subtest body lib/ktap:

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/dsc: Fix pic_width readout

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915/dsc: Fix pic_width readout URL : https://patchwork.freedesktop.org/series/123415/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13613_full -> Patchwork_123415v1_full Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Added Wa_18022495364 (rev3)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Added Wa_18022495364 (rev3) URL : https://patchwork.freedesktop.org/series/123377/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613 -> Patchwork_123377v3 Summary ---

[Intel-gfx] [PATCH v3] drm/i915: Added Wa_18022495364

2023-09-08 Thread Dnyaneshwar Bhadane
This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later. BSpec: 11354, 56551 v2: - Removed extra parentheses from the condition (Lucas) - Fixed spacing and new line (Lucas) v3: - Fixed commit message. Cc: Lucas De Marchi Signed-off-by: Dnyaneshwar

[Intel-gfx] [PATCH v2] drm/i915: Added Wa_18022495364

2023-09-08 Thread Dnyaneshwar Bhadane
This workaround has two different implementations, one for gen 12 to DG2 and another for DG2 and later. BSpec: 11354, 56551 v2: - Removed extra parentheses from the condition (Lucas) - Fixed spacing and new line (Lucas) Signed-off-by: Dnyaneshwar Bhadane Cc: Lucas De Marchi Reviewed-by: Garg,

Re: [Intel-gfx] [PATCH] drm/i915: Added Wa_18022495364

2023-09-08 Thread Bhadane, Dnyaneshwar
> -Original Message- > From: De Marchi, Lucas > Sent: Friday, September 8, 2023 3:58 AM > To: Bhadane, Dnyaneshwar > Cc: intel-gfx@lists.freedesktop.org; Roper, Matthew D > > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Added Wa_18022495364 > > On Thu, Sep 07, 2023 at 12:27:34PM

Re: [Intel-gfx] [Intel-xe] [PATCH v2 14/27] drm/i915/display: Remove FBC capability from fused off pipes

2023-09-08 Thread Govindapillai, Vinod
On Thu, 2023-09-07 at 08:37 -0700, Lucas De Marchi wrote: > From: Clint Taylor > > If a particular pipe is disabled by fuse also remove the FBC for that > pipe. > > Bspec: 69464 > Cc: Anusha Srivatsa > Cc: Gustavo Sousa > Signed-off-by: Clint Taylor > Reviewed-by: Matt Roper >

Re: [Intel-gfx] [Intel-xe] [PATCH v2 03/27] drm/i915/xe2lpd: FBC is now supported on all pipes

2023-09-08 Thread Govindapillai, Vinod
On Thu, 2023-09-07 at 08:37 -0700, Lucas De Marchi wrote: > From: Matt Roper > > FBC is no longer limited by pipe: add the defines for pipes B and C that > will be used by platforms supporting FBC on such pipes. > > Bspec: 68881, 68904 > Signed-off-by: Matt Roper > Signed-off-by: Lucas De

Re: [Intel-gfx] [RFC 01/33] drm/doc/rfc: Add RFC document for proposed Plane Color Pipeline

2023-09-08 Thread Pekka Paalanen
On Thu, 7 Sep 2023 12:31:47 + "Shankar, Uma" wrote: > > -Original Message- > > From: Pekka Paalanen > > Sent: Tuesday, September 5, 2023 5:03 PM > > To: Shankar, Uma > > Cc: intel-gfx@lists.freedesktop.org; Borah, Chaitanya Kumar > > ; dri-de...@lists.freedesktop.org; wayland- > >

Re: [Intel-gfx] [PATCH 3/3] drm/i915/display: Configure and initialize HDMI audio capabilities

2023-09-08 Thread Kandpal, Suraj
> Subject: RE: [Intel-gfx] [PATCH 3/3] drm/i915/display: Configure and > initialize > HDMI audio capabilities > > Hi Suraj, > > > -Original Message- > > From: Kandpal, Suraj > > Sent: 05 September 2023 14:47 > > To: Golani, Mitulkumar Ajitkumar > > ; > > intel-gfx@lists.freedesktop.org

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Run relevant bits of debugfs drop_caches per GT (rev4)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Run relevant bits of debugfs drop_caches per GT (rev4) URL : https://patchwork.freedesktop.org/series/123386/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613 -> Patchwork_123386v4

Re: [Intel-gfx] [Nouveau] [RFC, drm-misc-next v4 0/9] PCI/VGA: Allowing the user to select the primary video adapter at boot time

2023-09-08 Thread Christian König
Am 07.09.23 um 18:33 schrieb suijingfeng: Hi, On 2023/9/7 17:08, Christian König wrote: I strongly suggest that you just completely drop this here Drop this is OK, no problem. Then I will go to develop something else. This version is not intended to merge originally, as it's a RFC. Also,

Re: [Intel-gfx] [PATCH v2 17/27] drm/i915/xe2lpd: Read pin assignment from IOM

2023-09-08 Thread Kahola, Mika
> -Original Message- > From: De Marchi, Lucas > Sent: Thursday, September 7, 2023 6:38 PM > To: intel...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Cc: Coelho, Luciano ; Kahola, Mika > ; Roper, Matthew D > ; De Marchi, Lucas > Subject: [PATCH v2 17/27] drm/i915/xe2lpd:

[Intel-gfx] ✗ Fi.CI.IGT: failure for Separate display workarounds from clock gating (rev4)

2023-09-08 Thread Patchwork
== Series Details == Series: Separate display workarounds from clock gating (rev4) URL : https://patchwork.freedesktop.org/series/123363/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13612_full -> Patchwork_123363v4_full

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Only check eDP HPD when AUX CH is shared (rev2)

2023-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Only check eDP HPD when AUX CH is shared (rev2) URL : https://patchwork.freedesktop.org/series/123389/ State : success == Summary == CI Bug Log - changes from CI_DRM_13613 -> Patchwork_123389v2

Re: [Intel-gfx] [Intel-xe] [PATCH v2 05/27] drm/i915/xe2lpd: Add fake PCH

2023-09-08 Thread Ville Syrjälä
On Fri, Sep 08, 2023 at 08:56:53AM +0300, Ville Syrjälä wrote: > On Fri, Sep 08, 2023 at 12:51:09AM -0500, Lucas De Marchi wrote: > > On Fri, Sep 08, 2023 at 08:39:48AM +0300, Ville Syrjälä wrote: > > >On Thu, Sep 07, 2023 at 05:57:19PM -0700, Matt Roper wrote: > > >> On Thu, Sep 07, 2023 at