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 4DCF7C46467 for ; Tue, 10 Jan 2023 12:44:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.474659.735935 (Exim 4.92) (envelope-from ) id 1pFDyu-0002EL-2d; Tue, 10 Jan 2023 12:43:56 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 474659.735935; Tue, 10 Jan 2023 12:43:56 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDyt-0002EE-VN; Tue, 10 Jan 2023 12:43:55 +0000 Received: by outflank-mailman (input) for mailman id 474659; Tue, 10 Jan 2023 12:43:54 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDys-0002E8-Ed for xen-devel@lists.xenproject.org; Tue, 10 Jan 2023 12:43:54 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pFDyr-0006G4-RA; Tue, 10 Jan 2023 12:43:53 +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 1pFDyr-0007ny-Jr; Tue, 10 Jan 2023 12:43:53 +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:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=Tx8YHT2rVSoZMZQj6HL8AY94qQPEXLZ9E10ABuADxIY=; b=CLnkfRF4zuA3JULBhnH9cUKbnS Teuc0kc873AapYt249CbCrmkGwBa5YsT04PCud/4CX0f9MFnA5ZXWSTE81qt+5Y92jDDhNkNYOTwy r9Jwt8wd4tRjoX6iqrT3DQIabmS401VL4Wbmm0gZfFTmI3GvfIIt64hCxq2noiRN9FQc=; Message-ID: Date: Tue, 10 Jan 2023 12:43:50 +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 To: Oleksii , xen-devel@lists.xenproject.org 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> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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