Re: [PATCH i-g-t 4/9] intel-gpu-overlay: Fix interrupts PMU readout

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

 



Quoting Tvrtko Ursulin (2017-10-10 10:30:03)
> From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
> ---
>  overlay/gem-interrupts.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/overlay/gem-interrupts.c b/overlay/gem-interrupts.c
> index a84aef0398a7..3eda24f4d7eb 100644
> --- a/overlay/gem-interrupts.c
> +++ b/overlay/gem-interrupts.c
> @@ -136,8 +136,12 @@ int gem_interrupts_update(struct gem_interrupts *irqs)
>                 else
>                         val = ret;
>         } else {
> -               if (read(irqs->fd, &val, sizeof(val)) < 0)
> +               uint64_t data[2];
> +
> +               if (read(irqs->fd, &data, sizeof(data)) < 0)

s/&data/data/

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