From nobody Sun Jul 23 22:38:11 2023 X-Original-To: dev-commits-src-main@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 4R8J900cdSz4pS5m; Sun, 23 Jul 2023 22:38:12 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8J900B2Gz4KgR; Sun, 23 Jul 2023 22:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690151892; 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=qjg7CCtvcWUnvdoJpJHm/zod/se2PB8A4ewi13rsqGg=; b=MRoECpjA2as7CSDzDbfnlS+FQh19zxmqnA1HDVWJoPynILwFjNWP3ayBX/Fhu9udPEdiVD rNYdDTWG1tPvSFw9c+GXhVnGeTQHESDjp61OKVxFJDdDdz03bXEM7IVDpyGHk9ro70n4GP 5Sthp2x3z+JxWmx+xDZXvRr+zoWQS5C1++f6oUJWsE47++j7glZSNUuIfdXfG2OR8Q8vs2 EgmuFKzYFkzFm95CuGqwjs3Re1EfwwQXEchupQJtfFb7o9Fph4m5ox+/Bk4nOrt02ZSRZQ Oktvz395DGVlquQ2UEc5Qh6dd9sNJ9qr+yGZ1a2SBjD5KahlYEwqHFAhtfKn4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690151892; 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=qjg7CCtvcWUnvdoJpJHm/zod/se2PB8A4ewi13rsqGg=; b=kgeULsfdRG4WBQawCaazWr7aSjOhS3Lppq2zdWBfriVzyvO1olkaUl3aSNFz1Pn+Z/A/2r n6F4MQMclUhFN8pBVoADGXFkiki+ch8Mlas3I6As4a2yz80pS91Oxk4HzxXTftgt6CIcW9 ZbWhp06NB65z8T6DFbJOObREZkK/QnD0TBxVBKghCE01ZLDRlpz0uUoD0eVT3oW8e7ksWv KU6Z4MCfjQ1wAUPaQlaf48zKxQPebpXY5elwSNYf0ALZ+R6B1dAMEnJyHNT/PZ+wjFklOa 56cqUyxOdlY6TLo6prwnDPtC8npBxcnQ0Nw6AB9U9StUyhngbNm7i0A4qWduXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690151892; a=rsa-sha256; cv=none; b=pdOlZ/P45PeVaVdz1sOcnk3Jz95EpLxZGMStV2JGE90M/B3OFDX32+htLuxsNOMf+zjvPX yY7XZQV1R2BkPiMsakJms2rMXAu5qGDlduoMf24Z88XWRAmOX2u6c9o4chjegFO16MVyPF Rw3gj+v5uCtzUQwsHsb0I9FbXKa5tbGDekOV7kCV3QKqpqb0fxKXcu77eAqXVlIBb/JrVH C2aHbyhx/6k3Xeibl72axGVyu8J2wRDeHhfqwOLbl8Hwg9BO4d5sORtEJ/TeEIVAeTCAI2 oLnseGvZALm1S0rR9y5KGa/2rmMnKhoiEe7TQL9qtQCc4YICmHFe9VyB5kFgmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4R8J8z6DPQztbc; Sun, 23 Jul 2023 22:38:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36NMcBJO074109; Sun, 23 Jul 2023 22:38:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36NMcBxN074108; Sun, 23 Jul 2023 22:38:11 GMT (envelope-from git) Date: Sun, 23 Jul 2023 22:38:11 GMT Message-Id: <202307232238.36NMcBxN074108@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 80e4ac2964a1 - main - Work around VNET and DPCPU related panics on aarch64 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 80e4ac2964a11edef456a15b77e43aadeaf273a2 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=80e4ac2964a11edef456a15b77e43aadeaf273a2 commit 80e4ac2964a11edef456a15b77e43aadeaf273a2 Author: Dimitry Andric AuthorDate: 2023-07-23 13:48:36 +0000 Commit: Dimitry Andric CommitDate: 2023-07-23 22:35:04 +0000 Work around VNET and DPCPU related panics on aarch64 lld >= 14 and recent GNU ld can relax adrp+add and adrp+ldr instructions, which breaks VNET and DPCPU when used in modules. Until VNET and DPCPU can be fixed to deal with these relaxed instructions, disable linker relaxation for now. PR: 264094 Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41156 --- sys/conf/kmod.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index a83d64eb8bf7..be571c2bcf10 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -170,6 +170,13 @@ CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer CFLAGS+= -fPIC .endif +.if ${MACHINE_CPUARCH} == "aarch64" +# https://bugs.freebsd.org/264094 +# lld >= 14 and recent GNU ld can relax adrp+add and adrp+ldr instructions, +# which breaks VNET. +LDFLAGS+= --no-relax +.endif + # Temporary workaround for PR 196407, which contains the fascinating details. # Don't allow clang to use fpu instructions or registers in kernel modules. .if ${MACHINE_CPUARCH} == arm