Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1608493rwl; Wed, 5 Apr 2023 21:14:12 -0700 (PDT) X-Google-Smtp-Source: AKy350ZYayuJgbKXRdVSCMfHIhlRJPL0ktYIlCUkXiDQOdsEoBwphZqNWTbwKmuM8UDQG2AJaMHs X-Received: by 2002:a17:90b:3a84:b0:23f:7ff6:eb8 with SMTP id om4-20020a17090b3a8400b0023f7ff60eb8mr9792576pjb.31.1680754452154; Wed, 05 Apr 2023 21:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680754452; cv=none; d=google.com; s=arc-20160816; b=xCtrp2mxmIgrPjirbqo4wAFvswZeFoCmfWFi44ZXKzrHZMZS3H04QsQ6lnVz2ptdSL jVK1YjnFCBHCGBc2OrRDzx0e0v4COOaCIkgx0hMdKF3bEsNQFaMFjXODDKQjNAspz4zc FdSedpyTVLrs9ydf1wvCfPgPH42soglNbMdk3jilZJWTVCPONp6ViaBNCmKKZzvnHYha OKkXCUKPMHDClRynouoigzBzEnKDLxE8DpSoT/B9Dy4AEkiOJkhkuQaGwPgqdxcetGj/ RUpYtTA7e5Ds0ENQDXrPr/0udFR2facIqKiwIYkX9ArwIMtXH+kde+GSEk7ITTRj4pFX 3pxg== 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=dE6cxXzdOccukGxMzeGKLxZd5ekq4xiFUcQTZn1Zt5c=; b=DKCkB7WXDBMTm8Sh1/ipRM6z2ltKv6T2UVCGSbyYD6i3b9pvqyOs/DIFsfaZUFFRz8 nxbNled4y4x7x5epHa8JDMGHfcSXhmq3Q3jNW0QCkWCs4vlfeJuKJ99NoddP+n1MYF/s Sf7WQNNTUuy52rTnblcDHJ55du5krpb4AyOI0qfzsaaGx7ci4e5Vn0jjRoM7hMxE/Ut5 0Jc5mcqagkN53VeCdBlJIYt8RdFRpwQFJntHSlSGmIja6OrLHLXnNKSnrXDUNw31MjgM 1H+HAR+NpoWKhq898OO5YN/HMwm63DzvEXGcVT1GPv0kAfEbJKFmEaEm7hMtHA17Ie5p MSPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q9vHCT2q; 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 i13-20020a17090a7e0d00b0023d226f7217si2885212pjl.134.2023.04.05.21.13.52; Wed, 05 Apr 2023 21:14:12 -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=Q9vHCT2q; 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 S234625AbjDFEIb (ORCPT + 99 others); Thu, 6 Apr 2023 00:08:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234696AbjDFEI2 (ORCPT ); Thu, 6 Apr 2023 00:08:28 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3035A7A9A for ; Wed, 5 Apr 2023 21:08:27 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so39469966pjb.0 for ; Wed, 05 Apr 2023 21:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680754106; 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=dE6cxXzdOccukGxMzeGKLxZd5ekq4xiFUcQTZn1Zt5c=; b=Q9vHCT2qowFiUwiB2FG9J80FVBU1hrus1jGPhYqZX4M0nJZ6xgLKa/SGJRvmz2zXPG EPd+7HtKFA69kAWL4SaM0g5JRKT/ZAdSBIehaTsFucGlQ378XZhqNrniSm+aMH5MkoA1 WSdI2iZGgZ6OO8zGWXoGUtND56YdBVvr7P9LB5uuPIix6IcvLv8jBZST5tovz3Pa0J8S +tuXN1Wy8TMhtthuIVCqZyVtBjHL7jKko6oP0WFAcathtUUXxdLT+2d4o0mQTXP6yI+G V0T6Dte7H+zk+tCWYsP5x7hpyKz5EsMRIehlDdkE2Yv85QPvYsyr6Juwpq5xfd8jkvWK wUDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680754106; 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=dE6cxXzdOccukGxMzeGKLxZd5ekq4xiFUcQTZn1Zt5c=; b=AZTX9sn9ap8pc7PF5S9MsklycwsWGMpbcE0aNkksXQ9lokStWWa7LGLK7x7qV7TDhZ i7AbkxGbgJeLmc0oj79K0ZRd90WcNZGWmwH9l1U3OpBeKkQZOdD1oEZgmdDJhtVUxcNz UviA0rYLDWvYjy/VTqNaHtO6M4IoKso5KiwhFHLBFoxTz3PEqjqV5zZKCsXxJEXtdpTS l8OW8hAKBXpYs0cbUMVjXVYH2Jf7oL5oBtxvs59ifOpHVNkKZt3hhr4bqLvd90d8xa75 gOTOxYiUtHA5yoJorhPUWqUc8Z7XS2a1twput45bEAgsmPPLIdVtWeuaCbu2xWQLYQ2N 3OhA== X-Gm-Message-State: AAQBX9cz4wXsRzoOW3Z8fR/R2JuP6CpakNfthU3aELEbtmdD9kqspi0t WaLqsXX0XWfYymFOVXdwDxSYYg== X-Received: by 2002:a17:902:d489:b0:19a:bbd0:c5cc with SMTP id c9-20020a170902d48900b0019abbd0c5ccmr9856328plg.60.1680754106673; Wed, 05 Apr 2023 21:08:26 -0700 (PDT) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id jf17-20020a170903269100b001a4edbabad3sm297895plb.230.2023.04.05.21.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 21:08:25 -0700 (PDT) Date: Thu, 6 Apr 2023 12:08:20 +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 v2 2/2] irqchip: irq-qcom-mpm: Support passing a slice of SRAM as reg space Message-ID: <20230406040820.GB111746@dragon> References: <20230328-topic-msgram_mpm-v2-0-e24a48e57f0d@linaro.org> <20230328-topic-msgram_mpm-v2-2-e24a48e57f0d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328-topic-msgram_mpm-v2-2-e24a48e57f0d@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 Wed, Apr 05, 2023 at 12:48:35PM +0200, Konrad Dybcio wrote: > The MPM hardware is accessible to us from the ARM CPUs through a shared > memory region (RPM MSG RAM) that's also concurrently accessed by other > kinds of cores on the system (like modem, ADSP etc.). Modeling this > relation in a (somewhat) sane manner in the device tree basically > requires us to either present the MPM as a child of said memory region > (which makes little sense, as a mapped memory carveout is not a bus), > define nodes which bleed their register spaces into one another, or > passing their slice of the MSG RAM through some kind of a property. > > Go with the third option and add a way to map a region passed through > the "qcom,rpm-msg-ram" property as our register space. > > The current way of using 'reg' is preserved for ABI reasons. > > Signed-off-by: Konrad Dybcio Acked-by: Shawn Guo