delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/17/05:03:27

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=yhRGy4DGdjQRPMq5bHzAl9DlnIZZX6zH8GMPy0H+TwVE4AgHe7byf
RF5Fc+ezjU5s1PoEnsWB2iPTWTqhSrml5acl0/p6MaycFA4Lg82iDoGo4uc2P5SJ
kAenUmWcSEHjobunKPRqLFk2GfJP7Fx8scJGL4VEw27/w1Z4iPDSiM=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=gL3QU2cnpSKiQMdkgpfkSYJ+BD8=; b=xDrtOqYLpHP31AJaNbfShYEBDaw/
UJSOCdi1pZOFdVlfKXw6TSDZtpyV8mSPjKXOmSW82UenW9GQS9O0j4D3KtCaccD6
3CyQZZw7pIBVnWJzXMZ2RrG+I8nuXquPzyHBccHHL3uBw3TBMKGdKCT+617XJ+SH
IPxDRN/MsrrYu/o=
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=-3.7 required=5.0 tests=AWL,BAYES_50,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 17 Aug 2015 11:03:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Shares with strange ACL settings
Message-ID: <20150817090307.GA17167@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <878u9g9y6b DOT fsf AT Rainer DOT invalid> <20150812183220 DOT GO13029 AT calimero DOT vinschen DOT de> <87vbck8h92 DOT fsf AT Rainer DOT invalid> <20150813163302 DOT GB28349 AT calimero DOT vinschen DOT de> <20150813175302 DOT GD28349 AT calimero DOT vinschen DOT de> <20150814082959 DOT GE28349 AT calimero DOT vinschen DOT de> <loom DOT 20150814T125223-728 AT post DOT gmane DOT org> <20150814134552 DOT GG28349 AT calimero DOT vinschen DOT de> <87bne8d1tm DOT fsf AT Rainer DOT invalid> <loom DOT 20150817T102111-51 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20150817T102111-51@post.gmane.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 17 08:27, Achim Gratz wrote:
> Achim Gratz <Stromeko <at> nexgo.de> writes:
> > The output is correct now for a SandyBridge dual-core CPU with
> > logical processors (aka HT) and an IvyBridge dual-core CPU w/o HT.
>=20
> Another IvyBridge dual-core w/ HT looks also correct.
>=20
> However, for the Piledriver Opteron 6328 in the 2012R2 server, Cygwin
> reports 8 cores.  Linux on the other hand would report 8 processors on 4
> cores (SMT, like HT on Intel).  I don't know where you get the topology
> information from,

The code is loosly based on what the Linux kernel does, combined with
the information given in

http://wiki.osdev.org/Detecting_CPU_Topology_%2880x86%29

So on AMD the topo is taken from cpuids 0x80000008 and 0x00000001,
but I may have made a mistake there.

[...digging...]

Oh, ok.  It seems I accidentally dropped a piece of code there.  Can you
do me a favor and run the following test application?  I just need the
value your Piledrive CPU returns in ecx returned by cpuid 0x80000008:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#include <stdio.h>
#include <stdint.h>

static inline void __attribute ((always_inline))
cpuid (uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d,
       uint32_t ain, uint32_t cin)
{
 asm volatile ("cpuid"
               : "=3Da" (*a), "=3Db" (*b), "=3Dc" (*c), "=3Dd" (*d)
               : "a" (ain), "c" (cin));
}

int
main ()
{
  uint32_t eax, ebx, ecx, edx;

  cpuid (&eax, &ebx, &ecx, &edx, 0x80000008, 0);
  printf ("0x80000008    %08x %08x %08x %08x\n", eax, ebx, ecx, edx);
}
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--sm4nu43k4a2Rpi4c
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJV0aNLAAoJEPU2Bp2uRE+gJMcP/1XjRzV/xOTNPUzR4KDzuSE+
XkCSB5F0ajx+6LYLHqc1dGbFAYsI8LJ/2YNaUed57XlfKJeo6/yu5IDGCABp45g4
HFVpenHs4NYReqXY9lf/IcLQkoxh1anIHGt6OWBhMOvZWn+yztKgKBeZC2APS405
qu6jdn+V7xmvThRFkB7wJsNCaE/IPoZRwRdNMiIDPd7bFY67CfzVYyzhbgNRKqHr
go3iDblR1+mRgHZgIFan8jJOdt76orhfiHJwOqa8Kevd8z6XFk7VbMHP25A0sS0s
I1nihpNzakVGzcVI9t+bUTRLbuhYgLtntWvZUerXSgBO5bycxirm4NBgFm1yMWCd
4WQI1fz6MtdWjR6WxovtpzHBVsvjL9Feox9QltSHeP5rTkHwppwrJLdYcg7koTRc
NOoKI6S88ytmXfztIDCZTnnjuZ+t5feuvqU0HDSh02nPg7lhPJv9JZ6l21Uapl3u
rrUdW6Id5HoeCV6bSbRXBBE7R0VaIyA9eSj1w0eowOL21qvDT9DsP9oQ8eroffCp
Cq5qbyByP94kTTSCqY60GDyF+jDZel6jq9/LEehFfqPUHFU0rlaB+0dgWv9m3LUZ
/r/GEu3f4uuAZ8WAYxKVbrdyHsv/173tF86t99U+6WobmhBeljeA2dVEAPDiBV5f
DHCkHYgoclX5dMQL8AHZ
=pf0a
-----END PGP SIGNATURE-----

--sm4nu43k4a2Rpi4c--

- Raw text -


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