From patchwork Thu Sep 16 15:58:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 513027 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1428028jao; Thu, 16 Sep 2021 10:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvSYEvbCtvP1vSPtqrBKnQNnq8M198C5/dhehPJti1ZBRXXGvQ6TdB6wEWo6HnfMDQr9va X-Received: by 2002:a17:906:7256:: with SMTP id n22mr7576425ejk.173.1631813096951; Thu, 16 Sep 2021 10:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631813096; cv=none; d=google.com; s=arc-20160816; b=g6EAgC8QQ75/IXGHzk7ty+eOEXeDCuPtt+y6mfc3vB3aU0I2rXfopT9x95MHc6cA/W LayU4bBqfmHqPLWv1bYXGUvTkG/aNvD/HprZeGqfvFPVLyqKPZL0NkflCnME8HKmwTRJ aAOMDo3LH1exhTl5R8GAuEZRHMBIlprFERlVGQa+7vzbWU2bhJyn2PkGsAPrLGoo/9Pp 7hFMbtS1v9ok7zoTk1ZMEkb1/9fNuSZgLahNRvtWEJx2mx7fCLcJIH5RfchM1Xxbp0Lo R/md63JwYZDtrkAS9xNiFGIhHjbosjIVx/VIDogwa3nNm9Wvc1fFUfVW3ZRfjXEYzsXM evzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=glRjApBADQ8r3V3F4fzm2MlOl2jRwBKQxWgUVgSebi8=; b=XwU3oJaqclmbV24fBpNFinFyDfQCpGu66pTyj5qbTHex2pkLlAexwyUBuasI5ZCx06 U0vcm0uzuxRk4sE1tNQT1WhtggKJAtuDAgNa2+UjyjBgHeaPiTdvywewvUU3E4IYvczF +pCZK19z7V6Ju1P7NzzCMHLQLZmpWXAm1+ODbf838m0QTYUoC0tfbGDfC64s4q2tpTyg Mdf9TO4+gVTYyLJY92lDE+IsOSwXhW/PtKKyAh/fj9nVdkUwT6K1OWAyxbJd1cAieUZ3 M7N1tZI4tqbc99YzLjxoHhaW+LV7JmuH5gr0a1ENwSVsJWwsDOncHt1qspcoKClqpQ4R MBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nr3dgW01; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn42si3913679ejc.391.2021.09.16.10.24.56; Thu, 16 Sep 2021 10:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=nr3dgW01; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352273AbhIPRYJ (ORCPT + 11 others); Thu, 16 Sep 2021 13:24:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:43520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343777AbhIPRV6 (ORCPT ); Thu, 16 Sep 2021 13:21:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E3DA961A2E; Thu, 16 Sep 2021 16:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810564; bh=a+IUpkiYDT9FlnSCzYyC3f+PXqV+/LEvRXZ0gkxuO3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nr3dgW01i4Ufo81bmOwbdoSSF9wC16O8J6JBGDhEq+tv5auzjE78Z+X43q8WupgPi XdaTaZpCC0iSfDuwzVtz9CV63JfsWHydyjxBvzvn5QGhPPxyENfDY5/sb4gVLvjM9F GmoEOMKvKhF3e34SdSTbFgfhuQqEwyKl5BDvjZ3s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Elder , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 187/432] net: ipa: fix IPA v4.11 interconnect data Date: Thu, 16 Sep 2021 17:58:56 +0200 Message-Id: <20210916155817.076633677@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Alex Elder [ Upstream commit 0ac26271344478ff718329fa9d4ef81d4bcbc43b ] Currently three interconnects are defined for the Qualcomm SC7280 SoC, but this was based on a misunderstanding. There should only be two interconnects defined: one between the IPA and system memory; and another between the AP and IPA config space. The bandwidths defined for the memory and config interconnects do not match what I understand to be proper values, so update these. Signed-off-by: Alex Elder Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ipa/ipa_data-v4.11.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) -- 2.30.2 diff --git a/drivers/net/ipa/ipa_data-v4.11.c b/drivers/net/ipa/ipa_data-v4.11.c index 9353efbd504f..598b410cd7ab 100644 --- a/drivers/net/ipa/ipa_data-v4.11.c +++ b/drivers/net/ipa/ipa_data-v4.11.c @@ -368,18 +368,13 @@ static const struct ipa_mem_data ipa_mem_data = { static const struct ipa_interconnect_data ipa_interconnect_data[] = { { .name = "memory", - .peak_bandwidth = 465000, /* 465 MBps */ - .average_bandwidth = 80000, /* 80 MBps */ - }, - /* Average rate is unused for the next two interconnects */ - { - .name = "imem", - .peak_bandwidth = 68570, /* 68.57 MBps */ - .average_bandwidth = 80000, /* 80 MBps (unused?) */ + .peak_bandwidth = 600000, /* 600 MBps */ + .average_bandwidth = 150000, /* 150 MBps */ }, + /* Average rate is unused for the next interconnect */ { .name = "config", - .peak_bandwidth = 30000, /* 30 MBps */ + .peak_bandwidth = 74000, /* 74 MBps */ .average_bandwidth = 0, /* unused */ }, };