Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp628173pxu; Thu, 3 Dec 2020 08:47:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyaHUAaKH0MX9KVA/woptjtB4yG+tf8f+BwsiqoZW3sLhBK1eloLoI3SuNLaoW+g6YweZg X-Received: by 2002:a17:906:6091:: with SMTP id t17mr3388525ejj.476.1607014067183; Thu, 03 Dec 2020 08:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607014067; cv=none; d=google.com; s=arc-20160816; b=D4XUkuecUib7ibEp4HAu2FM2qpccgQmG0IA7SvtNAD7cZl3uz/KSptMYR4Pd1FXC5z vIwZrB0MstmwxnHyyDuemJrc2YSkzs1PIiBiigCiMpppQhpy6J0LQ+cPgUcJCERMhsO9 K8TCRSMvBJoyV3zhC/vkOrUbVIYeSKbBmK96GzdiO7BquEw3GJhQZEqkQhejRBmxbuZC qGZSWvR5svCYWHBv11495TbrhVKSALEmaVmgNMppN5djoMOpgfPvq5LybMT15vTGFA/L Web3a+y2HNNSpMmci/wLwErGruL9Z29+jEC3ZW7FAXAWtNVmDbmNtEeSWj6eKpAsszPw tngQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/DmkWKu0h3mwMioedlGpNuFallczqE7TKT9kOW5E40c=; b=KFSCJdChmETjF/DPM4nI25U/oAWqth+SfPJVNqdDFfcgsWJ0qa8Dr6rlyQ30GOlfZd xiyhIBNJxjbwc3QYmvMsaF+8nUOq4zk3f7WU9IzQEAo1oKtynPZypCVkMKvtFXEqAlPT S71nBFuz6dRHkY1Rfwoh4HyjYhiu5zQ8rMYpnwgJD4EkBd7Qpc2KR0XVmtICvT4Jzzum 9PQCmOjqkcXnSgeOtd/xzlVjFC/D7g7f8MGRhoPYI/2D225TABeYmaX8lfSbMPEptV63 oRK31RKN0OxU55EHg56OcO7HGBAlYuhKwCEjcvxsSGzEUjOr66s8Rlty71qC/yrrsiOy m84A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JZtCYM72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si1412892eji.735.2020.12.03.08.47.23; Thu, 03 Dec 2020 08:47:47 -0800 (PST) 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=@alien8.de header.s=dkim header.b=JZtCYM72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731349AbgLCQo6 (ORCPT + 99 others); Thu, 3 Dec 2020 11:44:58 -0500 Received: from mail.skyhub.de ([5.9.137.197]:55030 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgLCQo5 (ORCPT ); Thu, 3 Dec 2020 11:44:57 -0500 Received: from zn.tnic (p200300ec2f0dc5004496c992b512bfd2.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:c500:4496:c992:b512:bfd2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7F1261EC0434; Thu, 3 Dec 2020 17:44:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1607013856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=/DmkWKu0h3mwMioedlGpNuFallczqE7TKT9kOW5E40c=; b=JZtCYM726FRpT80jAPoqR+Rcwj93drucEOd0Nx8xaqQ034meCQ8vcPWUcLQMGLdKH5BFRe u2gAu3xdfS3WL/7Q4xu5kkZWo4dh/DuExxa0enp6U1ALIJRXhmvUJVSG6v3zv0mQZ3k6hs W9Uu02t9En7V9Ip68K1aJhweDgPLRQ8= Date: Thu, 3 Dec 2020 17:44:11 +0100 From: Borislav Petkov To: Arvind Sankar Cc: Tom Lendacky , x86@kernel.org, Kim Phillips , Yazen Ghannam , Pu Wen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/cpu/amd: Remove dead code for TSEG region remapping Message-ID: <20201203164411.GK3059@zn.tnic> References: <20201127171324.1846019-1-nivedita@alum.mit.edu> <20201127172747.GE13163@zn.tnic> <20201203084857.GD3059@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 11:14:06AM -0500, Arvind Sankar wrote: > Do any of them have it mapped at all, regardless of the alignment? There > seems to be nothing else in the kernel that ever looks at the TSEG MSR, > so I would guess that it has to be non-RAM in the E820 map, otherwise > nothing would prevent the kernel from allocating and using that space. Ha, that's a very good question. If all those BIOSes from K8 onwards would put the TSEG in a non-RAM area and after 66520ebc2df3 ("x86, mm: Only direct map addresses that are marked as E820_RAM") (great investigative work, btw, thanks for that!) then we can simply say that that splitting is not needed anymore. Maybe Tom can ask BIOS people whether they always did that - that being to put the TSEG into a non-RAM area. I can boot my debug patch on my boxes here but that doesn't mean a whole lot... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette