All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Moger, Babu" <Babu.Moger@amd.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: "geoff@hostfission.com" <geoff@hostfission.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"mst@redhat.com" <mst@redhat.com>,
	"kash@tripleback.net" <kash@tripleback.net>,
	"mtosatti@redhat.com" <mtosatti@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Duran, Leo" <leo.duran@amd.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"rth@twiddle.net" <rth@twiddle.net>
Subject: Re: [PATCH v10 2/5] i386: Populate AMD Processor Cache Information for cpuid 0x8000001D
Date: Wed, 23 May 2018 16:18:17 +0000	[thread overview]
Message-ID: <DM5PR12MB24715AE7662F1F1D571832B9956B0@DM5PR12MB2471.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20180522140339.GC25013@localhost.localdomain>


> -----Original Message-----
> From: Eduardo Habkost [mailto:ehabkost@redhat.com]
> Sent: Tuesday, May 22, 2018 9:04 AM
> To: Moger, Babu <Babu.Moger@amd.com>
> Cc: Duran, Leo <leo.duran@amd.com>; mst@redhat.com;
> marcel.apfelbaum@gmail.com; pbonzini@redhat.com; rth@twiddle.net;
> mtosatti@redhat.com; qemu-devel@nongnu.org; kvm@vger.kernel.org;
> kash@tripleback.net; geoff@hostfission.com
> Subject: Re: [PATCH v10 2/5] i386: Populate AMD Processor Cache
> Information for cpuid 0x8000001D
> 
> On Tue, May 22, 2018 at 01:32:52PM +0000, Moger, Babu wrote:
> >
> > > -----Original Message-----
> > > From: Duran, Leo
> > > Sent: Monday, May 21, 2018 8:32 PM
> > > To: Moger, Babu <Babu.Moger@amd.com>; mst@redhat.com;
> > > marcel.apfelbaum@gmail.com; pbonzini@redhat.com; rth@twiddle.net;
> > > ehabkost@redhat.com; mtosatti@redhat.com
> > > Cc: qemu-devel@nongnu.org; kvm@vger.kernel.org;
> kash@tripleback.net;
> > > geoff@hostfission.com
> > > Subject: RE: [PATCH v10 2/5] i386: Populate AMD Processor Cache
> > > Information for cpuid 0x8000001D
> > >
> > > Babu,
> > >
> > > If num_sharing_l3_cache() uses MAX_NODES_EPYC, then that function
> It’s
> > > EPYC specific.
> > >
> > > An alternative would be to use a data member (e.g.,
> > > max_nodes_per_socket)) that get initialized (via another helper
> function) to
> > > MAX_NODES_EPYC.
> >
> > Thanks Leo.  Let me see how we can handle this. This requires changes in
> generic
> > Data structure which I tried to avoid here.  I will wait for all the comments
> for whole
> > series before making this change.  Note that right now, this feature is only
> enabled
> > for EPYC. Yes. I know this could this in future.
> 
> We just need a reasonable default, by now, and it can even be the
> same value used on EPYC.  This default just need to generate
> reasonable results for other cases that don't match real hardware
> (like cores=32 or cores=12).

Ok. Will change the name to bit generic for now and keep the defaults as in EPYC.
> 
> --
> Eduardo

WARNING: multiple messages have this Message-ID (diff)
From: "Moger, Babu" <Babu.Moger@amd.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: "Duran, Leo" <leo.duran@amd.com>,
	"mst@redhat.com" <mst@redhat.com>,
	"marcel.apfelbaum@gmail.com" <marcel.apfelbaum@gmail.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"rth@twiddle.net" <rth@twiddle.net>,
	"mtosatti@redhat.com" <mtosatti@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"kash@tripleback.net" <kash@tripleback.net>,
	"geoff@hostfission.com" <geoff@hostfission.com>
Subject: Re: [Qemu-devel] [PATCH v10 2/5] i386: Populate AMD Processor Cache Information for cpuid 0x8000001D
Date: Wed, 23 May 2018 16:18:17 +0000	[thread overview]
Message-ID: <DM5PR12MB24715AE7662F1F1D571832B9956B0@DM5PR12MB2471.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20180522140339.GC25013@localhost.localdomain>


