X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Shares with strange ACL settings
Message-ID: <20150817090307.GA17167@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <878u9g9y6b.fsf@Rainer.invalid> <20150812183220.GO13029@calimero.vinschen.de> <87vbck8h92.fsf@Rainer.invalid> <20150813163302.GB28349@calimero.vinschen.de> <20150813175302.GD28349@calimero.vinschen.de> <20150814082959.GE28349@calimero.vinschen.de> <loom.20150814T125223-728@post.gmane.org> <20150814134552.GG28349@calimero.vinschen.de> <87bne8d1tm.fsf@Rainer.invalid> <loom.20150817T102111-51@post.gmane.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c"
Content-Disposition: inline
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--
