All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Cc: xen-devel@lists.xen.org, keir@xen.org, jbeulich@suse.com
Subject: Re: [PATCH V3] x86, amd_ucode: Support multiple container files appended together
Date: Thu, 26 Jun 2014 22:04:47 -0400	[thread overview]
Message-ID: <53ACD13F.8070404@oracle.com> (raw)
In-Reply-To: <53AC96E3.5050504@amd.com>

On 06/26/2014 05:55 PM, Aravind Gopalakrishnan wrote:
> On 6/26/2014 3:00 PM, Boris Ostrovsky wrote:
>>
>>>
>>> The process(,scripts) to create containers ensure that we only have 
>>> patches for f10h-f14h on 'microcode_amd.bin'
>>> and patches for f15h models (could be different model/stepping 
>>> values) on microcode_amd_fam15h.bin
>>>
>>> So it is safe to assume that we we only have a matching equiv_id in 
>>> only one of the containers.
>>
>> The trouble is that if I have two files in my hands, both called 
>> microcode_amd_fam15h.bin, I don't know which one is the more 
>> up-to-date (would be nice to have a tool to print file info).
>>
>> Of course, one can argue that in that case I shouldn't be using 
>> neither but HW makes its own verification of patches so in principle 
>> trying both should be safe (provided that SW tries not to load older 
>> revision).
>>
> Hmm, yeah... But this is a pretty contrived case and I'm still not 
> completely convinced this is something we should handle..
> Here are my thoughts:
> - If such a case arises, one can just pull the latest containers which 
> are published
>   - here: 
> https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/amd-ucode 
>
>   - and here: http://www.amd64.org/microcode.html
>   - distros also keep themselves updated by pulling the binaries from 
> above links
> - We can add documentation notes stating to the effect that 
> users(sysadmins) are better off not concatenating two containers of 
> same processor family.
>   - It won't break anything, but you just might end up on a 
> not-so-latest microcode patch level


AFAIK the code always picks the latest version of the patch.


>   - And also point to above links to resolve such deadlock situations
> - If you would still prefer that we handle this case, then we probably 
> should not do it as you described.
>   - The proper way would be to go back to the start of the 1st while 
> loop.
>     - Because we can go back to find_equiv_cpu_id() and take things 
> from there again..
>     - So, more logic rework..
>  (I'm ok with re-working the code, but do let me know if this a case 
> we should care for..)

I think it's worth doing.

-boris

  reply	other threads:[~2014-06-27  2:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 16:01 [PATCH V3] x86, amd_ucode: Support multiple container files appended together Boris Ostrovsky
2014-06-26 16:37 ` Aravind Gopalakrishnan
2014-06-26 20:00   ` Boris Ostrovsky
2014-06-26 21:55     ` Aravind Gopalakrishnan
2014-06-27  2:04       ` Boris Ostrovsky [this message]
2014-06-27  8:15     ` Jan Beulich
2014-06-27 12:47       ` Boris Ostrovsky
  -- strict thread matches above, loose matches on Subject: below --
2014-06-25 19:34 Aravind Gopalakrishnan
2014-06-26 13:14 ` Boris Ostrovsky
2014-06-26 15:03   ` Aravind Gopalakrishnan
2014-06-27 10:50 ` Jan Beulich
2014-06-27 17:07   ` Aravind Gopalakrishnan
2014-06-30  9:32     ` Jan Beulich
2014-06-30 16:51       ` Aravind Gopalakrishnan

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=53ACD13F.8070404@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=aravind.gopalakrishnan@amd.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.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.