All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: igt-dev@lists.freedesktop.org, nicholas.choi@amd.com,
	Petri Latvala <petri.latvala@intel.com>,
	Mark Yacoub <markyacoub@google.com>
Subject: Re: [igt-dev] [PATCH i-g-t 44/50] tests/kms_cursor_legacy: Adopt to use allocator
Date: Fri, 30 Jul 2021 06:04:27 +0200	[thread overview]
Message-ID: <20210730040427.GA4915@zkempczy-mobl2> (raw)
In-Reply-To: <20210723142621.rvln6c65wkz2o6cd@outlook.office365.com>

On Fri, Jul 23, 2021 at 10:26:21AM -0400, Rodrigo Siqueira wrote:
> Hi Kempczyński,
> 
> I tried part of this series in an AMD device, and it introduces a
> regression in the basic-flip-before-cursor-legacy (probably other tests
> will start to fail on AMD). For the new version, could you split this
> series in two? One dedicated to generic changes and kms tests, and the
> other focused on i915? This will make it easier to review.

Hi Rodrigo.

Change in kms_cursor_legacy adds supporting allocator in spinner code
(.ahnd = ahnd). get_reloc_ahnd() asks for supporting relocations 
in i915 so maybe this is root cause of the failure. 

Which subtests from kms_cursor_legacy you're using? Could you verify
if you'll replace:

uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);

to 

uint64_t ahnd = (flags & BASIC_BUSY) ? get_reloc_ahnd(display->drm_fd, 0) : 0;

issue will be solved?

--
Zbigniew


