Re: [Mesa-dev] [PATCH 1/3] gallium/hud: fix a problem where objects are free'd while in use.

2016-11-07 Thread Steven Toth
On Mon, Nov 7, 2016 at 12:32 PM, Nicolai Hähnle wrote: > Looks good to me as well, and pushed! Thanks for the respin and sorry it > took so long. You are very welcome. No apology necessary. Thank you for your due diligence and prior feedback. -- Steven Toth - Kernel Lab

Re: [Mesa-dev] [PATCH 1/3] gallium/hud: fix a problem where objects are free'd while in use.

2016-11-07 Thread Steven Toth
be cc 13.0 ? It's buggy with 13.0 and it will be a nice fix I'm the new guy, so I don't get to make that call, but given the nature of the fix (for some applications multiple multiple surfaces) - I'd certainly recommend it. -- Steven Toth - Kernel Labs http://www.kernellabs.com

Re: [Mesa-dev] [PATCH 3/3] gallium/hud: protect against and initialization race

2016-11-07 Thread Steven Toth
>> A humble ping on this and the two others. >> >> - Steve >> > > Series looks OK to me. > > Reviewed-by: Brian Paul > > Need me to push these for you? > > -Brian > That would be a helpful, yes please. I think they fell through the cracks af

Re: [Mesa-dev] [PATCH 3/3] gallium/hud: protect against and initialization race

2016-11-07 Thread Steven Toth
On Mon, Oct 24, 2016 at 10:10 AM, Steven Toth wrote: > In the event that multiple threads attempt to install a graph > concurrently, protect the shared list. > > Signed-off-by: Steven Toth A humble ping on this and the two others. - Steve -- Steven Toth - Kern

Re: [Mesa-dev] [PATCH 2/3] gallium/hud: close a previously opened handle

2016-11-07 Thread Steven Toth
On Mon, Oct 24, 2016 at 10:10 AM, Steven Toth wrote: > We're missing the closedir() to the matching opendir(). > > Signed-off-by: Steven Toth A humble ping on this and the two others. - Steve -- Steven Toth - Kernel Labs http://www.kernellabs.com > --- > src/g

Re: [Mesa-dev] [PATCH 1/3] gallium/hud: fix a problem where objects are free'd while in use.

2016-11-07 Thread Steven Toth
On Mon, Oct 24, 2016 at 10:10 AM, Steven Toth wrote: > Instead of trying to maintain a reference counted list of valid HUD > objects, and freeing them accordingly, creating race conditions > between unanticipated multiple threads, simply accept they're > allocated once and nev

[Mesa-dev] [PATCH 3/3] gallium/hud: protect against and initialization race

2016-10-27 Thread Steven Toth
In the event that multiple threads attempt to install a graph concurrently, protect the shared list. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 12 ++-- src/gallium/auxiliary/hud/hud_diskstat.c | 13 +++-- src/gallium/auxiliary/hud

[Mesa-dev] [PATCH 2/3] gallium/hud: close a previously opened handle

2016-10-24 Thread Steven Toth
We're missing the closedir() to the matching opendir(). Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 1 + src/gallium/auxiliary/hud/hud_diskstat.c | 5 - src/gallium/auxiliary/hud/hud_nic.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH 1/3] gallium/hud: fix a problem where objects are free'd while in use.

2016-10-24 Thread Steven Toth
ce between multiple threads, so accept they're always available for use. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 13 - src/gallium/auxiliary/hud/hud_diskstat.c | 13 - src/gallium/auxiliary/hud/hud_nic.c | 13 ---

Re: [Mesa-dev] [PATCH 2/3] gallium/hud: fix a previously allocated handle.

2016-10-24 Thread Steven Toth
>> + if (!pdir) { >> + close(dir); > > > Shouldn't this be closedir(dir)? Whoops, Thank you for catching this. I'll re-issue the patch-set momentarily with this adjustment. -- Steven Toth - Kernel Labs http://www.kernellabs.com _

[Mesa-dev] [PATCH 1/3] gallium/hud: fix a problem where objects are free'd while in use.

2016-10-20 Thread Steven Toth
ce between multiple threads, so accept they're always available for use. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 13 - src/gallium/auxiliary/hud/hud_diskstat.c | 13 - src/gallium/auxiliary/hud/hud_nic.c | 13 ---

[Mesa-dev] [PATCH 2/3] gallium/hud: fix a previously allocated handle.

2016-10-20 Thread Steven Toth
We're missing the closedir() to the matching opendir(). Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 1 + src/gallium/auxiliary/hud/hud_diskstat.c | 5 - src/gallium/auxiliary/hud/hud_nic.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH 3/3] gallium/hud: protect against and initialization race

2016-10-20 Thread Steven Toth
In the event that multiple threads attempt to install a graph concurrently, protect the shared list. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 12 ++-- src/gallium/auxiliary/hud/hud_diskstat.c | 13 +++-- src/gallium/auxiliary/hud

[Mesa-dev] [PATCH] gallium/hud: Sensor extension is segfaulting.

2016-10-13 Thread Steven Toth
order, a use case not witnessed with glxgears. These patches: 1. mutex protect the internal object lists. 2. reference count object access for destruction purposes. Patchset tested with glxgears/demo and unigine. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 33

Re: [Mesa-dev] [PATCH] gallium/hud: bugfix: 68169 - Sensor extensions segfaults.

2016-10-13 Thread Steven Toth
humb is that functions associated to a Yep. Done. > Thanks for looking into this! Thank you for the review. I should have a patch available shortly. -- Steven Toth - Kernel Labs http://www.kernellabs.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] gallium/hud: bugfix: 68169 - Sensor extensions segfaults.

2016-10-12 Thread Steven Toth
'd when no more callers require them. Patchset was regression tested again with Unigine, glxgears and glxdemo. Tested-By: Christoph Haag Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 8 ++-- src/gallium/auxiliary/hud/hud_diskstat.c | 10 +++-

Re: [Mesa-dev] [Bug 98169] lm_sensors hud option crashes unigine heaven

2016-10-09 Thread Steven Toth
bugzilla account tomorrow (monday) and repo/remedy this issue. Thanks for raising it. -- Steven Toth - Kernel Labs http://www.kernellabs.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] gallium/hud: Remove superfluous debug

2016-10-06 Thread Steven Toth
No longer required. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_cpufreq.c | 9 - src/gallium/auxiliary/hud/hud_diskstat.c | 8 src/gallium/auxiliary/hud/hud_nic.c | 16 src/gallium/auxiliary/hud/hud_sensors_temp.c | 19

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-30 Thread Steven Toth
LAGS="-lsensors" >> +else >> +LIBSENSORS_LDFLAGS="" >> +fi >> +AC_SUBST(LIBSENSORS_LDFLAGS) > You want the LIBS variable, LDFLAGS is something else. Ahh. hmm, OK. I'll look into this. > > >> endif >> >>

Re: [Mesa-dev] [PATCH] gallium/hud: Add power sensor support

2016-09-30 Thread Steven Toth
> > Reviewed-by: Brian Paul > > and pushed to master. Thanks. Thank you Brian. -- Steven Toth - Kernel Labs http://www.kernellabs.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] gallium/hud: Add support for CPU frequency monitoring

2016-09-30 Thread Steven Toth
Detect all of the CPUs in the system. Expose metrics for min, max and current frequency in Hz. Signed-off-by: Steven Toth --- src/gallium/auxiliary/Makefile.sources | 1 + src/gallium/auxiliary/hud/hud_context.c | 13 ++ src/gallium/auxiliary/hud/hud_cpufreq.c | 266

[Mesa-dev] [PATCH] gallium/hud: Add power sensor support

2016-09-29 Thread Steven Toth
Implement support for power based sensors, reporting units in milli-watts and watts. Also, minor cleanup - change the related if block to a switch. Tested with two different power sensors, including the nouveau 'power1' sensors on a GTX950 card. Signed-off-by: Steven Toth --- s

[Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-28 Thread Steven Toth
change is opt out by default. Signed-off-by: Steven Toth --- configure.ac | 42 +++ src/gallium/auxiliary/Makefile.am| 2 + src/gallium/auxiliary/Makefile.sources | 3 + src/gallium/auxiliary/hud/hud_context.c | 73 + src/gallium

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-28 Thread Steven Toth
> I found just a few more nit-picks below. With those fixed (if appropriate), > Reviewed-by: Brian Paul > > I'll push the patch for you then. All reasonable requests, thank you. I'll take care of these later this afternoon. -- Steven Toth - Kernel Labs htt

[Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-28 Thread Steven Toth
face RX/TX transfer statistics as a percentage of the overall NIC speed. 3. lmsensor power, voltage and temperature sensors. The lmsensor changes makes a dependency on libsensors so support for the change is opt out by default. Signed-off-by: Steven Toth --- co

Re: [Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-28 Thread Steven Toth
On Tue, Sep 27, 2016 at 8:03 PM, Brian Paul wrote: > On 09/27/2016 05:17 PM, Steven Toth wrote: >> >> On Fri, Sep 23, 2016 at 12:19 PM, Brian Paul wrote: >>> >>> Hi Steven, >>> >>> I did a more thorough review per your request... >> >&

Re: [Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-28 Thread Steven Toth
else if (sscanf(name, "sensors_temp_cu-%s", arg_name) == 1) { > hud_sensors_temp_graph_install(pane, arg_name, ... > > as you did in other places? Ahh, I did indeed misunderstand your comment. You are correct, an obvious oversight on my part. I've take

Re: [Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-27 Thread Steven Toth
c - which is all it cares about. I'm happy to implement whatever the project recommends, so are you suggesting instead: #define SOMEPREFIX "sensors_temp_cu-" then hud_sensors_temp_graph_install(pane, &name[sizeof(SOMEPREFIX - 1)] Or, have I misunderstood y

[Mesa-dev] [PATCH 2/2] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-27 Thread Steven Toth
V5: Feedback based on peer review convert sprintf to snprintf convert char * to const char * int arg converted to bool Func changes to take a filename vs a larger struct. omit the space between '*' and the param name. Signed-off-by: Steven Toth --- src/gallium/auxiliary/hud/hud_

[Mesa-dev] [PATCH 1/2] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-27 Thread Steven Toth
changes makes a dependency on libsensors so support for the change is opt out by default. Signed-off-by: Steven Toth --- configure.ac | 42 +++ src/gallium/auxiliary/Makefile.am| 2 + src/gallium/auxiliary/Makefile.sources | 3 + src/gallium

Re: [Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-23 Thread Steven Toth
RX/TX transfer statistics as a percentage >> of the overall NIC speed. >> 3. lmsensor power, voltage and temperature sensors. >> >> The lmsensor changes makes a dependency on libsensors so support >> so the change is opt out by default. >> >> Signed-off-by: Ste

Re: [Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
> V3: Flatten the entire patchset ready for the ML Compile tested on Windows via AppVeyor Patches tested in various ./configure disable/enable modes on Ubuntu 16.04, 4.5.7 kernel on 32bit. Many thanks to everyone who provided feedback. -- Steven Toth - Kernel Labs http://www.kernellabs.

[Mesa-dev] [PATCH v3] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
support so the change is opt out by default. Signed-off-by: Steven Toth --- configure.ac | 42 +++ src/gallium/auxiliary/Makefile.am| 2 + src/gallium/auxiliary/Makefile.sources | 3 + src/gallium/auxiliary/hud/hud_context.c | 73

Re: [Mesa-dev] AppVeyor fails with 404 during wget

2016-09-13 Thread Steven Toth
>> It looks like the winflexbison URL changed some time ago. But this >> didn't cause any build failures because the ZIP was being recovered from >> the cache. >> >> I'll look into it. >> >> Jose > > > It looks the archive was moved into a old_versions subdir. > > The attached patch should fix it.

[Mesa-dev] AppVeyor fails with 404 during wget

2016-09-13 Thread Steven Toth
ds enabled. So, not sure why others aren't seeing this. Feel free to point out any dumb mistake I've made. FYI. -- Steven Toth - Kernel Labs http://www.kernellabs.com +1.646.355.8490 ___ mesa-dev mailing list mesa-dev@lists.f

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
hanks again. >> > You're welcome and please don't let my 'lack of interest' deter you. > There's plenty of people who are glad to see/use your work. Deterred, not at all. I thank you for your feedback. Yes, it will be good to finally share the code with ot

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
> On 12 September 2016 at 19:33, Steven Toth wrote: >> Three new features: >> 1. Disk/block I/O device read/write stats MB/ps. >> 2. Network Interface RX/TX transfer statistics as a percentage >>of the overall NIC speed. >> 3. lmsensor power, voltage and tempe

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
> well it won't for your GPU, it is currently Fermi (GF100+) only. > > I guess I will add support for it later then > ok. I'm not too familiar with the nvidia architectures. Should a GTX 950 card on a 4.6+ kernel expose those newer features? -- Steven T

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Steven Toth
; Well in the end I could also try to extend your patch and give you my > changes on top of yours. Thanks for the feedback. I'm running 4.5.7. I'll run up a 4.6 kernel today and report back. If the power sensor appears then I'll add a new patch. -- Steven Toth - Kernel Labs h

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-12 Thread Steven Toth
(emerg = +135.0°C, hyst = +5.0°C) In fact, I don't seem to have any dev boxes that expose power. That's a odd. If you want to recommend a specific nvidia card/model that you know for certain exposes these features then I'll see what I can do. -- Steven Toth - Kernel Labs h

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-12 Thread Steven Toth
> Can you enclose all the unix-specific parts in #ifdef PIPE_OS_UNIX to allow > this to build for Windows? > > -Brian Brian, thank you for your feedback. Whoops! Yes, I'll take care of this. -- Steven Toth - Kernel Labs http://www.kernellabs.co

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-12 Thread Steven Toth
es recommended. That being said, I'm not sure I fully understand what you mean. Can you please be more specific? If the nouveau driver is exposing a specific set of sensors that you'd like me to test, I'd be happy to do this and report back or adapt the patchset according

[Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-12 Thread Steven Toth
opt out by default. Signed-off-by: Steven Toth --- configure.ac | 20 ++ src/gallium/auxiliary/Makefile.am| 4 + src/gallium/auxiliary/Makefile.sources | 3 + src/gallium/auxiliary/hud/hud_context.c | 67 src/gallium/auxiliary/hud