All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib: intel: report GT size from the database if available
Date: Mon, 14 May 2018 16:50:10 +0100	[thread overview]
Message-ID: <a6b9fed3-92fa-e329-593c-ffdf86e0ffbb@intel.com> (raw)
In-Reply-To: <152631249623.18532.11999646930988436290@mail.alporthouse.com>

On 14/05/18 16:41, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2018-05-14 14:15:01)
>> Ping?
>>
>> On 20/03/18 13:47, Lionel Landwerlin wrote:
>>> The scheme if getting the GT size from the PCI-id doesn't work anymore
>>> on Coffeelake.
>>>
>>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
>>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105451, https://bugs.freedesktop.org/show_bug.cgi?id=101740
>>> ---
>>>    lib/intel_device_info.c | 9 +++++++++
>>>    1 file changed, 9 insertions(+)
>>>
>>> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
>>> index 1c710733..c104c9c4 100644
>>> --- a/lib/intel_device_info.c
>>> +++ b/lib/intel_device_info.c
>>> @@ -410,8 +410,17 @@ unsigned intel_gen(uint16_t devid)
>>>     */
>>>    unsigned intel_gt(uint16_t devid)
>>>    {
>>> +     const struct intel_device_info *devinfo = intel_get_device_info(devid);
>>>        unsigned mask = intel_gen(devid);
>>>    
>>> +     /* If in the database, just use that information. */
>>> +     if (devinfo->gt != 0)
>>> +             return devinfo->gt - 1;
>>> +
>>> +     /*
>>> +      * This scheme doesn't work on Coffeelake, we should probably
>>> +      * not rely on this anymore.
>>> +      */
> I don't get this comment in light of the above. If you are adding a
> preferred mechanism, why complain about the stuff you haven't convert?
> -Chris
>
I only added gt information on hsw+. So a number of devices won't have 
the information.
I do need to add it for CNL+ too, then this comment could be turn into 
an assert(gen < 8 && !haswell)

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-05-14 15:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 13:47 [igt-dev] [PATCH i-g-t 1/2] lib: intel: report GT size from the database if available Lionel Landwerlin
2018-03-20 13:47 ` [igt-dev] [PATCH i-g-t 2/2] tests/perf: print out GT size if unknown Lionel Landwerlin
2018-03-20 16:14 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib: intel: report GT size from the database if available Patchwork
2018-03-20 19:10 ` [igt-dev] ✗ Fi.CI.IGT: warning " Patchwork
2018-05-14 13:15 ` [igt-dev] [PATCH i-g-t 1/2] " Lionel Landwerlin
2018-05-14 15:41   ` Chris Wilson
2018-05-14 15:50     ` Lionel Landwerlin [this message]
2018-05-14 16:15       ` Chris Wilson
2018-05-15  9:18         ` Lionel Landwerlin

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=a6b9fed3-92fa-e329-593c-ffdf86e0ffbb@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    /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.