Skip to contentSkip to conversation

Fix #ifdef check for _SC_AVPHYS_PAGES in intel_get_avail_ram_mb()

PATCH Daniel Vetter 3 participants 3 messages Jan 5, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Alan Coopersmith

Check for the sysconf value used here, not the one used in the previous function.

Thanks for the patches, all merged. Aside: Do you really run all the testcases on solaris or wouldn't it be better to just disable them? And please cc intel-gfx for igt patches and Thomas Wood (who's doing maintainer duties for it now) in the future.

Thanks, Daniel

Quoted 20 lines
---
 lib/intel_os.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/intel_os.c +1 -2
index db7889b..1badd3e 100644
@@ -112,7 +112,7 @@ intel_get_avail_ram_mb(void)
 
  retval = sysinf.freeram;
  retval *= sysinf.mem_unit;
-#elif defined(_SC_PAGESIZE) && defined(_SC_PHYS_PAGES) /* Solaris */
+#elif defined(_SC_PAGESIZE) && defined(_SC_AVPHYS_PAGES) /* Solaris */
  long pagesize, npages;
 
  pagesize = sysconf(_SC_PAGESIZE);
--

1.7.9.2

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 10 lines · Daniel Vetter
Quoted 4 lines · Alan Coopersmith

Check for the sysconf value used here, not the one used in the previous function.

Thanks for the patches, all merged. Aside: Do you really run all the testcases on solaris or wouldn't it be better to just disable them? And please cc intel-gfx for igt patches and Thomas Wood (who's doing maintainer duties for it now) in the future.

Thanks - and I'm not actually sure which of the tests our intel driver porting team run on Solaris, I was just trying to reduce the number of bits that failed to build altogether. (Though I'm sure some that build will fail at runtime since they won't be able to open files in debugfs on Solaris.)

Signature · 6 lines
	-Alan Coopersmith-              [email protected]
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw
Quoted 12 lines · Alan Coopersmith
Quoted 10 lines · Daniel Vetter
Quoted 4 lines · Alan Coopersmith

Check for the sysconf value used here, not the one used in the previous function.

Thanks for the patches, all merged. Aside: Do you really run all the testcases on solaris or wouldn't it be better to just disable them? And please cc intel-gfx for igt patches and Thomas Wood (who's doing maintainer duties for it now) in the future.

Quoted 6 lines

Thanks - and I'm not actually sure which of the tests our intel driver porting team run on Solaris, I was just trying to reduce the number of bits that failed to build altogether. (Though I'm sure some that build will fail at runtime since they won't be able to open files in debugfs on Solaris.)

We don't run any of the tests in intel-gpu-tools due to various
incompatibilities, and currently opt for a small set of "sanity" tests that are specific to Solaris.

There was an intent to investigate these tests more closely once we
had a stable environment, but haven't yet undertaken that task (mostly due to the limited resources available to do the work). A couple of the tools themselves have been quite useful, though.

        ---- Randy

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx