Author Topic: Hardware Enumerator [pre-release]  (Read 41069 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hardware Enumerator [pre-release]
« Reply #90 on: July 19, 2018, 04:03:35 PM »
Version 8 works fine here. I won't post an image as I have to keep an eye on the disk usage but it all seems to match this 2 years old Haswell I am using, memory size is right, networking looks correct etc ....
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #91 on: July 19, 2018, 04:04:22 PM »

             5) Display card is not showing - what Display adapter is showing inside the XP's device manager ? - I'am interested to know please



 8)


Most of the drivers are VirtualBox drivers, I only had to install SDCard and USB3 drivers.


« Last Edit: July 20, 2018, 03:36:13 AM by zedd151 »
Regards, zedd.
:tongue:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hardware Enumerator [pre-release]
« Reply #92 on: July 19, 2018, 04:05:39 PM »
Z,

Do me a favour, when you post a new image would you delete the old one as I must keep an eye on the total disk usage.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #93 on: July 19, 2018, 04:08:06 PM »
Z,

Do me a favour, when you post a new image would you delete the old one as I must keep an eye on the total disk usage.


Okay, gotcha.  :t
Regards, zedd.
:tongue:

aw27

  • Guest
Re: Hardware Enumerator [pre-release]
« Reply #94 on: July 19, 2018, 04:41:11 PM »
It is possible to use DropBox for image direct links (Zed found the trick for ZIPs but works as well for images :t)

This is for XP Sp3 in VMware



One note: XP does not support AVX and AVX2. AVX2 is not ticked here but is ticked for Zed's AMD.

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #95 on: July 19, 2018, 05:27:50 PM »
It is possible to use DropBox for image direct links (Zed found the trick for ZIPs but works as well for images :t )


I had forgotten about that, until I looked at the url for the image. ( dl=1 )





Quote
One note: XP does not support AVX and AVX2. AVX2 is not ticked here but is ticked for Zed's AMD.


I'm special that way.   8)
Actually I think that the virtual machines are furbarring the results.  I'm running VirtualBox for my XP
Regards, zedd.
:tongue:

Raistlin

  • Member
  • ****
  • Posts: 552
Re: Hardware Enumerator [pre-release]
« Reply #96 on: July 19, 2018, 05:52:05 PM »
Quote
If you are running under a VM / Hypervisor (e.g. Hyper-V), it may disable support for various instruction sets (including OS-XSAVE) in order to facilitate migration across hardware
- http://support.sisoftware.net/knowledgebase.php?article=70

It's interesting that Virtual Box did not disable AVX for the known OS, in this case XP :icon_eek: - as CPUID
is still reporting support. I assume a compiler would change the executable header if AVX instructions are
detected in code - to then exclude XP as a run-time. So no damage there either way. Thanks for the reminder
about AVX support AW.

Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

aw27

  • Guest
Re: Hardware Enumerator [pre-release]
« Reply #97 on: July 19, 2018, 06:00:53 PM »
You need the xgetbv instruction to check for OS support.

Code: [Select]

avxSupported proc uses ebx

mov eax, 1
cpuid
bt  ecx, 27
jnc @exitfalse
xor ecx, ecx
xgetbv
and eax, 6
cmp eax, 6
jne @exitfalse
mov eax, 1
cpuid
bt ecx, 28
jnc @exitfalse
mov eax, 1
ret
@exitfalse:
mov eax, 0
ret
avxSupported endp


zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #98 on: July 19, 2018, 06:17:38 PM »
You need the xgetbv instruction to check for OS support.



Does xgetbv work on AMD as well, the docs I looked at said Intel and IA32, but no mention of AMD.


I'll have to research further as 'xgetbv' is new to me.


edit = typo
Regards, zedd.
:tongue:

aw27

  • Guest
Re: Hardware Enumerator [pre-release]
« Reply #99 on: July 19, 2018, 06:26:04 PM »
AMD has to support  xgetbv,  :biggrin:

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #100 on: July 19, 2018, 06:30:40 PM »
AMD has to support  xgetbv,  :biggrin:


Well, the info is hard to come by.  :P


I did find this piece on github, it's copyrighted and in C(++ ?) but it is of interest here I think.


cpuid.go


raistlin is off busy tracking a bug.


The xgetbv references are near the end of the source code.
Regards, zedd.
:tongue:

aw27

  • Guest
Re: Hardware Enumerator [pre-release]
« Reply #101 on: July 19, 2018, 06:36:24 PM »
Test it then. I am sure it will say NO in XP and say YES in Windows 7.

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #102 on: July 19, 2018, 06:41:55 PM »
AVX not supported.   :P    xp - virtual box


I'll be back from 7 and/or 10.   :badgrin:


AVX supported  :biggrin:  Windows 7 Ultimate 32 bit native install





AVX supported Windows 10 Home 64 bit -  but we already knew that.   :P
Regards, zedd.
:tongue:

aw27

  • Guest
Re: Hardware Enumerator [pre-release]
« Reply #103 on: July 19, 2018, 06:49:54 PM »
Nothing wrong with Virtual Box then.  :t

zedd151

  • Member
  • *****
  • Posts: 1968
Re: Hardware Enumerator [pre-release]
« Reply #104 on: July 19, 2018, 06:52:45 PM »
Nothing wrong with Virtual Box then.  :t


Are you inferring that raistlin writes buggy code? 
Regards, zedd.
:tongue: