Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2024 17:26:18 +0000
From:      Kristof Provost <kp@FreeBSD.org>
To:        Renato Botelho <garga@FreeBSD.org>
Cc:        Andrew Turner <andrew@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: ba1904937d9a - main - acpica: Extract _OSC parsing to a common file
Message-ID:  <AC5C158F-085B-468F-A3C8-1B56524438C9@FreeBSD.org>
In-Reply-To: <149116bc-677c-47b2-9ff7-f454418fec21@FreeBSD.org>
References:  <202412121819.4BCIJ1KW097190__8805.67587898753$1734027579$gmane$org@gitrepo.freebsd.org> <149116bc-677c-47b2-9ff7-f454418fec21@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 26 Dec 2024, at 21:44, Renato Botelho wrote:
> On 12/12/24 15:19, Andrew Turner wrote:
>> The branch main has been updated by andrew:
>>
>> URL: 
>> https://cgit.FreeBSD.org/src/commit/?id=ba1904937d9ae0539e39001467a1519b17177118
>>
>> commit ba1904937d9ae0539e39001467a1519b17177118
>> Author:     Andrew Turner <andrew@FreeBSD.org>
>> AuthorDate: 2024-12-12 16:29:45 +0000
>> Commit:     Andrew Turner <andrew@FreeBSD.org>
>> CommitDate: 2024-12-12 18:00:22 +0000
>>
>>      acpica: Extract _OSC parsing to a common file
>>          This will be used by pci_host_generic_acpi.c so needs to be 
>> in a
>>      common location.
>>          Reviewed by:    imp, jhb
>>      Sponsored by:   Arm Ltd
>>      Differential Revision:  https://reviews.freebsd.org/D48044
>
> My dev system was running CURRENT from Oct 31 and broke after I 
> upgrade to most recent version on Dec 20.  After bisecting I found 
> this commit as the one that introduced the problem.
>
> It starts booting but can't found any disk.  Pressing ? at mount 
> prompt shows nothing.  This system is a VM running on KVM and I've 
> attached dmesg from successfully boot
>
> FreeBSD idaho.arrakis.com.br 15.0-CURRENT FreeBSD 15.0-CURRENT #22 
> n274182-938e4b131c4: Thu Dec 26 18:10:12 -03 2024 
> root@idaho.arrakis.com.br:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG 
> amd64
>

I’m seeing similar boot issues on VMWare aarch64 (i.e. freebsd in 
VMware on a Mac). My bisect pointed to:

	commit 1f5c50a8617355758510675cb9412f56fed12efc
	Author: Andrew Turner <andrew@FreeBSD.org>
	Date:   Thu Dec 12 16:30:39 2024 +0000

	    pci_host_generic:Add pcib_request_feature on ACPI

	    In the ACPI attachment add support for the pcib_request_feature 
method.
	    This uses the common _OSC handling.

	    Reviewed by:    imp, jhb
	    Sponsored by:   Arm Ltd
	    Differential Revision:  https://reviews.freebsd.org/D48048

I’ve not yet been able to capture a dmesg, but it looks like the nvme 
storage device just isn’t found, leading to the zpool failing to 
mount.

I’m currently working around that with this patch:

	diff --git a/sys/dev/pci/pci_host_generic_acpi.c 
b/sys/dev/pci/pci_host_generic_acpi.c
	index 1ff3a6bda707..c990edf26a3c 100644
	--- a/sys/dev/pci/pci_host_generic_acpi.c
	+++ b/sys/dev/pci/pci_host_generic_acpi.c
	@@ -543,7 +543,7 @@ static device_method_t generic_pcie_acpi_methods[] 
= {
	        DEVMETHOD(pcib_release_msix,    
generic_pcie_acpi_release_msix),
	        DEVMETHOD(pcib_map_msi,         generic_pcie_acpi_map_msi),
	        DEVMETHOD(pcib_get_id,          generic_pcie_acpi_get_id),
	-       DEVMETHOD(pcib_request_feature, 
generic_pcie_acpi_request_feature),
	+       //DEVMETHOD(pcib_request_feature,       
generic_pcie_acpi_request_feature),

	        DEVMETHOD_END
	 };

