[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1] xen/arm: arm32: Add support to identify the Cortex-R52 processor


  • To: Julien Grall <julien@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • Date: Thu, 22 Jun 2023 09:59:32 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YuwWAfHePFYTql2VkDF9PJx34FKsMPbER8xsNfTMRLs=; b=aUjXfWlW0mTa4CvPQZo1ArLEvJiTMl8ra19BLI/tP9jFBDeyb4uHdntgaINXE1PQ4k6XoGOgm+PIhBZiMyIEfYPgQeff65ET9vSufznrzNi7PwfvKA2mq6vxPlhBp0blDeiesd/j/gsFs2WAqsJYMbeXWY8l6AO1Y6/sCLV/vKY35T+lA6LBjvEMuYnD4kUQPooV5a1IXWIL6SNBt8qTTeSCAtGxse02ifj3x48UnACH2PpjJdq0xrd+uOPNx14t9TAWduvIpo9/ZbsJ1/OfPMX58dB088QempVq1vYgvftiy7qu3LQXwsU/S7D5TMC6mol/T1AZUeI4LvR2ApnmvQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nk7AUtGZXl+CMPZJI4uZ2C6oKNU8D1m7STLrTgv5xU+XV9kgDvcWmmk50gY3PkhIuSf3d7hcpIg5SZhDjkl+TbWPGEie1zxZL0fYnQPl10HGdAQLlv603RvsCXDLORh047nUI5kmQDCjk8rFVT/9Ty+KZ4RnECcSCeQvIpcozXY+ngYZOzI7/HYbbkFhRb4tLPALA3ISzVeBbrlPR0uMgqkbgFvuPGCRqAGCrfZb00dySTH+BupyPGo2C7NQ8cGKXkzdO2xqW7CATf5sgUYWCAm5uYfg+yCCJaxJrDtCmaoneKBYqi/ap9HfH21w/LztGDsfrTbYbcDZuTq+UUebzg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: sstabellini@xxxxxxxxxx, stefano.stabellini@xxxxxxx, Volodymyr_Babchuk@xxxxxxxx, bertrand.marquis@xxxxxxx
  • Delivery-date: Thu, 22 Jun 2023 08:59:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 20/06/2023 21:43, Julien Grall wrote:
Hi Ayan,
Hi Julien,

On 20/06/2023 19:28, Ayan Kumar Halder wrote:

On 20/06/2023 17:41, Julien Grall wrote:
Hi,
Hi Julien,

On 20/06/2023 16:17, Ayan Kumar Halder wrote:
Add a special configuration (CONFIG_AARCH32_V8R) to setup the Cortex-R52
specifics.

Cortex-R52 is an Arm-V8R AArch32 processor.

Refer ARM DDI 0487I.a ID081822, G8-9647, G8.2.112 MIDR,
bits[31:24] = 0x41 , Arm Ltd
bits[23:20] = Implementation defined
bits[19:16] = 0xf , Arch features are individually identified
bits[15:4] = Implementation defined
bits[3:0] = Implementation defined

Thus, the processor id is 0x410f0000 and the processor id mask is
0xff0f0000

Also, there is no special initialization required for R52.

Are you saying that Xen upstream + this patch will boot on Cortex-R52?

This patch will help for earlyboot of Xen. With this patch, cpu_init() will work on Cortex-R52.

There will be changes required for the MPU configuration, but that will be sent after Penny's patch serie "[PATCH v2 00/41] xen/arm: Add Armv8-R64 MPU support to Xen - Part#1" is upstreamed.

My aim is to extract the non-dependent changes and send them for review.

I can review the patch. But I am not willing to merge it as it gives the false impression that Xen would boot on Cortex-R52.

In fact, I think this patch should only be merged once we have all the MPU merged.

IMHO, patches are independent are rework (e.g. code split...) that would help the MPU.

Yes, that's exactly what I intend to do. I will send out the patches (similar to this) which will not be impacted by the MPU changes.

So, that both as an author/reviewer, it helps to restrict MPU serie to only MPU specific changes.

Can you suggest some change to the commit message, so that we can commit it (without giving any false impression that Xen boots on Cortex-R52) ?

May be adding this line to the commit message helps ?

"However, Xen does not fully boot on Cortex-R52 as it requires MPU support which is under review.

Once Xen is supported on Cortex-R52, SUPPORT.md will be amended to reflect it."

- Ayan


Cheers,




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.