[i-g-t] perf: Treat Cometlake as an alias for Coffeelake
diff mbox series

Message ID 20200124170337.346187-1-chris@chris-wilson.co.uk
State New
Headers show
Series
  • [i-g-t] perf: Treat Cometlake as an alias for Coffeelake
Related show

Commit Message

Chris Wilson Jan. 24, 2020, 5:03 p.m. UTC
The kernel doesn't differentiate between the Coffeelake and Cometlake
platforms, but igt does. Add the alias for perf to use the Coffeelake
register set for Cometlake.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
 tests/perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lionel Landwerlin Jan. 24, 2020, 5:11 p.m. UTC | #1
Thanks.
Hopefully I'll a series soon getting rid of all this special case stuff.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>


On 24/01/2020 19:03, Chris Wilson wrote:
> The kernel doesn't differentiate between the Coffeelake and Cometlake
> platforms, but igt does. Add the alias for perf to use the Coffeelake
> register set for Cometlake.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> ---
>   tests/perf.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/perf.c b/tests/perf.c
> index a837551cb..f1f9b7cea 100644
> --- a/tests/perf.c
> +++ b/tests/perf.c
> @@ -955,7 +955,7 @@ init_sys_info(void)
>   			}
>   		} else if (IS_GEMINILAKE(devid)) {
>   			test_set_uuid = "dd3fd789-e783-4204-8cd0-b671bbccb0cf";
> -		} else if (IS_COFFEELAKE(devid)) {
> +		} else if (IS_COFFEELAKE(devid) || IS_COMETLAKE(devid)) {
>   			switch (intel_gt(devid)) {
>   			case 1:
>   				test_set_uuid = "74fb4902-d3d3-4237-9e90-cbdc68d0a446";

Patch
diff mbox series

diff --git a/tests/perf.c b/tests/perf.c
index a837551cb..f1f9b7cea 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -955,7 +955,7 @@  init_sys_info(void)
 			}
 		} else if (IS_GEMINILAKE(devid)) {
 			test_set_uuid = "dd3fd789-e783-4204-8cd0-b671bbccb0cf";
-		} else if (IS_COFFEELAKE(devid)) {
+		} else if (IS_COFFEELAKE(devid) || IS_COMETLAKE(devid)) {
 			switch (intel_gt(devid)) {
 			case 1:
 				test_set_uuid = "74fb4902-d3d3-4237-9e90-cbdc68d0a446";