Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4682612rwd; Sun, 11 Jun 2023 12:42:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7nGRaG/aknQsshkiA3uWtb39HeNLzuLTUIJmRxafWSFU1SXOJSGrOhVPka1wQ6e7c7BfGK X-Received: by 2002:a05:6a21:797:b0:119:10a3:d79d with SMTP id mg23-20020a056a21079700b0011910a3d79dmr7099312pzb.14.1686512533345; Sun, 11 Jun 2023 12:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686512533; cv=none; d=google.com; s=arc-20160816; b=oC1Y/7CyEboKdluv9sdEAj9WJ9bCdSrqqi2rGXKWNaA432p0guRf/rCHUNpog2ViuY kr6AfgK365f0f/Tgx2pNKlqT8GW3h/3o7Hmiln4QHC19P04Yo9tjdwUCcLwtV4h7hGk2 uM+uzKPbOzNOvsSaa1mWbeZnPFoJhns/F4SibLVLXzdzUvFVTZRCgZK6dXfXSxvPJSsS q8E/UAkPmVCUKJh3TZql0nUzc0Qv3M3zbbjryjeXRQUaIhKG+oMEc9ABKdYUG1yWuaP3 2fTsu3gyQGwS4zzW1z47qRcpwkx5o5qJJK2OtitgM4a1InQ9sQ7Oi+Per55x2xjj0q6c HuiQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7SbAcuds+tlWFnTKWKdoeNb1Lhp8lSpPRXuDUOszIQI=; b=JDwEMARWdXcdG3rwImAriOfnjGLGFpc4kkBPhIjD/Lt9vUPhVAR7xXXYYRZUQe61m6 PWDXp+HLtZ2Y1jz+TRmvrMon1O2dty+lyZDBBbi+WMoS2VjaYKXM5xVkwGKyHApc9aK9 iH1zczwpqXrvg7zUtAnREm5v2dZfBJfY+YfkLqc2kgbcMWd4OEN41k2n7wGshzfJ0b0J ddNrydcdFZj67fJP/LdJwvKEED0G7xy9z36kkPqXeo7cm1/Cclyt/KT9wKzdPVojdR9Q CNoCb0uIkUiJO2LtTfyMXr5qm+YBIm0LxeM7fHht5iWRyAIQj1glCM4ez1QrNO/auSxj N9+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=X1adOuJd; 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=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a636e0e000000b0053424040bb7si5796181pgc.298.2023.06.11.12.42.01; Sun, 11 Jun 2023 12:42:13 -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=@baikalelectronics.ru header.s=post header.b=X1adOuJd; 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=QUARANTINE sp=NONE dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbjFKTUV (ORCPT + 99 others); Sun, 11 Jun 2023 15:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbjFKTUN (ORCPT ); Sun, 11 Jun 2023 15:20:13 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DAE7E42; Sun, 11 Jun 2023 12:20:10 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 2A2EEE0E1D; Sun, 11 Jun 2023 22:20:09 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-transfer-encoding :content-type:content-type:date:from:from:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=post; bh=7SbAcuds+tlWFnTKWKdoeNb1Lhp8lSpPRXuDUOszIQI=; b=X1adOuJdgz6f z9ez2n0Gj674HIgL4+2UT/23EsTv4QXc3HApQeCDHKhsf3y/mNI0Qd2A6x681I2m Wo+WlSVT2UMh2YL3InqbnNGZbsrcaa5PRJ+vAV/mkxOvk9o1HLKpZu4chnTtl4UL hOKBPWGqPRJPmHwGN6VY4y1WsfX3WFA= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id E7CDEE0DE3; Sun, 11 Jun 2023 22:20:08 +0300 (MSK) Received: from localhost (10.8.30.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 11 Jun 2023 22:20:08 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Manivannan Sadhasivam , Serge Semin , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Alexey Malahov , Pavel Parkhomenko , , Subject: [PATCH RESEND v7 02/11] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Date: Sun, 11 Jun 2023 22:19:56 +0300 Message-ID: <20230611192005.25636-3-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230611192005.25636-1-Sergey.Semin@baikalelectronics.ru> References: <20230611192005.25636-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.10] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 The message is printed if the number of requested inbound iATU windows exceed the device capability. In that case the message should either refer to the "dma-ranges" DT property or to the DMA-ranges mapping. We suggest to use the later version as a counterpart to the just CPU-ranges mapping. In any case the current "Dma-ranges" phrase seems incorrect. Suggested-by: Manivannan Sadhasivam Signed-off-by: Serge Semin Reviewed-by: Manivannan Sadhasivam Reviewed-by: Yoshihiro Shimoda --- drivers/pci/controller/dwc/pcie-designware-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c index 9952057c8819..5718b4bb67f0 100644 --- a/drivers/pci/controller/dwc/pcie-designware-host.c +++ b/drivers/pci/controller/dwc/pcie-designware-host.c @@ -723,7 +723,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp) } if (pci->num_ib_windows <= i) - dev_warn(pci->dev, "Dma-ranges exceed inbound iATU size (%u)\n", + dev_warn(pci->dev, "DMA-ranges exceed inbound iATU size (%u)\n", pci->num_ib_windows); return 0; -- 2.40.0