Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1255658ybb; Wed, 1 Apr 2020 19:33:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJ13+jNcNE0liw/ebjS0PTAYaAPeyjHaBWPnLFs2ONGOivqPZOttBXlkzRn6DftetYc76i9 X-Received: by 2002:a9d:42f:: with SMTP id 44mr725132otc.236.1585794831870; Wed, 01 Apr 2020 19:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585794831; cv=none; d=google.com; s=arc-20160816; b=Rl4a7dVo5ybWEWhg16Udq1bEWjrbQyvfwA7ohSN6yo8O/VPnMYV7mBkq3pfoHFnehW DM0q1JNAnIIt/2SEQN3Fggjmk0CfOZ2j8aoHA+DxcgCNgGEuvhps83m/DxPppzgFYvKE 72zfhWgZJ9nmVZA2N1KOQMGM0mqZG1/C/+GfkK64BFTEz/faWZgFuZkxrI/ES/WYlNgB 6hJ96TYKzm2WC+RLqvgbE7B/Qp/EGojy4XoqLbCx6GvT8xE6p7/E51/0Fi7APgla8Ome O94mvRDtoSep6DnBIUvcieSbYMH2qJkXrYuFf3dzEy4UDhDnbkeuWII+723Io5a426Zf gCcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QUm6AGRHWRKr4nakks+vCVFufTJLJjBkKClfmKVbmiQ=; b=0e9uykv0kdLsQeqn+E5qBJ9qGXCZFa+k5sO/iCqbOqW+ardoeIZ8FIfH4n9xez2WUl TTTZ/zGtozgNhDodkQr/jJrMbRGrq7L5xsqO7AWOTIvuRfuqyrPLs0cfVNUNPN+cZ1ob 3C2dcb03Rf7TyjwbKTuLgyyEcPsFYX+5N9GXCPe1NnLSNA2kTGw8S9sW6dDTmkO1Br90 LgbYXIlb7NefyVvc1r2cm65MqaIw8EVYgdkCBGJtPd3KX929vX+Wn89qIqDnW6vmyDLA 2BKUqQQhhrpEsfdT/pNR1KyU8rTJv5ZlG6xyzTrwkfY4XH+BDq2lghEyxhf5wHamhJc9 Jebg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si1624490otp.138.2020.04.01.19.33.38; Wed, 01 Apr 2020 19:33:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733230AbgDBCdU (ORCPT + 99 others); Wed, 1 Apr 2020 22:33:20 -0400 Received: from foss.arm.com ([217.140.110.172]:36260 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727135AbgDBCdT (ORCPT ); Wed, 1 Apr 2020 22:33:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5664F30E; Wed, 1 Apr 2020 19:33:19 -0700 (PDT) Received: from [10.163.1.8] (unknown [10.163.1.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D50E93F71E; Wed, 1 Apr 2020 19:33:16 -0700 (PDT) Subject: Re: [PATCH 0/6] Introduce ID_PFR2 and other CPU feature changes To: Peter Maydell Cc: arm-mail-list , Catalin Marinas , lkml - Kernel Mailing List , Marc Zyngier , Will Deacon , kvmarm@lists.cs.columbia.edu References: <1580215149-21492-1-git-send-email-anshuman.khandual@arm.com> <45ce930c-81b3-3161-ced6-34a8c8623ac8@arm.com> From: Anshuman Khandual Message-ID: Date: Thu, 2 Apr 2020 08:03:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/14/2020 09:28 PM, Peter Maydell wrote: > On Fri, 14 Feb 2020 at 04:23, Anshuman Khandual > wrote: >> >> >> >> On 01/28/2020 06:09 PM, Anshuman Khandual wrote: >>> This series is primarily motivated from an adhoc list from Mark Rutland >>> during our ID_ISAR6 discussion [1]. Besides, it also includes a patch >>> which does macro replacement for various open bits shift encodings in >>> various CPU ID registers. This series is based on linux-next 20200124. >>> >>> [1] https://patchwork.kernel.org/patch/11287805/ >>> >>> Is there anything else apart from these changes which can be accommodated >>> in this series, please do let me know. Thank you. >> >> Just a gentle ping. Any updates, does this series looks okay ? Is there >> anything else related to CPU ID register feature bits, which can be added >> up here. FWIW, the series still applies on v5.6-rc1. Sorry for the delay in response, was distracted on some other patches. > > I just ran into some "32-bit KVM doesn't expose all the ID > registers to userspace via the ONE_REG API" issues today. > I don't know if they'd be reasonable as something to include > in this patchset or if they're unrelated. IMHO, they are bit unrelated. > > Anyway, missing stuff I have noticed specifically: > * MVFR2 > * ID_MMFR4 > * ID_ISAR6 > > More generally I would have expected all these 32-bit registers > to exist and read-as-zero for the purpose of the ONE_REG APIs, > because that's what the architecture says is supposed to happen > and it means we have compatibility and QEMU doesn't gradually > build up lots of "kernel doesn't support this yet" conditionals... > I think we get this right for 64-bit KVM, but can we do it for > 32-bit as well? I am not very familiar with 32-bit KVM but will definitely keep these suggestions noted for later, also try and accommodate if possible. > thanks > -- PMM >