Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp54095rwl; Tue, 28 Mar 2023 20:46:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZjZWxlgRWv53P1nPi2H/xPT+MP9C3JfXuNYOpSGiFMU53a4CCrRLiYrK0hT982hkDDod1m X-Received: by 2002:a17:907:9c08:b0:93f:9b4a:12f3 with SMTP id ld8-20020a1709079c0800b0093f9b4a12f3mr14841949ejc.10.1680061586424; Tue, 28 Mar 2023 20:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680061586; cv=none; d=google.com; s=arc-20160816; b=g5w8URregEXtcgIKVxjp6svJBprPk/7R+5cZDOaWtMDU57JsN2m/U0LqtaVjf0Dybq v9mMX7LpJTBmownQwnww2jB9KYM2KBA7x22dT5TSjNEjm2aBGWnT/Y/ZPKo/EW0nUbSz 9PYT13W1g3G8JaZXqOcx1EFuHjEpumVGiAbOLa/SLkkBt9BQ9zq96Y8ufWG/u/H8O0cw jTy2OLPBmtmKZ9c7mt+KiiAM61hqk0YTgr1sMNauv4hycguif9Uj2ep5UdVa6ZB+rdPi PEWguZxVg0c6fGOnv/2MUXIT6GYSR3TUmcIOB5OEsureUEHoxpKSq1rs/mmUiTqIdeYp qVqA== 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=lrPg+XcugayUBQdJZA8GlLCHOjk+HPNQA9l1wxAz9XU=; b=Hi7iNysj6ORIYXFxpKjYRGAxKOfWTAWJQB1/j9VmRa3kXOkDIE9NU/1Gqiama5ENxg hEoorjP3RsA98+oCn3Wo/wRosxJXjGiaJjVWNfSwD9lq3Rbi0vkMi+PZsutktqL65SGk 1IAPiQ34Dc1d3ak7zlCKc3svuyxzMfX/hv7i/E439s+S9vw+cg1BmX8s23+4YdgQaizz qmbEzYSjePEgfFRptuRscVlkqiPQnp8Satyn4u3wDSyoRkl7qEc+jt8gu0g+qchQ46dm yfS/kMCSZEU0Ho/zS8qB6oVY6+uL4rn5iD+WygQ9rrPtMIUF7/tiQJdLu7/CuQIZTyjO ZO2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oJldNef8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk13-20020a1709077f8d00b0093debd8676csi15527506ejc.164.2023.03.28.20.46.01; Tue, 28 Mar 2023 20:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oJldNef8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjC2Def (ORCPT + 99 others); Tue, 28 Mar 2023 23:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjC2Dee (ORCPT ); Tue, 28 Mar 2023 23:34:34 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C11726AE for ; Tue, 28 Mar 2023 20:34:33 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so17240853pjp.1 for ; Tue, 28 Mar 2023 20:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680060872; 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=lrPg+XcugayUBQdJZA8GlLCHOjk+HPNQA9l1wxAz9XU=; b=oJldNef8Y32GaZkojlBXY8Ne5qhhM7OYnEHZ9LMVhUylSArWs7nJWX7w70BHaLK0z0 iqDe9BnG7NW0W0a2PZled8J/32shF0vpEWxosW9v/C77RKGFAzXDico8x5t5u3L13+1q e4sp1DY2wWO0WY7o3b+lYXwFY4696pCaCRA/3hnrNqS0ZI58jny4nbbFioC4TdbfBzb8 3ihHvZb85BawvCWKxPVKEIRcrDEIZ1XtnqTD0XF/YFODfUkveZTI469LK4pf6woK22q9 /TclUJh4nae9n3OOBCaSyo9j2nmokoHwr7lvJLGUTxWGXcrfg8vy1xmiDdS93XhnhxEK 2Oyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680060872; 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=lrPg+XcugayUBQdJZA8GlLCHOjk+HPNQA9l1wxAz9XU=; b=H490W44U3vR7r0EVZjyOhhgyXPRAegLzHPeR0Lmh3gviTyjhN6Do0CthKTuqKlmsry 18JzyjaUvW8bQ7hSVRBP3/ofxtVqOpaa9sYDuMFrE5uWyW0YoM+CPcilhU9SNJjRrwGZ l527wy3HcjntQnXwBkzFR2jJIsBvtrYWJ7TSF+3IFYeNBo4F1N25kEUJ5+PuY1oL+C9U Wn/C/yHmpcHzSedwN4/SGHhH87TsqWtL26zvURXk+fYgmGNZQhtX7IYTQ947Uf7wRwRU G/sdiZIJewFJXhhLkRGWGqS/JNO9RV//u2HMHC/Ptc/eyAN9ADpnEsvp+yqEYWHnGA5A Ktxg== X-Gm-Message-State: AAQBX9ejYzr7f7rpWqeit+Gh6PFAZ/5hj6mfirNDAbtt4l31gcj+Af1o a38DrGZiQ5i6rjFbPdfFEx3O/pleTx0cKSGHSRM= X-Received: by 2002:a17:90b:4b43:b0:23b:4bf6:bbed with SMTP id mi3-20020a17090b4b4300b0023b4bf6bbedmr19446957pjb.24.1680060872613; Tue, 28 Mar 2023 20:34:32 -0700 (PDT) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id bc9-20020a170902930900b001a20b31a23fsm10109449plb.293.2023.03.28.20.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 20:34:31 -0700 (PDT) Date: Wed, 29 Mar 2023 11:34:24 +0800 From: Shawn Guo To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 0/2] Resolve MPM register space situation Message-ID: <20230329033424.GA3554086@dragon> References: <20230328-topic-msgram_mpm-v1-0-1b788a5f5a33@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328-topic-msgram_mpm-v1-0-1b788a5f5a33@linaro.org> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2023 at 12:02:51PM +0200, Konrad Dybcio wrote: > 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. I have to admit that I wasn't aware of it, this message RAM is also accessed by cores like modem, ADSP etc. I agree in principle this is a good change! Shawn > > Example representation with this patchset: > > / { > [...] > > mpm: interrupt-controller { > compatible = "qcom,mpm"; > qcom,rpm-msg-ram = <&apss_mpm>; > [...] > }; > > [...] > > soc: soc@0 { > [...] > > rpm_msg_ram: sram@45f0000 { > compatible = "qcom,rpm-msg-ram", "mmio-sram"; > reg = <0 0x045f0000 0 0x7000>; > #address-cells = <1>; > #size-cells = <1>; > ranges = <0 0x0 0x045f0000 0x7000>; > > apss_mpm: sram@1b8 { > reg = <0x1b8 0x48>; > }; > }; > }; > }; > > Signed-off-by: Konrad Dybcio > --- > Konrad Dybcio (2): > dt-bindings: interrupt-controller: mpm: Allow passing reg through phandle > irqchip: irq-qcom-mpm: Support passing a slice of SRAM as reg space > > .../bindings/interrupt-controller/qcom,mpm.yaml | 6 ++++- > drivers/irqchip/irq-qcom-mpm.c | 30 ++++++++++++++++++---- > 2 files changed, 30 insertions(+), 6 deletions(-) > --- > base-commit: a6faf7ea9fcb7267d06116d4188947f26e00e57e > change-id: 20230328-topic-msgram_mpm-c688be3bc294 > > Best regards, > -- > Konrad Dybcio >