Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org, zbigniew.kempczynski@intel.com,
	mchehab@kernel.org
Subject: Re: [igt-dev] [i-g-t] lib/xe/xe_query: Fix the return type of xe_dev_id
Date: Thu, 16 Mar 2023 14:36:53 +0530	[thread overview]
Message-ID: <4c335f90-e548-2fad-f413-4b0ac4e8b48e@intel.com> (raw)
In-Reply-To: <20230316084552.2433948-1-bhanuprakash.modem@intel.com>

Hi Mauro,

As discussed offline, I am adding your R-b:
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>

- Bhanu

On Thu-16-03-2023 02:15 pm, Bhanuprakash Modem wrote:
> Since we are truncating the rev_dev_id value to 16 bit, the return
> type of xe_dev_id() must be uint16_t.
> 
> Fixes: cfec580a8
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> ---
>   lib/xe/xe_query.c | 2 +-
>   lib/xe/xe_query.h | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
> index e27d14383..183523280 100644
> --- a/lib/xe/xe_query.c
> +++ b/lib/xe/xe_query.c
> @@ -472,7 +472,7 @@ xe_dev_FN(xe_va_bits, va_bits, uint32_t);
>    *
>    * Returns Device id of xe device @fd.
>    */
> -xe_dev_FN(xe_dev_id, dev_id, uint32_t);
> +xe_dev_FN(xe_dev_id, dev_id, uint16_t);
>   
>   igt_constructor
>   {
> diff --git a/lib/xe/xe_query.h b/lib/xe/xe_query.h
> index 13ac77d3d..beea9d094 100644
> --- a/lib/xe/xe_query.h
> +++ b/lib/xe/xe_query.h
> @@ -88,7 +88,7 @@ bool xe_has_vram(int fd);
>   uint64_t xe_vram_size(int fd, int gt);
>   uint32_t xe_get_default_alignment(int fd);
>   uint32_t xe_va_bits(int fd);
> -uint32_t xe_dev_id(int fd);
> +uint16_t xe_dev_id(int fd);
>   bool xe_supports_faults(int fd);
>   const char *xe_engine_class_string(uint32_t engine_class);
>   


  reply	other threads:[~2023-03-16  9:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-16  8:45 [igt-dev] [i-g-t] lib/xe/xe_query: Fix the return type of xe_dev_id Bhanuprakash Modem
2023-03-16  9:06 ` Modem, Bhanuprakash [this message]
2023-03-16  9:39 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-03-16 11:08 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=4c335f90-e548-2fad-f413-4b0ac4e8b48e@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mchehab@kernel.org \
    --cc=zbigniew.kempczynski@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox