Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3348046imu; Mon, 28 Jan 2019 03:19:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN488jySvh2wl5ltoFcOGgfrbuAPgFC+7Qt8NW4ImW7FTbpXlWWtzYbiisxNLgmOsmd5og2k X-Received: by 2002:a17:902:a58c:: with SMTP id az12mr15292535plb.299.1548674386826; Mon, 28 Jan 2019 03:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548674386; cv=none; d=google.com; s=arc-20160816; b=wtCcsKwgb+Urg7vULyqO4mG6iPvnmdYlHNBwuasmgJBj62ygGSpO8gMhcWbneWt5P2 CbgiLzYMrGXavR0bcRcxOl6PmB5Hpm+5qPSkvSQic8QZVK2flaKMtszdD2O13lO4A4kZ /7RhFhRaOmCZv1vBCL1/rV6bi01369f0ClwCucu0DcvcSuMP2lYqXUAi/9Mpmo5iOSUP hPApjsEtNnGClVERWklohraSog5ggkr5XUop5qe0XH6npt37kT4MPxJhCPgk7JA+Fvwg asRASbj4YvsydduMVeDBMNFGzxkdcb8Q+fAiMQUdakBljnOQayxGHz4akhS9oV49OjC9 Dfaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=3pqS63G5tUa3WIeUX3IgjJpEhC2d2xEa3z6IfbQPuV0=; b=px5v/iiZZKcJBjXMQvSfmNAmfwZexJmV/DjX6Zft79k89zrMtuMJkvp6CL5ydlCUsP s+o63ptZXebpm0Z6xcvlclnsYPP1HbMwDv7q9nLTWFAE6bXHZSCskrKBhaJqH95+R2+I BQbxRDfHZRu0SgTcIEMcAH2t4R7ex9ZaKutKV24H1ycHSAf1UaGuNtAAyET6pFYw/fzd ubGQ/06RS15f6kg5eBqwUxHF2F0gs701c+JvYbUt158tLl6BWBpPhSZoa/+njMKJz0xO YO2dSUUn4B6EKrNeQnQxVJ8eYE15LlRNjuEu41KOTdw0W8uo+0tyYh+xZU3KnMlCzGA+ UHJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f81si13833101pfh.33.2019.01.28.03.19.31; Mon, 28 Jan 2019 03:19:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbfA1LRo (ORCPT + 99 others); Mon, 28 Jan 2019 06:17:44 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43568 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfA1LRm (ORCPT ); Mon, 28 Jan 2019 06:17:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8CD77EBD; Mon, 28 Jan 2019 03:17:42 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.39.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D1E693F59C; Mon, 28 Jan 2019 03:17:39 -0800 (PST) Date: Mon, 28 Jan 2019 11:17:40 +0000 Message-ID: <864l9tvxnv.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Julien Thierry Cc: , , , , , , , , , Suzuki K Poulose Subject: Re: [PATCH v9 15/26] arm64: alternative: Apply alternatives early in boot process In-Reply-To: <1548084825-8803-16-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-16-git-send-email-julien.thierry@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2019 15:33:34 +0000, Julien Thierry wrote: > > From: Daniel Thompson > > Currently alternatives are applied very late in the boot process (and > a long time after we enable scheduling). Some alternative sequences, > such as those that alter the way CPU context is stored, must be applied > much earlier in the boot sequence. > > Introduce apply_boot_alternatives() to allow some alternatives to be > applied immediately after we detect the CPU features of the boot CPU. > > Signed-off-by: Daniel Thompson > [julien.thierry@arm.com: rename to fit new cpufeature framework better, > apply BOOT_SCOPE feature early in boot] > Signed-off-by: Julien Thierry > Reviewed-by: Suzuki K Poulose > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Christoffer Dall > Cc: Suzuki K Poulose Reviewed-by: Marc Zyngier M. -- Jazz is not dead, it just smell funny.