Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbdCAOdZ (ORCPT ); Wed, 1 Mar 2017 09:33:25 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37151 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbdCAOdW (ORCPT ); Wed, 1 Mar 2017 09:33:22 -0500 Subject: Re: [PATCH 0/2] efi: Enhance capsule loader to support signed Quark images To: Andy Shevchenko References: <5da59d02-d299-f5c7-48fa-a67bdd017252@siemens.com> <20170228121255.GD28416@codeblueprint.co.uk> <20170228122947.GE28416@codeblueprint.co.uk> <1fb1a428-672b-be4b-e05b-4363c4b286dd@nexus-software.ie> Cc: Ard Biesheuvel , Matt Fleming , Jan Kiszka , "Kweh, Hock Leong" , "linux-efi@vger.kernel.org" , Linux Kernel Mailing List , Borislav Petkov , "Ong, Boon Leong" , "Mok, Tze Siong" From: "Bryan O'Donoghue" Message-ID: Date: Wed, 1 Mar 2017 14:02:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1320 Lines: 50 On 28/02/17 17:42, Bryan O'Donoghue wrote: > On 28/02/17 17:18, Andy Shevchenko wrote: >> On Tue, Feb 28, 2017 at 6:52 PM, Bryan O'Donoghue >>> A kernel compiled like this >>> >>> make menuconfig ARCH=i386 >> >> I hope you care that it is equivalent to >> >> make menuconfig ARCH=i686 >> >>> make bzImage -j 8 >>> >>> will run just fine on Quark x1000 I do it regularly. CPUID ought to (and >>> does) inform the runtime kernel of what to do re: MSRs etc. >>> >>> We won't execute xmm/mmx, we won't touch 686 specific MSRs etc, etc. >> >> It is i*6*86 code still. >> >> So, summarize, you state that >> 1. CONFIG_SMP=y and >> 2. CONFIG_M686=y and >> 3. Kernel works on Quark >> >> Is it correct? > > Logically yes. It's a very long time since I looked in detail. No harm > in checking it out though. > > I'll compile up the above kernel this evening (GMT) and verify. > > CONFIG_SMP=y - no difference - like I say it's PF# on lock prefix instructions, not SMP=y that's the problem here CONFIG_M686=y (doesnt' boot) CONFIG_M586TSC=y does boot So yes M686 is not bootable on this part. My point to you about having a custom kernel though still stands, you shouldn't have to compile a quark specific kernel - just a 586TSC kernel with Quark support. For example CentOS is bootable on Quark. --- bod