Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v6] intel-gpu-top: Rewrite the tool to be safe to use

2018-04-23 Thread Rinat Ibragimov
ring. > >A short history on how this came to be: > >There was a recent external patch contribution from Rinat Ibragimov to >support more platforms from the existing intel_gpu_top. But as the tool >is not safe to use Chris Wilson suggested to maybe just replace it. > >As it h

Re: [Intel-gfx] [PATCH i-g-t v5] intel-gpu-top: Rewrite the tool to be safe to use

2018-04-04 Thread Rinat Ibragimov
>Среда, 4 апреля 2018, 12:48 +03:00 от Tvrtko Ursulin : > >v5: Tried this version on Skylake on Linux 4.16, and it works. Engines "busy" metric behaves as expected. Render/3D goes up when something intensive happens on a screen. Video goes up when I use VA-API-enabled video players, and increases

Re: [Intel-gfx] [PATCH i-g-t v3] intel-gpu-top: Rewrite the tool to be safe to use

2018-03-30 Thread Rinat Ibragimov
>Четверг, 29 марта 2018, 21:46 +03:00 от Tvrtko Ursulin : > >+#define engine_ptr(engines, n) \ >+((struct engine *)((unsigned char *)(&engines->engine) + (n) * sizeof(struct >engine))) I think (&engines->engine + (n)) is easier to read. >+if (fd < 0 && !cnt->optional) >+return -1; I've tried

Re: [Intel-gfx] [igt-dev] [RFC i-g-t] intel-gpu-top: Rewrite the tool to be safe to use

2018-03-28 Thread Rinat Ibragimov
>Среда, 28 марта 2018, 21:30 +03:00 от Tvrtko Ursulin : > >+static struct engines *discover_engines(void) > { >-uint32_t devid = pci_dev->device_id; >-uint16_t gcfgc; >+const char *sysfs_root = "/sys/devices/i915/events"; Just a question. I think, I have Linux 4.15.11 (from Debian testing) now.

Re: [Intel-gfx] [PATCH] Add second DRI driver name (DRI2DriverVDPAU)

2013-08-29 Thread Rinat Ibragimov
Среда, 28 августа 2013, 16:26 -07:00 от Eric Anholt : > Rinat Ibragimov writes: > > > Понедельник, 26 августа 2013, 16:22 -07:00 от Eric Anholt : > >> Rinat Ibragimov writes: > >> > >> > Понедельник, 26 августа 2013, 13:40 -07:00 от Eric Anholt

Re: [Intel-gfx] [PATCH] Add second DRI driver name (DRI2DriverVDPAU)

2013-08-27 Thread Rinat Ibragimov
Понедельник, 26 августа 2013, 16:22 -07:00 от Eric Anholt : > Rinat Ibragimov writes: > > > Понедельник, 26 августа 2013, 13:40 -07:00 от Eric Anholt : > >> Ибрагимов Ринат writes: > >> > >> > libvdpau uses second DRI driver name to determine which V

Re: [Intel-gfx] [PATCH] Add second DRI driver name (DRI2DriverVDPAU)

2013-08-26 Thread Rinat Ibragimov
Понедельник, 26 августа 2013, 13:40 -07:00 от Eric Anholt : > Ибрагимов Ринат writes: > > > libvdpau uses second DRI driver name to determine which VDPAU driver > > to use. This patch will allow libvdpau choose libvdpau_i965.so on systems > > with Intel GPUs, libvdpau_nvidia.so on those with nVid

Re: [Intel-gfx] [PATCH] Add second DRI driver name (DRI2DriverVDPAU)

2013-08-26 Thread Rinat Ibragimov
Ping. Пятница, 16 августа 2013, 14:31 +04:00 от Ибрагимов Ринат: > libvdpau uses second DRI driver name to determine which VDPAU driver > to use. This patch will allow libvdpau choose libvdpau_i965.so on systems > with Intel GPUs, libvdpau_nvidia.so on those with nVidia ones, and so on. > I'm ex

Re: [Intel-gfx] [PATCH] Add second DRI driver name (DRI2DriverVDPAU)

2013-08-19 Thread Rinat Ibragimov
Ping. Пятница, 16 августа 2013, 14:31 +04:00 от Ибрагимов Ринат: > libvdpau uses second DRI driver name to determine which VDPAU driver > to use. This patch will allow libvdpau choose libvdpau_i965.so on systems > with Intel GPUs, libvdpau_nvidia.so on those with nVidia ones, and so on. > I'm exp