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

Re: [PATCH v1 4/8] xen/riscv: introduce sbi call to putchar to console


  • To: Bobby Eshleman <bobbyeshleman@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Fri, 6 Jan 2023 17:16:31 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=gLRhIwINg8SKw4p5CaBpYacg5GUGCKOjTC1xEUkX0UQ=; b=cQv5xgzXF5MSQCti70zoM3aDp4HMlB5szNkWLF3VrORWTneCRwXWikfz6EFNHkNzBlcwF6VXFDVWeVHYEBBSmoNjxMjvMw52oX5MXnpsuFTLSM9zZ+bYNNJ/SX7/d0/+ppMxHV9ESLpjG5A2EFIanlaPXeS0NiIq2AVugPRafKsRe86mblIwSFb11iZ9hxfVkmnXGFgd0a4W5uyw+sBJnOWBuzSM8Pkvq45UjT2JZsR1xNOIQnQ5OAEy9s2BwTfT+qJ2F1/kOykpJ3oguRMaYIXZyUV9X/oepcnfELzP67K8+g69FBz1vD2shZnoA4DTegv6ta+bgFN6b/yq6RrpIg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MxutUXdXhtsYDp/qqj4sO6WaRC5GSjPswhkGR2CC/FzLsy3hpfXYwUPecr6RZKgsP9UE/P/vpaLJ8HTfqxZWDVQEuanf1VzRIgBl4nX25koLiNBAIwRp8Nt+o9hzxh6OyznLDdr9JEZ5g+gEhBhxoucPui8yEkDXkivwLl3Dtu/rhHbsQYLgEydanGxALRqB6DHFhAwcUtGR6pj84vVv7W2iUZjwj+13Zl8qnfqDFpHbDJW841A93/vScLvIftLFulr5GxSrAjrVlC7WGEnfsAawbSPvitkHkDeY1u5qMTGaWSWEHcxKqA7gc7fid+XGHOjLtiWvQhN0yjBprFCTEQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gianluca Guida <gianluca@xxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>
  • Delivery-date: Fri, 06 Jan 2023 17:16:54 +0000
  • Ironport-data: A9a23:Ps99SKw+00Fh8a2Yr696t+esxyrEfRIJ4+MujC+fZmUNrF6WrkUGn zAbXW6HbvyNZDemf40iOdi+o0sHvpDVzNAxGgpsqCAxQypGp/SeCIXCJC8cHc8wwu7rFxs7s ppEOrEsCOhuExcwcz/0auCJQUFUjP3OHfykTbaeYUidfCc8IA85kxVvhuUltYBhhNm9Emult Mj75sbSIzdJ4RYtWo4vw//F+U0HUMja4mtC5QRnPa4T5jcyqlFOZH4hDfDpR5fHatE88t6SH 47r0Ly/92XFyBYhYvvNfmHTKxBirhb6ZGBiu1IOM0SQqkEqSh8ai87XAME0e0ZP4whlqvgqo Dl7WT5cfi9yVkHEsLx1vxC1iEiSN4UekFPMCSDXXcB+UyQq2pYjqhljJBheAGEWxgp4KVte/ K1EMAsdVwikq6HnzYzjRsdxmO12eaEHPKtH0p1h5RfwKK9+BLzmHeDN79Ie2yosjMdTG/qYf 9AedTdkcBXHZVtIJ0sTD5U92uyvgxETcRUB8A7T+fVxvjiVlVQsuFTuGIO9ltiibMNZhEuH4 EnB+Hz0GEoyP92D0zuVtHmrg4cjmAuqAN5PSeHkp5aGhnXD/2sRVQNPCWGCsPqaklW3aYlBL hQtr39GQa8asRbDosPGdxe/qnSVswUcX9dVGusS5wSEy66S6AGcbkADSjNCc90n8swrXzsh1 lyOt9zsDD1r9raSTBq15rqS6D+/JyURBWsDfjMfCxsI5cH5p4M+hQ6JScxseIaulcH8Ezz0x zGMrQA9iq8VgMpN0L+0lXjIgjuqooXCRyYv5xvQRWOj5UVyY4vNT4Ws6EPH5PdaaoiDR1+Kv WMshMSVqusJCPmlnyuLRuIPELi35u2tPzjVgFopFJ4knwlB4FamdIFUpT17ekFgN59cfSezO ReO/wRM+JVUIX2mK7dtZJ68ANgryq6mEsn5UvfTbZxFZZ0ZmBK7wRyCrHW4hwjF+HXAW4lmZ v93re7E4a4mNJla
  • Ironport-hdrordr: A9a23:Q6PAEakmA/747Zojpcj75InezEjpDfIW3DAbv31ZSRFFG/Fw9v re/8jzsCWetN9/Yh0dcLy7V5VoIkm9yXcW2+cs1N6ZNWGN1VdAR7sC0WKN+UyGJwTOssJbyK d8Y+xfJbTLfD5HZB/BkWyF+gAbsb26GQuT9IXj80s=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZIdDaR/Z8ZObOWUu8wVolwH1ydK52M2qAgBtuMAA=
  • Thread-topic: [PATCH v1 4/8] xen/riscv: introduce sbi call to putchar to console

On 20/12/2022 6:23 am, Bobby Eshleman wrote:
> On Fri, Jan 06, 2023 at 03:14:25PM +0200, Oleksii Kurochko wrote:
>> The patch introduce sbi_putchar() SBI call which is necessary
>> to implement initial early_printk
>>
> I think that it might be wise to start off with an alternative to
> sbi_putchar() since it is already planned for deprecation. I realize
> that this will require rework, but it is almost guaranteed that
> early_printk() will break on future SBI implementations if using this
> SBI call. IIRC, Xen/ARM's early printk looked like a reasonable analogy
> for how it could work on RISC-V, IMHO.

Hmm, we're using it as a stopgap right now in CI so we can break
"upstream RISC-V support" into manageable chunks.

So perhaps we want to forgo plumbing sbi_putchar() into early_printk() 
(to avoid giving the impression that this will stay around in the
future) and use sbi_putchar() directly for the hello world print.

Next, we focus on getting the real uart driver working along with real
printk (rather than focusing on exceptions which was going to be the
next task), and we can drop sbi_putchar() entirely.

Thoughts?

~Andrew

 


Rackspace

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