[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] xen/arm: debug-pl011: Use 32-bit accessors for broader compatibility
- To: Michal Orzel <michal.orzel@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Thu, 1 Jun 2023 09:03:37 +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=s6CV/j8U+E9gMXdxA0OUc74xoZEdLbUw1tyrYOXXMWA=; b=Q/Boy0FPwqyxKEoTy75IZSquvAamZ0PvGcCEc1/Oh/wuZFCHEA1N+8kQWNP9etRGhH3bZcN+LA9WG3tQ5j/raFRd2PnE1VkhAq/YlMY6qTf9XCuov3KsFCYwnJcEnO6h0ahwvhTRA3hm/pBsDD/lN8WBsz3Sm2j7nBbdUkJKyQW7kD4jlMBLRFNWJNmvOa2FporeABEFIN4dputl/+AFbq4voELtJazGk/eZKqmiRNxUadBJyFxVRh13cNXR5HBaQEyAX+7FuJ9TWh7obyy7ddKYk0P0nxjGIwAEnHWYqUX/ePQdJpzJxNCkW9eHQaadtk9RfTtQeD7NkDw19edMng==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XSYT0buiI86MvO4LzpWH8SV8u2YrFE48tGcQoALuhe+4x0slQswrNTnscTl28PrpysmlYhptIhgW7txS8vNoUox25YGPwqyUwxdczyBzvgA68/xBKxogAOHBuEFYPxl4QaKz+C6Ubjd4U3m4/9StZaFhE8AT1uSV5zZ08cC/eQ4kEloIPmVSeaaql6Ku//4FfVAxWkb5ss4fHZd1VJTku6483kkmrhwp3czCxebZvYSKni2JivktzEx9BX3YDthb+Vl9nw6gL3ImkyySaqXsuUHSISZmcujoG9PelRl+tXUTXR+QCTBrJ175ljN2FAR2zoh5Uo6EnlcYYDN4vS3SxQ==
- 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: Thu, 01 Jun 2023 09:04:01 +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: AQHZlGYy5qjjgMoLOEGy4kwMr/2+Ka91pqhg
- Thread-topic: [PATCH] xen/arm: debug-pl011: Use 32-bit accessors for broader compatibility
Hi Michal,
> -----Original Message-----
> Subject: [PATCH] xen/arm: debug-pl011: Use 32-bit accessors for broader
> compatibility
>
> There are implementations of the PL011 that can only handle 32-bit
> accesses (i.e. no 16-bit or 8-bit), usually advertised by 'reg-io-width'
> dt property set to 4. On such UARTs, the current early printk code for
> arm64 does not work. To fix this issue, make all the accesses to be 32-bit
> by using ldr, str without a size field. This makes it possible to use
> early printk on such platforms, while all the other implementations should
> generally cope with 32-bit accesses. In case they do not, they would
> already fail as we explicitly use writel/readl in the runtime driver to
> maintain broader compatibility and to be SBSAv2 compliant. Therefore, this
> change makes the runtime/early handling consistent (also it matches the
> arm32 debug-pl011 code).
>
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
|