From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2049E43BDD4 for ; Tue, 11 Aug 2026 09:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786440729; cv=none; b=P2RNRwNxLfgBGkHZJBWP6fPaIxidMyb2q2bsA4gQG7UnMK6sgHJZ+Vch83mKHac3iu7JV3CP+5JmThSR03UXj4GtTeoIuoDXoZeZPaPBzSyFDNjphpoF6NGFsI4M0QVGqSvXwNjScAYavQ3jsegPXj+hsnEE7Sq7e9rywR0p9Wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786440729; c=relaxed/simple; bh=HCo5rSbEvOu2viOHidCQ8HRW4Qctda5+Ow5PlKO9n4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r5sx3xEN8qDK31OW3oncLpDW5IwvTjSbE2ZkRZ0PS2wR7B/emDp+cKdrAmxMtAi70tb/4pit/vtyHInHh/VcAzpdTm1hxc6uoxDTc7EGn2BNyH6oILHJpXqNSWNdBqISMHbtBhvJ9HscCJcDEwzmIsam0rxmzmWo/3ZLgi1O1Uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=HHY8AVKh; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="HHY8AVKh" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2ce98cb8165so8645645ad.1 for ; Tue, 11 Aug 2026 02:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1786440727; x=1787045527; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ap29SzIYC2SRhT7+1cYIYqMqPmmcLkWivyt8GCYG80w=; b=HHY8AVKhv2PnMrg/d0HomC91JhO2S5sry0b29N0/x7gvzgPRAyvne/eiYAnrWRs15J Izn72VKWjoXCuFsXskZwZxKw+j0irbwfCO5gldJZScaEOTA2D5GoLDyaD/cTGyPGGN3o dSKVf2EpQXvDusQZZwXR/AwZj50KRcW3LefmDZMuSuiofAsjkkT4sCQMEm+l/A5yMiBt IBPtRndpikWyuryPi5FyfdRD8KQXMDcB6DUPn4ZIl/ZAgCOiC0DaykiuR1jYOvArLaZx F9cxYc25/12Da7RMJwBXB2yINU+0osEVjjla/VLI8uEAqyXTAg4u7/mZ0AUidwC5NPCz RSCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786440727; x=1787045527; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ap29SzIYC2SRhT7+1cYIYqMqPmmcLkWivyt8GCYG80w=; b=XG7GbbpGDdaxMVU/0RbYhCn+CNJKENArMKwXlTWA/naDgQeS+IzHO7G+iVYf/0Xd5e 5Th9lGxboq6se2lSXlQftO5ozYfU+xWYOchto9Eq1cLdNP4CF3yMc+WJlOd+n8rczPhB /QJiOaptu0cDlNJMbaSJlFLHVaI1Xks1rtVM/gAI0Dtqoa3e9a663225oyaPVFEDvcUp dzwIlt+DJHOhm6c5AR3Gy4FcsegH8CpbUFT3s7cGxMqyEexrl7mmIc4Z6D7Ndi4MdSEk LIkof23QTDMaCodoAYMjK6asme6cNXilheAQs21CsolW10qE2qoVOr3500Ph2e3ieRAY ZNXQ== X-Forwarded-Encrypted: i=1; AHgh+RpS0LoAtxXFV+mFIyxtHuSTPBC1sIfzIN8e1oqWepe1d1KrOspDONNGW13I0a3O4A3xFB0KW3e5DtvkpUQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyQf3zvzyx8xECvjl51GPyZ8Y4AR2MfwFFlPngL5UU2CjyHfKCy AyeMUXCj9GtohePT473KCp48KxFHRKC5+gSBiHnCxNZqOIy0reG/1OSDX3N6+zAvVmY= X-Gm-Gg: AR+sD123q3Jm/Vt3GLJZul/jpL5qXKYqgXhyNk+GRvZJrEWjWcwiM+vcvIJ0oTYbbvk Sstqu+kjegAM58bEfKEMbTCAjOC/XAL4PHgI8Hp5vg+LrNvboxgZOxNmMWAPGPbjt2575qsholL biZGFt4jH3IG6PnmG+Bf38NFIEVF3tUfCthATO7BwJ6IivpF9thaurARjmw9JJtbhiCMuE+nK1/ J/8NEi/ad3rNQjcH5EyRxwFf77UJPBM15QTPiPHhfmBcXckPSHYtZvmC7v13TyJIKBFxnyN8ERi RDQNJyr+agQyZ7cRX7pOCkJ/sPPG0KLNv74ZXcjORHNGW9AfoZPiKESG7gVRA2u5ibshhiQv3fk ywZSYhjGVTLsbus7mrJMifABRG8zN5Nvoiic83DTIKZEP4+D/08VyJfMTDw6YqY0AbEo3llXYuh SOL1Hvbw8+ERO84X1dFg4HxpavtwIIfKyi8bhWhOI8Qh/KJkNBPqlk/oA4Vos= X-Received: by 2002:a17:903:2410:b0:2c6:8d95:fd7e with SMTP id d9443c01a7336-2d3187acb9emr19605805ad.6.1786440727293; Tue, 11 Aug 2026 02:32:07 -0700 (PDT) Received: from plin-1878 ([136.226.240.195]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d315f29afdsm4693525ad.19.2026.08.11.02.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2026 02:32:06 -0700 (PDT) Date: Tue, 11 Aug 2026 17:31:56 +0800 From: Yu-Chien Peter Lin To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, samuel.holland@sifive.com, dlan@kernel.org, dfustini@oss.tenstorrent.com, michal.simek@amd.com, junhui.liu@pigmoral.tech, darshan.prajapati@einfochips.com, akpm@linux-foundation.org, zhangchunyan@iscas.ac.cn, luxu.kernel@bytedance.com, pincheng.plct@isrc.iscas.ac.cn, nick.hu@sifive.com, jim.shu@sifive.com, zong.li@sifive.com, greentime.hu@sifive.com, robin.randhawa@sifive.com, scott@riscstar.com, dave.patel@riscstar.com, raymond.mao@riscstar.com, anup@brainfault.org, pawandeep.oza@oss.qualcomm.com Subject: Re: [PATCH v2 2/3] dt-bindings: riscv: Add Worlds per-hart properties Message-ID: References: <20260729163908.249838-1-peter.lin@sifive.com> <20260729163908.249838-3-peter.lin@sifive.com> <20260730-glossy-pompous-quokka-c05c60@quoll> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260730-glossy-pompous-quokka-c05c60@quoll> Hi Krzysztof, On Thu, Jul 30, 2026 at 09:30:24AM +0200, Krzysztof Kozlowski wrote: > On Thu, Jul 30, 2026 at 12:39:07AM +0800, Yu-Chien Peter Lin wrote: > > + riscv,pmlwidlist: > > + $ref: /schemas/types.yaml#/definitions/uint64 > > + description: > > + Optional bitmask of WIDs available for S-mode and U-mode use on this hart; each > > + set bit N indicates WID N is available. Firmware may read this to select platform > > + authorized WIDs for lower-privilege modes. > > # RISC-V has multiple properties for cache op block sizes as the sizes > > # differ between individual CBO extensions > > cache-op-block-size: false > > diff --git a/Documentation/devicetree/bindings/riscv/worlds.yaml b/Documentation/devicetree/bindings/riscv/worlds.yaml > > new file mode 100644 > > index 000000000000..cc8b3747591e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/riscv/worlds.yaml > > Please run scripts/checkpatch.pl on the patches and fix reported > warnings. After that, run also 'scripts/checkpatch.pl --strict' on the > patches and (probably) fix more warnings. Some warnings can be ignored, > especially from --strict run, but the code here looks like it needs a > fix. Feel free to get in touch if the warning is not clear. The only issue I got is: WARNING: DT binding documents should be licensed (GPL-2.0-only OR BSD-2-Clause) #114: FILE: Documentation/devicetree/bindings/riscv/worlds.yaml:1: +# SPDX-License-Identifier: (GPL-2.0 OR MIT) Hope I am not missing other warnings or errors. Thanks, Peter Lin