From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1276C47083 for ; Wed, 2 Jun 2021 21:50:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEC4D613E9 for ; Wed, 2 Jun 2021 21:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEC4D613E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:CC:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=77PqoL7t7mhfurqjS/wFtaZcMkM5nYxK8mYiI9bHvZM=; b=w5CBjoauL5FBpY KhU6eWpuIb0DiP/xXD2rx0hvxUXUww5ZcZZIjktF26ccMcdBoTAs0Ke6DOCW9fLDYFepSRcGq7IPE ZtA0ZF83hfegEUakNmRcZH6KCxP6ix+LdRVyQe52LTUHrUSauS/j69eugFzNOxegAk6mnMdua6R8d n7DOsU55ZDrLBVgSFTGzcqI8H/TiLlpfRNXome2YZ1C2O1tsZPo12Zdn4I3M4ZpjdCbtpFmsi+Zxm J21Z5Ku6KbWS2lTTwY5CMs5NaVsKIyUcNE4DGTfL4/DLR9JeDomOe262MLvJpXfOOBiu6/CXLS8l8 xirIoBEO9vTDcvVkY7hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loYjy-006Ihh-DL; Wed, 02 Jun 2021 21:49:30 +0000 Received: from alexa-out.qualcomm.com ([129.46.98.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loYju-006Igl-Qa for linux-arm-kernel@lists.infradead.org; Wed, 02 Jun 2021 21:49:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1622670566; x=1654206566; h=to:cc:from:subject:message-id:date:mime-version: content-transfer-encoding; bh=vpHefqyyN5uiVK9fg6NQewvjK5aQpryReF2gGBIn1ms=; b=GZNVhtaylYi16CTFgIVXiej86awpVtdO8SrD0MWOWCRb35nvRQAiObRF JNIMQy8U7G1xh6HNydl1vz2SsCD+HUbS+gXms0zn+Xy1KxcSQW+d/uKom ZgiosNAdxQTwD259/wXqIpv6+8ThV1rL8/3qtQ498ZzYTM4jY1yQpek0G E=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Jun 2021 14:49:24 -0700 X-QCInternal: smtphost Received: from nalasexr03e.na.qualcomm.com ([10.49.195.114]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Jun 2021 14:49:23 -0700 Received: from [10.38.241.122] (10.80.80.8) by nalasexr03e.na.qualcomm.com (10.49.195.114) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 2 Jun 2021 14:49:22 -0700 To: Bjorn Helgaas CC: Catalin Marinas , Will Deacon , , Lorenzo Pieralisi From: Qian Cai Subject: Arm64 double PCI ECAM reservations in acpi_resource_consumer() Message-ID: Date: Wed, 2 Jun 2021 17:49:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03a.na.qualcomm.com (10.85.0.103) To nalasexr03e.na.qualcomm.com (10.49.195.114) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_144926_959525_F3CC4951 X-CRM114-Status: UNSURE ( 4.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bjorn, I noticed PCI ECAM could be reserved twice on arm64. Firs time through, [ 19.087790][ T1] acpi_ns_walk_namespace+0xc0/0x390 [ 19.092927][ T1] acpi_get_devices+0x160/0x1a4 [ 19.097629][ T1] acpi_resource_consumer+0x8c/0xc0 [ 19.102680][ T1] pci_acpi_scan_root+0x158/0x4c8 [ 19.107555][ T1] acpi_pci_root_add+0x450/0x8e8 [ 19.112345][ T1] acpi_bus_attach+0x300/0x7d0 [ 19.116960][ T1] acpi_bus_attach+0x178/0x7d0 [ 19.121576][ T1] acpi_bus_attach+0x178/0x7d0 [ 19.126190][ T1] acpi_bus_scan+0xa8/0x170 [ 19.130545][ T1] acpi_scan_init+0x220/0x558 [ 19.135074][ T1] acpi_init+0x1f4/0x270 where pci_acpi_setup_ecam_mapping() confirmed all reservations are succeed. Then, [ 19.880588][ T1] acpi_ns_walk_namespace+0xc0/0x390 [ 19.885725][ T1] acpi_get_devices+0x160/0x1a4 [ 19.890426][ T1] pnpacpi_init+0xa0/0x10 As the results, those messages are showed up during the boot in pnpacpi_init(). [ 17.763968] system 00:00: [mem 0x10000000000-0x1000fffffff window] could not be reserved [ 17.772900] system 00:00: [mem 0x7800000000-0x780fffffff window] could not be reserved [ 17.781627] system 00:00: [mem 0x7000000000-0x700fffffff window] could not be reserved [ 17.790350] system 00:00: [mem 0x6000000000-0x600fffffff window] could not be reserved [ 17.799073] system 00:00: [mem 0x5800000000-0x580fffffff window] could not be reserved [ 17.808155] system 00:00: [mem 0x1000000000-0x100fffffff window] could not be reserved [ 17.816862] system 00:00: [mem 0x600000000-0x60fffffff window] could not be reserved [ 17.825417] system 00:00: [mem 0x400000000-0x40fffffff window] could not be reserved Looking through the x86's version of pci_acpi_scan_root(), it won't call acpi_resource_consumer(), so I suppose this bug is only affecting arm64? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel