From nobody Thu Jan 30 10:12:46 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YkFFp5fXFz5lpqX for ; Thu, 30 Jan 2025 10:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YkFFp3gSRz3WfS for ; Thu, 30 Jan 2025 10:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738231966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KZ2AzdBPD+kbRjZrrW48B16sfjg/ysjUI2qejIIi1IM=; b=S3vXDbxTBoJF2iuyoGRO0pYuOUqVKM1JaAIDeMjBcoz3bMqZe2FfA9Xp5754qAXCITT2Lr PaXhpA4orrhf4Y79KhkB56IoECBCrjYA2Nw/sHUnSN4kQgkF8f4c1RibDDw8qn/UjmX3R0 HCdQuZnK/04jQDjSahrLz4AYLNJbpkW7H+DiNJI8Sq+jgufQ5fvmbdWxVyHmIf1zjpQWhb 6XMZmW9JPy8edW/t68xgItRwQacxMxjSgoo8tPzZ4HNd2GN3EpfC17U/kIax2kmlshOKGI B/AEuqhqbPUPguvaxwEcwiVLMV/1aW30dsX/QkZvoH4zdJMbZxkw8bD8AY2cKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738231966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KZ2AzdBPD+kbRjZrrW48B16sfjg/ysjUI2qejIIi1IM=; b=s04c4Kk26km+mt/nOLxDBXwSJrVY6SbQ2+xC6q8ltWG/0nFxMfZwT9/N+6ApB7gwkXOZXk r7/Z8euOCDCtnB5CHFUy3H1T7DgjvM9wYfcnR3I3MnipAvg7D4LRGPdkiZ29BVqbvS/sqc nEU0zBn41YlfYCAjwepBmhCoi/NrZkHRFjo+0KyDtqn3u8tZMgXpXnXoUwN2CDy7yEcPid Zb+FGXeC/yoUDzTq+H5m1cR0O51XgVDSC4wPSQyHGdVBMkJiS2z0OFkv6vAUe9rC/borm0 z2Zn/2gSYFlo0ZVuyBTIKT2JAADzSj410/9MbyVOENgS6Ty+vE5/cKCAuqKB7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738231966; a=rsa-sha256; cv=none; b=MBVILhJopXPW5D1wHJUPPXl2rm0ojbGcN2lyo2ykL0FZ0WuJw9ko9G+SEVf1NsLLNhQgfs 5vHg1vHjwDDe9Nsc5QYkS/2vhric2y/s0A61VuxHSzAAJlwyzV9xMgWg7g/RWETWtNSGP0 JlPCW+7SaPUwuEbeWMsG9axN0QAA6k2GGfLPk44YnJoaILSl/Q296QJfeRDIEKGTbQ4srT cRu4ydi1ATYZOEHwfQReBfCSc4TyHxgkFKlPWivH9dqvIytSqAvrPmbpV955FLYqZ+qaYD uFd05M2CFlyd6qaq+hiQVXphaEye/B1Omc9yEsOKfFM2TnNd1AzRW08E2Wkzrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YkFFp3HPXzkTC for ; Thu, 30 Jan 2025 10:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50UACkDI009268 for ; Thu, 30 Jan 2025 10:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50UACkCk009267 for bugs@FreeBSD.org; Thu, 30 Jan 2025 10:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284460] smbios driver does not discover the 64-bit table on BIOS boot Date: Thu, 30 Jan 2025 10:12:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: andreas.rogge@bareos.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284460 Bug ID: 284460 Summary: smbios driver does not discover the 64-bit table on BIOS boot Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: andreas.rogge@bareos.com I noticed that when running FreeBSD on the Hetzner Cloud since January 16th SMBIOS information is not available via kenv. As the cloud-init provider for Hetzner relies on smbios.system.maker and smbios.system.serial being available, this also breaks cloud-init. Investigating further, I noticed they provide a 64-bit SMBIOS table without providing a 32-bit compatibility table. While the standard strongly suggest= s to provide a 32-bit table, it is not required. The smbios driver can already handle the 64-bit table when being booted via UEFI, but these cloud machines are BIOS booted and the driver currently sim= ply does not look for the 64-bit table. It does a bios_sigsearch() for "_SM_" (the 32-bit table), but does not try "_SM3_" (the 64-bit table) if that fails. Basically, adding the following after sys/dev/smbios/smbios.c:107 should fix the problem: --- CUT HERE --- if (addr =3D=3D 0) { map_size =3D sizeof (*eps3); addr =3D bios_sigsearch(SMBIOS_START, SMBIOS3_SIG, SMBIOS3_LEN, SMBIOS_STEP, SMBIOS_OFF); } --- CUT HERE --- However, I haven't tested this yet. --=20 You are receiving this mail because: You are the assignee for the bug.=