From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 068CF1AAA29 for ; Tue, 10 Jun 2025 02:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749521448; cv=none; b=OeZxDqgOLjTQioJ9zciFrhOjZhD1wXNzkiSxTdnc4TD7/BoBkmpgfHxBQ/P62IOwd1U7T1rnPNZxRHA3q/C3s39QWlCljUwCA7Qv3sK2W8RibszMOjNnpJIrul+r16/A+JYR+k4MnTT1iIuOWLYjQVkH3j1P93df8KVX55WPr3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749521448; c=relaxed/simple; bh=5aU7eapGM/ei5f45aN1KDGXaOdpkZ89epyfvqNAl4eA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bPvCeM3ZndXoFXokao3zxEpIj/PYpshvlDmrBAJcBIeuYmVJ3SLxlJRCEA9EL/sAODw7L+43Mmyp+buXJcBHzZKr2ftVNZBdkBOYXv1mNr6zKh+rOSpFZyWaTXQeuEq3vY/umc9scaDys4mBqbGDpCRtPtHRB6v7jf3IXfnZfuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com; spf=none smtp.mailfrom=pdp7.com; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b=ELeBHnP1; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=pdp7.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b="ELeBHnP1" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-23633a6ac50so9965315ad.2 for ; Mon, 09 Jun 2025 19:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdp7-com.20230601.gappssmtp.com; s=20230601; t=1749521445; x=1750126245; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ya/YooFCKAb0uxl/VSVdQA32RSK9pJJ/D62fB+0PERk=; b=ELeBHnP1u/i5PlAoyN3PB0tbjxVTHs3n0ABGReccegrjNSbyC6nICA3ukRT1ccUQkK R6ONKB4TcddbEzV7+f2H1nu2ADq/ids6mqnu5/N01kGPBWtWURSwf3MuGAMLHeugoeM/ vTdXv+Husmic/yjyZb+k/1kGPl2af2kB144q7PKeMYAncBbOrC7H5CPysik5MMiuoFQ4 7WcnvSZgaXI8bDIfkPe5SzKtdV9cEWyAHcw/CluHlQwrj39pz2W+xhykq1qQMc5ca6e5 b4LxuA5WmUZvnhOb/9hzJ+GRmwxU7JTCVXXvxt0FSj6lvgW3qetBFYiV5qzk9BVsXZJ8 n5Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749521445; x=1750126245; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ya/YooFCKAb0uxl/VSVdQA32RSK9pJJ/D62fB+0PERk=; b=Qd4GBjZdmtN12ziDZKYB4HpH5ggfsftBMMLmaD7C41/CCJFSXSNfsGCqptRnAzL/P0 Y7QyyUIzVXABFDe+Q/9vIU7+iPRAjIgt42Pe+2EgT0ur7LsYsdvjZR34BVFw5xC4YMsO dRPobLOyz7dU8vFqtF/vjP5xdZ415C8ebVl3DL+9/Be5eN5LX/gkYsE0R8pnz6lu6/n7 f8egGB78d3GouwvJZvmQVVDPo+oRDD/A/M1oGw3XDLxZtfTgRTcmeCYXHPEVidI32Z/y sB4JuADCRgPqP95WZXbZoDB4EUM8BW0GDbpjUBLe1nLPr1qUBpIIROBE95Qez0A25UHW f8KA== X-Forwarded-Encrypted: i=1; AJvYcCX9adUKtIVvnbSiudYsSOuBs2ARxAGQf6ZOqzSxndf1vOJSbFjMc2tVi9NBhV7/QnKiz8YIR6oOAb4XZIQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+Qnll9zj8E47cyrKZzkWygTo7FTHKmOV5fgWJbTUFTbXJpbuZ s8t8whCoHXZWd+Rz7RpgD/lhsgCr0ttE+JkHuVaDj8B8sZFzszzkxyJPXyiCehiM5Vo= X-Gm-Gg: ASbGncsh+H5YimnXrOuyD4d9XevxmIcudOkhuFFf0Ps/agnaW55VW2/vl0ONa7sR7+p BR24XkWxH5ST4mhqcUjIBVN5i4Y9S8OEBb9TD9xEaOHFDoCWJ1o2ElkrmWCFhOos84c45bQEo6c uq/nl/J9y4ajLei1zY/CS/kwNHmF1qIe1n710HTWBJ41cbNVCj11CKELATuK93JFovGJo1gzkrq VWWG/t/BUyQsFRZ4L2BhvHaV2FEiemnVUqKvCjzS07vv/iVOrZiSEVmHXX6B0Uuqj7C3imyobMk Zvp3UPfFheKcdf+oCYF+809jcrIoXHZ1kj2WuJpkIjKmlzJFs7rOsQJraPH1yrvicjLe81+ICJJ E9dpst+yv X-Google-Smtp-Source: AGHT+IHiLzOREAtFVISmftxMjRL3+S4jCj4+M1zY33h7bufBc03vR1T1goruVVU0oe6Aj5IJJ3iEbg== X-Received: by 2002:a17:903:f87:b0:236:15b7:62e8 with SMTP id d9443c01a7336-23638331c1emr13447465ad.25.1749521445312; Mon, 09 Jun 2025 19:10:45 -0700 (PDT) Received: from x1 (97-120-245-201.ptld.qwest.net. [97.120.245.201]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23603078175sm60500825ad.9.2025.06.09.19.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jun 2025 19:10:44 -0700 (PDT) Date: Mon, 9 Jun 2025 19:10:42 -0700 From: Drew Fustini To: Ira Weiny Cc: Dan Williams , Vishal Verma , Dave Jiang , nvdimm@lists.linux.dev, Oliver O'Halloran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v3] dt-bindings: pmem: Convert binding to YAML Message-ID: References: <20250606184405.359812-4-drew@pdp7.com> <6843a4159242e_249110032@dwillia2-xfh.jf.intel.com.notmuch> <6846f03e7b695_1a3419294dc@iweiny-mobl.notmuch> 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: <6846f03e7b695_1a3419294dc@iweiny-mobl.notmuch> On Mon, Jun 09, 2025 at 09:31:26AM -0500, Ira Weiny wrote: > Dan Williams wrote: > > [ add Ira ] > > > > Drew Fustini wrote: > > > Convert the PMEM device tree binding from text to YAML. This will allow > > > device trees with pmem-region nodes to pass dtbs_check. > > > > > > Acked-by: Conor Dooley > > > Acked-by: Oliver O'Halloran > > > Signed-off-by: Drew Fustini > > > --- > > > Dan/Dave/Vishal: does it make sense for this pmem binding patch to go > > > through the nvdimm tree? > > > > Ira has been handling nvdimm pull requests as of late. Oliver's ack is > > sufficient for me. > > > > Acked-by: Dan Williams > > > > @Ira do you have anything else pending? > > > > I don't. I've never built the device tree make targets to test. > > The docs[1] say to run make dtbs_check but it is failing: > > $ make dtbs_check > make[1]: *** No rule to make target 'dtbs_check'. Stop. > make: *** [Makefile:248: __sub-make] Error 2 I believe this is because the ARCH is set to x86 and I don't believe dtbs_check is valid for that. I work on riscv which does use device tree so I use this command: make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- dtbs_check > > > dt_binding_check fails too. > > $ make dt_binding_check > SCHEMA Documentation/devicetree/bindings/processed-schema.json > Traceback (most recent call last): > File "/usr/bin/dt-mk-schema", line 8, in > sys.exit(main()) > ~~~~^^ > File "/usr/lib/python3.13/site-packages/dtschema/mk_schema.py", line 28, in main > schemas = dtschema.DTValidator(args.schemas).schemas > ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ > File "/usr/lib/python3.13/site-packages/dtschema/validator.py", line 373, in __init__ > self.make_property_type_cache() > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ > File "/usr/lib/python3.13/site-packages/dtschema/validator.py", line 460, in make_property_type_cache > self.props, self.pat_props = get_prop_types(self.schemas) > ~~~~~~~~~~~~~~^^^^^^^^^^^^^^ > File "/usr/lib/python3.13/site-packages/dtschema/validator.py", line 194, in get_prop_types > del props[r'^[a-z][a-z0-9\-]*$'] > ~~~~~^^^^^^^^^^^^^^^^^^^^^^^ > KeyError: '^[a-z][a-z0-9\\-]*$' > make[2]: *** [Documentation/devicetree/bindings/Makefile:63: Documentation/devicetree/bindings/processed-schema.json] Error 1 > make[2]: *** Deleting file 'Documentation/devicetree/bindings/processed-schema.json' > make[1]: *** [/home/iweiny/dev/linux-nvdimm/Makefile:1522: dt_binding_schemas] Error 2 > make: *** [Makefile:248: __sub-make] Error 2 > > How do I test this? dt_binding_check should work on x86. Maybe you don't have dtschema and yamllint installed? You should be able to install with: pip3 install dtschema yamllint And run the binding check with: make dt_binding_check DT_SCHEMA_FILES=pmem-region.yaml You should see the following output: SCHEMA Documentation/devicetree/bindings/processed-schema.json CHKDT ./Documentation/devicetree/bindings LINT ./Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/pmem/pmem-region.example.dts DTC [C] Documentation/devicetree/bindings/pmem/pmem-region.example.dtb Thanks, Drew