Re: [PATCH i-g-t] lib/gem_mman: Stop lying about I915_MMAP_OFFSET_GTT support

2024-10-11 Thread Kamil Konieczny
s that > are not easy to understand and explain. > > Fix it. > > Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11370 > Signed-off-by: Janusz Krzysztofik LGTM, Reviewed-by: Kamil Konieczny > --- > lib/i915/gem_mman.c | 2 ++ > 1 file changed, 2 inser

Re: [PATCH i-g-t] xe: Add test to check pci memory barrier capability

2024-10-09 Thread Kamil Konieczny
Hi Tejas, On 2024-10-09 at 15:26:08 +0530, Tejas Upadhyay wrote: one more nit, imho a patch with new test should have in subject tests/intel: Add xe_pci_membarrier test Also see nit about a test name. > We want to make sure that direct mmap mapping of physical > page at doorbell space and whole

Re: [PATCH i-g-t] xe: Add test to check pci memory barrier capability

2024-10-09 Thread Kamil Konieczny
Hi Jani, On 2024-10-09 at 15:02:10 +0300, Jani Nikula wrote: > On Wed, 09 Oct 2024, Kamil Konieczny wrote: > > Hi Tejas, > > On 2024-10-09 at 15:26:08 +0530, Tejas Upadhyay wrote: > >> We want to make sure that direct mmap mapping of physical > >> page at

Re: [PATCH i-g-t] xe: Add test to check pci memory barrier capability

2024-10-09 Thread Kamil Konieczny
Hi Tejas, On 2024-10-09 at 15:26:08 +0530, Tejas Upadhyay wrote: > We want to make sure that direct mmap mapping of physical > page at doorbell space and whole page is accessible in order > to use pci memory barrier effect effectively. > > This is basic pci memory barrier test to showcase xe drive

Re: [PATCH i-g-t 2/2] tests/core_hotunplug: Fix inline comment on missing device nodes

2024-07-26 Thread Kamil Konieczny
Thank you for clarification, Reviewed-by: Kamil Konieczny > > Signed-off-by: Janusz Krzysztofik > --- > tests/core_hotunplug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c > index db7a5

Re: [PATCH i-g-t 1/2] tests/device_reset: Wait for device nodes to re-appear

2024-07-26 Thread Kamil Konieczny
doing that. > > Introduce a delay to give the kernel a chance to re-create in devtmpfs all > device nodes we are going to scan for. > > Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11626 > Signed-off-by: Janusz Krzysztofik LGTM, Reviewed-by: Kamil Konieczny

Re: [PATCH i-g-t v4 5/5] lib/gem_engine_topology: Fix broken compare of device links

2024-07-18 Thread Kamil Konieczny
at of the render node, and limit > the number of compared characters to that length. > > Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6268 > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/i915/gem_engine_topology.c | 7 --- &g

Re: [PATCH i-g-t v4 4/5] lib/gem_engine_topology: Simplify the method of opening a primary

2024-07-18 Thread Kamil Konieczny
hand, we > build and pass to that function a path of that primary that is absolute, > not relative. While that construct gives the expected result anyway, it > makes the picture unclear. > > Use open() and drop unused code. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: K

Re: [PATCH i-g-t v4 3/5] lib/gem_engine_topology: Fix premature break from primary find loop

2024-07-18 Thread Kamil Konieczny
> - break; > + continue; Good catch! Reviewed-by: Kamil Konieczny > > if (readlinkat(dir, "device", device, sizeof(device)) > 0 && > !strcmp(device, target)) > -- > 2.45.2 >

Re: [PATCH i-g-t v4 2/5] lib: Add more debug messages to error paths

2024-07-18 Thread Kamil Konieczny
o changes. > v3: Add still more debug messages. > v4: Fix missing line termination. > > Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6268 > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/i915/gem_engine_topology.c | 19 ++

Re: [PATCH i-g-t v4 1/5] tests/gem_ctx_exec: Fail on unsuccessful preempt timeout update

2024-07-18 Thread Kamil Konieczny
ut_ms, older > platforms don't support it but can still succeed. > > Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6268 > Signed-off-by: Janusz Krzysztofik LGTM, Reviewed-by: Kamil Konieczny > --- > tests/intel/gem_ctx_exec.c | 11 +++ > 1 file changed, 7

Re: [PATCH i-g-t] i915/gem_mmap_offset: Partial mmap and munmap

