Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA8FDC46467 for ; Tue, 10 Jan 2023 12:44:37 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.474663.735946 (Exim 4.92) (envelope-from ) id 1pFDzQ-0002jK-9Q; Tue, 10 Jan 2023 12:44:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 474663.735946; Tue, 10 Jan 2023 12:44:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDzQ-0002jD-6f; Tue, 10 Jan 2023 12:44:28 +0000 Received: by outflank-mailman (input) for mailman id 474663; Tue, 10 Jan 2023 12:44:27 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDzP-0002hp-3x for xen-devel@lists.xenproject.org; Tue, 10 Jan 2023 12:44:27 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDzP-0006HB-3C for xen-devel@lists.xenproject.org; Tue, 10 Jan 2023 12:44:27 +0000 Received: from 54-240-197-233.amazon.com ([54.240.197.233] helo=[192.168.2.225]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFDzO-0007xO-TP; Tue, 10 Jan 2023 12:44:27 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: References:Cc:To:From:Subject:MIME-Version:Date:Message-ID; bh=s89S+/0Tw5JkM6SbysGCe35/dE77wWYNqa5KmJ+xXaw=; b=CexUFMK0KKQqCvf4s09suUEkJg cE7CT1+Qw+92Wd9SvNOeRfGrECeKXvcUYPXJAHfKcStS9LrE008lN+9L2fwwmNUW5GDTtTSAVuFNu yDrGNMkOnPXydWd7e6w0UTuVshWezI75Yp+jAWSm4CLcPSlZO4ihiJFjpxQA20hWWTTE=; Message-ID: Date: Tue, 10 Jan 2023 12:44:24 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 4/8] xen/riscv: introduce sbi call to putchar to console Content-Language: en-US From: Julien Grall To: Oleksii , xen-devel@lists.xenproject.org, George Dunlap Cc: Jan Beulich , Andrew Cooper , Stefano Stabellini , Gianluca Guida , Bob Eshleman , Alistair Francis , Connor Davis References: <9b85a963db538e4735a9f99fc9090ad79508cb2c.1673278109.git.oleksii.kurochko@gmail.com> <7990322c-639b-38d4-ff6c-221988532c33@xen.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit (+ George) On 10/01/2023 12:43, Julien Grall wrote: > > > On 10/01/2023 08:21, Oleksii wrote: >> Hi, > > Hi Oleksii, > >> On Mon, 2023-01-09 at 16:03 +0000, Julien Grall wrote: >>> Hi, >>> >>> On 09/01/2023 15:46, Oleksii Kurochko wrote: >>>> The patch introduce sbi_putchar() SBI call which is necessary >>>> to implement initial early_printk >>>> >>>> Signed-off-by: Oleksii Kurochko >>>> --- >>>> Changes in V2: >>>>       - add an explanatory comment about sbi_console_putchar() >>>> function. >>>>       - order the files alphabetically in Makefile >>>> --- >>>>    xen/arch/riscv/Makefile          |  1 + >>>>    xen/arch/riscv/include/asm/sbi.h | 34 ++++++++++++++++++++++++ >>>>    xen/arch/riscv/sbi.c             | 44 >>>> ++++++++++++++++++++++++++++++++ >>>>    3 files changed, 79 insertions(+) >>>>    create mode 100644 xen/arch/riscv/include/asm/sbi.h >>>>    create mode 100644 xen/arch/riscv/sbi.c >>>> >>>> diff --git a/xen/arch/riscv/Makefile b/xen/arch/riscv/Makefile >>>> index 5a67a3f493..fd916e1004 100644 >>>> --- a/xen/arch/riscv/Makefile >>>> +++ b/xen/arch/riscv/Makefile >>>> @@ -1,4 +1,5 @@ >>>>    obj-$(CONFIG_RISCV_64) += riscv64/ >>>> +obj-y += sbi.o >>>>    obj-y += setup.o >>>>    $(TARGET): $(TARGET)-syms >>>> diff --git a/xen/arch/riscv/include/asm/sbi.h >>>> b/xen/arch/riscv/include/asm/sbi.h >>>> new file mode 100644 >>>> index 0000000000..34b53f8eaf >>>> --- /dev/null >>>> +++ b/xen/arch/riscv/include/asm/sbi.h >>>> @@ -0,0 +1,34 @@ >>>> +/* SPDX-License-Identifier: (GPL-2.0-or-later) */ >>>> +/* >>>> + * Copyright (c) 2021 Vates SAS. >>>> + * >>>> + * Taken from xvisor, modified by Bobby Eshleman >>>> (bobby.eshleman@gmail.com). >>> Hmmm... I missed this one in v1. Is this mostly code from Bobby? If >>> so, >>> please update the commit message accordingly. >>> >>> FAOD, this comment applies for any future code you take from anyone. >>> I >>> will try to remember to mention it but please take pro-active action >>> to >>> check/mention where the code is coming from. >>> >> Sure, I will try to be more attentive next time. >> >> Probably it is out of scope a little bit but could you please share >> with me a link or clarify in which cases I have to add Copytrigt(c) or >> should I add a new comment with "Modfied by Oleksii ... ", or it is not >> necessary at all? Maybe have I to put some other information related to >> copyrigts? > > From my experience, in Xen, we tend to use the signed-off-by rather > in-file copyright. So I don't exactly know what would be the rule. > > Maybe George can help here? > > Cheers, > -- Julien Grall