Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp635106pxv; Thu, 22 Jul 2021 08:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmKJ9BO56lMTvxvJ8pxAy76YJjL47KltJQ2ECAlNYHidIfInstnAlwe2IEiirFf2tBD0Df X-Received: by 2002:a17:906:c1d0:: with SMTP id bw16mr520218ejb.146.1626968407134; Thu, 22 Jul 2021 08:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626968407; cv=none; d=google.com; s=arc-20160816; b=ZDSnZNicuukSmVjEhbLRJTFZQsu7JV0xsh5eSgBKxm8/yOU6RdD/l8JwXcTux/bvfE ryzr8PGNpeQhkpELDqN0UgqqkKRMjZIMMVc3NEuALCcclIAUe/pBY7VeGRX8+4cT1exC xbzwweRkn2KjxYHv3pvirENv23z1q5dyBLuFLbdO8PfYYwGHiVicoQI2Gr1QblPo9L8D iuGBvNBg+aD2JitYN6qsiQBkVkLqVKQMdceZ7rjp4IsFz54ay4J8ooLkocJ2wQEApcTW PO61HvciFrdmvfkz9bRMHyQlTKGdPlnz8+NOKRTelHRIcWTTrrN2sNo29Vxkbsx5Q8gS RBJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZDOsP8qSA40LQq4rBleoi60kzDeLpUJse3hDQRgEdXY=; b=HM8PW7s7uamT0Z/XL3MUHYqPq5EYjt2gvKEWJ+UQ8LB2nw3bgtC2RPPhkUPGe9nWmT 1k9RHS56XeaYIzRUwX0Y3TC1stcc6+t4nu2LX3azSAH3tUe1MnnqWm3SUcLJjZ1Cf4sN BKGXS7rrI790rH88afk3hq8puYzcO7Z1eyav57dlDek+iQa0rd8OD2me1eiv4iP76qND m4avqVsvvwmnPgaq2PAYXoQaqJA/o9b5dGiN2bsXmh3oilE8f6xEKooYzPolO5lAC0lP OjmMAgcXV0uoVfzRWhfjOWopMJYrM0/AEaxwQj4n+HXiDoH9IJxWaGqQIpklRIu2sb/n VQVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GsDuiPbn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv16si21267025ejb.257.2021.07.22.08.39.42; Thu, 22 Jul 2021 08:40:07 -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=@kernel.org header.s=k20201202 header.b=GsDuiPbn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232632AbhGVO5p (ORCPT + 99 others); Thu, 22 Jul 2021 10:57:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:39044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232488AbhGVO5o (ORCPT ); Thu, 22 Jul 2021 10:57:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 52F186052B; Thu, 22 Jul 2021 15:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626968299; bh=8nuwoZzIE9AXZnCM6wlUP00pAGYzYvAAKw+DrOsiFF4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GsDuiPbntO7mTbUHw/OMga6TpqxPzd1jVux3hSo8uaiVGT/FS1jJae4yyYqKXGFPa Tjh6LTF4MnLRwrMll7/BPTadvvds5880xaeoagTdakty199n46NPakMNOgptqU60cB P5gGX1qTC+Ri2ieYZ9XnV9h5HL+OIVKQciK2b4R4Mr/rNkCSUGXMt5qHwU6bIPeHqL OkhSNafLRHVCfxswugOTMybYqAbgOigkhZPr/eOPPP4Z9PWTsLf2BWWk17ESMh5rQS H+JD683PNUSwyaJGSrvqTMkk9WF3ym5GZXT3StPbQ9iWybwgJGZ5DxLDBOFkaC2VZb 5g3p3JN4p62sg== Date: Thu, 22 Jul 2021 16:38:15 +0100 From: Will Deacon To: Vladimir Murzin Cc: Shameerali Kolothum Thodi , "jean-philippe@linaro.org" , "maz@kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm , "catalin.marinas@arm.com" , "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 3/3] kvm/arm: Align the VMID allocation with the arm64 ASID one Message-ID: <20210722153814.GA12566@willie-the-truck> References: <20210616155606.2806-1-shameerali.kolothum.thodi@huawei.com> <20210616155606.2806-4-shameerali.kolothum.thodi@huawei.com> <20210721163138.GD11003@willie-the-truck> <20210722095010.GA12012@willie-the-truck> <43b32e77-52b1-8524-63a1-c99578c2dd1d@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43b32e77-52b1-8524-63a1-c99578c2dd1d@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vladimir, On Thu, Jul 22, 2021 at 04:22:26PM +0100, Vladimir Murzin wrote: > On 7/22/21 10:50 AM, Will Deacon wrote: > > As an aside: I'm more and more inclined to rip out the CnP stuff given > > that it doesn't appear to being any benefits, but does have some clear > > downsides. Perhaps something for next week. > > Can you please clarify what do you mean by "it doesn't appear to being any > benefits"? IIRC, Cortex-A65 implements CnP hint and I've heard that some > payloads seen improvement... Has anybody taped that out? I'd have thought building an SMT design in 2021 is a reasonably courageous thing to do. The issue I'm getting at is that modern cores seem to advertise CnP even if they ignore it internally, maybe because of some big/little worries? That would be fine if it didn't introduce complexity and overhead to the kernel, but it does and therefore I think we should rip it out (or at least stick it behind a "default n" config option if there are some niche users). There are also open questions as to exactly what CnP does because the architecture is not clear at all (for example TTBRx_EL1.CnP is permitted to be cached in a TLB). CHeers, Will