Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4944755rwl; Mon, 10 Apr 2023 20:41:38 -0700 (PDT) X-Google-Smtp-Source: AKy350Zmk3H0uvF+JlUpvqR4neXQ+j0JHYmiYIV6yGBLE4otu9eyhsXcjLhiJ7favr+FUrq7iQys X-Received: by 2002:a17:907:77c6:b0:8f4:ec13:d599 with SMTP id kz6-20020a17090777c600b008f4ec13d599mr10440438ejc.27.1681184498244; Mon, 10 Apr 2023 20:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681184498; cv=none; d=google.com; s=arc-20160816; b=xRzjpJ+u2r5riP6ZGRqCYIHMQQZgOuF03sKb0qnVrbgWlKSPR065kFy6GMPCcKGqeo wmWhzJo5Cf7wJbvFPo09D9T3SEQeqpU/lT8PdNnpAa/u1+er9ReidJuNNdCKArvKjW72 /7Gs5LqEUnYviZo1xBOzXsS2po9mfG3pcqX70YabHtbG8JSz/Ca+KrDIYU2PKTH6kzov peiiVEnEBHzLog9od97QeFNu4/d3swL/fU7C7a04qbjN0bo3pcwMDs3OMLXzvDOm3LsR hqg8I97MZEjSMZEAGg7EefTcAW6Oz4vO+BfKMVz9RETaflo+txoBRp4oNIrzI+P+r+yn +7Zg== 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=Z20A0fWpICPtjOF2M8t4WS6WhRAMGG+yFlsPVf4hP00=; b=r+LRfsuwB8YF/1j2b9ldlXwLJsEb1KbycWRERczxLsGePKmWYYgwdp5bqSRnuFhf02 vE0JmHOjibKPva17KKMW8t3Q/Qvhp0LJDeQArB7J7/0gW5E+0iEaTNMNzTqACy1tD3Pt soecPlgc15fARYkDyDzqJOnN6qzyTey3864Pm7XvzhjZG39CVeQAmEBjQUT8qN3HqlaF IZ9VcHC87e8rdbcmH8llRXHEgrnXhTxENz7HIr7g0SEuBoQqv6Mv6PWkEhO7MpJSEmh2 194VDkdS4UsCpgd3qh8OyyyAkpc0NP7but7Myw2cHmNW7uUiNqqovXqI3CLKHFeqnoIL pi7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b="RhBh/E8f"; 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 h14-20020a1709063b4e00b0094a7d7e87dcsi3728970ejf.129.2023.04.10.20.41.12; Mon, 10 Apr 2023 20:41:38 -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="RhBh/E8f"; 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 S229969AbjDKDkQ (ORCPT + 99 others); Mon, 10 Apr 2023 23:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjDKDjw (ORCPT ); Mon, 10 Apr 2023 23:39:52 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DD6CF1BFB; Mon, 10 Apr 2023 20:39:47 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 14308E0EAB; Tue, 11 Apr 2023 06:39:46 +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=Z20A0fWpICPtjOF2M8t4WS6WhRAMGG+yFlsPVf4hP00=; b=RhBh/E8fNq1I iCmkSr+PFGO505/LkKkqlWszBvWTq7tT8rfk24qv29WQ20D+L8V4oOTNJFuXxYHA 1sangwpvTwH3yk1nHcxBVtMy0COkYmTtlm9RxdEyWb8ypDQUVl92V8I59Atl5fHR z7tHrmAk7cGaKW7/0KbPOkKTwL9Nlcg= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 038AAE0E6A; Tue, 11 Apr 2023 06:39:46 +0300 (MSK) Received: from localhost (10.8.30.38) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 11 Apr 2023 06:39:45 +0300 From: Serge Semin To: Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Gustavo Pimentel , Vinod Koul , Manivannan Sadhasivam , Yoshihiro Shimoda , Rob Herring , Serge Semin , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Alexey Malahov , Pavel Parkhomenko , , , Subject: [PATCH RESEND v3 02/10] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Date: Tue, 11 Apr 2023 06:39:20 +0300 Message-ID: <20230411033928.30397-3-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> References: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.38] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 --- 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