Message ID | 20230328-topic-msgram_mpm-v7-0-6ee2bfeaac2c@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3233824vqx; Mon, 27 Nov 2023 07:52:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5x3CgzZRTZIwFvMC7oEt5WjOoJZqo1oyCWgJUinVkUEZrTyjuvZo+SQhwdy5bR6Qt53jm X-Received: by 2002:a05:6a00:1307:b0:6c2:e10:42e3 with SMTP id j7-20020a056a00130700b006c20e1042e3mr14979231pfu.8.1701100377970; Mon, 27 Nov 2023 07:52:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701100377; cv=none; d=google.com; s=arc-20160816; b=ei5NkpFjklqx+4FcGXbUppfXdYQq1Uk29yV+mscp4eqfhwiCU0g3V8z0+GyJbEIxLo O+i9WJ5IwnMxYp2HDZk0tfa+jSkRV2gMDLX+NR/j9mi5LJperlMnWFCaGDNkhG4aNZTp c18yAZYl1pPlwcsMRVF7hY+7N05LOaGGfHUhwvvfToHPzrOPn03T9OjkgtTeDmNUMUYh Zrh7m2rDH3BmXVZQNj7GSXtbhcySQNP2y2mNPsEbHh0UdTZZXZLwpaupQMoPnPBxsxdR gfuJJbnptJA7MMGsfpIjFy87+P3trUShrBoc4lSOfHifZqQCKXWYni5pqOqKz4nI8lwW F3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; fh=C8QDRWY6fNUq9pmMDZU3ytu0UoftitUn4VylHU3TBz0=; b=oCncU6VFcUqLg8uw4Sw/UFjWNzQo9yz1QNyfOSs52KhyupVfLeGUTbZ8yKZYW1ADQK OuFp9bWCZQDQ65s+mGyaS2CQh1amIczIF5U0AK8TO3H2CrbS7u8moECXGrc3kdnttydP ++nvoPG4P7Se0AH4Pk+gjK6tpFH4Eevq6oScp4przAddMDdeM8bldhoViSizbk8RsyNU 8hLW4iqjqm2uHr6D5oIKIBwjiB9wF+X0ldrcyMjPJk/TbdKI0zjBRxf1xzWW0Eobf+Z5 hynT9QdendIk6wqn3hWX0enS9EldeSd2lAcjZBGHE5xP6CQyTwA8ih0IIEIQZMQsUvYw XDpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C0vWTb6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ka9-20020a056a00938900b006bd0842622asi9897503pfb.239.2023.11.27.07.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:52:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C0vWTb6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 293CB807C759; Mon, 27 Nov 2023 07:52:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234099AbjK0Pwj (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 10:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234149AbjK0PwZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 10:52:25 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6384ED64 for <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 07:52:31 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50abbb23122so5720522e87.3 for <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 07:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701100349; x=1701705149; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; b=C0vWTb6rGN+nwhvM8X4GZOdTxM9kSuWMPjJTrZVyrKmCPAFRsZcMA/F/CohWqyP2xo TEPDBH+73DMgyqJH6FDf13q+jy0XVDiO6xs+Jo+29jY2r7TmftqsCX6alyxk7VpbiaCD EXcEM8rD4ItlHYGGZzrZy74xyfXTsFhskM3zzHV9JOmQV14mr/qQQqojXOLJXG+vTLK9 3uX0EY0TCUbUC4VOIBruNd230n0LgU68m6GyR08N2yq/T180L7cpTVPIObogKQOuoUbS SoUd2NMwT6x4gOEp74k7zQg7zpHyhFO3hJZKx7bgiTpLNtFepIecjODSHFMAs03igIVD NpQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701100349; x=1701705149; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; b=aTQQKyEGG5qLNtKJsL3ifwQhnlj+TRmUo580BmcvFpA2a4gPVePU78deVCv8xUoKem beZPwnKOl4Oq+tygnfJre8sHNsaLbLtSRBubOSJNdXyvvtNs6ahkWCEWL5UNBJv0sY3F t/J59yjB8o0Beg7aUT+Lba5BpZz8zAoGFPt0geL+hUdJhFYfOIEtn4uvL75pQLPw2amq eCIhhvBqyBIqJFUuCBJjYh6KUrDr8Pg2J9nPgHF4kdpSkJRAawux8FfzoicnfL4252RG ZkXbSZn/1Nxr65E+owST9o1Atmhl0xqfxWPhVm5LWB7qITGDhBWfL/GPi667yEhH4yTA hubA== X-Gm-Message-State: AOJu0Yw5KUjf3YYfMT0EhEuScneBuHV+8aZArg56XzypIlHw9eVD6w6x jO5NMQo5CXUqHUwatLFhsYbRHA== X-Received: by 2002:ac2:42c4:0:b0:507:a70e:c619 with SMTP id n4-20020ac242c4000000b00507a70ec619mr4364196lfl.67.1701100349416; Mon, 27 Nov 2023 07:52:29 -0800 (PST) Received: from [10.167.154.1] (178235187180.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.180]) by smtp.gmail.com with ESMTPSA id mb22-20020a170906eb1600b009fc0c42098csm5855150ejb.173.2023.11.27.07.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:52:29 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v7 0/2] Resolve MPM register space situation Date: Mon, 27 Nov 2023 16:52:11 +0100 Message-Id: <20230328-topic-msgram_mpm-v7-0-6ee2bfeaac2c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACu7ZGUC/4XQy2rEMAwF0F8ZvK6LIz8zq/5HGYrtKIkhL+yZ0 DLk36vMrgSa5RXoXKEnK5gTFna9PFnGNZU0TxTs24XF3k8d8tRQZiBACgmO3+clRT6WLvvxa1x GHo1zAWWIUCtGa8EX5CH7Kfa0OD2GgYZLxjZ9v3o+b5T7VO5z/nnVrtU+/adhrbjgVbDOed1qL +XHkCaf5/c5d2zXVjgTgAQE5ZVDbVvRHAR5JkgSIFpowQZlhTkI6kxQJASP0kETRVvDQdBngib BoDBAr6hN0AfBnAlmFxygcloHi39v2LbtF7C2wB8QAgAA To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Shawn Guo <shawn.guo@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Bryan O'Donoghue <bryan.odonoghue@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701100347; l=2818; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=jzGaK78zqBfidrnl46fLd36+PZ3YDc+jJgsIYSdRn9o=; b=xjIuKG6/Sr8LMdWtOOOHLmJy45SGvaDnQbAUVFhGFvFL98TkHNzpXEQaONwXO3JJvs82pw42m uPRG2NFAyjIDzXSjZ5MH6KGM9lFIXS0cXYN+dNQAho+K9ocK0pMHz1h X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:52:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783733029660809544 X-GMAIL-MSGID: 1783733029660809544 |
Series |
Resolve MPM register space situation
|
|
Message
Konrad Dybcio
Nov. 27, 2023, 3:52 p.m. UTC
v6 -> v7:
- Actually check the rvalue of of_address_to_resource
- Pick up rb
- Link to v6: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v6-0-682e4855b7e2@linaro.org
v5 -> v6:
- Resending due to no responses.
- Change of base to next-20231124 (no changes to the patch)
Link to v5: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v5-0-6e06278896b5@linaro.org
v4 -> v5:
- Pick up tags
- Rebase on Rob's of_ header untanglement
Link to v4: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v4-0-bae382dc0f92@linaro.org
v3 -> v4:
- Fix up indentation in the bindings patch
- Add an example glink-edge subnode to remoteproc-rpm (its bindings
require that..)
Link to v3: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v3-0-2c72f27b4706@linaro.org
v2 -> v3:
- Fix the example
- Pick up tags
- remove the outdated example from the cover letter, check bindings
should you want to see one
The bindings for the wrapper node used in the yaml example are merged
in qcom/for-next
Link to v2: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v2-0-e24a48e57f0d@linaro.org
v1 -> v2:
- deprecate 'reg', make qcom,rpm-msg-ram required [1/2]
- Use devm_ioremap() [2/2]
Link to v1: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v1-0-1b788a5f5a33@linaro.org
Depends on resolution of https://github.com/devicetree-org/dt-schema/issues/104
The MPM (and some other things, irrelevant to this patchset) resides
(as far as the ARM cores are concerned, anyway) in a MMIO-mapped region
that's a portion of the RPM (low-power management core)'s RAM, known
as the RPM Message RAM. Representing this relation in the Device Tree
creates some challenges, as one would either have to treat a memory
region as a bus, map nodes in a way such that their reg-s would be
overlapping, or supply the nodes with a slice of that region.
This series implements the third option, by adding a qcom,rpm-msg-ram
property, which has been used for some drivers poking into this region
before. Bindings ABI compatibility is preserved through keeping the
"normal" (a.k.a read the reg property and map that region) way of
passing the register space.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (2):
dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle
irqchip: irq-qcom-mpm: Support passing a slice of SRAM as reg space
.../bindings/interrupt-controller/qcom,mpm.yaml | 52 +++++++++++++++-------
drivers/irqchip/irq-qcom-mpm.c | 26 +++++++++--
2 files changed, 58 insertions(+), 20 deletions(-)
---
base-commit: 48bbaf8b793e0770798519f8ee1ea2908ff0943a
change-id: 20230328-topic-msgram_mpm-c688be3bc294
Best regards,
Comments
Konrad! On Mon, Nov 27 2023 at 16:52, Konrad Dybcio wrote: This list of version changes is useful, but seriously not on top of the cover letter. It makes me scroll down 60 lines to find the real meat. <SNIP> > Depends on resolution of https://github.com/devicetree-org/dt-schema/issues/104 Is this resolved? I can't figure out from this non-format whether this belongs to V1 or to the actual cover letter... > The MPM (and some other things, irrelevant to this patchset) resides > (as far as the ARM cores are concerned, anyway) in a MMIO-mapped region > that's a portion of the RPM (low-power management core)'s RAM, known > as the RPM Message RAM. Representing this relation in the Device Tree > creates some challenges, as one would either have to treat a memory > region as a bus, map nodes in a way such that their reg-s would be > overlapping, or supply the nodes with a slice of that region. > > This series implements the third option, by adding a qcom,rpm-msg-ram > property, which has been used for some drivers poking into this region > before. Bindings ABI compatibility is preserved through keeping the > "normal" (a.k.a read the reg property and map that region) way of > passing the register space. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by on the cover letter is completely meaningless. Thanks, tglx
On 8.12.2023 15:33, Thomas Gleixner wrote: > Konrad! > > On Mon, Nov 27 2023 at 16:52, Konrad Dybcio wrote: > > This list of version changes is useful, but seriously not on top of the > cover letter. It makes me scroll down 60 lines to find the real meat. Ack > > <SNIP> > >> Depends on resolution of https://github.com/devicetree-org/dt-schema/issues/104 > > Is this resolved? I can't figure out from this non-format whether this > belongs to V1 or to the actual cover letter... Yes it has been resolved since > >> The MPM (and some other things, irrelevant to this patchset) resides >> (as far as the ARM cores are concerned, anyway) in a MMIO-mapped region >> that's a portion of the RPM (low-power management core)'s RAM, known >> as the RPM Message RAM. Representing this relation in the Device Tree >> creates some challenges, as one would either have to treat a memory >> region as a bus, map nodes in a way such that their reg-s would be >> overlapping, or supply the nodes with a slice of that region. >> >> This series implements the third option, by adding a qcom,rpm-msg-ram >> property, which has been used for some drivers poking into this region >> before. Bindings ABI compatibility is preserved through keeping the >> "normal" (a.k.a read the reg property and map that region) way of >> passing the register space. >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > Signed-off-by on the cover letter is completely meaningless. Yes, I realize that. Blame b4. Konrad
December 9, 2023 at 9:00 AM, "Konrad Dybcio" <konrad.dybcio@linaro.org> wrote: > > Signed-off-by on the cover letter is completely meaningless. > > Yes, I realize that. Blame b4. It's not -- some subsystems use cover letters as merge commits. -K