xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* pvops microcode support for AMD FAM >= 15
@ 2012-11-26 13:21 Ian Campbell
  0 siblings, 0 replies; 23+ messages in thread
From: Ian Campbell @ 2012-11-26 13:21 UTC (permalink / raw)
  To: xen-devel; +Cc: Jan Beulich, debian-kernel

Debian has decided to take Jeremy's microcode patch [0] as an interim
measure for their next release. (TL;DR -- Debian is shipping pvops Linux
3.2 and Xen 4.1 in the next release. See http://bugs.debian.org/693053
and https://lists.debian.org/debian-devel/2012/11/msg00141.html for some
more background).

However the patch is a bit old and predates the use introduction of
separate firmware files for AMD family >= 15h. Looking at the SuSE
forward ported classic Xen patches it seems like the following patch is
all that is required. But it seems a little too simple to be true and I
don't have any such processors to test on.

Jan, can you recall if it really is that easy on the kernel side ;-)

Ian.

[0]
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=shortlog;h=refs/heads/upstream/microcode

commit 109cf37876567ef346c0ecde8b473e7ad1e74e07
Author: Ian Campbell <ijc@hellion.org.uk>
Date:   Mon Nov 26 09:41:02 2012 +0000

    microcode_xen: Add support for AMD family >= 15h
    
    Signed-off-by: Ian Campbell <ijc@hellion.org.uk>

diff --git a/arch/x86/kernel/microcode_xen.c b/arch/x86/kernel/microcode_xen.c
index 9d2a06b..2b8a78a 100644
--- a/arch/x86/kernel/microcode_xen.c
+++ b/arch/x86/kernel/microcode_xen.c
@@ -74,7 +74,11 @@ static enum ucode_state xen_request_microcode_fw(int cpu, struct device *device)
 		break;
 
 	case X86_VENDOR_AMD:
-		snprintf(name, sizeof(name), "amd-ucode/microcode_amd.bin");
+		/* Beginning with family 15h AMD uses family-specific firmware files. */
+		if (c->x86 >= 0x15)
+			snprintf(name, sizeof(name), "amd-ucode/microcode_amd_fam%.2xh.bin", c->x86);
+		else
+			snprintf(name, sizeof(name), "amd-ucode/microcode_amd.bin");
 		break;
 
 	default:


-- 
Ian Campbell
Current Noise: Dew-Scented - Metal Militia

Now KEN and BARBIE are PERMANENTLY ADDICTED to MIND-ALTERING DRUGS ...

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-12-19 20:28 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1353936077.5830.30.camel@zakaz.uk.xensource.com>
2012-11-26 13:44 ` pvops microcode support for AMD FAM >= 15 Jan Beulich
2012-11-26 14:13   ` Ian Campbell
     [not found]   ` <1353939218.5830.34.camel@zakaz.uk.xensource.com>
2012-11-26 14:58     ` Boris Ostrovsky
2012-11-26 23:47       ` Boris Ostrovsky
2012-12-05 12:43         ` Ian Campbell
     [not found]         ` <1354711402.15296.188.camel@zakaz.uk.xensource.com>
2012-12-05 14:01           ` Ian Campbell
2012-12-05 16:48           ` Boris Ostrovsky
2012-12-05 17:02             ` Jan Beulich
2012-12-05 17:27               ` Boris Ostrovsky
2012-12-05 17:53                 ` Ian Campbell
     [not found]                 ` <1354730007.17165.31.camel@zakaz.uk.xensource.com>
2012-12-06 10:08                   ` Ian Campbell
2012-12-06 11:13                     ` Jan Beulich
2012-12-06 13:08                       ` Boris Ostrovsky
2012-12-06 13:17                         ` Jan Beulich
2012-12-05 17:05             ` Ian Campbell
     [not found]             ` <1354727148.17165.23.camel@zakaz.uk.xensource.com>
2012-12-05 17:33               ` Boris Ostrovsky
2012-12-05 12:46   ` Ian Campbell
     [not found]   ` <1354711599.15296.191.camel@zakaz.uk.xensource.com>
2012-12-05 21:47     ` Konrad Rzeszutek Wilk
2012-12-06  8:34       ` Ian Campbell
     [not found]       ` <1354782871.28777.12.camel@dagon.hellion.org.uk>
2012-12-06 10:59         ` Jan Beulich
2012-12-19 20:28         ` Konrad Rzeszutek Wilk
2012-12-05 13:10 ` Ben Guthro
2012-11-26 13:21 Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).