2024-04-17 Thread Kamil Konieczny
Hi Andi, On 2024-04-12 at 02:42:55 +0200, Andi Shyti wrote: > From: Chris Wilson > > Based on a test case developed by Lionel Landwerlin, this exercises > creation of partial mmaps using both direct methods of a partial mmap() > (where the mmap() only covers a portion of the object) and > munmap(

Re: [PATCH i-g-t v3] lib/kunit: Read results from debugfs

2024-04-17 Thread Kamil Konieczny
'if' statement condition (Lucas). > > Signed-off-by: Janusz Krzysztofik > Cc: Kamil Konieczny > Reviewed-by: Lucas De Marchi Thank you for fixing legacy path, it works now. With this, Reviewed-by: Kamil Konieczny > --- > @Lucas

Re: [PATCH i-g-t] lib/kunit: Read results from debugfs

2024-03-28 Thread Kamil Konieczny
Hi Janusz, On 2024-03-27 at 23:26:03 +0100, Janusz Krzysztofik wrote: > On Wednesday, 27 March 2024 18:27:50 CET Kamil Konieczny wrote: > > Hi Janusz, > > On 2024-03-27 at 12:22:54 +0100, Janusz Krzysztofik wrote: > > > KUnit can provide KTAP reports from test module

Re: [PATCH i-g-t] lib/kunit: Read results from debugfs

2024-03-27 Thread Kamil Konieczny
Hi Janusz, On 2024-03-27 at 12:22:54 +0100, Janusz Krzysztofik wrote: > KUnit can provide KTAP reports from test modules via debugfs files, one > per test suite. Using that source of test results instead of extracting > them from dmesg, where they may be interleaved with other kernel messages, > s

Re: [PATCH i-g-t v3 5/5] lib/kunit: Minimize code duplication

2024-03-25 Thread Kamil Konieczny
list of test cases > from a single test suite or test module. Go for it. > > v3: Rebased on top of changes to struct igt_ktap_results pointer handling. > v2: Rebased on invalid test suite name workaround. > > Signed-off-by: Janusz Krzysztofik > Cc: Jonathan Cavitt Reviewe

Re: [PATCH i-g-t v3 4/5] lib/kunit: Execute test cases synchronously

2024-03-25 Thread Kamil Konieczny
ustification of why we > need these changes. > > Signed-off-by: Janusz Krzysztofik > Cc: Mauro Carvalho Chehab > Cc: Jonathan Cavitt > Cc: Kamil Konieczny Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 156 +

Re: [PATCH i-g-t] tools/intel_gpu_top: Fix near full percentage bar formatting

2024-03-22 Thread Kamil Konieczny
merical overlay would be skipped to. > > The bug would also shift the layout of following UI elements since the > progress bar would not be consuming all the allocated horizontal space. > > Signed-off-by: Tvrtko Ursulin > Reported-by: anonymoustranquill...@proton

Re: [PATCH i-g-t v3 3/5] lib/kunit: Time out promptly on missing KTAP report

2024-03-19 Thread Kamil Konieczny
ing successful load of the KUnit test module in execution > mode. Then, there is no need to set up a similar timeout before we start > to extract and parse that report. > > Suggested-by: Kamil Konieczny > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- >

Re: [PATCH i-g-t v3 2/5] lib/kunit: Let igt_ktap_free() take care of pointer reset

2024-03-19 Thread Kamil Konieczny
le > free on final cleanup. For their convenience, teach igt_ktap_free() to > accept that location as an argument and reset the pointer after freeing > the structure. > > Signed-off-by: Janusz Krzysztofik LGTM, Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c

Re: [PATCH i-g-t v3 1/5] lib/kunit: Store igt_ktap_results pointer in a central location

2024-03-19 Thread Kamil Konieczny
e central > location, and free it from a closing igt_fixture section before return. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 35 --- > 1 file changed, 20 insertions(+), 15 deletions(-) > >

Re: [PATCH i-g-t v2 1/2] lib/kunit: Execute test cases synchronously

2024-03-14 Thread Kamil Konieczny
Hi Janusz, On 2024-02-27 at 16:10:41 +0100, Janusz Krzysztofik wrote: > Up to now we were loading a KUnit test module in test execution mode only > once per subtest, in background, and then, in parallel with execution of > test cases while the module was loading, we were looking through dmesg for >

Re: [PATCH i-g-t v2 1/2] lib/kunit: Execute test cases synchronously

2024-03-07 Thread Kamil Konieczny
Hi Janusz, On 2024-02-27 at 16:10:41 +0100, Janusz Krzysztofik wrote: > Up to now we were loading a KUnit test module in test execution mode only > once per subtest, in background, and then, in parallel with execution of > test cases while the module was loading, we were looking through dmesg for >

Re: [PATCH i-g-t v2 2/2] lib/kunit: Minimize code duplication

2024-03-07 Thread Kamil Konieczny
list of test cases > from a single test suite or test module. Go for it. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 15 ++- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/lib/igt_kmod

Re: [PATCH i-g-t] tests/perf_pmu: Set defaults before frequency test

2024-01-12 Thread Kamil Konieczny
> exit_handler necessitated moving drm_close() into the handler. However, > the module-reload subtest at the end expects drm-fd to be closed. > Also setup expected frequencies (Kamil) and address other nits (Kamil) > > Link: https://gitlab.freedesktop.org/drm/intel/-/issues/9432 &

Re: [PATCH i-g-t] tests/perf_pmu: Restore sysfs freq in exit handler

2024-01-05 Thread Kamil Konieczny
Hi Vinay, On 2024-01-04 at 17:10:00 -0800, Vinay Belgaumkar wrote: looks good, there are some nits, first about subject: [PATCH i-g-t] tests/perf_pmu: Restore sysfs freq in exit handler s!tests/perf_pmu:!tests/intel/perf_pmu:! Also you can drop "sysfs", so it will look: [PATCH i-g-t] tests/inte

Re: [Intel-gfx] [PATCH i-g-t 3/9] tests/i915/drm_fdinfo: Add some memory info tests

2023-11-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-12 at 09:15:41 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > A few basic smoke tests to check per client memory info looks legit. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > tests/int

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 9/9] tools/intel_gpu_top: Add ability to show memory region breakdown

