Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp681095pxy; Thu, 22 Apr 2021 10:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeoi6ToCgXrbNgpKCN4e08Pfulu0U51kVVaZaf/eEd0rW9qdxIyZg5+fpmbHAMaeuIqLFy X-Received: by 2002:a17:90a:4e46:: with SMTP id t6mr1246889pjl.236.1619113825583; Thu, 22 Apr 2021 10:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619113825; cv=none; d=google.com; s=arc-20160816; b=riz6ahGz5X2+lilg+jrnTt6zZ2fF9XIvdBl7LgklzhbBEEP72lMQ4cIe8/mYu7NuU0 X1oTzFBk2lOCR1VB7mrPlmyLxxvIjR+EGTu/w8hrwChOM+6B+UsbHJ0nevp2k1psU/JB erjIzsu3HcI0FG/DhKZmc8hVWE5ps6kGxF2WnLIWU24QcazyVG9wqQtmPDae8FR+lNVH XRbByG9u3G7rQN9TsqYtnLEWwl6t69J+zjlEph7tjlBYRbvUuSfoa8NSefolD5P80hjZ ii9q20Zk6T1fLOXryr3twbAogfTB5qNU8/71SjydhJCq8gzjckt61Xfw3XZaEAA2pvk3 JCnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PK7lVAn6aVHwhA8HICPUFp9kUNbAdKMeylNu2Kor/dY=; b=DdhwDKipYSn2IPYkeDL/J4xJ6rrYtD4lCHhtvB0ubkTE/H9sZx/rjNbjnR/IYl92NU tp4FkjBhPRlKm9m3d01TX0/+s3ZAiYwOoNiuB93gJxgC2+NV0TR02bgbWzJYMbQrcbmk c27O0mfbN1JPrbPeHV4UJe4VqmMminfTJT8DlVZVHjUQCkmGrzviwzay/j13OEFY89Pw TI5VgK4uejlWHrDyon352cmfM9nCX/snkvxgE+7zbhMub99+Wn5SotdhZ4wlJIr38W9v Zk6hM2I5Z8jbPab1RyoS6NZ5TJz3IGPJ3YrV7T/Rs84G25mRWbMYIXZkMAP+vuYTl49S np1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W9lorgrF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 102si3903970pla.240.2021.04.22.10.50.12; Thu, 22 Apr 2021 10:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W9lorgrF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236058AbhDVRuN (ORCPT + 99 others); Thu, 22 Apr 2021 13:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236660AbhDVRuM (ORCPT ); Thu, 22 Apr 2021 13:50:12 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57044C06174A for ; Thu, 22 Apr 2021 10:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject: Sender:Reply-To:Content-ID:Content-Description; bh=PK7lVAn6aVHwhA8HICPUFp9kUNbAdKMeylNu2Kor/dY=; b=W9lorgrF49Sob/hdpwxu1JKa0P R1yHP+MrtYGT5Dy49pisdJEphguWM7+3zvY3P1h1KmxPHvLObzgcB+61WOo5JKLmuGFs6RqPV1TeX zl8ZbK7G4849z7nlDWkw02yzfYP+sBYKNDROuFddADa4qDm5qgX79lt+1Aeav3HtB5rL1988dIeUY Sghs4RPw8Ks5t/vV3Ev6rHlczzu/+MNqdQ7yPYGZtxjDFN5XHO8iN4+VbJ3FiJ7FJwVHnhzfPcyhO 4Gu+1pX9RqPXeHr9wAVlH83+oVOoWxpG+i4EHfPtN0sD2VFXy5xkRIxV3egIgrLn6LI3VsdI73v/d Fm9QQddg==; Received: from [2601:1c0:6280:3f0::df68] by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lZdRy-00HCiq-9C; Thu, 22 Apr 2021 17:49:15 +0000 Subject: Re: [v2 1/1] x86/cpufeatures: Implement Predictive Store Forwarding control. To: Ramakrishna Saripalli , linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, Jonathan Corbet Cc: bsd@redhat.com References: <20210422171013.50207-1-rsaripal@amd.com> <20210422171013.50207-2-rsaripal@amd.com> From: Randy Dunlap Message-ID: Date: Thu, 22 Apr 2021 10:49:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210422171013.50207-2-rsaripal@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/21 10:10 AM, Ramakrishna Saripalli wrote: > From: Ramakrishna Saripalli > > ==================== > Signed-off-by: Ramakrishna Saripalli > --- > .../admin-guide/kernel-parameters.txt | 5 +++++ > arch/x86/include/asm/cpufeatures.h | 1 + > arch/x86/include/asm/msr-index.h | 2 ++ > arch/x86/kernel/cpu/amd.c | 19 +++++++++++++++++++ > 4 files changed, 27 insertions(+) as from v1: > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 04545725f187..58f6bd02385b 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -3940,6 +3940,11 @@ > Format: {"off"} > Disable Hardware Transactional Memory > > + predict_store_fwd [X86] This option controls PSF mitigation predict_store_fwd= ... > + off - Turns on PSF mitigation. > + on - Turns off PSF mitigation. > + default : on. default: on. > + > preempt= [KNL] > Select preemption mode if you have CONFIG_PREEMPT_DYNAMIC > none - Limited to cond_resched() calls thanks. -- ~Randy