Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7851540ybl; Thu, 16 Jan 2020 06:40:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw8daOGIuSH8HW2JH9yo5Jp6SgQ37yT8sAD96B9BKoSBa/2kQFnhzIJ7fMlD/l1hv4t3Cf8 X-Received: by 2002:a9d:6513:: with SMTP id i19mr1801656otl.103.1579185659658; Thu, 16 Jan 2020 06:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579185659; cv=none; d=google.com; s=arc-20160816; b=Vf/AyxE0ni44bjS62Y2jLY9QUff0JP+BQNXL7dYG9CWpXMGiZrd1dysGo0pJdTm4fR 8a2eztJEGjGxEIrmCGb/GfvEE2q+m2ByV2CIlW5DpwjvyhDSJ30ItCj/qQqgvlxm6b6k 5BlN98bo1u0xGnu4k3k/G2A9Hh9TLzfrxJSZ2+VcB3fIkVCbpW8N5G6LAqAT2/0NDQ0A oZsRT84vGLJDAtXtW6KI/+2haUQ/Z3zfTW1NWRuZkhQW8rj8ORAwoPON3MZQX7g1oNTU Aih3iBxft7j8bY1KFhQ+6Kcb+sZdbV4VQ8yHM89+6aE6L+IOkjj5Mp7Y/VW1/CCYka12 zKLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ywzTMlHkadj5tzI8BE77qjkKOHJ7vdRzglAKCzUZs+o=; b=RzIHym6fQaetlN+QmIBYQg/u+lWQfFGMIt1tOlENbiX9BR12njDcZZrDSZAbPohovm lZbGHpsNOqzMfwtZO45PNiWwkTp7d1gsSWSvBRIzVddk+uRYTNACw/2WaxJ0IOqTebZi DeKvKsrzdWyojK90i7ZU+Yy2ocbp0F772Nk8iIAOJ3ZB0ZoqJrsdfx7X8TCLjQMAM2pT Ji6Kti48ULsuBPCA6OT/Yl2n2iY3OwnQVOWlAtLA9JzqOu60F+YxJ/PbSqiCOE+E9vkQ CvsDx0RHvz7QPL+Gag/cZclF6YuLSEy4t1j5ZVz67w4B013mY3dxuc6QGJVMfrVacWtu FRLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GEQ6E77x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si13276911oti.104.2020.01.16.06.40.46; Thu, 16 Jan 2020 06:40:59 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GEQ6E77x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbgAPOid (ORCPT + 99 others); Thu, 16 Jan 2020 09:38:33 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:49859 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726084AbgAPOic (ORCPT ); Thu, 16 Jan 2020 09:38:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579185511; 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: in-reply-to:in-reply-to:references:references; bh=ywzTMlHkadj5tzI8BE77qjkKOHJ7vdRzglAKCzUZs+o=; b=GEQ6E77x3rFTDaMokOFVNOuIrZQszpzIDd3yojJb5bTneIfX+VXn4pps+AHqCJDxKsh8d1 2IDQG30EpXPuGIH2gm4dPwuuzBBViFZ03wKkpN+rfQRjiHK33l9qTf/RjbwGuA1z88e2bp J4UXYakCWqY+aripZIVnQwxcRCum4kI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-146-kj7OR4WFOwisucsD14FLEQ-1; Thu, 16 Jan 2020 09:38:27 -0500 X-MC-Unique: kj7OR4WFOwisucsD14FLEQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A6185800D48; Thu, 16 Jan 2020 14:38:25 +0000 (UTC) Received: from treble (ovpn-121-224.rdu2.redhat.com [10.10.121.224]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4825E8889C; Thu, 16 Jan 2020 14:38:24 +0000 (UTC) Date: Thu, 16 Jan 2020 08:38:22 -0600 From: Josh Poimboeuf To: Pawan Gupta Cc: Thomas Gleixner , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Tony Luck , Michal Hocko , linux-kernel@vger.kernel.org, Neelima Krishnan , Dave Hansen , Andi Kleen Subject: Re: [PATCH] x86/cpu: Update cached HLE state on write to TSX_CTRL_CPUID_CLEAR Message-ID: <20200116143822.ffunlqsboxkvsv4x@treble> References: <2529b99546294c893dfa1c89e2b3e46da3369a59.1578685425.git.pawan.kumar.gupta@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2529b99546294c893dfa1c89e2b3e46da3369a59.1578685425.git.pawan.kumar.gupta@linux.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 02:50:54PM -0800, Pawan Gupta wrote: > /proc/cpuinfo currently reports Hardware Lock Elision (HLE) feature to > be present on boot cpu even if it was disabled during the bootup. This > is because cpuinfo_x86->x86_capability HLE bit is not updated after TSX > state is changed via a new MSR IA32_TSX_CTRL. > > Update the cached HLE bit also since it is expected to change after an > update to CPUID_CLEAR bit in MSR IA32_TSX_CTRL. > > Signed-off-by: Pawan Gupta > Tested-by: Neelima Krishnan > Reviewed-by: Dave Hansen Reviewed-by: Josh Poimboeuf -- Josh