Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp709698rwd; Wed, 31 May 2023 04:30:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gwPPT0ylcGr6oyceK+7kOd/o10Akalyjpr+aaxsUVOaLeMLY9JFxVquWit2fAH/2GOY+y X-Received: by 2002:a17:903:22cb:b0:1b0:bf80:d1f2 with SMTP id y11-20020a17090322cb00b001b0bf80d1f2mr3407154plg.49.1685532623337; Wed, 31 May 2023 04:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685532623; cv=none; d=google.com; s=arc-20160816; b=k1RgySeg4uQbLVAuLetlAoaZCBw2fgqPQeA05vf05WOOGJ9zdS3qcuGSNENzIVcJbd vl+jY+abNazGhNahO9j0+sAq65WkrDi1FDtpwxfq+kfuwtk41qWAt/Frt8q8gKsy6Q4d rOixM8tq8eZ5fop9n9A+ruHYC4S8UyEdrJ7AGOyNKzlu1jeJd9zklZv9gS0nVJ9rot7w Ll61VKblcTOu/CKDzbdtJP9g6DmW5UQ3LC3iyyZgKFnDo/x4RbDnnOdvpjKxVSIpOl2Q 712+Uzsn1PAwzjP30JghGW/WW9YPiuNlWJxJJX6I9dW2DdnvnmoRBb7OLzAluwdvheqY 81eA== 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=YpuTuK/dl9y3ssGvkzdq7JJqY0l3qi3JctUl5QA7Vb8s7jOS5Tg8NlY5BlxZgeWZRr ts5jsbTwHxrepC5kUlNxjDz3MFyF5Ii4tdjQYDw5o16S/NDD7iO1kOYIXqnRNcOdQ2Jz P+h3Jl/aaCVgo1xKSuT1IdwwU5HJQK6cereimRVBeq1/gSifjBQUNC4cDMy35siyx49c dCYvTXYnT3RTEQDr+pqXtd5kqMluChG+UsQpzfAdwdUsIZIS2WTrSZ3FjCMHrccdKyJA sGkuob8NFPuWGHRog3l/baUNNRxbg8/dAxB0zpLn6ET/tsWiOVMYwi64yFnRAOpvcuc8 YVfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=aImCJQZ0; 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 w3-20020a170902e88300b001a6e98a5f21si708118plg.586.2023.05.31.04.30.10; Wed, 31 May 2023 04:30:23 -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=aImCJQZ0; 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 S235048AbjEaL0M (ORCPT + 99 others); Wed, 31 May 2023 07:26:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjEaL0K (ORCPT ); Wed, 31 May 2023 07:26:10 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9895123; Wed, 31 May 2023 04:26:08 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id CEC3DE0DEA; Wed, 31 May 2023 14:26:07 +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=aImCJQZ014Me kT/OIT+rp+XA7RSh57y7bgpmGlYnUgNtn1t1ww0Ml58s+Fs93rIl3avwih4zqLZo r2pk2KMXOwxTgJ3LoIldRYNDvPl2zsv53S4FgfqsMqLamh85lJe+Ds8bSSGFlr6Q dkF6z3XvJiKP4VGcGRI6uGdk0hOKgDg= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id AB609E0DE3; Wed, 31 May 2023 14:26:07 +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; Wed, 31 May 2023 14:26:07 +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 v6 02/11] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Date: Wed, 31 May 2023 14:25:53 +0300 Message-ID: <20230531112602.7222-3-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230531112602.7222-1-Sergey.Semin@baikalelectronics.ru> References: <20230531112602.7222-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,URIBL_BLOCKED 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