2023-11-03 Thread Kamil Konieczny
ode by default and interactive command 'm' and > command line switch '-m' can be used to toggle that. > > Both only affect the interactive view, while JSON output always contains > separate memory regions. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konie

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 8/9] tools/intel_gpu_top: Add per client memory info

2023-11-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-12 at 09:15:46 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > JSON output has the full breakdown but for now the interactive mode only > shows total and resident aggregated for all memory regions. > > Signed-off-by: Tvrtko Ursulin Reviewed-b

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 7/9] tools/intel_gpu_top: Fully wrap clients operations

2023-11-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-12 at 09:15:45 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Wrap all operations on clients via the Intel specific wrappers in order to > simplify upcoming work. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- >

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 4/9] lib/igt_drm_fdinfo: Copy over region map name on match

2023-11-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-12 at 09:15:42 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > I will need some record of which regions were found for intel_gpu_top so > lets just copy over the region name from the map on the first match. > > Signed-off-by: Tvrtko Ursulin

Re: [Intel-gfx] [PATCH i-g-t 5/9] lib/igt_drm_clients: Fix client id type confusion

2023-11-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-12 at 09:15:43 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Igt_drm_fdinfo defines it as an unsigned long so it is best that it > matches here as well. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > l

Re: [Intel-gfx] [PATCH i-g-t 6/9] lib/igt_drm_clients: Allow passing in the memory region map

2023-11-03 Thread Kamil Konieczny
Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > lib/igt_drm_clients.c | 5 +++-- > lib/igt_drm_clients.h | 3 ++- > tools/gputop.c| 4 ++-- > tools/intel_gpu_top.c | 8 +--- > 4 files changed, 12 insertions(+), 8 deletions(-) >

Re: [Intel-gfx] [PATCH i-g-t 2/9] tests/i915/drm_fdinfo: Stress test context close versus fdinfo reads

