Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp893602pxj; Fri, 11 Jun 2021 14:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbIegMvBJtYnS8jvAEg0JLpA1Mc0NlTV60EvQa8XucTMgT72IYzChHvthDiF3cQ1FB6Afx X-Received: by 2002:a17:906:b03:: with SMTP id u3mr3173262ejg.95.1623447323652; Fri, 11 Jun 2021 14:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623447323; cv=none; d=google.com; s=arc-20160816; b=DLtCZXg15NVFMiCRVX5fxx/hl8aCq3MJvIfSSKWyNOWbSz/1k4hEwh5OXVp0H6uw9t sFz64FmbTkAxvwF+qGs7dO9BzZC83MFimEb0tXHmPHa6tbc4movkutnlqYfhUwuDXcT3 xDSLCeACA4LV+OOGGT3cMGk7IXTDWqwh/VKEaxHRpJmqc+QVS+WVbZd3ixsUCobWjG1M I5L9BpyAEVivqqvk+jEN75ai9bKrezdJyFdziwiX2TpvhHPdImHhf/VWeVeydedXNXbu feuxR6AGbMZ1qhjDxns5Gt5smTWT88kaFwAhLdGyZjeLOYILx+XtV22JgS9Nzg1uXQFc HO8A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=WBV2hjs7k7myCb5DMrDxzIYeugs9mFA3SpWenH8BBQw=; b=hkbgfNk6elwjMpYBsQN5ap/It8S6eno60FznN7tpRYJyzyz6nQO/K5G1e5H/gpwn0M 53CpXLccfOVhkapkMu6iN2arjvroBE1A9jNPcMF8D+dz4MiUQ10ym/toZp//YxU705Eq pEQm/qIr7mrsmYuuEYE31rZqZLkdh/JlwsVpsypl3su/Icm/L6aEpc/OewPaSBipn5W7 3qV2ifaADWWL7+Bv4JttfAyMO3OfYMJd5B4h6Bfilt6JdJlkRwVk2neHyPV3n7msfTLY rS/qie7Gn9hrsDNTb3FqQiKK+fVbQjz1M6w5dVBRSlrr3rGWfSutJZvSgKB9znCxpDNX /Bdg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si5373036edw.596.2021.06.11.14.35.00; Fri, 11 Jun 2021 14:35:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbhFKVdW (ORCPT + 99 others); Fri, 11 Jun 2021 17:33:22 -0400 Received: from mga14.intel.com ([192.55.52.115]:12921 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFKVdV (ORCPT ); Fri, 11 Jun 2021 17:33:21 -0400 IronPort-SDR: XU/5NqtnvivbSXRPlqEgYCigli5GgRc/bhSSx0NpSuxIeeMze42dLaTtoi1uvf12R0mw42e66Q bJFJlcwjB89w== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="205433117" X-IronPort-AV: E=Sophos;i="5.83,267,1616482800"; d="scan'208";a="205433117" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 14:31:21 -0700 IronPort-SDR: qYaDt4miFhmPz+227d6FoxbgaUH3brrBV7XvB5DJaP/u4G7HgdDHiM3d47awuR09r/hzadm1aw nZnwKNsY9+2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,267,1616482800"; d="scan'208";a="553535554" Received: from gupta-dev2.jf.intel.com (HELO gupta-dev2.localdomain) ([10.54.74.119]) by fmsmga001.fm.intel.com with ESMTP; 11 Jun 2021 14:31:18 -0700 Date: Fri, 11 Jun 2021 14:31:29 -0700 From: Pawan Gupta To: Borislav Petkov Cc: Thomas Gleixner , Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , x86@kernel.org, "H. Peter Anvin" , "Paul E. McKenney" , Randy Dunlap , Andrew Morton , "Maciej W. Rozycki" , Viresh Kumar , Vlastimil Babka , Tony Luck , Paolo Bonzini , Sean Christopherson , Kyung Min Park , Fenghua Yu , Ricardo Neri , Tom Lendacky , Juergen Gross , Krish Sadhukhan , Kan Liang , Joerg Roedel , Victor Ding , Srinivas Pandruvada , Brijesh Singh , Dave Hansen , Mike Rapoport , Anthony Steinhauser , Anand K Mistry , Andi Kleen , Miguel Ojeda , Joe Perches , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 1/4] x86/msr: Define new bits in TSX_FORCE_ABORT MSR Message-ID: <20210611213129.py2jyfzy37czegkm@gupta-dev2.localdomain> References: <4a258368e1797d592d4b16f124bd88cf9c21ac35.1623272033.git-series.pawan.kumar.gupta@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.06.2021 10:39, Borislav Petkov wrote: >On Wed, Jun 09, 2021 at 01:58:02PM -0700, Pawan Gupta wrote: >> Intel client processors that support IA32_TSX_FORCE_ABORT MSR related to >> perf counter interaction [1] received a microcode update that deprecates >> Transactional Synchronization Extension (TSX) feature. MSR >> IA32_TSX_FORCE_ABORT bit FORCE_ABORT_RTM now defaults to 1, writes to >> this bit are ignored. A new bit TSX_CPUID_CLEAR clears the TSX related >> CPUID bits. >> >> Below is the summary of changes to IA32_TSX_FORCE_ABORT MSR: >> >> Bit 0: FORCE_ABORT_RTM (legacy bit, new default=1) Status bit that >> indicates if RTM transactions are always aborted. This bit is >> essentially !SDV_ENABLE_RTM(Bit 2). Writes to this bit are ignored. >> >> Bit 1: TSX_CPUID_CLEAR (new bit, default=0) When set, CPUID.HLE = 0 >> and CPUID.RTM = 0. >> >> Bit 2: SDV_ENABLE_RTM (new bit, default=0) When clear, XBEGIN will >> always abort with EAX code 0. When set, XBEGIN will not be forced to >> abort (but will always abort in SGX enclaves). This bit is intended to >> be SDV-only. If this bit is set transactional atomicity correctness is > >SDV? Sorry should have expanded this. It stands for Software Development Vehicle (SDV), i.e. developer systems. >> not certain. >> >> Performance monitoring counter 3 is usable in all cases, regardless of >> the value of above bits. >> >> A new CPUID bit CPUID.RTM_ALWAYS_ABORT (CPUID 7.EDX[11]) is added to >> indicate the status of always abort behavior. >> >> Define these new CPUID and MSR bits. >> >> [1] Performance Monitoring Impact of IntelĀ® Transactional Synchronization Extension Memory >> http://cdrdv2.intel.com/v1/dl/getContent/604224 > >That link does not look stable enough to put in commit messages. >Besides, you've said it all in the commit message already. The important part is the Document ID 604224. I can remove the link completely, or add the document ID to it, whatever you suggest: [1] Performance Monitoring Impact of IntelĀ® Transactional Synchronization Extension Memory http://cdrdv2.intel.com/v1/dl/getContent/604224 (Document ID 604224). ^^^^^^^^^^^^^^^^^^ Thanks, Pawan