From: Ian Campbell Subject: Re: pvops microcode support for AMD FAM >= 15 Date: Thu, 6 Dec 2012 10:08:05 +0000 Message-ID: <1354788485.17165.65.camel@zakaz.uk.xensource.com> References: <1353936077.5830.30.camel@zakaz.uk.xensource.com> <50B3805A02000078000AB1B8@nat28.tlf.novell.com> <1353939218.5830.34.camel@zakaz.uk.xensource.com> <50B383B2.9060503@amd.com> <50B3FF8A.4050909@amd.com> <1354711402.15296.188.camel@zakaz.uk.xensource.com> <50BF7AD3.9010407@amd.com> <50BF8C2002000078000AE42D@nat28.tlf.novell.com> <50BF841C.6010906@amd.com> <1354730007.17165.31.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1354730007.17165.31.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org (Putting debian-kernel to bcc, since I don't imagine they are interested in the details of this discussion, I'll reraise the result with the Debian Xen maintainer when we have one) On Wed, 2012-12-05 at 17:53 +0000, Ian Campbell wrote: > On Wed, 2012-12-05 at 17:27 +0000, Boris Ostrovsky wrote: > > On 12/05/2012 12:02 PM, Jan Beulich wrote: > > > But all of this shouldn't lead to equivalent ID mismatches, should > > > it? It ought to simply find nothing to update... > > > > > > The patch file (/lib/firmware/amd-ucode/microcode_amd_fam15h.bin) may > > contain more than one patch. The driver goes over this file patch by > > patch and tries to see whether to apply it. > > > > I think what happened in Ian's case was that the patch file contained > > two patches --- one for this processor (ID 6012) and another for a > > different processor (ID 6101). (Both are family 15h but different revs). > > > > The driver applied the first patch on core 0. Then, on core 1, the code > > tried the first patch (at file offset 60) and noticed that it is already > > applied. So it continued to the next patch (at offset 2660) which is not > > meant for this processor, thus generating the "does not match" message. OOI what would have happened if the two patches were in the opposite order? Would CPU0 have seen the ID 6101 patch first and aborted? Ian.