Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp634940lqo; Wed, 8 May 2024 10:01:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqg1Srh8HhplJpjTtf+Bu1JPqvt/Tr+R/orHibm84I3YvdDtchGIMZbAi7l5dWbhTYM6ZjGoQMfMUdk1bZj5t6Ctfw8HlHvbsAJ4J/NQ== X-Google-Smtp-Source: AGHT+IE5HCuvi2CEQqveVVmBZ+SsqvpBlbbx05ROcB7Uek8cfD4RDrM5Maan9+VxjZKrRnpeZTvd X-Received: by 2002:a05:620a:4594:b0:790:7837:ad1 with SMTP id af79cd13be357-792bbdfe6e9mr43838785a.22.1715187675370; Wed, 08 May 2024 10:01:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715187675; cv=pass; d=google.com; s=arc-20160816; b=mdAUhn2qR6/JqKCOxocLPB8dRWPOofl/LHb/G1ol9sajz+ZWyhWogMZsX6PnUF+Lg7 0aFKtgmTGiDBWVr/kKXqh8A1dRKCXzYynEdcxFw4e3Yoh1PF6wnDGvzvhQz1GxG32sEP iIqrWDn8XrJoNGcSljKQSSNgpwpTeVKdhS6NphtPZkE125P2Nuitc2G5+TW1DAB9hCpt 8WO265yQ6AWAht/38aSeHOHZ6Cg7pGOfxRuSDhMw4aT9U+7rVabd5fhWAlXgsgxnz5ya tATawVVt/IjyhKuGH0La058KcBhtT8Tr7cPbxCoiebTxDlHM+IhwAECiuKRclCdcmoq/ G+dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wpYYnaRBsuGvPSy60hOO8vte5UinlKGjQ/ONZ4U/gQw=; fh=VlZV0qTvhsJRFpAYMtcShcaYVxE2AmWpAyFwbWxB++4=; b=wMzlaeBEZiSIVDUI2RO6HvNt/UhpUIvfZONIO6g+DvmojBbWXBPikCyKjQQxRhF7Ok jLyerb22ROnYVwV5L/YsUBQmnjnaW+hiZ/POcKWGFUVALuN6gjDS73tGRDyJtYyUWjK3 k1dc2WWF4cbg5+ed2CoJQVCn+aKNokZXa1kp22xXKlYl7R18SZ1DgnrqchXX8tha8H+4 NNZejfnjXOZejpK+/y+CwhPQD3Tm2n0yaJyYiqrMtnbZy+2FllxPs258WK5U9pdPUj9e bgXmOoF6uKGn5Xk+NpXB7B0fm4weP1j3u1Us3kyKhpKaEHBs7Liy8TAGMA0xH6875HoT M4lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfScOLOR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x11-20020ab0380b000000b007e7f8bee0f5si2334093uav.57.2024.05.08.10.01.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfScOLOR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D5B4B1C22095 for ; Wed, 8 May 2024 17:01:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2980FBEE; Wed, 8 May 2024 17:01:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MfScOLOR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C847DDDD2; Wed, 8 May 2024 17:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715187667; cv=none; b=RK3fQAr3g1a43DBktoyW6FAzNoLteq7TkoHtuCKbbPKvPTm4h3FsOtX6zwXQTLGkoIkKz0hfwVFDixfinqTFV8Vg4Abt/32yhaACAw0btG4cJCVRcT5iki00hHWmiZax1I1+G5r3xA8xYxRdpo/Y4lBdqYmI8qtZDxu37fWUAmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715187667; c=relaxed/simple; bh=STM3fI9GyHweIwkuRf0VR/kVGXkNc6VIGqBgZKTd3ew=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WyIpTt4rZdRoBYgyzhFQrKyu94UiA7JT3PWo4hxLc6eytIXnHiUANh/pwjk1oxPH7KQ/qGzP9MnZlyzB80L/EvnRTtTJ2UODdZV5XXS9bjl5l0E6nd5jkDEvyZ5CcGBXKNv3hsnBzh1LGvJpV5cnPl0+Mi9qDV/nVGgqp7z3CfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MfScOLOR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55029C113CC; Wed, 8 May 2024 17:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715187667; bh=STM3fI9GyHweIwkuRf0VR/kVGXkNc6VIGqBgZKTd3ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MfScOLORS/pkJar9tewfFa5frHmMHnT+LrmuC494vapwjBZ3A7mwT3ApzF/dGf8Jp 0Bpdlnt9bXIYYUHmaZyaehVQUOLa29TK15ziK1WUnGUjEwgyevk6zDhqYPrLSgoZMz +tQjrlfZZMK4odyzAAAIV3F4SAtosgVNj6YMYg1IOFUVyh41n+84Cx032dYbxvShtC DWlbbvP/Ug9HWlz/BZpOYBy2TW2yNc30pCPnPffremMMcWUwIPDk1zWcQI7Es2A27i JwuzxbxvzShmCL3y7A4n734T/GVhQNVE6tHTxSICEF2VT8RpRQ7ujHxqo2339KQ/zt nmI9TAN/vcxWQ== Date: Wed, 8 May 2024 18:01:03 +0100 From: Conor Dooley To: Jiaxun Yang Cc: "paulburton@kernel.org" , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 4/5] dt-bindings: mips: Document mti,mips-cm Message-ID: <20240508-puzzle-directive-b6f771f92fe9@spud> References: <20240507-cm_probe-v1-0-11dbfd598f3c@flygoat.com> <20240507-cm_probe-v1-4-11dbfd598f3c@flygoat.com> <20240507-jokester-antelope-808b21b957e6@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L+OpDBD0ahnwdeqe" Content-Disposition: inline In-Reply-To: --L+OpDBD0ahnwdeqe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 07, 2024 at 07:16:25PM +0100, Jiaxun Yang wrote: >=20 >=20 > =E5=9C=A82024=E5=B9=B45=E6=9C=887=E6=97=A5=E4=BA=94=E6=9C=88 =E4=B8=8B=E5= =8D=885:50=EF=BC=8CConor Dooley=E5=86=99=E9=81=93=EF=BC=9A > > On Tue, May 07, 2024 at 10:01:52AM +0100, Jiaxun Yang wrote: > >> Add devicetree binding documentation for MIPS Coherence Manager. > >>=20 > >> Signed-off-by: Jiaxun Yang > >> --- > >> .../devicetree/bindings/mips/mips-cm.yaml | 37 +++++++++++++= +++++++++ > >> 1 file changed, 37 insertions(+) > >>=20 > >> diff --git a/Documentation/devicetree/bindings/mips/mips-cm.yaml b/Doc= umentation/devicetree/bindings/mips/mips-cm.yaml > >> new file mode 100644 > >> index 000000000000..b92b008d7758 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/mips/mips-cm.yaml > Hi Cornor, >=20 > Thanks for your comments. >=20 > > > > Filename matching the compatible please. > Ok. >=20 > > > >> @@ -0,0 +1,37 @@ > >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >> +%YAML 1.2 > >> +--- > >> +$id: http://devicetree.org/schemas/mips/mips-cm.yaml# > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: MIPS Coherence Manager > >> + > >> +description: | > >> + Defines a location of the MIPS Coherence Manager registers. > >> + > >> +maintainers: > >> + - Jiaxun Yang > >> + > >> +properties: > >> + compatible: > >> + const: mti,mips-cm > > > > Is it actually only available on mips? Google seems to report there > > being Coherence Managers on their RISC-V offerings too. >=20 > I think for MIPS's RISC-V system, it is only used by SBI and transparent > to kernel, so it won't present in DT.=20 Devicetree isn't just for Linux, things that only the SBI implementation cares about should also be documented in bindings - or at least I try to get them to be, where I have enough sway to have it happen.. > Register fields for RISC-V system is totally different with MIPS one, and > there is no driver to be reused. In MIPS system CM code is highly coupled > with arch code, so for RISC-V if we want to expose it to kernel we'll need > a new set of driver and a new binding. Right, that's a reasonable reason (lol) for having it be declared as mips-specific. > >> + reg: > >> + description: | > > > > The | isn't needed, there's no formatting to preserve. > Ok. >=20 > > > >> + Base address and size of an unoccupied memory region, which wil= l be > >> + used to map the MIPS CM registers block. > > > > This sounds like it should actually be a memory-region that references > > some reserved memory, not a reg, given the description. I think the > > commit message here is lacking any information about what the intentions > > are for this binding. > So it's actually a register block that can be remapped to anywhere in > MMIO address space. DeviceTree usually passes firmware's mapping location > to kernel. >=20 > There are some other similar bindings like mti,mips-cdmm and mti,mips-cpc, > I just copied phraseology from them, should I try to explain it more here? The description that you've given here is of something that sounded awfully like mapping into a location in DDR etc, is it actually being mapped into a non-memory address? Thanks, Conor. --L+OpDBD0ahnwdeqe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjuvzwAKCRB4tDGHoIJi 0hWmAQDczIwGwAw6NKsPZytb5KFOytlrWSv+Tv2mAiWS/KhzmQEAhfoJKb3390mf xqMiTAXMuYU+iAjqyZfpWgcymnsVBQY= =GnaL -----END PGP SIGNATURE----- --L+OpDBD0ahnwdeqe--