Re: [PATCH] drm/i915/pmu: Return -EINVAL when selecting the inactive CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Tvrtko Ursulin (2017-11-28 10:55:15)
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> In commit 0426c0465461 ("drm/i915/pmu: Only allow running on a single
> CPU") I attempted to clarify the CPU hotplug logic in our PMU
> implementation, but missed that a more logical error to return, when
> attempting to initialize an event on a currently inactive CPU, is -EINVAL
> rather than -ENODEV.
> 
> This is because i915 PMU explicitly disallows running counters on more
> than one CPU at a time, and is not reporting that the requested CPU does
> not exist, or is off-line.

I would have mentioned that perf core also reports EINVAL for running on
an absent processor. (Or whatever exactly the reason that UP returned a
different error code).
 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> Reported-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux