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

Re: [XEN v5 02/10] xen/arm: Typecast the DT values into paddr_t


  • To: Julien Grall <julien@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 19 Apr 2023 16:29:07 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=BTbDgP5w/WjI39w2xuG1k38dsw3CiWoafhOH97Jjcuw=; b=aPyB1Xc1wNoVz7g2bSQ85Lw5XAHVnA0pJpaEMErMc7q1UklGdzNF2AJiEjxXdU/9odGbvwfqlPIEA+GZs7Yha9sDRNXwxYy3AzcuXzZYCcWACCQynAtqwKcuMO2lmz+R1AzLsNBk6MtSXgoN8LC9IGBnEz8eVMaaFNGj/VwUcAJ2qL4eSLkS+q6NBhXAZvq1K+Xr+FHlAmwRDk2OU53phnhEJGttaIulLfTaK58tffSVQYRV50KW3/vTfLS7h31oGEaSA90UTezY0W92Fndff7evJULEcogmEQw/+fA/SwQZekW1e3J1WPysfRMnwAmKFWG/xFuKBarFeCpoDQxyeQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BX4NlSJfUQZL6A9Baa9+U61yjvbXc9ipY8wq06jPbhAaH39QM8JI4UtGiARoq0ZyJOHTcP+zNg2iR3SiSsQMej3zONBh/mWArLxGTGaATZCR7zCXRo8AoLjmWTX3UTZvqGTo3pO/OHWc9dzLhoBGI64mjSn+c4TD56mQa6/BU3i2Vl12yxQ6DY0tyiWO3r6d5yRnanKwjLsElpOB95MrjYWhcxR6atXQJOLl5rkIHx7bKpPt90G6S0iuM6UFdLgdShLgBhGXj+iwfd6JHt7rgpZvPd93iG/Qk8jme/LkUdQMFnRq33qCA9VZrhVPF8o0Og9hm9/FWRUz3LGxQqFOYQ==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <george.dunlap@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <wl@xxxxxxx>, <rahul.singh@xxxxxxx>
  • Delivery-date: Wed, 19 Apr 2023 14:29:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19/04/2023 16:20, Julien Grall wrote:
> 
> 
> On 19/04/2023 14:39, Michal Orzel wrote:
>> Hi Julien,
>>
>> On 19/04/2023 15:26, Julien Grall wrote:
>>>
>>>
>>> Hi,
>>>
>>>>> diff --git a/xen/include/xen/libfdt/libfdt-xen.h 
>>>>> b/xen/include/xen/libfdt/libfdt-xen.h
>>>>> new file mode 100644
>>>>> index 0000000000..3296a368a6
>>>>> --- /dev/null
>>>>> +++ b/xen/include/xen/libfdt/libfdt-xen.h
>>>>> @@ -0,0 +1,55 @@
>>>>> +/*
>>>>> + * SPDX-License-Identifier: GPL-2.0-only
>>>> Our CODING_STYLE says:
>>>> New files should start with a single-line SPDX comment, ..., e.g.
>>>> /* SPDX-License-Identifier: GPL-2.0 */
>>>>
>>>> For me it would be perfectly fine to do as you did but it is not what our 
>>>> docs state
>>>> (i.e. single-line comment). It might be that we need to modify 
>>>> CODING_STYLE instead.
>>>
>>>   From my reading of https://spdx.dev/ids/#how, what you suggest would
>>> not be a valid SPDX-License-Idenfier as everything in needs to be in
>>> *one* (including the begin/end comment).
>> I said what is written in our CODING_STYLE and what we did already for lots 
>> of files, i.e. having 2 comments:
>> /* SPDX-License-Identifier: GPL-2.0 */
>> /*
>>   * ...
>>   */
> 
> My comment was about your suggestion to update the CODING_STYLE not what
> it is currently written. Sorry if this wasn't clear enough.
> 
>>  > In the link you provided, the "*one line*" requirement refers only to
> SPDX short form identifier
>> which does not contain any other information like author, description, etc..
> Right because the SPDX block is intended to be in own block and there is
> a another block for the author, description, etc.
> 
> I am not in favor of changing of the CODING_STYLE and I thought I would
> express it right now to spare the round-trip of writing a patch.
Sure thing :)
So, all in all, we agree that SPDX comment must be a single line comment on its 
own
(which is also stated in our CODING_STYLE) and not like it was placed in this 
patch, right?

If so, somehow the wrong placement sneaked into recently added RISCV files:
arch/riscv/include/asm/csr.h
arch/riscv/include/asm/riscv_encoding.h

~Michal



 


Rackspace

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