2023-11-03 Thread Kamil Konieczny
e(i915, 4096); > + gem_write(i915, batch, 0, &bbe, sizeof(bbe)); > + > + igt_fork_helper(&reader) { > + for (;;) { > + memset(&info, 0, sizeof(info)); > + ret = __igt_parse_drm_fdinfo(dir, buf, &info, > +

Re: [Intel-gfx] [PATCH i-g-t 1/9] tests/i915/drm_fdinfo: Check engine info is supported

2023-11-03 Thread Kamil Konieczny
() will then be possible to be greater > than zero even when engine stats are not supported. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > tests/intel/drm_fdinfo.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/intel/drm_fdin

Re: [Intel-gfx] [PATCH i-g-t v3 10/11] lib/kunit: Fetch a list of test cases in advance

2023-10-20 Thread Kamil Konieczny
loop of test cases on unexpected return codes from > kunit_kmsg_get_result(), > - use kunit_results_free() helper, > - fix typos (Kamil), > - update commit description. > > Signed-off-by: Janusz Krzysztofik > Acked-by: Kamil Konieczny # v2 Reviewed-by: Kamil Koni

Re: [Intel-gfx] [PATCH i-g-t v3 05/11] lib/kunit: Parse KTAP report from the main process thread

2023-10-20 Thread Kamil Konieczny
after a valid result from the parser has been processed, > - fix trailing newlines missing from error messages, > - add more debug statements, > - integrate common code around kunit_result_free() into it. > v2: Interrupt blocking read() on modprobe failure. > > Sig

Re: [Intel-gfx] [PATCH i-g-t v3 01/11] lib/ktap: Improve TODO workaround description

2023-10-12 Thread Kamil Konieczny
> > Update the comment with a reference to the kernel side fix and a > clarification on why we need to keep the workaround in place. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_ktap.c | 13 ++--- > 1 file changed, 10 insertion

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

2023-10-11 Thread Kamil Konieczny
Hi Janusz, On 2023-10-10 at 19:49:35 +0200, Janusz Krzysztofik wrote: > Hi Kamil, > > Thanks for review. > > On Tuesday, 10 October 2023 17:59:56 CEST Kamil Konieczny wrote: > > Hi Janusz, > > On 2023-10-09 at 14:27:55 +0200, Janusz Krzysztofik wrote: > > >

Re: [Intel-gfx] [PATCH i-g-t 3/4] tools/intel_gpu_top: Optimise interactive display a bit

2023-10-11 Thread Kamil Konieczny
d length out of those chunks. > > While at it, also move the percentage bar table into its function scope. > > v2: > * Fix checkpatch and use ARRAY_SIZE. (Kamil) > > Signed-off-by: Tvrtko Ursulin > Cc: Kamil Konieczny Reviewed-by: Kamil Konieczn

Re: [Intel-gfx] [PATCH i-g-t 4/4] tools/intel_gpu_top: Handle narrow terminals more gracefully

2023-10-10 Thread Kamil Konieczny
our first patch touching this function? With or without this suggestion, Reviewed-by: Kamil Konieczny Regards, Kamil > { > static const char *spaces[] = { > " ", > @@ -950,7 +950,7 @@ static unsigned int n_spaces(const unsigned int n) > &quo

Re: [Intel-gfx] [PATCH i-g-t 3/4] tools/intel_gpu_top: Optimise interactive display a bit

2023-10-10 Thread Kamil Konieczny
Hi Tvrtko, On 2023-10-10 at 12:07:13 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Padding the percentage bars and table columns with spaces happens quite a > lot so lets do better than putchar at a time. Have a table of visually > empty strings and build the required length out of thos

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/4] tools/intel_gpu_top: Fix client layout on first sample period

2023-10-10 Thread Kamil Konieczny
of this is that client name gets printed > as the second field and not under the "NAME" column header. > > Fix it by emitting spaces instead of engine utilisation until two samples > have been collected. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Koni

Re: [Intel-gfx] [PATCH i-g-t 1/4] tools/intel_gpu_top: Fix clients header width when no clients

2023-10-10 Thread Kamil Konieczny
y: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c > index 10601e66b18e..60fe06917531 100644 > --- a/tools/intel_gpu_top.

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

2023-10-10 Thread Kamil Konieczny
Hi Janusz, On 2023-10-09 at 14:27:55 +0200, Janusz Krzysztofik wrote: > 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

Re: [Intel-gfx] [PATCH i-g-t v2 10/11] lib/kunit: Fetch a list of test cases in advance

2023-10-09 Thread Kamil Konieczny
kunit_results_free(&results, &suite_name, &case_name); > > @@ -1035,7 +1109,8 @@ __igt_kunit(struct igt_ktest *tst, const char *name, > const char *opts) > > igt_skip_on(modprobe.err); > igt_skip_on(igt_kernel_tainted(&taints)); > - igt_

Re: [Intel-gfx] [PATCH i-g-t v2 09/11] lib/kunit: Prepare for KTAP parsing after modprobe completed

2023-10-09 Thread Kamil Konieczny
is successfully loaded and > there will be no concurrently running modprobe thread, we need to make > synchronization of reads from /dev/kmsg with potential errors modprobe > thread optional. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny

Re: [Intel-gfx] [PATCH i-g-t v2 08/11] lib/kunit: Provide all results cleanup helper

2023-10-09 Thread Kamil Konieczny
Hi Janusz, On 2023-10-09 at 14:27:59 +0200, Janusz Krzysztofik wrote: > Planned changes require a couple of loops around kunit_result_free(). > Since we already have such loop, move it into a helper in preparation for > future uses. > > Signed-off-by: Janusz Krzysztofik Rev

Re: [Intel-gfx] [PATCH i-g-t v2 11/11] lib/kunit: Execute kunit test cases only when needed

2023-10-09 Thread Kamil Konieczny
t > result right after loading the kunit test module for execution. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 66 ++ > 1 file changed, 35 insertions(+), 31 deletions(-) &

Re: [Intel-gfx] [PATCH i-g-t v2 07/11] lib/ktap: Drop workaround for missing top level KTAP headers

2023-10-09 Thread Kamil Konieczny
count of test > suites in a module"), included in the mainline kernel since v6.6-rc1, has > fixed that issue, that workaround is no longer needed. Drop it. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_ktap.c | 12 --

Re: [Intel-gfx] [PATCH i-g-t 8/9] lib/kunit: Fetch a list of test cases in advance

2023-10-05 Thread Kamil Konieczny
Hi Janusz, On 2023-10-03 at 11:10:53 +0200, Janusz Krzysztofik wrote: > Recent improvements to the kernel kunit framework allow us to obtain a > list of test cases provided by a kunit test module without actually > running them. Use that feature to get a list of expected test cases > before we en

Re: [Intel-gfx] [PATCH i-g-t 6/9] tests/kms_selftest: Let subtest names match suite names

2023-10-05 Thread Kamil Konieczny
s/kunit/style.html > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > tests/kms_selftest.c | 37 - > 1 file changed, 16 insertions(+), 21 deletions(-) > > diff --git a/tests/kms_selftest.c b/tests/kms_selftest.c &g

Re: [Intel-gfx] [PATCH i-g-t 3/9] lib/kunit: Fix misplaced igt_kunit() doc

2023-10-05 Thread Kamil Konieczny
gt; function. Update that documentation and move it to where it now belongs. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 17 - > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/lib/ig

Re: [Intel-gfx] [PATCH i-g-t 2/9] lib/kunit: Be more verbose on errors

2023-10-05 Thread Kamil Konieczny
Hi Janusz, On 2023-10-03 at 11:10:47 +0200, Janusz Krzysztofik wrote: > Use a more verbose variant of igt_fail() when failing a dynamic sub- > subtest on kernel taint. Also, print a debug message on string > duplication failure. > > Signed-off-by: Janusz Krzysztofik Rev

Re: [Intel-gfx] [PATCH i-g-t 1/9] lib/kunit: Fix handling of potential errors from F_GETFL

2023-10-05 Thread Kamil Konieczny
usz Krzysztofik Reviewed-by: Kamil Konieczny > --- > lib/igt_kmod.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c > index d98e6c5f9e..05ff178b27 100644 > --- a/lib/igt_kmod.c > +++ b/lib/igt_kmod.c > @@ -783,

Re: [Intel-gfx] [PATCH i-g-t] tests/core_hotunplug: Wait for device nodes to re-appear

2023-08-22 Thread Kamil Konieczny
file descriptor fd_drm failed > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8830 > Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/500 > Signed-off-by: Janusz Krzysztofik > Cc: Petri Latvala Reviewed-by: Kamil Konieczny > --- > tests/core_hot

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_drm_clients: Store memory info in the client

2023-08-07 Thread Kamil Konieczny
ff-by: Tvrtko Ursulin > Cc: Rob Clark > Cc: Chris Healy > Cc: Kamil Konieczny Thx for v2 with fix and reply, LGTM, Reviewed-by: Kamil Konieczny > --- > lib/igt_drm_clients.c | 32 > lib/igt_drm_clients.h | 11 +++ > 2 files

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib/igt_drm_fdinfo: Parse memory usage

2023-07-27 Thread Kamil Konieczny
gions, or allowing for the caller to pass > in a map with predefined index to name relationship. > > v2: > * Fix s-o-b and satisfy kernel checkpatch. (Kamil) > > Co-developed-by: Rob Clark > Signed-off-by: Rob Clark > Signed-off-by: Tvrtko Ursulin > Cc: Kamil K

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_drm_clients: Store memory info in the client

2023-07-27 Thread Kamil Konieczny
ff-by: Tvrtko Ursulin > Cc: Rob Clark > Cc: Chris Healy > Cc: Kamil Konieczny > --- > lib/igt_drm_clients.c | 32 > lib/igt_drm_clients.h | 11 +++ > 2 files changed, 43 insertions(+) > > diff --git a/lib/igt_drm_

Re: [Intel-gfx] [PATCH i-g-t 3/3] gputop: Add memory information

2023-07-26 Thread Kamil Konieczny
Hi Tvrtko, On 2023-07-05 at 17:31:05 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Show total and resident memory usage for clients which support it. > > For simplicity all memory regions are summed up and shown under a single > heading. > > Co-developed-by: Rob Clark > Signed-off-b

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib/igt_drm_fdinfo: Parse memory usage

2023-07-26 Thread Kamil Konieczny
Hi Tvrtko, please check your patches with Linux kernel script checkpatch.pl Some of it's warnings seems strange, like: WARNING: Co-developed-by and Signed-off-by: name/email do not match #12: Co-developed-by: Rob Clark Signed-off-by: Tvrtko Ursulin On 2023-07-05 at 17:31:03 +0100, Tvrtko Ursul

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib/igt_drm_clients: Store memory info in the client

2023-07-26 Thread Kamil Konieczny
Hi Tvrtko, On 2023-07-05 at 17:31:04 +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Define the storage structure and copy over memory data as parsed by the > fdinfo helpers. > > Signed-off-by: Tvrtko Ursulin > Cc: Rob Clark > --- > lib/igt_drm_clients.c | 31

Re: [Intel-gfx] [PATCH v3 i-g-t] tests/i915_pm_freq_api: Add a suspend subtest

2023-06-23 Thread Kamil Konieczny
Hi Vinay, small nit, see below. On 2023-06-16 at 08:50:48 -0700, Vinay Belgaumkar wrote: > Verify that SLPC API works as expected after a suspend. Added > another subtest that does multiple GT resets and checks freq api > works as expected after each one. > > We now check requested frequency ins

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_ctx_persistence: Skip hang subtest with GuC

2023-06-07 Thread Kamil Konieczny
Hi Vinay, On 2023-06-06 at 15:14:18 -0700, Vinay Belgaumkar wrote: > Hang subtest is not supported with GuC submission enabled. This is Guc which do not support some operations, so please improve description, maybe use Andrzej suggestions ? Regards, Kamil > > Cc: Kamil Konieczny >

Re: [Intel-gfx] [PATCH i-g-t] tests/i915/gem_ctx_persistence: Skip some subtests

2023-05-25 Thread Kamil Konieczny
Hi Vinay, On 2023-05-24 at 12:19:06 -0700, Vinay Belgaumkar wrote: > Hang and heartbeat subtests are not supported with GuC submission > enabled. > > Signed-off-by: Vinay Belgaumkar > --- > tests/i915/gem_ctx_persistence.c | 32 +++- > 1 file changed, 19 insertions(+

Re: [Intel-gfx] [PATCH i-g-t 2/2] intel_gpu_top: Move client name last

2023-05-23 Thread Kamil Konieczny
ulin > Cc: Rob Clark Acked-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 19 +-- > 1 file changed, 9 insertions(+), 10 deletions(-) > > diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c > index 453090c298bc..937280a7151a 100644 &

Re: [Intel-gfx] [PATCH i-g-t 1/2] gputop: Move client name last

2023-05-23 Thread Kamil Konieczny
ulin > Cc: Rob Clark Acked-by: Kamil Konieczny > --- > tools/gputop.c | 19 +-- > 1 file changed, 9 insertions(+), 10 deletions(-) > > diff --git a/tools/gputop.c b/tools/gputop.c > index 4fb5ce63e07c..681f0a6bb748 100644 > --- a/tools/gputo

Re: [Intel-gfx] [PATCH i-g-t] tests/i915: Exercise coherency of mmapped frame buffers

2023-05-15 Thread Kamil Konieczny
Hi Janusz, On 2023-05-15 at 10:50:20 +0200, Janusz Krzysztofik wrote: > Visible glitches have been observed when running graphics applications on > Linux under Xen hypervisor. Those observations have been confirmed with > failures from kms_pwrite_crc IGT test that verifies data coherency of DRM >

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

2023-04-27 Thread Kamil Konieczny
Hi Ashutosh, On 2023-04-26 at 13:40:28 -0700, Dixit, Ashutosh wrote: > On Tue, 25 Apr 2023 09:24:04 -0700, Vinay Belgaumkar wrote: > > > > diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915/i915_pm_freq_api.c > > new file mode 100644 > > index ..17adacbc > > --- /dev/null > > +++ b/te

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 (bar) is kept the > same. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 20 +++- > 1 file changed, 11 insertions(+), 9 deletions(-) > > diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c >

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-b

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
> > Fix it by tracking the largest width for both the pid and name fields and > use them dynamically. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 66 +-- > 1 file changed, 58

Re: [Intel-gfx] [PATCH i-g-t] tools: Add tool to dump GuC/HuC CSS header

2023-04-04 Thread Kamil Konieczny
gt; - key_size_dw: 0x40 > - modulus_size_dw: 0x40 > - exponent_size_dw: 0x1 > - time: 0x452109 > - username: b'sys_gbsb' > - buildnumber: b'PC-1.0.3150\x00' > - sw_version: 0x460501 > - vf_version: 0x0 >

Re: [Intel-gfx] [PATCH i-g-t v2] tests/i915_suspend: Refresh device list after *-without-i915 subtests

2023-02-24 Thread Kamil Konieczny
i915_suspend:9050) igt_core-INFO: #5 ../csu/libc-start.c:128 > __libc_start_main@@GLIBC_2.34() > (i915_suspend:9050) igt_core-INFO: #6 [_start+0x2a] > END > > Fixes: f7aff600ab16 ("tests/i915/i915_suspend: Disable d3cold_allowed for > basic-s2idle-without-i9

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_barrier_race: Extend support over compute engines

2023-02-20 Thread Kamil Konieczny
e and no RCS available. Lgtm, Reviewed-by: Kamil Konieczny -- Kamil > > Suggested-by: Chris Wilson > Signed-off-by: Janusz Krzysztofik > --- > tests/i915/gem_barrier_race.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tests/i915/gem_barrier_ra

Re: [Intel-gfx] [PATCH i-g-t v4] tests: Exercise remote request vs barrier handling race

2023-02-16 Thread Kamil Konieczny
ests/i915/perf.c (Ashutosh), add it to > tests/i915/gem_ctx_exec.c, > - don't touch lib/i915/perf.c (Umesh, Ashutosh), duplicate reused code > from tests/i915/perf.c in tests/i915/gem_ctx_exec.c. > > References: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 >

Re: [Intel-gfx] [PATCH i-g-t v3 1/1] tests: Exercise remote request vs barrier handling race

2023-02-14 Thread Kamil Konieczny
ies), > - move the subtest out of tests/i915/perf.c (Ashutosh), add it to > tests/i915/gem_ctx_exec.c, > - don't touch lib/i915/perf.c (Umesh, Ashutosh), duplicate reused code > from tests/i915/perf.c in tests/i915/gem_ctx_exec.c. > > References: https://g

Re: [Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-10 Thread Kamil Konieczny
Hi Janusz, On 2023-02-10 at 15:21:20 +0100, Janusz Krzysztofik wrote: > On Friday, 10 February 2023 15:02:59 CET Kamil Konieczny wrote: > > Hi Janusz, > > > > I have one nit, see below. > > > > On 2023-02-09 at 20:32:31 +0100, Janusz Krzysztofik wrote: > &

Re: [Intel-gfx] [PATCH i-g-t] intel_gpu_top: Add compute class names

2023-02-10 Thread Kamil Konieczny
Hi Tvrtko, On 2023-02-10 at 15:22:07 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > No one remembered to add names for the new compute engines. Actually there was patch: https://patchwork.freedesktop.org/series/112674/ intel_gpu_top: Add display name for compute engine class Submitted

Re: [Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-10 Thread Kamil Konieczny
Hi Janusz, I have one nit, see below. On 2023-02-09 at 20:32:31 +0100, Janusz Krzysztofik wrote: > If any of *-without-i915 subtests fails or skips for any reason, it may > leave the i915 module unloaded while keeping our device list populated > with initially collected data. In a follow up igt_

Re: [Intel-gfx] [PATCH i-g-t v2 0/1] tests/i915/perf: Add stress / race exercises

2023-02-10 Thread Kamil Konieczny
Hi, On 2023-02-10 at 08:53:12 +0100, Janusz Krzysztofik wrote: > Hi, > > On Thursday, 9 February 2023 12:50:38 CET Janusz Krzysztofik wrote: > > Users reported oopses on list corruptions when using i915 perf with a > > number of concurrently running graphics applications. That indicates we > > a

Re: [Intel-gfx] [PATCH i-g-t 1/3] intel_gpu_top: Do not repeat header lines in non-interactive output

2023-02-08 Thread Kamil Konieczny
Hi Tvrtko, one small nit, see below. On 2023-02-03 at 11:16:34 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > If output is redirected to a file, or a pipe, lets not repeat the headers > because that can usually mean user is trying to parse the data later and > so repeated headers are a

Re: [Intel-gfx] [PATCH i-g-t 3/3] intel_gpu_top: Add CSV output format

2023-02-07 Thread Kamil Konieczny
On 2023-02-03 at 11:31:19 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Add CSV output mode. > > Signed-off-by: Tvrtko Ursulin > Cc: Caleb Callaway Reviewed-by: Kamil Konieczny > --- > man/intel_gpu_top.rst | 3 ++ >

Re: [Intel-gfx] [PATCH i-g-t 1/3] intel_gpu_top: Do not repeat header lines in non-interactive output

2023-02-07 Thread Kamil Konieczny
Signed-off-by: Tvrtko Ursulin > Cc: Caleb Callaway Reviewed-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 19 ++- > 1 file changed, 14 insertions(+), 5 deletions(-) > > diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c > index 0a1de

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/3] intel_gpu_top: Rename STDOUT to TEXT

2023-02-07 Thread Kamil Konieczny
On 2023-02-03 at 11:16:35 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Internal cleanup only - the name text is more accurate given the output > can also go to a file. > > Signed-off-by: Tvrtko Ursulin > Cc: Caleb Callaway Lgtm, Reviewed-by: Kamil Konie

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool

2023-02-06 Thread Kamil Konieczny
Hi Tvrtko, On 2023-02-06 at 09:19:02 +, Tvrtko Ursulin wrote: > > On 03/02/2023 16:42, Kamil Konieczny wrote: > > Hi Tvrtko, > > > > On 2023-01-31 at 11:32:37 +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > Rudimentary

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 8/8] gputop: Basic vendor agnostic GPU top tool

2023-02-03 Thread Kamil Konieczny
Hi Tvrtko, On 2023-01-31 at 11:32:37 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Rudimentary vendor agnostic example of how lib_igt_drm_clients can be used > to display a sorted by card and usage list of processes using GPUs. > > Borrows a bit of code from intel_gpu_top but for now

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/perf: Exercise barrier race

2023-02-02 Thread Kamil Konieczny
Hi Janusz, On 2023-02-01 at 20:16:11 +0100, Janusz Krzysztofik wrote: > Hi Kamil, > > On Wednesday, 1 February 2023 19:21:57 CET Kamil Konieczny wrote: > > Hi Janusz, > > > > please send patches to igt ML and add other addresses to cc: > > I have one nit, see be

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/perf: Exercise barrier race

2023-02-01 Thread Kamil Konieczny
Hi Janusz, please send patches to igt ML and add other addresses to cc: I have one nit, see below. On 2023-01-31 at 10:17:31 +0100, Janusz Krzysztofik wrote: > Add a new subtest focused on exercising interaction between perf open / > close operations, which replace active barriers with perf reque

Re: [Intel-gfx] [PATCH i-g-t 1/2] i915/perf: Stress opening of new perf streams against existing contexts

2023-01-31 Thread Kamil Konieczny
Hi, On 2023-01-31 at 10:17:30 +0100, Janusz Krzysztofik wrote: > From: Chris Wilson > > Try opening the perf stream while there is a flurry of activity on the > system, both new and old contexts. This will exercise the ability of the > driver to modify those contexts to work with perf. > > Refe

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 5/6] intel_gpu_top: Fix cleanup on old kernels / unsupported GPU

2023-01-30 Thread Kamil Konieczny
Hi, On 2023-01-30 at 10:55:42 +, Tvrtko Ursulin wrote: > > On 27/01/2023 16:10, Kamil Konieczny wrote: > > Hi Tvrtko, > > > > On 2023-01-27 at 11:12:40 +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > Avoid trying

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 6/6] lib/igt_device_scan: Improve Intel discrete GPU selection

2023-01-30 Thread Kamil Konieczny
Hi, On 2023-01-30 at 11:04:07 +, Tvrtko Ursulin wrote: > > On 27/01/2023 16:17, Kamil Konieczny wrote: > > Hi Tvrtko, > > > > On 2023-01-27 at 11:12:41 +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > Now that DRM sub

Re: [Intel-gfx] [PATCH i-g-t 1/6] intel_gpu_top: Fix man page formatting

2023-01-27 Thread Kamil Konieczny
dy -o option description. > * Update dates. > * Convert the filter list to table. > > Signed-off-by: Tvrtko Ursulin > Reviewed-by: Kamil Konieczny # v1 --- ^ Remove this addition at end, s/ # v1// Man page looks much bette

Re: [Intel-gfx] [PATCH i-g-t 6/6] lib/igt_device_scan: Improve Intel discrete GPU selection

2023-01-27 Thread Kamil Konieczny
er name instead. > > Caveat that the driver key was on a blacklist so far, and although I can't > imagine it can be slow to probe, this is something to double check. > > Signed-off-by: Tvrtko Ursulin > Cc: Kamil Konieczny > Cc: Zbigniew KempczyƄski Please send t

Re: [Intel-gfx] [PATCH i-g-t 5/6] intel_gpu_top: Fix cleanup on old kernels / unsupported GPU

2023-01-27 Thread Kamil Konieczny
Hi Tvrtko, On 2023-01-27 at 11:12:40 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Avoid trying to dereference null engines on exit when there are either > none which are supported, or kernel does not have i915 PMU support. > > Also fix a memory leak on the same failure path just so V

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/4] intel_gpu_top: Fix man page formatting

