[PATCH i-g-t v1] Add support for runtime pm for xe driver

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Mar 6 13:51:00 UTC 2025


Hi Soham,
On 2025-03-06 at 16:57:54 +0530, Soham Purkait wrote:

add prefix 'tools/intel_pm_rpm:' in subject, so it will be:

[PATCH i-g-t v1] tools/intel_pm_rpm: Add support for Xe driver

> Add support for runtime power management
> for Xe driver.
> 

Add here your s-o-b:

Soham Purkait <soham.purkait at intel.com>

Please use checkpatch.pl for some obvious corrections like this,
you can find this script in Linux kernel sources, also read
CONTRIBUTING.md in i-g-t sources for some options for checkpatch.

> ---
>  tools/intel_pm_rpm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/intel_pm_rpm.c b/tools/intel_pm_rpm.c
> index 08c25ca8a..945247d2e 100644
> --- a/tools/intel_pm_rpm.c
> +++ b/tools/intel_pm_rpm.c
> @@ -151,7 +151,7 @@ int main(int argc, char *argv[])
>  			goto exit;
>  		}
>  	} else {
> -		if (!igt_device_find_first_i915_discrete_card(&card)) {
> +		if (!igt_device_find_first_i915_discrete_card(&card) && !igt_device_find_first_xe_discrete_card(&card)) {

Split this line:
		if (!igt_device_find_first_i915_discrete_card(&card) &&
		    !igt_device_find_first_xe_discrete_card(&card)) {

Btw should we also add support for other cards in multi-GPU
case? If yes this is some more work for another patch.

Regards,
Kamil

>  			igt_warn("No discrete gpu found\n");
>  			ret = EXIT_FAILURE;
>  			goto exit;
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list