Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1416981rdb; Wed, 20 Sep 2023 08:33:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn3DpXigqYxwDPZH++Sa3U/zMfEhtoKGNjREV6Jswua+n+uNgRs2tY0g7KJWlRLW+H19VC X-Received: by 2002:a17:90a:e7c2:b0:26f:4685:5b6c with SMTP id kb2-20020a17090ae7c200b0026f46855b6cmr7780735pjb.19.1695223987426; Wed, 20 Sep 2023 08:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695223987; cv=none; d=google.com; s=arc-20160816; b=IdQNL7FWNrCjXDk3oM4DkIPip9atzqKwBZVNJNVA/tQdI7sLfilpWaZmPtsB6aP4v2 geWXUurNcRDCrttvoQ322ybZKxcgpikhiExD4cB8mr6ZqXN7Fi84BLBH2tqyWEIu+Scu k70VwyUh0OCbezAS0tOovhJke2k+Mfq8YPIrsc+BMu1ai85IBBqEtccWR96pB+EgcKyz /LmYQjNlHNj5gSitUpyxg0NctIzV1rllnKJSSdTshsFdlNJoYiqdDo/9rvb0MH6kf6FN z23VqJ5RZGRbSOxHqGrndA6R8r0n87nKsWFSr03y3RHQbP22puDN5lrY5ofZBLIJTzIr h+Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xge9ahqJY3+sJNRIvwggXTWfNktjO7lkxZkLNMukJhk=; fh=jseRbaH6o+ssgjl6w7rRkDoXslBYt9xNIkiPRgLeL6U=; b=U5zmk00MlFm5xdeeF/sjst955ruZgTWocNBplmydVvznRch4DhoUdaI1Fe0M8fIgGE QIR0VsG/DWMXgmQ4b8wI+qFsqSj7JsGdQi2WCDYorZJLOUAp86McfgQexvk/yJt1yFlW ZSLd+F5HhbjvYGmokAP+zLSA9gWUyow9HH/ZGUEuQCMwM4j0FqWR3slJqbYbJ8mqsB/Y MoFYt8XH70+Psa98OEm00BRSHVtfn1zv8jhxhoeZr4/CWJw2QY0DPhn2L3iRsILOVfvP PmmnQ7wERTfQID+IEUIIMC1yxjyIXFTft0dALvyDEb3ILrj7xFdzKqeYm58lFQ7QFZ5e uKAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="VK/JP033"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bg2-20020a17090b0d8200b002685065230asi1817232pjb.37.2023.09.20.08.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="VK/JP033"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 85C35814C6B9; Wed, 20 Sep 2023 02:54:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234252AbjITJyr (ORCPT + 99 others); Wed, 20 Sep 2023 05:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234246AbjITJyp (ORCPT ); Wed, 20 Sep 2023 05:54:45 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F144AB; Wed, 20 Sep 2023 02:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1695203678; x=1726739678; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xge9ahqJY3+sJNRIvwggXTWfNktjO7lkxZkLNMukJhk=; b=VK/JP0331SMsn7CecluLnh/WlejHO9GoWobSDNe+I5VKVw6ANA+Gry/w DE3Ncl7lzDYZR2decba23uyHJJ1JZXLSITAXMp1cB4ZSuRZ4p+cGcX0pa xcrC9k8WWqiQC43f2q3SxGOJhN9mLjI+psLL1O+07vyY9NNdAEwG/Fn/s pw7fsYb5zuqWJhsh+0tT/2eu4q14TgC4yPNbwb0cQJXxFKQ2ZR2tWEtvh ToXOgY7xt8t8/+Bzo52hxCpjUYJbODhxzbSSJG5GTo5ctnP/ACTm8vx5c 7DnCS5Ov/We/JQUQI27YZngiQjv/BPz2HmY3Nc0HVGgntYBPIfAs5N5FV w==; X-CSE-ConnectionGUID: ugFauFS5Q5Gyvh5Ditk4gA== X-CSE-MsgGUID: 4GR16S+KSeCRebeA/mGKEQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="asc'?scan'208";a="172618278" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Sep 2023 02:53:52 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 20 Sep 2023 02:53:42 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 20 Sep 2023 02:53:39 -0700 Date: Wed, 20 Sep 2023 10:53:22 +0100 From: Conor Dooley To: Inochi Amaoto CC: Krzysztof Kozlowski , , , , , , , , , , , , , , , Chen Wang Subject: Re: [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Message-ID: <20230920-untimely-untagged-12b75e247afb@wendy> References: <20230920-recount-chili-f80d5dc125e8@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fbzcNIeJ1H36uc+g" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:54:50 -0700 (PDT) --fbzcNIeJ1H36uc+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yo, On Wed, Sep 20, 2023 at 05:08:41PM +0800, Inochi Amaoto wrote: > >On Wed, Sep 20, 2023 at 02:39:39PM +0800, Chen Wang wrote: > >> From: Inochi Amaoto > >> > >> Add two new compatible string formatted like `C9xx-clint-xxx` to ident= ify > >> the timer and ipi device separately, and do not allow c900-clint as the > >> fallback to avoid conflict. > >> > >> Signed-off-by: Inochi Amaoto > >> Signed-off-by: Chen Wang > > > >Have you ignored Krzysztof's comments on this? I don't see a response or > >a reaction to his comments about the compatibles on the last version. > >Additionally, where is the user for these? I don't see any drivers that > >actually make use of these. > > >=20 > Sorry for late reply and wrong message-id. >=20 > The clint is parsed by sbi. That needs to go in the commit message. > As use the same compatible, the opensbi will > parse the device twice. This will cause a fault. Then only have one compatible with 2 register ranges? Then your SBI implementation can use those two register ranges to find out the base address for the mtimer bits and for the mswi bits. I don't understand why this cannot be done, could you please explain. I also don't see anything in the opensbi repo right now that is using these (nor could I easily see any patches for opensbi adding this). Is there another SBI implementation that you are using that I can take a look at to try and understand this better? > >Why do you need to have 2 compatibles (and therefore 2 devices) for the > >clint? I thought the clint was a single device, of which the mtimer and > >mswi bits were just "features"? Having split register ranges isn't a > >reason to have two compatibles, so I must be missing something here... > Sorry for late reply, The clint consists of mtimer and ipi devices, which > is defined in [1]. Yes, I have looked at the spec. I went to check it again before replying here in case there was something immediately obvious that I was missing. > This standard shows clint(or the aclint) has two device, The wording used here doesn't really matter. It's one interrupt controller that does mtimer and mswi. > but not one. In another word, there is no need to defined mtimer and ipi > device on the same base address. There's also no need to have two compatibles for the same interrupt controller, so I do not get this reasoning. What actually _requires_ them to be split? > So we need two compatibles to allow sbi to identify them correctly. Why is it not sufficient to identify the individual memory regions? Thanks, Conor. --fbzcNIeJ1H36uc+g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQrBEgAKCRB4tDGHoIJi 0uE9AQDcuPiKQqOUfJofFw9tgJk/fYHI/izXyyDi+z1YBTla/wEAhRAmp8R3mIzv GQ0/8xAitQFh1AQI59d7L68CJHPI0w4= =FLtW -----END PGP SIGNATURE----- --fbzcNIeJ1H36uc+g--