delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/14/11:08:31

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=No0ICbDAHlf0ZanU
gKSEzA0/4qkvqTfWkEbvOr6ucJYeM3SdNfHl4fFuOccU3Z2PMT2OMseGmkTboWLv
pXcXyEXvyBupWRDUmw8P7Z0Tv9n0viF8APvP1HjvF/jBzMeaE34Y71o7xSic2/2e
1UrLKn1rixaGoM81AKC3U0SDbt4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=btaMwNwKaUzTSQmmiZZzVK
UwO2I=; b=QLsS4Tt12hciHxVkH/bMdmM+qGQCuVJilpsoCpcg+RtVJmHt8sd67/
68OIBdn/2TjqViY8SO1AjrrMNvixYRSNBD35YruosnLGQGm6XxcNvtkJ6YhMAKTv
9TMNhILwUv+x4nm1oer8Igrinl6ogSHwFdPVQNFkXkAhc+eKV5Bbw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*Ad:D*ca, Via, Specification, H*r:ip*192.168.1.100
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.3 cv=cav8UELM c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=7vT8eNxyAAAA:8 a=pGLkceISAAAA:8 a=w_pzkKWiAAAA:8 a=yMhMjlubAAAA:8 a=zd2uoN0lAAAA:8 a=a4NEJbfMAAAA:8 a=lqXA0cpKH03qwY_CP90A:9 a=QEXdDO2ut3YA:10 a=Mzmg39azMnTNyelF985k:22 a=sRI3_1zDfAgwuvI8zelB:22
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: failure notice
References: <CAH8yC8nrV4i1wOzeBbXDKMJpdfsN-8ZubiN=R7Yow4cBDmG5wQ AT mail DOT gmail DOT com> <5ad17051 DOT cf55650a DOT 73c5d DOT c3e7SMTPIN_ADDED_MISSING AT mx DOT google DOT com> <CAH8yC8=H9ZcZtJFSOmNFq4WXQN5S6FG_gNwurr7fJ=5-GwYCMg AT mail DOT gmail DOT com> <a37c0e51-d617-51a1-ffa0-4fa650268082 AT SystematicSw DOT ab DOT ca> <CAAD4mYh+Yy0K1WMdsbGk-LwBUdFB5q9_05J4TzGv0xxyGD28ug AT mail DOT gmail DOT com>
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <e8e91b98-3825-9556-2640-5439b5965478@SystematicSw.ab.ca>
Date: Sat, 14 Apr 2018 09:08:14 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <CAAD4mYh+Yy0K1WMdsbGk-LwBUdFB5q9_05J4TzGv0xxyGD28ug@mail.gmail.com>
X-CMAE-Envelope: MS4wfATkj0HU8e/85H0Snc25qkAUpO2sZd47UnFa/AEMvGZJjr9jdBh6ukI4zrKsiIS6dJMLOgR45WTwXioCysbyTFELuHz12U5PAuvwcEOb0V2Xz9qGJJ8Z /5zpX7dUtcTIYVQFlEdDvXw7We03uoWXdNt20xRpWyxsbl1Nn0F+mb+i728yuqjHLmHxb4fhz9indQ==
X-IsSubscribed: yes

On 2018-04-13 23:00, R0b0t1 wrote:
> On Fri, Apr 13, 2018 at 10:51 PM, Brian Inglis
> <Brian DOT Inglis AT systematicsw DOT ab DOT ca> wrote:
>> On 2018-04-13 21:10, Jeffrey Walton wrote:
>>>> On Fri, Apr 13, 2018 at 8:36 PM, Jeffrey Walton <noloader AT gmail DOT com> wrote:
>>>>> On Fri, Apr 13, 2018 at 7:51 AM, Corinna Vinschen
>>>>> <corinna-cygwin AT cygwin DOT com> wrote:
>>>>>> On Apr 12 23:01, Jeffrey Walton wrote:
>>>>>>> I'm working on an AMD A6-9220 and seeing unusual results from
>>>>>>> /proc/cpuinfo. I think this may be an issue with the latest Cygwin. It
>>>>>>> may be present in earlier versions, too.
>>>>>>> Russinovich's coreinfo is shown below
>>>>>>> (https://docs.microsoft.com/en-us/sysinternals/downloads/coreinfo).
>>>>>>> Notice /proc/cpuinfo is missing aesni, pclmul, rdrand, SSE4.1, SSE4.2,
>>>>>>> AVX, etc.
>>>>>> Note that, in theory, cpuinfo has to be extended for each new CPU
>>>>>> generation.  That's a lot of work for marginal gain (Cygwin's not a real
>>>>>> kernel) so I'm doing this only very seldomly.
>>>>>> Patches welcome, of course!

I noticed that AMD cpuinfo lost cache size info at some point in the past.

>>>>> Thanks Corinna. I think I found the file of interest at fhandler_proc.cc.
>>>>> Whitespace is a bit off. It is a mix of tabs and space:
>>>>>       if (features1 & (1 << 0))
>>>>>     print (" fpu");
>>>>>       if (features1 & (1 << 1))
>>>>>     print (" vme");
>>>>> Should I perform a whitespace check-in before things begin? Or can you
>>>>> knock it out?
>>>> The attachment is pp 572-74 from AMD's Programmer's Guide, Volume 3,
>>>> General-Purpose and System Instructions (December 2017)
>>>> (https://support.amd.com/TechDocs/24594.pdf). I believe it has the all
>>>> the necessary information.
>>>> Are there any objections to using it?

How else could AMD cpuid function results be decoded?
See also Appendix E Obtaining Processor Information Via the CPUID Instruction.

>>> Any ideas how to get this through? It is a three page PDF extracted from the
>>> AMD manual. It has the necessary information for the CPUID updates.
>> Just include the link to Appendix D section 2 from the ToC:
>> https://support.amd.com/TechDocs/24594.pdf#G14.931059

PDF readers e.g. {mu,q,x}pdf, gv, gsview, normally have ways to extract pages in
other formats; otherwise copy and paste can be used, preferably to a spreadsheet
program to handle tables properly, before saving in another format.

> He may be concerned about the longterm availability of the referenced passages.

That document has snapshots on the Wayback machine at archive.org; but see
Appendix E Obtaining Processor Information Via the CPUID Instruction ibid.
https://support.amd.com/TechDocs/24594.pdf#G15.998445
"The information in this appendix supersedes the contents of the CPUID
Specification, order #25481, which is now obsolete."

One of the nice features of the amd64 cpuid instruction is that the architecture
is augmented to add meaning to formerly undefined or reserved functions, fields,
or bits, that can be used efficiently as specified, unlike the adhoc approaches
and lookups required for some i64 info.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019