Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9272110rwr; Thu, 11 May 2023 12:23:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kPWOcBFuoiDGKLQshRXcd1dzLbkfK74xWTdwqXnQ69hMhm+05EhARd00KCzSBHWFtXxFf X-Received: by 2002:a17:903:248:b0:1aa:e631:9f7f with SMTP id j8-20020a170903024800b001aae6319f7fmr25612506plh.41.1683833029265; Thu, 11 May 2023 12:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683833029; cv=none; d=google.com; s=arc-20160816; b=nt1BzU7XHBzpGlXBNl5uJCTbTbSQkcLr/OK5VQqZ6NgKJFts2ZqxlFZAAyrH6JkYRs HfKDG3f6kgBqUzifPQ0PverIhcQc6RKKp/UkcOnkYaCu2q77D2rTfGyhpVkxfeEhojpq 0yB8Ce4u19tmRZCNMOS260wgy8oHUXymzdeHIFumGVlUe7NvfB2YLJktA8svEeCrWIyG DXtqX/jV/tjaAhZg6hwlLPNaAyQDb15vMuI1k05Eq0jB/ZO7QHBDxycowe7oOpr8B26J dd3Fem869AKxVOGnDa/9x62GTr0kl4fJgs4QHzUT1JB30ikHmhC+iBYhha/JibF3BUvv vzlA== 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=dE2pBVNU3O4WIfQIvMSjtNs6p960k8nUdeVplXDZ9LA=; b=i1ak8ThL923d415Sqm8cTG+/MWn4hs7Igv2O45mmY0kU+p4c9N+xjwdxhw0FUpCESx 85GAUl6/YZLcQfeZYHuBG+1rweAJmagfCvgQKAasUBlITVKw0i5WPmufumkHVcLV8AFq Bf2DI/7UCPZqVx07+QfH99eUe3jLM8tHcIQjX5oWCH1BVyKm7bP4oq2CTTiXLrO6UeOq 6C8Q2XoaExYyJCGlEW4/T1Rd9NkQREEATQK6+43GflwuEbSHTq0yvxfe2sOhRNKkg8jI /oQOjta+mMzWlisbYEeGDxQd0+RJjV1wMIWBQJ5GKmO8Tl1MCW3DT/qzv4qbPn+50rkw dwGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=vQpMu2ze; 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 u18-20020a170902e81200b001aae82caf71si8464392plg.211.2023.05.11.12.23.37; Thu, 11 May 2023 12:23:49 -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=vQpMu2ze; 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 S239164AbjEKTJp (ORCPT + 99 others); Thu, 11 May 2023 15:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238397AbjEKTJY (ORCPT ); Thu, 11 May 2023 15:09:24 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AE305FE5; Thu, 11 May 2023 12:09:20 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id CADFFE0EBC; Thu, 11 May 2023 22:09:18 +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=dE2pBVNU3O4WIfQIvMSjtNs6p960k8nUdeVplXDZ9LA=; b=vQpMu2zef3oP AulljtCA85KvXgZUr7ZOc14Jn6ZQv/qAdkuemdt/+thSZ4s+FNZi58UUgOknoBLO hovMHR7IVVdRGbyFVT7WnNgzI4tzMHGGMbTUtW0/qYF2eoHnfw1Nbp7z7chuKvfX 1V9zWsHEq7TzANVpCO2/HydVyDr9IUA= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id AE9C0E0EB1; Thu, 11 May 2023 22:09:18 +0300 (MSK) Received: from localhost (10.8.30.6) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 11 May 2023 22:09:18 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Gustavo Pimentel , Vinod Koul , 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 v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Date: Thu, 11 May 2023 22:08:50 +0300 Message-ID: <20230511190902.28896-3-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230511190902.28896-1-Sergey.Semin@baikalelectronics.ru> References: <20230511190902.28896-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.6] 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 --- 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