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

RE: [PATCH 2/4] xen/arm: debug-pl011: Add support for 32-bit only MMIO


  • To: Michal Orzel <michal.orzel@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Tue, 13 Jun 2023 02:59:30 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=Mkc4Y5coDofVkygOqdKv7raPEaavwEjOzY6j6FDL3nA=; b=GMXzJMQOefBpPN1hfvxXxMvVCJ1D7hvDs13GoZ+MZtrsgKo58iRhhFQ/6wgaR6dnVCEUTC0oygBlpFcGbC++hc7kXzQ/6rbtFGmXDpPzblxT0F7h+ZgcXQ5TcselcgrewvteLQ0h2AsQm/UbdqT4oGTkDW+spPE2/aOLyUqNGtZSRybAJrc5u6v40RPYUkZtE5p+3Zi6H2feko5+FUXD8LS39W7fivq8jUO6JFAYeFJwN/XKNTBQVzOKnzSSDDD2Znda2RY5hyu1sAH0ngT1MzgWVazKNOGtv3/MUg/Uq/ZOLJwEtwYg/TmlIPCc1aQVtgLk//+9zFj9Y8vWlss2Fw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=icHFoSvZcZADKCojlEce6W1k1T1rlqQ8xIMM4eHZi+zbQmUh6d01adpvgdTs8mn2N5NHE73n/BvE97spI71btoAyWh1m8ancnAx5Cq6Lxzvi5oAm5hZFUk/CFFxcOcDxnfEdI6twZmj1MlfbdQQJ5LBjrgKJ3fUwoN3JZCorKy/BqgroRax2PY6Fl3H6WkDakdiD3pvtYMOWEMTkOtp+WzpDYRH1sVNiXdaTx/QrNqmcXq/+CsEKCdu4qtpBta1vs86++2ph/uSlBmkz60X7e7a5JO7dupnb3qgDK0lWGJFH/5FcNQ65/IXIemSPO8LA83nTEAtKTdCh9sZcoLcEqw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 13 Jun 2023 02:59:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZmSJi48sE31XUjkCsxZnYc3N4Yq+IAl4w
  • Thread-topic: [PATCH 2/4] xen/arm: debug-pl011: Add support for 32-bit only MMIO

Hi Michal,

> -----Original Message-----
> Subject: [PATCH 2/4] xen/arm: debug-pl011: Add support for 32-bit only
> MMIO
> 
> There are implementations of PL011 that can only handle 32-bit accesses
> as oppose to the normal behavior where accesses are 8/16-bit wide. This
> is usually advertised by setting a dt property 'reg-io-width' to 4.
> 
> Introduce CONFIG_EARLY_UART_PL011_MMIO32 Kconfig option to be able to
> enable the use of 32-bit only accessors in PL011 early printk code.
> Define macros PL011_{STRH,STRB,LDRH} to distinguish accessors for normal
> case from 32-bit MMIO one and use them in arm32/arm64 pl011 early printk
> code.
> 
> Update documentation accordingly.
> 
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>

I've tested this patch on top of today's staging on FVP arm32 and arm64 and
confirm this patch will not break existing functionality. So:

Tested-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry



 


Rackspace

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