[igt-dev] [PATCH i-g-t 1/6] lib/intel_chipset: identify Elkhart Lake

Chris Wilson chris at chris-wilson.co.uk
Tue Feb 18 18:47:07 UTC 2020


Quoting Lionel Landwerlin (2020-02-17 14:21:50)
> We'll need to identify this platform for performance tools.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  lib/intel_chipset.h     | 1 +
>  lib/intel_device_info.c | 8 +++++++-
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
> index 2bd57f4f..929fac53 100644
> --- a/lib/intel_chipset.h
> +++ b/lib/intel_chipset.h
> @@ -71,6 +71,7 @@ struct intel_device_info {
>         bool is_cometlake : 1;
>         bool is_cannonlake : 1;
>         bool is_icelake : 1;
> +       bool is_elkhartlake : 1;
>         bool is_tigerlake : 1;
>         const char *codename;
>  };
> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
> index 4f96577d..07eeb7c5 100644
> --- a/lib/intel_device_info.c
> +++ b/lib/intel_device_info.c
> @@ -309,6 +309,12 @@ static const struct intel_device_info intel_icelake_info = {
>         .codename = "icelake"
>  };
>  
> +static const struct intel_device_info intel_elkhartlake_info = {
> +       .gen = BIT(10),
> +       .is_elkhartlake = true,
> +       .codename = ""

.codename = "elkhartlake"

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the igt-dev mailing list