From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754577AbeEALLM convert rfc822-to-8bit (ORCPT ); Tue, 1 May 2018 07:11:12 -0400 Received: from ozlabs.org ([203.11.71.1]:48289 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753856AbeEALLK (ORCPT ); Tue, 1 May 2018 07:11:10 -0400 Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Michal =?utf-8?Q?Such=C3=A1nek?= Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, npiggin@gmail.com Subject: Re: [PATCH 4/6] powerpc/64s: Enable barrier_nospec based on firmware settings In-Reply-To: <20180426180258.04e6bee6@kitsune.suse.cz> References: <20180424041559.32410-1-mpe@ellerman.id.au> <20180424041559.32410-4-mpe@ellerman.id.au> <20180426180258.04e6bee6@kitsune.suse.cz> Date: Tue, 01 May 2018 21:11:06 +1000 Message-ID: <87vac7r5px.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Suchánek writes: > Hello, > > On Tue, 24 Apr 2018 14:15:57 +1000 > Michael Ellerman wrote: > >> From: Michal Suchanek >> >> Check what firmware told us and enable/disable the barrier_nospec as >> appropriate. >> >> We err on the side of enabling the barrier, as it's no-op on older >> systems, see the comment for more detail. >> >> Signed-off-by: Michael Ellerman ... > > I am missing the option for the barrier to be disabled by a kernel > commandline argument here. > > It does make sense to add a kernel parameter that is checked on boot to > be compatible with other platforms that implement one. No other platforms have an option to disable variant 1 mitigations, so there isn't an existing parameter we can use. Which is not to say we can't add one, but I wasn't sure if it was really worth it. But I guess we should add one, I might do it as a follow-up patch. cheers