Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Erico Nunes <nunes.erico@gmail.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	igt-dev@lists.freedesktop.org,
	Erico Nunes <nunes.erico@gmail.com>,
	anarsoul@gmail.com, yuq825@gmail.com, lima@lists.freedesktop.org,
	Petri Latvala <adrinael@adrinael.net>
Subject: Re: [igt-dev] [PATCH i-g-t v2 3/3] tests/lima: Add initial tests for lima
Date: Tue, 6 Jun 2023 16:51:39 +0200	[thread overview]
Message-ID: <CAK4VdL0++Pch_7xW_u2KFGTC_XkmzaxAzbsphyBHMM09GXvufw@mail.gmail.com> (raw)
In-Reply-To: <20230605111738.stcgxju5kjqkdjyi@kamilkon-desk1>

Hi Kamil,

On Mon, Jun 5, 2023 at 1:18 PM Kamil Konieczny
<kamil.konieczny@linux.intel.com> wrote:
> > +             map = igt_lima_mmap_bo(fd, bo->handle, size, PROT_READ | PROT_WRITE);
> --------------- ^
> In your current implementation you can get NULL here.
>
> > +             memset(map, 0xd0, size);
> > +             munmap(map, size);
> > +             igt_lima_free_bo(fd, bo);
> > +
> > +             /* Now, allocate a BO on the other fd and make sure it doesn't
> > +              * have the old contents.
> > +              */
> > +             bo = igt_lima_gem_new(fd2, size);
> > +             map = igt_lima_mmap_bo(fd2, bo->handle, size, PROT_READ | PROT_WRITE);
> --------------- ^
> Same here, mey be NULL.
>
> > +             for (i = 0; i < size / 4; i++)
> -------------------------------------- ^
> It may be also sizeof(map[0]) instead of 4.

Thanks for the review. I'll send a v3 addressing these and the reviews
on previous patches in this series.
I just didn't do some of the changes pointed out here as I carried it
on as-is from the v3d/panfrost tests which I used as a reference. But
I can address they here for the initial lima tests.

Thanks

Erico

  reply	other threads:[~2023-06-06 14:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-26 12:59 [igt-dev] [PATCH i-g-t v2 0/3] Initial tests for the lima drm driver Erico Nunes
2023-05-26 12:59 ` [igt-dev] [PATCH i-g-t v2 1/3] lib: Add support for opening lima devices Erico Nunes
2023-06-05 10:51   ` Kamil Konieczny
2023-05-26 13:00 ` [igt-dev] [PATCH i-g-t v2 2/3] lib/lima: Add lima helpers Erico Nunes
2023-06-05 11:03   ` Kamil Konieczny
2023-05-26 13:00 ` [igt-dev] [PATCH i-g-t v2 3/3] tests/lima: Add initial tests for lima Erico Nunes
2023-06-05 11:17   ` Kamil Konieczny
2023-06-06 14:51     ` Erico Nunes [this message]
2023-05-26 13:12 ` [igt-dev] ✗ GitLab.Pipeline: warning for Initial tests for the lima drm driver (rev2) Patchwork
2023-05-26 13:34 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-05-27  7:17 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-04 19:05 ` [igt-dev] [PATCH i-g-t v2 0/3] Initial tests for the lima drm driver Erico Nunes
2023-06-05  9:22   ` Zbigniew Kempczyński
2023-06-06 14:43     ` Erico Nunes

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=CAK4VdL0++Pch_7xW_u2KFGTC_XkmzaxAzbsphyBHMM09GXvufw@mail.gmail.com \
    --to=nunes.erico@gmail.com \
    --cc=adrinael@adrinael.net \
    --cc=anarsoul@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lima@lists.freedesktop.org \
    --cc=yuq825@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox