Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp646435lqo; Wed, 8 May 2024 10:18:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUffj5B/ZaxSSKOseP0Yv7I7Zt9RQ0Qai55joMpX6OkIjD1rJ8xukefrJShDyBFL15W0wVBKm+bRNMhEntHv9Ap/Q7ERnYaW8q8rv00yg== X-Google-Smtp-Source: AGHT+IF18WeKIZm6Th0YnAvbO2xtVrySNnSQjINiIgkqS2t0CqwfvV3DS+YqplZX2w+GG8Shkhxl X-Received: by 2002:a05:6512:12c5:b0:521:a2f0:4949 with SMTP id 2adb3069b0e04-521a2f05165mr2153355e87.40.1715188689299; Wed, 08 May 2024 10:18:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715188689; cv=pass; d=google.com; s=arc-20160816; b=WA6074w6XHLGW060yWTILj28FK/K3T6ZsHS+2H7Pz9waCJEMIl72gJDSAiG8S4VZPv 9tj274K96TpL2Rf2xSFqoVH9aLofuLd5cIOjJodumFUBaLQGOxvkv4JAaoRrqR7bjJc6 MJCw8H7y2F5d0XfwY3F+jjgbDfN3Pv0tFV8ERoKlQRbNU9XKW8fAjljPpfxlFzOKIygQ 5HW4gt8z25dJgo1RmPSKvmzWy40x2j3HL9HOfJ6kLHYdiJNy6qtpgaD8HSJ14ocylzeA n0LFsGELynU4nO9PLol//auVd/xuIG4QC6OFXhO2JcpGqHcLe7KoB5XDORjKK9vbCB5w WRUw== 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:subject:cc:to:from :date:message-id:dkim-signature; bh=i51eNBLEnKmpTBUq1c2fUkBOT8KxBV14AE2eIYTyHdI=; fh=D0PqHiHjphF0BIq9RIat1B0LG6oplKATS577xC+GJIM=; b=bUcI6amXbuAHSk8iFRF+pYXxh7R+Ums+iAM2QU+BW94s7akHOSfJj0Op8EzZGcHQv1 yY6vagvRj1Zd/lEwMpsFV+rEyst6FXpZfbAVCwAPT0LmlAoRsj+bQDR/Ak9AQtAJcasg AQseHlZegm05A+bx/fjs8m0I75iaHI/x5DGjgeJv5aXZIN5/C/0xehI1/uRiJN40DCm8 o/ZceHrC3U/XOgfrsz3bxTKtlxgXToIV5IRX6AV/CRE4yury81W/IRwLDRsWhZFQ4fqU JiB7cGHVIxeGEPGu/NRi4IELTHrhfjzv9i3c+a6c6f5r1tdLKwV/jWE3Lw7mwZ+lJ13C +kIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RFyt6pt5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t9-20020a508d49000000b005731b7efc41si1356253edt.290.2024.05.08.10.18.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RFyt6pt5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D55521F249D0 for ; Wed, 8 May 2024 17:18:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E83AB81ADB; Wed, 8 May 2024 17:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RFyt6pt5" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 5B8A1481C7; Wed, 8 May 2024 17:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188676; cv=none; b=XQvHJ5TWrRmTkyfWHsxxm7yf6/xHbw5VHUDSCCeHmZuLc7Vt6wdO4zM4dlMMdnbZOGYGmEmpjAwmffPV7RjkFSVcA7rG4p2XUlitDRsrpFyd9renzjns0otBekB2y/Wvtcmt3CUdsj04rlhXMb9LRXNyCGziJ8KQ0A9JbW2VXzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188676; c=relaxed/simple; bh=dQ1PujkEMVyDR+EYy/vGg4r/EPmkcT2tXaQHweR28kQ=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KnXmZsJz71i6GJcdzoZtc2JWunGKUfQQ30iWH1lYRQI+IUH3KLi/XaSCcmCWFZFTUGyjZWhXRXtU6sFzeq8w3rQrYgRJ4YnJLY5VFJzvJBsSY6IRqbJLjf/RSUSn00QQBhrUkyX37FeadmlZQHH/1DRBl9X27pqOD2U2UxtVfRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RFyt6pt5; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-41ba1ba55ebso33412675e9.1; Wed, 08 May 2024 10:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715188673; x=1715793473; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=i51eNBLEnKmpTBUq1c2fUkBOT8KxBV14AE2eIYTyHdI=; b=RFyt6pt5T0AG3BCKg/OrkbgXsdYWQRPXA2Gzi6/hDYLXIn7sCAxiITnhgptyaD/Dun bLns8aU4VUF9M9xTm74Nn9w1ateIXSYkegxO5KubDSdujAE4NUXYDmQiF2vZ3LYM7q8Q u1M416sXrDgWjR1GjWnB3FIdLM8tI4AQ0mPagCZIwnZzuXaUAuJFIa5EkyWO5LNF2eou I7tOXJnP3mFLe1Neq0s+Ftwu1/kz0y84GkTPWv+B2XE8iPAbOyCOyzFM32OZC8Lsd1K4 VausQgYJe4l80w3iskwUZFO1H1JUmO3hAPf3TWbB23wynG6CB8f0ZD9dzXeCF1CwQy2u vxvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715188673; x=1715793473; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i51eNBLEnKmpTBUq1c2fUkBOT8KxBV14AE2eIYTyHdI=; b=fOkdwuYfQqyAV7caE0h2TdbbIwNOD1mhBmppxLMV+sEIib5i/xDpt3Afg/oK/ho7GN 82rNG63kk9ri/od2q3HIA/DAV0AA4ng714YaRHwaOEkNe7ogHUmpml0tf7eZAd7+qhub +c2XK69ICtq/ooBL1OitRXSBmS9UPtKBotXiF81f5sun2vB6og0nTmbZJwZAvlwh4Kku oCyLLyRytqDfozERPRtUxqxMSDn9wR4NieIWSiyQkA2EAZ0Fd2FV6bO1yefaZMe+q7aT ibtQtu4Al1dVCrsBqxAQZC5A/dwnJNUGeCk20zJW+RXV524gIturJEYQUHybTIDGOki/ BtrQ== X-Forwarded-Encrypted: i=1; AJvYcCWY202wa3gFLLpBOfExS8J7rx8I6te7imJAPO5zeb/Q4ORsXAzljOz0lcpMtDiE9qmSf1gI/gRfDtC74N1eG6BBXiN299vxk/+7nuQJhz9alVA6j/OwZ5jDywqBzrHPRJZX4nstJxok49jAauyuIzjLl9MC4uBXorpOoSE4zzoE3yKwD00= X-Gm-Message-State: AOJu0YyYmIvdToVOY885v1zc3+GGbxPwL8dF3B2gBhLJUchxlfSCSplA ftTj5+BCm0UQs6G8kDiULF+jG4ubF7rIdRgTxguCQ2V8sQd1P0Hf X-Received: by 2002:a05:600c:46cb:b0:41b:9828:f4c2 with SMTP id 5b1f17b1804b1-41f71cc25b5mr28271025e9.3.1715188672447; Wed, 08 May 2024 10:17:52 -0700 (PDT) Received: from Ansuel-XPS. (93-34-90-105.ip49.fastwebnet.it. [93.34.90.105]) by smtp.gmail.com with ESMTPSA id je1-20020a05600c1f8100b00418a9961c47sm2946660wmb.47.2024.05.08.10.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:17:51 -0700 (PDT) Message-ID: <663bb3bf.050a0220.38dcc.9b82@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 8 May 2024 19:17:49 +0200 From: Christian Marangi To: Conor Dooley Cc: Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/4] dt-bindings: mips: brcm: Document brcm,bmips-cbr-reg property References: <20240508170721.3023-1-ansuelsmth@gmail.com> <20240508170721.3023-3-ansuelsmth@gmail.com> <20240508-prong-serving-660e6046621d@spud> 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: <20240508-prong-serving-660e6046621d@spud> On Wed, May 08, 2024 at 06:14:34PM +0100, Conor Dooley wrote: > On Wed, May 08, 2024 at 07:07:18PM +0200, Christian Marangi wrote: > > Document brcm,bmips-cbr-reg property. > > > > Some SoC suffer from a BUG where read_c0_brcm_cbr() might return 0 > > if called from TP1. The CBR address is always the same on the SoC > > hence it can be provided in DT to handle broken case where bootloader > > doesn't init it or SMP where read_c0_brcm_cbr() returns 0 from TP1. > > > > Usage of this property is to give an address also in these broken > > configuration/bootloader. > > > > Signed-off-by: Christian Marangi > > --- > > .../devicetree/bindings/mips/brcm/soc.yaml | 23 +++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mips/brcm/soc.yaml b/Documentation/devicetree/bindings/mips/brcm/soc.yaml > > index 975945ca2888..77f73ab48c11 100644 > > --- a/Documentation/devicetree/bindings/mips/brcm/soc.yaml > > +++ b/Documentation/devicetree/bindings/mips/brcm/soc.yaml > > @@ -55,6 +55,15 @@ properties: > > under the "cpus" node. > > $ref: /schemas/types.yaml#/definitions/uint32 > > > > + brcm,bmips-cbr-reg: > > + description: Reference address of the CBR. > > Pretty sure that Rob commented last time that there's no definition > anywhere here of CBR, but I don't see either a response to him or an > explanation in v3 as to what CBR means. > Sorry I missed it. > > + Some SoC suffer from a BUG where read_c0_brcm_cbr() might > > + return 0 if called from TP1. The CBR address is always the > > + same on the SoC hence it can be provided in DT to handle > > + broken case where bootloader doesn't initialise it or SMP > > + where read_c0_brcm_cbr() returns 0 from TP1. > > Why is a ?linux? function name in the binding? Surely this is just > "or in SMP systems where reading CBR returns 0 from...", no? Ditto > above. > It's really just a reference to reading c0 register at an offset, that is why I was so specific. Ok I will be more verbose. > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + > > patternProperties: > > "^cpu@[0-9]$": > > type: object > > @@ -64,6 +73,20 @@ properties: > > required: > > - mips-hpt-frequency > > > > +if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - brcm,bcm6358 > > + - brcm,bcm6368 > > + > > +then: > > + properties: > > + cpus: > > + required: > > + - brcm,bmips-cbr-reg > > + > > additionalProperties: true > > > > examples: > > -- > > 2.43.0 > > -- Ansuel