[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 3/4] xen/ppc: Implement early serial printk on pseries
- To: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 24 Jul 2023 14:40:47 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=NVOX9FdgZF/IwQDGOJfYw+KizAFkLui8caafB7SZ8Z8=; b=XxrCVEJu1p/48P3eXzmBS1YlgNsj2CL2RBdNhgksr5eoe3PfNEfANg7IS11AlJkyxOEXJbbW39nserHz2rHy65b0e3RT+nxMWKwDsbffF15W/WBfL8Wa2KPkziZFTb1c1gE7jxTFGOZvVhxjsKKYeqxwMi8m7zYNGtz5Q3yMuxw/TjzIzYtReVPYPcu+Ba6nuxFX4T6yV+8wBWdQVnXEfo1grfAjM2tbzW6VSQxnpTMlsVwtlgsh6iG1qWt8YDahUluNBgXWy1bEMxXROQzsmGfRLPGevX9S1arRA0hYpEsWj5yYkBvW0BaY57Lrr+p4f2UMQOJdUYQHiwUEYma7xw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i4bVXjDc5rPGBdNhLSWV+7Bjk634o5d3MKpVwfl3m/b6WZs3pCEPVhlbBeUcyGvNNzhmXOu14d6aghEXT4P5Fgr+IEAmepDXejbGPo2WPL9abwr2QX9YAxMxc40/WlbAQiP038lVhTgsnQ4w/Lu1h51RzDWGVp1wtuCCHuvAmFAfyVvDFr6v/ccEsMtG5gXGuxjY56VywN0WvfOti7L6ag4EaPzzhQrA9yO+m2IxtOqAFe3U4lNo0C8SBGZa+Zm8TtuFal43nYSu8f21yo+OZNR4FZ5BW43knkUhF9/eQWIvq0PFeRmym2puOB64KbSd/R11ZZPvvSDV6Z+Ah50vqA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 24 Jul 2023 12:41:32 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 21.07.2023 19:02, Shawn Anastasio wrote:
> On typical Power VMs (e.g. QEMU's -M pseries), a variety of services
> including an early serial console are provided by Open Firmware.
> Implement the required interfaces to call into Open Firmware and write
> to the serial console.
>
> Since Open Firmware runs in 32-bit Big Endian mode and Xen runs in
> 64-bit Little Endian mode, a thunk is required to save/restore
> any potentially-clobbered registers as well as to perform the
> required endianness switch. Thankfully, linux already has such
> a routine, which was imported into ppc64/of-call.S.
>
> Support for bare metal (PowerNV) will be implemented in a future
> patch.
>
> Signed-off-by: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
While I've committed the earlier two patches, I had to back out this
one. In my environment (gcc13) the build fails due an unresolved
reference to memset() out of boot-of.c (supposedly from of_call()).
Jan
|