From nobody Thu Dec 12 04:02:46 2024 X-Original-To: standards@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 4Y7zMV1gFqz5gxCH for ; Thu, 12 Dec 2024 04:02: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7zMT6cZ2z4fp1 for ; Thu, 12 Dec 2024 04:02:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733976165; 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=E9JRO+Ymka4ElbJzAbTA6S3Y+NOoXtzyvSXsU9eJifk=; b=t3K/4p4VN4yNRUMcqXrXF4rquhMR6G3L1KgEgAZrlgyzUarqYdnlz/BlRLmlvbHRv7g9to +lPmhmytXWEfoxKYM9ebPdyG5H5Rg3w1xOVAMIV7Lj9mRGqMZo5H9hLp8ekd+lTmmpQRta JZdcqPxnvbrPMgC/JyNzKSdL/i6ZuirEOHN+2quqsMxLvBcNkn8oeOG7QE4iRflqxEyIoR BVw+PgXD0jb++GltsVlHREUN75hacgrRCDVUJpptGaJ8CXF7yhUIKQf8fesyzUrtGVTjWZ 6c3Mwx0wgrYgqZFoEZwFg8v4t+QqxN/vmWck9uGcPZvbsHhKwFVG6PEY9+LJvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733976165; a=rsa-sha256; cv=none; b=hYMz11JJVaUFEUyktSY9+2eMbsy8NlQb6Eo/mBCxzb+6dcNPRcEYGjUEFgALg53Yjf8oXj mAf8UW2JnZ553nLg+lYG8XTiMeuI3Jbi/0MgAvcu/UDAaC2FaD7/YlIMELBPAOT0z1gkjg q0MfWcxxjmyLTcLr6Dac8YDr/alecrecnNzpD2vK0exULdAbTRhAyNs6pZQ9mLKRRBSu1C 2eEdbUElUYLM7sPhA+lHBt7+XmKFo9b4seN5W38x5+fAgeU3BqKSnmekVw//90Fy+lk2Q8 c/NO7KMSmMJlL34sb9dmdzKfNXeflnO8JIcLkOWlG2o5ckupEXUa+dfU/0knXw== 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 4Y7zMT5xKpzcsT for ; Thu, 12 Dec 2024 04:02:45 +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 4BC42jv8073116 for ; Thu, 12 Dec 2024 04:02:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BC42jZQ073115 for standards@FreeBSD.org; Thu, 12 Dec 2024 04:02:45 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: standards@FreeBSD.org Subject: [Bug 283276] FreeBSD 13.x and FreeBSD 14.x 32bit fail during install on Intel Sapphire Rapids Date: Thu, 12 Dec 2024 04:02:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: yanhui.he@broadcom.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@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 attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283276 Bug ID: 283276 Summary: FreeBSD 13.x and FreeBSD 14.x 32bit fail during install on Intel Sapphire Rapids Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: yanhui.he@broadcom.com Created attachment 255793 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D255793&action= =3Dedit FreeBSD 14.2 32bit keep booting UI FreeBSD 14.2 32bit keep booting after finish installation and reboot, not o= nly for FreeBSD 14.2 32bit VM on vSphere but on Physical machine with Intel Sapphire Rapids. It's not a specific problem for FreeBSD 14.2 32bit VM but = for a real FreeBSD 14.2 32bit OS on a physical machine. Please refer to the attached screenshot of "FreeBSD 14.2 32bit keep booting UI.png". We also tested FreeBSD 13.4 32bit, FreeBSD 14.0&14.1 32bit, hit the same is= sue. We found it will happen with CPU based on Intel Sapphire Rapids. Intel(R) Xeon(R) Gold 6448Y -----> SPR=20 The below is some debug information from the developer in our side on FreeB= SD 14.2 32bit based on an Intel Sapphire Rapids. ****************** Did a bit more digging with FreeBSD ddb looking at the spot where things bl= ow up. Built the kernel with no optimization, so generated assembly is trivial to follow. Breakpoint at sendsig+0x39a: movl %ecx,%esp db> x/i sendsig+0x38d,8 x/i sendsig+0x38d,8 sendsig+0x38d: addl $-0x1fd,%eax sendsig+0x392: andl $-0x4,%eax sendsig+0x395: subl %eax,%ecx sendsig+0x397: andl $-0x10,%ecx sendsig+0x39a: movl %ecx,%esp <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D th= ere sendsig+0x39c: jmp sendsig+0x4d3 sendsig+0x3a1: movl 0xc(%ebp),%ecx sendsig+0x3a4: movl 0x10(%ecx),%eax db> p $ecx p $ecx cccc620 <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D st= ack to be db> x cpu_max_ext_state_size x cpu_max_ext_state_size cpu_max_ext_state_size: 2b00 db> show thread show thread Thread 100087 at 0x1cc573c0: proc (pid 654): 0x1cd776c8 name: syslogd pcb: 0xcccf440 stack: 0xccce000-0xccd1fff <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D th= e range allowed flags: 0x4 pflags: 0x100 state: RUNNING (CPU 0) priority: 156 container lock: sched lock 0 (0x1efe240) last voluntary switch: 0.010 s ago last involuntary switch: 0.010 s ago db> x/x kstack_pages x/x kstack_pages kstack_pages: 4 <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ho= w much kernel stack space threads get (gdb) list *sendsig+0x39a 0x131d6da is in sendsig (/usr/src/sys/i386/i386/exec_machdep.c:415). 410 regs =3D td->td_frame; 411 oonstack =3D sigonstack(regs->tf_esp); 412=20=20=20=20=20 413 if (cpu_max_ext_state_size > sizeof(union savefpu) && use_xsave) { 414 xfpusave_len =3D cpu_max_ext_state_size - sizeof(un= ion savefpu); 415 xfpusave =3D __builtin_alloca(xfpusave_len); 416 } else { 417 xfpusave_len =3D 0; 418 xfpusave =3D NULL; 419 } ********* Please kindly help to take a look at this problem. If the component is not correct, please also kindly help to change it. Thanks! Yanhui --=20 You are receiving this mail because: You are the assignee for the bug.=