> -----Original Message-----
> From: Eduardo Habkost [mailto:ehabkost@redhat.com]
> Sent: Tuesday, May 22, 2018 9:04 AM
> To: Moger, Babu <Babu.Moger@amd.com>
> Cc: Duran, Leo <leo.duran@amd.com>; mst@redhat.com;
> marcel.apfelbaum@gmail.com; pbonzini@redhat.com; rth@twiddle.net;
> mtosatti@redhat.com; qemu-devel@nongnu.org; kvm@vger.kernel.org;
> kash@tripleback.net; geoff@hostfission.com
> Subject: Re: [PATCH v10 2/5] i386: Populate AMD Processor Cache
> Information for cpuid 0x8000001D
> 
> On Tue, May 22, 2018 at 01:32:52PM +0000, Moger, Babu wrote:
> >
> > > -----Original Message-----
> > > From: Duran, Leo
> > > Sent: Monday, May 21, 2018 8:32 PM
> > > To: Moger, Babu <Babu.Moger@amd.com>; mst@redhat.com;
> > > marcel.apfelbaum@gmail.com; pbonzini@redhat.com; rth@twiddle.net;
> > > ehabkost@redhat.com; mtosatti@redhat.com
> > > Cc: qemu-devel@nongnu.org; kvm@vger.kernel.org;
> kash@tripleback.net;
> > > geoff@hostfission.com
> > > Subject: RE: [PATCH v10 2/5] i386: Populate AMD Processor Cache
> > > Information for cpuid 0x8000001D
> > >
> > > Babu,
> > >
> > > If num_sharing_l3_cache() uses MAX_NODES_EPYC, then that function
> It’s
> > > EPYC specific.
> > >
> > > An alternative would be to use a data member (e.g.,
> > > max_nodes_per_socket)) that get initialized (via another helper
> function) to
> > > MAX_NODES_EPYC.
> >
> > Thanks Leo.  Let me see how we can handle this. This requires changes in
> generic
> > Data structure which I tried to avoid here.  I will wait for all the comments
> for whole
> > series before making this change.  Note that right now, this feature is only
> enabled
> > for EPYC. Yes. I know this could this in future.
> 
> We just need a reasonable default, by now, and it can even be the
> same value used on EPYC.  This default just need to generate
> reasonable results for other cases that don't match real hardware
> (like cores=32 or cores=12).

Ok. Will change the name to bit generic for now and keep the defaults as in EPYC.
> 
> --
> Eduardo

  reply	other threads:[~2018-05-23 16:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22  0:41 [PATCH v10 0/5] i386: Enable TOPOEXT to support hyperthreading on AMD CPU Babu Moger
2018-05-22  0:41 ` [Qemu-devel] " Babu Moger
2018-05-22  0:41 ` [PATCH v10 1/5] i386: Clean up cache CPUID code Babu Moger
2018-05-22  0:41   ` [Qemu-devel] " Babu Moger
2018-05-22  0:41 ` [PATCH v10 2/5] i386: Populate AMD Processor Cache Information for cpuid 0x8000001D Babu Moger
2018-05-22  0:41   ` [Qemu-devel] " Babu Moger
2018-05-22  1:32   ` Duran, Leo
2018-05-22  1:32     ` [Qemu-devel] " Duran, Leo
2018-05-22 13:32     ` Moger, Babu
2018-05-22 13:32       ` [Qemu-devel] " Moger, Babu
2018-05-22 14:03       ` Eduardo Habkost
2018-05-22 14:03         ` [Qemu-devel] " Eduardo Habkost
2018-05-23 16:18         ` Moger, Babu [this message]
2018-05-23 16:18           ` Moger, Babu
2018-05-22 13:54   ` Eduardo Habkost
2018-05-22 13:54     ` [Qemu-devel] " Eduardo Habkost
2018-05-23 18:16     ` Moger, Babu
2018-05-23 18:16       ` [Qemu-devel] " Moger, Babu
2018-05-22  0:41 ` [PATCH v10 3/5] i386: Add support for CPUID_8000_001E for AMD Babu Moger
2018-05-22  0:41   ` [Qemu-devel] " Babu Moger
2018-05-22  0:41 ` [PATCH v10 4/5] i386: Enable TOPOEXT feature on AMD EPYC CPU Babu Moger
2018-05-22  0:41   ` [Qemu-devel] " Babu Moger
2018-05-22  0:41 ` [PATCH v10 5/5] i386: Remove generic SMT thread check Babu Moger
2018-05-22  0:41   ` [Qemu-devel] " Babu Moger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM5PR12MB24715AE7662F1F1D571832B9956B0@DM5PR12MB2471.namprd12.prod.outlook.com \
    --to=babu.moger@amd.com \
    --cc=ehabkost@redhat.com \
    --cc=geoff@hostfission.com \
    --cc=kash@tripleback.net \
    --cc=kvm@vger.kernel.org \
    --cc=leo.duran@amd.com \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.