From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from aserp2120.oracle.com ([141.146.126.78]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fCwVP-0005kz-Lf for speck@linutronix.de; Mon, 30 Apr 2018 02:17:25 +0200 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3U0CBmm174731 for ; Mon, 30 Apr 2018 00:17:16 GMT Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2hmgxfj82b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Apr 2018 00:17:16 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3U0HGHF022086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Apr 2018 00:17:16 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3U0HFCv003152 for ; Mon, 30 Apr 2018 00:17:15 GMT Date: Sun, 29 Apr 2018 20:16:37 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch V7 10/15] SBB 10 Message-ID: <20180430001631.GA27017@localhost.localdomain> References: <20180429193045.711908246@linutronix.de> <20180429193938.293499564@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180429193938.293499564@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: ..snip.. > @@ -52,7 +59,8 @@ void __init check_bugs(void) > > /* > * Read the SPEC_CTRL MSR to account for reserved bits which may > - * have unknown values. > + * have unknown values. AMD64_LS_CFG msr is cached in the early AMD > + * init code as it is not enumerated and depends on the family. > */ > if (boot_cpu_has(X86_FEATURE_IBRS)) > rdmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); > @@ -154,6 +162,14 @@ void x86_restore_host_spec_ctrl(u64 gues > } > EXPORT_SYMBOL_GPL(x86_restore_host_spec_ctrl); > > +static void x86_amd_rds_enable(void) > +{ > + u64 msrval = x86_amd_ls_cfg_base | x86_amd_ls_cfg_rds_bit); ^- that ')' shouldn't be there.