2023-01-26 Thread Kamil Konieczny
Hi, On 2023-01-26 at 16:09:29 +, Tvrtko Ursulin wrote: > > On 26/01/2023 15:39, Kamil Konieczny wrote: > > On 2023-01-12 at 17:47:27 +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > New lines are not respected when rst2man generat

Re: [Intel-gfx] [PATCH i-g-t 0/8] Vendor agnostic gputop

2023-01-26 Thread Kamil Konieczny
Hi, please rebase and resend, also please change commit subject to start with lib: or lib/[name of lib changed]: rest od commit description For example, in 3/8 instead of libdrmclients: Record client drm minor write: lib/igt_drm_clients: Record client drm minor If there are more lib changes, use

Re: [Intel-gfx] [PATCH i-g-t 0/4] Some intel_gpu_top tweaks

2023-01-26 Thread Kamil Konieczny
On 2023-01-12 at 17:47:26 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Mostly by popular demand from > https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/109, although for > some of these changes I'd like some second opinions. For instance is it user > friendly to change the def

Re: [Intel-gfx] [PATCH i-g-t 4/4] intel_gpu_top: Aggregate engine classes in all output modes

2023-01-26 Thread Kamil Konieczny
> Signed-off-by: Tvrtko Ursulin > Cc: Dmitry Rogozhkin Reviewed-by: Kamil Konieczny > --- > tools/intel_gpu_top.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c > index e91b47baf72b..7aa233570463 10

Re: [Intel-gfx] [PATCH i-g-t 3/4] intel_gpu_top: Add command line switch to start in physical engine mode

2023-01-26 Thread Kamil Konieczny
On 2023-01-12 at 17:47:29 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Default mode is to aggreate engines per class but some users would prefer > to be able to start in physical engine mode too. > > Signed-off-by: Tvrtko Ursulin > Cc: Dmitry Rogozhkin Reviewe

  1   2   >