Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7022027rdb; Fri, 15 Dec 2023 15:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLo9O0TJ2f3cwRe8Bq7OUU9wm3JLaL6gm+fr9YyNTjIjv0j9haghHNJ9D8TB/jEUhlOB9R X-Received: by 2002:ac8:5909:0:b0:425:a5ef:a70d with SMTP id 9-20020ac85909000000b00425a5efa70dmr11215873qty.51.1702683363538; Fri, 15 Dec 2023 15:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702683363; cv=none; d=google.com; s=arc-20160816; b=KFAsVSleT0n3k9lpFrtF1/uXW7GeSsMNEw4yxgxmk1Gm8sSnj//GHZwvEBlSvgIuk3 jHX4NoiGp/UIoDnpx6NNxssIBKaOAiPc8pDQYuLQU8MAv0OYaJI5YYMR6Y11KyGDbOlp pPW2b1g2qVGTZ6Rx15WzggxXRte5zHrq7Gtwc2gVPQklD1mU+DarXsjuXJ59sZfTEnd9 tFU75SKq+Oy7cLMBwMTyxvRlpOou6gPUODU54Em8NnIFtJNRvI41r8CxR8FmPtVD6iwk Ip3pnpuTXFPG172/pyLjS5ro70WP3NKH8w0elJzoxusNr67qPhRZoY9dVJtFDYxRD5vU t6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=zXVp9MN/CGjapXUDZn+EKS8DWFECEvfkwnhF1PnoRCc=; fh=BfDilD3Ct3C19nE6Wfhz7qEHFhgidt2lbrDN6IOYKzw=; b=rr4sA9e5gerM6hztuk9J4EyS8auGEOMN1k+lDwh2xPwfGNh6Dz9JJGeOjoAH9ugnwH seOzo4c03aL6zuPkwp4w5XBAqx9OwQevN/tzmTSVqRIfJLdfejG90r6QiqUz0D5zkEe6 5GYa4ekbxL4hnsiaSk6yqthXHpOLmMqJRpWOyl3N6ftre3KGHuqByefIAvFGm1xeNhdj B9Jon9EmF+sqkX05deVQDCOV71j1d9mpjBYXHMAlQauDSfQKQ5/EikkGVgo45OGILrw9 CMc4F86UJwYOVYwEbhiJMxKA8f8iwp/tSpR9RndvR2ZE7+QEQLwW/1dp+HOh4WHixeX8 YM/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1827-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g20-20020ac85d54000000b00425c5ca0404si14412095qtx.157.2023.12.15.15.36.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 15:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1827-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F0481C23E9F for ; Fri, 15 Dec 2023 23:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 990D52E3F7; Fri, 15 Dec 2023 23:35:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from server.atrad.com.au (server.atrad.com.au [150.101.241.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1741118ECB; Fri, 15 Dec 2023 23:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=just42.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=just42.net Received: from marvin.atrad.com.au (marvin.atrad.com.au [192.168.0.2]) by server.atrad.com.au (8.17.2/8.17.2) with ESMTPS id 3BFNZKjE001393 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 16 Dec 2023 10:05:22 +1030 Date: Sat, 16 Dec 2023 10:05:20 +1030 From: Jonathan Woithe To: Igor Mammedov Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Regression] Commit 40613da52b13 ("PCI: acpiphp: Reassign resources on bridge if necessary") Message-ID: References: <20231214143205.4ba0e11a@imammedo.users.ipa.redhat.com> <20231215143638.032028eb@imammedo.users.ipa.redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215143638.032028eb@imammedo.users.ipa.redhat.com> X-MIMEDefang-action: accept X-Scanned-By: MIMEDefang 2.86 on 192.168.0.1 On Fri, Dec 15, 2023 at 02:36:38PM +0100, Igor Mammedov wrote: > On Fri, 15 Dec 2023 21:57:43 +1030 > Jonathan Woithe wrote: > > > On Fri, Dec 15, 2023 at 08:43:29AM +1030, Jonathan Woithe wrote: > > > On Thu, Dec 14, 2023 at 02:32:05PM +0100, Igor Mammedov wrote: > > > > On Thu, 14 Dec 2023 11:58:20 +1030 Jonathan Woithe wrote: > > > > > > > > > > Following an update from 5.15.72 to 5.15.139 on one of my machines, the > > > > > > > > looks like you are running downstream kernel, can you file bug report > > > > with distro that you use (with a link posed here as well). > > > > > > I am running Slackware64 15.0. The kernels supplied by that distribution > > > are unmodified kernel.org kernels. > > > > > > > For now offending patches are being reverted, so downstream bug will help > > > > with tracking it and reverting it there. > > > > > > The patches will be reverted in Slackware as a matter of course when a > > > kernel.org "-stable" kernel with the fix is adopted. Slackware does not > > > apply any patches to kernel.org kernels. Nevertheless, I will raise a post > > > in the forum, hopefully later today. > > > > This has now been done: > > > > https://www.linuxquestions.org/questions/slackware-14/heads-up-pci-regression-introduced-in-or-around-5-15-129-commit-40613da52b13-4175731828/#post6470559 > > > > > > > The output of lspci is given at the end of this post[1]. The CPU is an > > > > > "Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz" which is not overclocked. Please > > > > > let me know if you'd like more information about the affected machine. I > > > > > can also perform additional tests if required, although for various reasons > > > > > these can only be done on Thursdays at present. > > > > > > > > > > The kernel configuration file can easily be supplied if that would be > > > > > useful. > > > > > > > > full dmesg log and used config might help down the road (preferably with current > > > > upstream kernel), as I will be looking into fixing related issues. > > > > > > > > Perhaps a better way for taking this issue and collecting logs, will be > > > > opening a separate bug at https://bugzilla.kernel.org (pls CC me as well) > > > > > > Sure, will do. I'll be able to get the dmesg log from my earlier tests and > > > config easily enough. Testing with another kernel will have to wait until > > > next Thursday as that is when I'll next have physical access to the machine. > > > > A bug has been opened at bugzilla.kernel.org as requested. The logs, kernel > > configuration and the "lspci -tv" output (requested in a subsequent email) > > have been added. The logs and kernel configuration are from the kernel.org > > 5.15.139 kernel. You have been added to the bug's CC. The bug number is > > 218268: > > > > https://bugzilla.kernel.org/show_bug.cgi?id=218268 > > > > As mentioned, testing another kernel can only happen next Thursday. If > > you would like other tests done let me know and I'll do them at the same > > time. I have remote access to the machine, so it's possible to retrieve > > information from it at any time. > > lets wait till you can get logs with dyndbg='...' (I've asked for earlier) > and one more test with "pci=realloc" on kernel CLI to see if that helps. Okay. > > Let me know if there's anything else I can do to assist. > > It looks like pci_assign_unassigned_bridge_resources() messed up BIOS configured > resources. And then didn't manage to reconfigure bridges correctly, which led to > unassigned BARs => thunderbolt/VGA issues. > > Something in ACPI tables must be triggering acpiphp hotplug path during boot. > Can you dump DSDT + SSDT tables and attach them to BZ. > PS: > to dump tables you can use command from acpica-tools (not sure how it's called in Slackware) > acpidump -b > which will dump all tables in binary format (so attach those or 'iasl -d' de-compiled ones) Slackware doesn't provide acpidump AFAIK but it was easy enough to compile from tools/power/acpi/tools/acpidump within the 5.15.72 tree I'd used previously to build 5.15.72 (the kernel that's currently running). However, running acpidump -b resulted in a segmentation fault. The root cause is line 339 in vsnprintf() in utprint.c. With a workaround in place a functional acpidump was obtained. I can provide further information from my analysis if it's appropriate and you're interested. For completeness I then tried the acpica source from Intel (version 20230628). The acpidump from this worked fine, and the files produced were identical to those from my fixed kernel-tree acpidump. A tarball of these is now attached to the Bugzilla report. Curiously enough, the corresponding vsnprintf() line in the Intel acpica source distribution matches that in the 5.15.72 source. Perhaps the compiler flags in the Intel package happen to prevent the segfault condition occurring at runtime for me. Regards jonathan