> 
> Thanks
> Siqueira
> 
> On 07/22, Zbigniew Kempczyński wrote:
> > For newer gens we're not able to rely on relocations. Adopt to use
> > offsets acquired from the allocator.
> > 
> > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> > Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > Cc: Petri Latvala <petri.latvala@intel.com>
> > ---
> >  tests/kms_cursor_legacy.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
> > index 75a822c4e..4f96c880e 100644
> > --- a/tests/kms_cursor_legacy.c
> > +++ b/tests/kms_cursor_legacy.c
> > @@ -517,6 +517,7 @@ static void basic_flip_cursor(igt_display_t *display,
> >  	struct igt_fb fb_info, cursor_fb, cursor_fb2, argb_fb;
> >  	unsigned vblank_start;
> >  	enum pipe pipe = find_connected_pipe(display, false);
> > +	uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);
> >  	igt_spin_t *spin;
> >  	int i, miss1 = 0, miss2 = 0, delta;
> >  
> > @@ -548,6 +549,7 @@ static void basic_flip_cursor(igt_display_t *display,
> >  		spin = NULL;
> >  		if (flags & BASIC_BUSY)
> >  			spin = igt_spin_new(display->drm_fd,
> > +					    .ahnd = ahnd,
> >  					    .dependency = fb_info.gem_handle);
> >  
> >  		/* Start with a synchronous query to align with the vblank */
> > @@ -631,6 +633,7 @@ static void basic_flip_cursor(igt_display_t *display,
> >  		igt_remove_fb(display->drm_fd, &argb_fb);
> >  	if (cursor_fb2.gem_handle)
> >  		igt_remove_fb(display->drm_fd, &cursor_fb2);
> > +	put_ahnd(ahnd);
> >  }
> >  
> >  static int
> > @@ -1319,6 +1322,7 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
> >  	igt_pipe_t *pipe_connected = &display->pipes[pipe];
> >  	igt_plane_t *plane_primary = igt_pipe_get_plane_type(pipe_connected, DRM_PLANE_TYPE_PRIMARY);
> >  	igt_crc_t crcs[2], test_crc;
> > +	uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);
> >  
> >  	if (atomic)
> >  		igt_require(display->is_atomic);
> > @@ -1366,6 +1370,7 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
> >  		igt_spin_t *spin;
> >  
> >  		spin = igt_spin_new(display->drm_fd,
> > +				    .ahnd = ahnd,
> >  				    .dependency = fb_info[1].gem_handle);
> >  
> >  		vblank_start = kmstest_get_vblank(display->drm_fd, pipe, DRM_VBLANK_NEXTONMISS);
> > @@ -1394,6 +1399,7 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
> >  	igt_remove_fb(display->drm_fd, &fb_info[1]);
> >  	igt_remove_fb(display->drm_fd, &fb_info[0]);
> >  	igt_remove_fb(display->drm_fd, &cursor_fb);
> > +	put_ahnd(ahnd);
> >  }
> >  
> >  igt_main
> > -- 
> > 2.26.0
> > 
> > _______________________________________________
> > igt-dev mailing list
> > igt-dev@lists.freedesktop.org
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Figt-dev&amp;data=04%7C01%7CRodrigo.Siqueira%40amd.com%7C6366312ccbdd43100f5508d94ceb7447%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637625396414642323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=R2iz0dMHtT1gFkwGURao9culnzc0EkXARVVqVe1JP28%3D&amp;reserved=0
> 
> -- 
> Rodrigo Siqueira
> https://siqueira.tech
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2021-07-30  4:04 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  8:31 [igt-dev] [PATCH i-g-t 00/50] Add allocator support in IGT Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 01/50] lib/igt_dummyload: Add support of using allocator in igt spinner Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 02/50] lib/intel_allocator: Add few helper functions for common use Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 03/50] lib/igt_gt: Add passing ahnd as an argument to igt_hang Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 04/50] lib/intel_batchbuffer: Add allocator support in blitter fast copy Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 05/50] lib/intel_batchbuffer: Add allocator support in blitter src copy Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 06/50] lib/huc_copy: Extend huc copy prototype to pass allocator handle Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 07/50] tests/gem_bad_reloc: Skip on gens where relocations are not supported Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 08/50] tests/gem_busy: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:31 ` [igt-dev] [PATCH i-g-t 09/50] tests/gem_create: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 10/50] tests/gem_ctx_engines: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 11/50] tests/gem_ctx_exec: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 12/50] tests/gem_ctx_freq: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 13/50] tests/gem_ctx_isolation: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 14/50] tests/gem_ctx_param: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 15/50] tests/gem_eio: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 16/50] tests/gem_exec_async: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 17/50] tests/gem_exec_big: Require relocation support Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 18/50] tests/gem_exec_capture: Support gens without relocations Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 19/50] tests/gem_exec_gttfill: Require relocation support Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 20/50] tests/gem_exec_store: Support gens without relocations Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 21/50] tests/gem_exec_suspend: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 22/50] tests/gem_exec_parallel: Adopt to use alloctor Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 23/50] tests/gem_exec_params: Support gens without relocations Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 24/50] tests/gem_mmap: Add allocator support Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 25/50] tests/gem_mmap_gtt: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 26/50] tests/gem_mmap_offset: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 27/50] tests/gem_mmap_wc: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 28/50] tests/gem_request_retire: Add allocator support Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 29/50] tests/gem_ringfill: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 30/50] tests/gem_softpin: Exercise eviction with softpinning Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 31/50] tests/gem_spin_batch: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 32/50] tests/gem_tiled_fence_blits: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 33/50] tests/gem_unfence_active_buffers: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 34/50] tests/gem_unref_active_buffers: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 35/50] tests/gem_wait: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 36/50] tests/gem_watchdog: Adopt to use no-reloc Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 37/50] tests/gem_workarounds: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 38/50] tests/i915_hangman: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 39/50] tests/i915_module_load: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 40/50] tests/i915_pm_rc6_residency: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 41/50] tests/i915_pm_rpm: Adopt to use no-reloc Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 42/50] tests/i915_pm_rps: Alter " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 43/50] tests/kms_busy: Adopt to use allocator Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 44/50] tests/kms_cursor_legacy: " Zbigniew Kempczyński
2021-07-23 14:26   ` Rodrigo Siqueira
2021-07-30  4:04     ` Zbigniew Kempczyński [this message]
2021-08-03 15:05       ` Rodrigo Siqueira
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 45/50] tests/kms_flip: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 46/50] tests/kms_vblank: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 47/50] tests/perf_pmu: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 48/50] tests/sysfs_heartbeat_interval: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 49/50] tests/sysfs_preempt_timeout: " Zbigniew Kempczyński
2021-07-22  8:32 ` [igt-dev] [PATCH i-g-t 50/50] tests/sysfs_timeslice_duration: " Zbigniew Kempczyński
2021-07-22  9:50 ` [igt-dev] ✗ Fi.CI.BAT: failure for Add allocator support in IGT Patchwork
2021-07-26 17:37 ` [igt-dev] [PATCH i-g-t 00/50] " Rodrigo Siqueira
2021-07-30  4:07   ` Zbigniew Kempczyński
2021-08-03 15:09     ` Rodrigo Siqueira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210730040427.GA4915@zkempczy-mobl2 \
    --to=zbigniew.kempczynski@intel.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=markyacoub@google.com \
    --cc=nicholas.choi@amd.com \
    --cc=petri.latvala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.