All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Das, Nirmoy" <nirmoy.das@linux.intel.com>
To: Matthew Auld <matthew.william.auld@gmail.com>,
	Nirmoy Das <nirmoy.das@intel.com>
Cc: igt-dev@lists.freedesktop.org, Chris Wilson <chris.p.wilson@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v2 1/2] lib/i915: Add graphics release subversion to device info
Date: Wed, 6 Jul 2022 12:11:58 +0200	[thread overview]
Message-ID: <2dd9c226-a57f-c196-9865-56978c2037b2@linux.intel.com> (raw)
In-Reply-To: <CAM0jSHMzBdOjsby5-KRdK0kunMf6PBUYYyUqKP0vMWx0V=0VtA@mail.gmail.com>


On 7/6/2022 11:17 AM, Matthew Auld wrote:
> On Fri, 1 Jul 2022 at 13:30, Nirmoy Das <nirmoy.das@intel.com> wrote:
>> Record the minor inremental changes between the major gen12 platforms as
>> a release version.
> incremental?
>
>> v2: add missing "," to last struct member and move
>> graphics_rel next to graphics_ver.
>>
>> Suggested-by: Chris Wilson <chris.p.wilson@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> ---
>>   lib/intel_chipset.h     |  4 ++++
>>   lib/intel_device_info.c | 11 ++++++++++-
>>   2 files changed, 14 insertions(+), 1 deletion(-)
>>
>> diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
>> index 06f732110..d7a6ff190 100644
>> --- a/lib/intel_chipset.h
>> +++ b/lib/intel_chipset.h
>> @@ -38,6 +38,7 @@ uint32_t intel_get_drm_devid(int fd);
>>
>>   struct intel_device_info {
>>          unsigned graphics_ver;
>> +       unsigned graphics_rel;
>>          unsigned display_ver;
>>          unsigned gt; /* 0 if unknown */
>>          bool has_4tile : 1;
>> @@ -90,6 +91,7 @@ struct intel_device_info {
>>   const struct intel_device_info *intel_get_device_info(uint16_t devid) __attribute__((pure));
>>
>>   unsigned intel_gen(uint16_t devid) __attribute__((pure));
>> +unsigned intel_graphics_ver(uint16_t devid) __attribute__((pure));
>>   unsigned intel_display_ver(uint16_t devid) __attribute__((pure));
>>
>>   extern enum pch_type intel_pch;
>> @@ -107,6 +109,8 @@ void intel_check_pch(void);
>>   #define HAS_CPT (intel_pch == PCH_CPT)
>>   #define HAS_LPT (intel_pch == PCH_LPT)
>>
>> +#define IP_VER(ver, rel)               ((ver) << 8 | (rel))
>> +
>>   /* Exclude chipset #defines, they just add noise */
>>   #ifndef __GTK_DOC_IGNORE__
>>
>> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
>> index bfdd9fa5c..536707252 100644
>> --- a/lib/intel_device_info.c
>> +++ b/lib/intel_device_info.c
>> @@ -385,13 +385,15 @@ static const struct intel_device_info intel_rocketlake_info = {
>>
>>   static const struct intel_device_info intel_dg1_info = {
>>          .graphics_ver = 12,
>> +       .graphics_rel = 10,
>>          .display_ver = 12,
>>          .is_dg1 = true,
>> -       .codename = "dg1"
>> +       .codename = "dg1",
>>   };
>>
>>   static const struct intel_device_info intel_dg2_info = {
>>          .graphics_ver = 12,
>> +       .graphics_rel = 55,
>>          .display_ver = 13,
>>          .has_4tile = true,
>>          .is_dg2 = true,
>> @@ -583,6 +585,13 @@ unsigned intel_gen(uint16_t devid)
>>          return intel_get_device_info(devid)->graphics_ver ?: -1u;
>>   }
> We should also update ats_m with _rel?


I will resend with that plus the typo fix.


Thanks,

Nirmoy

>
>> +unsigned intel_graphics_ver(uint16_t devid)
>> +{
>> +       const struct intel_device_info *info = intel_get_device_info(devid);
>> +
>> +       return IP_VER(info->graphics_ver, info->graphics_rel);
>> +}
> I was just looking for such a helper,
> Acked-by: Matthew Auld <matthew.auld@intel.com>
>
>> +
>>   /**
>>    * intel_display_ver:
>>    * @devid: pci device id
>> --
>> 2.35.1
>>
>> Intel Deutschland GmbH
>> Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
>> Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
>> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
>> Chairperson of the Supervisory Board: Nicole Lau
>> Registered Office: Munich
>> Commercial Register: Amtsgericht Muenchen HRB 186928
>>

  reply	other threads:[~2022-07-06 10:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 12:29 [igt-dev] [PATCH i-g-t v2 1/2] lib/i915: Add graphics release subversion to device info Nirmoy Das
2022-07-01 12:29 ` [igt-dev] [PATCH i-g-t 2/2] i915/gem_exec_fence: Support dg2+ batch predication Nirmoy Das
2022-07-06 11:47   ` Zbigniew Kempczyński
2022-07-01 13:35 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,v2,1/2] lib/i915: Add graphics release subversion to device info Patchwork
2022-07-02  7:06 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-06  9:17 ` [igt-dev] [PATCH i-g-t v2 1/2] " Matthew Auld
2022-07-06 10:11   ` Das, Nirmoy [this message]
2022-07-06 10:49 ` Zbigniew Kempczyński

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=2dd9c226-a57f-c196-9865-56978c2037b2@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=chris.p.wilson@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.william.auld@gmail.com \
    --cc=nirmoy.das@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.