Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13771547rwl; Wed, 4 Jan 2023 12:52:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXtE1ehQf/yP0WuLTL37fdhJyXTWumtMB2rdTuaWiJ+VaFz8HF101+/gMM0+vX7ycSCCROoX X-Received: by 2002:a17:906:d052:b0:7c1:5098:907a with SMTP id bo18-20020a170906d05200b007c15098907amr44209539ejb.35.1672865526810; Wed, 04 Jan 2023 12:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672865526; cv=none; d=google.com; s=arc-20160816; b=V7TV9GuPhWmuaaHeYj7WGK0zmXVZeLPNzkChXkDkEx03CQLLsrAVAKGyGDdXXlI7ZC UXlxCsiMR7DKTd+xNjRi1zWQewE7I6Kv+M78u7wdKJKsy3IGplWG2dK6Rm1WoRG5C5m/ oQ7f7hAu1klBFUlUXWTvHTBS+UnVem/yvFmeYIxAHqG3qvlyrfgPxxPYD7q4HKgv7uEx t92KzM9O5ZGKx3fXeii0fJd5zTiSsf2umK9oga+VW+SlGy4590yCr8ZAM3Bb0zI/hqmV YOBvtRgm1W0faDQsO4vC+mS2nkdNo9kf9B+w8huqOWaa8hp/933+qJIYQs1FHqu1wR4r 2IZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rSI6ERH4/Yqp6KxmuUAxEZiVgqcat3iuDxIuYqWqdKI=; b=PtrbjbxdW0Q2sxQxYG8Oa5z3ApOhugI5ET82wvmbnfBT8gM7ynYH4bTzZb1ikS2qUG LrS6rDflIgLxFeEJHHAi+vkH2vCULr5X3QS1mgsYohCQXL5cemBSwJFg3+2XQz8UGvgY UG1iXXNLnWHoPGDljqwTCKaoe1GItCaRsRqfnAkJ3OHusjfpwRv3eKc6Krnuelj4FH9k Gs1Iq1/5NSDnO+sdQgnjkGDjFxMUZUPshIRbqOkOdE+v53zep9492Mc6c5hot0LI7eI0 vST/RbKqAuw/w0YA4VXvkARBH6khiU/dLvEEfFB3iU3VwotrYmcqfwdGA/kAJ5a97wGF bBnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EUrL1a0g; 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 xj8-20020a170906db0800b007c16d82961csi31274593ejb.278.2023.01.04.12.51.53; Wed, 04 Jan 2023 12:52:06 -0800 (PST) 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=EUrL1a0g; 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 S234337AbjADUiS (ORCPT + 56 others); Wed, 4 Jan 2023 15:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235463AbjADUiQ (ORCPT ); Wed, 4 Jan 2023 15:38:16 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C62B51707C for ; Wed, 4 Jan 2023 12:38:15 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id y25so52177712lfa.9 for ; Wed, 04 Jan 2023 12:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rSI6ERH4/Yqp6KxmuUAxEZiVgqcat3iuDxIuYqWqdKI=; b=EUrL1a0g/Z4M8DJK8gyPCoRHCYUJdvMlKtlZ3vc/Udut+zURvRj+MLsdlSIJbLDFcY pqEc8bHBijmPjnZItz7toamQlk396Jht78uZMC5i9Jg/41R0dOBnCUocwcKbCruEVgIU UFL+CRdDiYDW4si0CAaT9+QGqbfwzZpCUlLK7ezBj6IVVI+QTthxrLfnEsiOTQwhT0oE fA+6iNmxW7NcJ2ZFrBfpCxObX+pv5ltxXkPgfw+HSDl0mKA+oU0tId7rjKMTY52aD9Wl 2BgozyiECZGRRwVrf4N2G5YTcPXeIrBwOWOb9p0p8WZfApxO/LicEOPaFamcWzIx0Rin WdXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rSI6ERH4/Yqp6KxmuUAxEZiVgqcat3iuDxIuYqWqdKI=; b=jR3rW9LuNsIT31vGodC7J40cg83mPmdVjDotXcU1qDwS1lZci52Dfv9aamhZBP9MWV l+cIxOxLH6vi1EpBQATw1U66QjUOrlTTiQTCuXIHgzEwbhZI2bJU3nsoyC0EqK98Pq0a yTUaZRkXg5BGnn3C/Od5lY8ZIuTjnUz5lHsabGrfY9GzpFS1MeZ9nElbmiBRiylNXXOZ PpkoZox4nWbfNipJbGz1Ak3zxUElDN/0MqRP26E0kHBJMMtGfm+emrojCsNqSt8HK/Pe ECcW2eGx/coKKVYJ2SMwrWwgqWtnVfzDe/NEyPxLG2t1ooEw/vTSG5Umv2963kxZ0qeM aWkg== X-Gm-Message-State: AFqh2kpB33cuzZO52H6I7Hn6uRhCAcCj6IplW2NP4ce8bn9KTS78au+S Fkle56AuslbaRRmeOvSnya7Lcg== X-Received: by 2002:a05:6512:2393:b0:4a4:68b9:1a00 with SMTP id c19-20020a056512239300b004a468b91a00mr16575061lfv.40.1672864694111; Wed, 04 Jan 2023 12:38:14 -0800 (PST) Received: from [192.168.1.101] (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id w5-20020ac24425000000b004cb0256116csm4196255lfl.26.2023.01.04.12.38.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jan 2023 12:38:13 -0800 (PST) Message-ID: Date: Wed, 4 Jan 2023 21:38:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH net-next] net: ipa: correct IPA v4.7 IMEM offset Content-Language: en-US To: Alex Elder , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: luca.weiss@fairphone.com, caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, andersson@kernel.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230104181017.2880916-1-elder@linaro.org> From: Konrad Dybcio In-Reply-To: <20230104181017.2880916-1-elder@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On 4.01.2023 19:10, Alex Elder wrote: > Commit b310de784bacd ("net: ipa: add IPA v4.7 support") was merged > despite an unresolved comment made by Konrad Dybcio. Konrad > observed that the IMEM region specified for IPA v4.7 did not match > that used downstream for the SM7225 SoC. In "lagoon.dtsi" present > in a Sony Xperia source tree, a ipa_smmu_ap node was defined with a > "qcom,additional-mapping" property that defined the IPA IMEM area > starting at offset 0x146a8000 (not 0x146a9000 that was committed). > > The IPA v4.7 target system used for testing uses the SM7225 SoC, so > we'll adhere what the downstream code specifies is the address of > the IMEM region used for IPA. > > Link: https://lore.kernel.org/linux-arm-msm/20221208211529.757669-1-elder@linaro.org > Tested-by: Luca Weiss > Signed-off-by: Alex Elder > --- Reviewed-by: Konrad Dybcio Konrad > Note: This fixes a commit that first landed in v6.2-rc1. > > drivers/net/ipa/data/ipa_data-v4.7.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ipa/data/ipa_data-v4.7.c b/drivers/net/ipa/data/ipa_data-v4.7.c > index 7552c400961eb..b83390c486158 100644 > --- a/drivers/net/ipa/data/ipa_data-v4.7.c > +++ b/drivers/net/ipa/data/ipa_data-v4.7.c > @@ -357,7 +357,7 @@ static const struct ipa_mem ipa_mem_local_data[] = { > static const struct ipa_mem_data ipa_mem_data = { > .local_count = ARRAY_SIZE(ipa_mem_local_data), > .local = ipa_mem_local_data, > - .imem_addr = 0x146a9000, > + .imem_addr = 0x146a8000, > .imem_size = 0x00002000, > .smem_id = 497, > .smem_size = 0x00009000,