All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Schopp <jschopp@austin.ibm.com>
To: paulus@samba.org, anton@samba.org, akpm@osdl.org
Cc: linuxppc64-dev@lists.linuxppc.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ppc64 SMT bugfix
Date: Tue, 27 Jul 2004 13:44:12 -0500	[thread overview]
Message-ID: <4106A27C.3060306@austin.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

This patch is fairly straightforward.  maxcpus should be per SMT thread 
and not per physical processor.  SUSE picked this up back in May (was 
discussed on ppc64 mailing list) and has had no trouble with it.


Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>

[-- Attachment #2: smtjul27.patch --]
[-- Type: text/plain, Size: 484 bytes --]

diff -Nru a/arch/ppc64/kernel/smp.c b/arch/ppc64/kernel/smp.c
--- a/arch/ppc64/kernel/smp.c	Tue Jul 27 13:44:45 2004
+++ b/arch/ppc64/kernel/smp.c	Tue Jul 27 13:44:45 2004
@@ -422,7 +422,11 @@
 	}
 
 	maxcpus = ireg[num_addr_cell + num_size_cell];
-	/* DRENG need to account for threads here too */
+
+	/* Double maxcpus for processors which have SMT capability */
+	if (cur_cpu_spec->cpu_features & CPU_FTR_SMT)
+		maxcpus *= 2;
+
 
 	if (maxcpus > NR_CPUS) {
 		printk(KERN_WARNING

             reply	other threads:[~2004-07-27 23:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-27 18:44 Joel Schopp [this message]
2004-07-29  5:52 ` [PATCH] ppc64 SMT bugfix Anton Blanchard

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=4106A27C.3060306@austin.ibm.com \
    --to=jschopp@austin.ibm.com \
    --cc=akpm@osdl.org \
    --cc=anton@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc64-dev@lists.linuxppc.org \
    --cc=paulus@samba.org \
    /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.