Best regards,
Kristof
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 26 Dec 2024, at 21:44, Renato Botelho wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #136BCE; color: #136BCE;">
<p dir="auto">On 12/12/24 15:19, Andrew Turner wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #136BCE; border-left-color: #4B89CF; color: #4B89CF;">
<p dir="auto">The branch main has been updated by andrew:</p>
<p dir="auto">URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=ba1904937d9ae0539e39001467a1519b17177118">https://cgit.FreeBSD.org/src/commit/?id=ba1904937d9ae0539e39001467a1519b17177118</a></p>;
<p dir="auto">commit ba1904937d9ae0539e39001467a1519b17177118<br>
Author:     Andrew Turner <a href="mailto:andrew@FreeBSD.org">andrew@FreeBSD.org</a><br>
AuthorDate: 2024-12-12 16:29:45 +0000<br>
Commit:     Andrew Turner <a href="mailto:andrew@FreeBSD.org">andrew@FreeBSD.org</a><br>
CommitDate: 2024-12-12 18:00:22 +0000</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; border: thin solid gray; overflow-x: auto; max-width: 90vw; background-color: #E4E4E4;"><code style="padding: 0 0.25em; background-color: #E4E4E4;"> acpica: Extract _OSC parsing to a common file
     This will be used by pci_host_generic_acpi.c so needs to be in a
 common location.
     Reviewed by:    imp, jhb
 Sponsored by:   Arm Ltd
 Differential Revision:  https://reviews.freebsd.org/D48044
</code></pre>
</blockquote>
<p dir="auto">My dev system was running CURRENT from Oct 31 and broke after I upgrade to most recent version on Dec 20.  After bisecting I found this commit as the one that introduced the problem.</p>
<p dir="auto">It starts booting but can't found any disk.  Pressing ? at mount prompt shows nothing.  This system is a VM running on KVM and I've attached dmesg from successfully boot</p>
<p dir="auto">FreeBSD idaho.arrakis.com.br 15.0-CURRENT FreeBSD 15.0-CURRENT #22 n274182-938e4b131c4: Thu Dec 26 18:10:12 -03 2024 <a href="mailto:root@idaho.arrakis.com.br">root@idaho.arrakis.com.br</a>:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64</p>
</blockquote>
<p dir="auto">I’m seeing similar boot issues on VMWare aarch64 (i.e. freebsd in VMware on a Mac). My bisect pointed to:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; border: thin solid gray; overflow-x: auto; max-width: 90vw; background-color: #E4E4E4;"><code style="padding: 0 0.25em; background-color: #E4E4E4;">commit 1f5c50a8617355758510675cb9412f56fed12efc
Author: Andrew Turner &lt;andrew@FreeBSD.org&gt;
Date:   Thu Dec 12 16:30:39 2024 +0000

    pci_host_generic:Add pcib_request_feature on ACPI

    In the ACPI attachment add support for the pcib_request_feature method.
    This uses the common _OSC handling.

    Reviewed by:    imp, jhb
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D48048
</code></pre>
<p dir="auto">I’ve not yet been able to capture a dmesg, but it looks like the nvme storage device just isn’t found, leading to the zpool failing to mount.</p>
<p dir="auto">I’m currently working around that with this patch:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; border: thin solid gray; overflow-x: auto; max-width: 90vw; background-color: #E4E4E4;"><code style="padding: 0 0.25em; background-color: #E4E4E4;">diff --git a/sys/dev/pci/pci_host_generic_acpi.c b/sys/dev/pci/pci_host_generic_acpi.c
index 1ff3a6bda707..c990edf26a3c 100644
--- a/sys/dev/pci/pci_host_generic_acpi.c
+++ b/sys/dev/pci/pci_host_generic_acpi.c
@@ -543,7 +543,7 @@ static device_method_t generic_pcie_acpi_methods[] = {
        DEVMETHOD(pcib_release_msix,    generic_pcie_acpi_release_msix),
        DEVMETHOD(pcib_map_msi,         generic_pcie_acpi_map_msi),
        DEVMETHOD(pcib_get_id,          generic_pcie_acpi_get_id),
-       DEVMETHOD(pcib_request_feature, generic_pcie_acpi_request_feature),
+       //DEVMETHOD(pcib_request_feature,       generic_pcie_acpi_request_feature),

        DEVMETHOD_END
 };
</code></pre>
<p dir="auto">Best regards,<br>
Kristof</p>

</div>
</div>
</body>

</html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC5C158F-085B-468F-A3C8-1B56524438C9>