Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2018892pxb; Thu, 16 Sep 2021 23:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd5RMbAE9RG50tD/rZeieje7FHiW3IIcjepSJLHi1ap47B1Z0oe5oacpBjtlzq2889siF6 X-Received: by 2002:a17:906:b886:: with SMTP id hb6mr10619969ejb.193.1631860508511; Thu, 16 Sep 2021 23:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631860508; cv=none; d=google.com; s=arc-20160816; b=uyJizhf8Z6r4zftmLrn1RtfNarFhk26pctQiWrJ5Cmqg4Ra8CtOEbEDQ/S7Hpj1qfc +0A8Q5JII4Oh9MrNAJzJV4qtAzfGPTwN4u/V3cZ1pg5vRlG3nB7WqmQrqTrWRn64glYR sGxxzI3R4C1xpJL48dikYCF1WxnZxbVGWrSeBqwAWZ8/EllkY/i8y02Wtu1LuY7bK+E5 HMa97Hol12L5M3VRaFliIgKiITOYk6qwIkJ1EPfNwlOhMEbELKBt9JJ/ii5GPIo08YWW FInkbybJs8Clq1Q/AnYlWJgFoNAcdWChkI0M2l/eA7KWI3BGODLBWwEiCEQv94d/yJkc BhJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wu/5meqeHZqsVUKSjtYxX+ZcUZzqTdvsMcCN8QTUfPI=; b=sp3iT+IQoH4UVnVH5yYp5bnZlT3G5y9a9po45+kmx6bBXsIVaIxYMTHLnK5aRGfpVl 4WNJis132SIf0cz4gm72LbKS2a/W91yWhBiFCEgxo8paRgqM/Ax8dLzLRp0iFBV/EiDd mUADd0ESFIdnnBwnMjPfM0Bo4yxl1FpkS2DXW0xplz1zSCjfy3JlF0F8DMJKv9aeY08m z3T/34Eil5kBeoGAip0uneCfUpTGdrlldQGtPxKtV0aAoZuwv+H17OuyqmwqkIBWdk7J c+eGHwNCy8uPMGDGVSHyzv9L6sY6lMGGmYwXpbhNFP924AbkkUpVOa79KBRPG8FloExH huag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/r8x5aE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si7098807edu.126.2021.09.16.23.34.45; Thu, 16 Sep 2021 23:35:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/r8x5aE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237294AbhIPUMD (ORCPT + 99 others); Thu, 16 Sep 2021 16:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbhIPUMC (ORCPT ); Thu, 16 Sep 2021 16:12:02 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1FCDC061574 for ; Thu, 16 Sep 2021 13:10:41 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id m11so9416198ioo.6 for ; Thu, 16 Sep 2021 13:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wu/5meqeHZqsVUKSjtYxX+ZcUZzqTdvsMcCN8QTUfPI=; b=J/r8x5aEqy8Zz1boK1o6nPUUBlaotFj7ta5KZX5ZUTU5V0joZCkMVqLukEG5o2CDDk IVID5A72jCCD+Xg9jI5DoVDUwa1QDhwIiBMW2+o4wK3uG3/LJVtwPKoAthIRAgnvHQcp 4yUtKUO4Zzw0lMANMOZYcwKnxXr32rOTNAEuvtJPnykVE5wjUjKT/K2R3mjQDKTwO1sN ueIG2ajmmuh1zgQ3rNJ/HeqcL0yTz/ulLTcW8cXB66dQ9gN7Hh4rLciGmmB6lxJl7LYF gt/rTSDsCE5SWza8KETcR2wVib5qQIrw9UkkjjrKK3xMMu7VB7WUE/Rcyg7Kim5QVxhR sWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wu/5meqeHZqsVUKSjtYxX+ZcUZzqTdvsMcCN8QTUfPI=; b=bDnYXVGSjeslqDBxpSAhCZOQIeYnI4595iLq54+FOcMkn0ihrkEkc9TiBEP+tb4eb6 B/tBb2F5TOTcqP6gtiE2o3bR/DHIQTJhBqSz97xt7xPjvhRDs0/RmXE6kWGseF5NI1pc g+DETAchEDu6WwYkFgIHj41WmSwDQeGaBDglaHgOLOuBTCJMl8z31y+kl7wIFT9y1Acn vThT4KTOMfDA2cqTbm/UzViwUvhJEVsmA89wHJhXJNxovsmQofPwqeg/o9IGH7lw5RW5 LydB2814I6emu3Xyd01FDw1icYiPK6K8jiyAkf55QyrufKANVtq8TIFBcQD76JADpKRC aODg== X-Gm-Message-State: AOAM531mOS3IJk4OFuorVAIwVX2Zas9S2ZPJ2Q9M7o9Uh2jLpFmYc2eI TIGu5X3zhy9cpA7uCi6ZwL2QVHDi4cqsl9WZPYXXPmxIWrafwxyM X-Received: by 2002:a6b:8bcf:: with SMTP id n198mr5846212iod.178.1631823039559; Thu, 16 Sep 2021 13:10:39 -0700 (PDT) MIME-Version: 1.0 References: <20210615232816.835325-1-bjorn.andersson@linaro.org> In-Reply-To: From: Amit Pundir Date: Fri, 17 Sep 2021 01:40:03 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sdm850-yoga: Enable IPA To: Bjorn Andersson Cc: Andy Gross , Rob Herring , Alex Elder , linux-arm-msm , dt , lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Sept 2021 at 20:27, Bjorn Andersson wrote: > > On Thu 16 Sep 03:52 PDT 2021, Amit Pundir wrote: > > > Hi Bjorn, > > > > On Wed, 16 Jun 2021 at 04:58, Bjorn Andersson > > wrote: > > > > > > Shuffle memory regions to make firmware loading succeed and then enable > > > the ipa device. > > > > Just a heads-up, this reserved memory region shuffling in sdm845.dtsi > > broke PocoF1 and may be other devices too(?) which do not override > > these regions. > > > > Thanks for the report! > > > IIRC you once had a patch to move the reserved memory regions to board > > specific dts files, is it still on the cards so that we don't run into > > breakages like this? > > > > As you might remember the feedback I got was to not move the regions to > the individual devices and it was better to just deal with the problem > this way... > > But apparently I was too optimistic and should have played the usual > game of deleting the inherited nodes and made the changes in the yoga > dts... > > > Meanwhile I'll go and add these regions in sdm845-xiaomi-beryllium.dts. > > > > Let's prepare a fix that moves this change into the yoga.dts and get > that landed asap. Done https://patchwork.kernel.org/project/linux-arm-msm/patch/20210916200554.2434439-1-amit.pundir@linaro.org/ Smoke tested on PocoF1 only. > > Regards, > Bjorn > > > Regards, > > Amit Pundir > > > > > > > > > > > > Signed-off-by: Bjorn Andersson > > > --- > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 21 +++++++------------ > > > .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 5 +++++ > > > 2 files changed, 13 insertions(+), 13 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > index 1796ae8372be..49624eadce84 100644 > > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > @@ -128,28 +128,23 @@ camera_mem: memory@8bf00000 { > > > no-map; > > > }; > > > > > > - ipa_fw_mem: memory@8c400000 { > > > - reg = <0 0x8c400000 0 0x10000>; > > > + wlan_msa_mem: memory@8c400000 { > > > + reg = <0 0x8c400000 0 0x100000>; > > > no-map; > > > }; > > > > > > - ipa_gsi_mem: memory@8c410000 { > > > - reg = <0 0x8c410000 0 0x5000>; > > > + gpu_mem: memory@8c515000 { > > > + reg = <0 0x8c515000 0 0x2000>; > > > no-map; > > > }; > > > > > > - gpu_mem: memory@8c415000 { > > > - reg = <0 0x8c415000 0 0x2000>; > > > + ipa_fw_mem: memory@8c517000 { > > > + reg = <0 0x8c517000 0 0x5a000>; > > > no-map; > > > }; > > > > > > - adsp_mem: memory@8c500000 { > > > - reg = <0 0x8c500000 0 0x1a00000>; > > > - no-map; > > > - }; > > > - > > > - wlan_msa_mem: memory@8df00000 { > > > - reg = <0 0x8df00000 0 0x100000>; > > > + adsp_mem: memory@8c600000 { > > > + reg = <0 0x8c600000 0 0x1a00000>; > > > no-map; > > > }; > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > > > index c2a709a384e9..3eaa42dc3794 100644 > > > --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > > > +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > > > @@ -415,6 +415,11 @@ ecsh: hid@5c { > > > }; > > > }; > > > > > > +&ipa { > > > + status = "okay"; > > > + memory-region = <&ipa_fw_mem>; > > > +}; > > > + > > > &mdss { > > > status = "okay"; > > > }; > > > -- > > > 2.31.0 > > >