From nobody Tue Jul 19 07:37:23 2022 X-Original-To: dev-commits-src-all@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 4Ln9dv2J2Bz4Wbgn; Tue, 19 Jul 2022 07:37:23 +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 4Ln9dv1Zmmz3pxZ; Tue, 19 Jul 2022 07:37:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658216243; 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=FbJqunIrhXvTvwkssetx4ho1oIRYIZJa0umLT84D+SE=; b=iYfCxf0sqXXnsVWXT+veV731jmCaqpRKeU2v6QSnBUZvBtcAkpVhvHJyAFH18KfQq1KTnT qxAIIE2Ooe7rKSGY+zpNRzn4teKJylr6dZ70RPkfVyqNoxFuHWmQ+xxGVkMp4T2Mp0MvKM t4dXxeleKqpeEblCkSnNZSP1qmZiYWTanZ6byzC10D29/GDC5NdY9sfbT9peHxbpfp/C6Y JaLhFzsNjI6Zqt4eA5r+OcKqGMwF9HMJSgCUVO1YhErs+3oYKDfEVCBauN+84h8wAlBrpr RkXXgklKOHQ37TPcM1/OdR1BERw7hPj5jY2yzIDXb7Eaw4eldDgZIwiw/T2FhA== 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 4Ln9dv0hFTz19Pf; Tue, 19 Jul 2022 07:37:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26J7bNWE021532; Tue, 19 Jul 2022 07:37:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26J7bNwk021531; Tue, 19 Jul 2022 07:37:23 GMT (envelope-from git) Date: Tue, 19 Jul 2022 07:37:23 GMT Message-Id: <202207190737.26J7bNwk021531@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: d920ff6f23f5 - stable/13 - Trap SVE instructions until we have SVE support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d920ff6f23f5821e6bd09940432339d1755d5e7a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658216243; 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=FbJqunIrhXvTvwkssetx4ho1oIRYIZJa0umLT84D+SE=; b=HhAra/JFo7IV/WdaFMa6xP9TZe4LJ4I43zyD9tzUKHgLqUp2OWtpxlbHTgvl6j48kDjhEQ eh2Ln0nW0soKpE4UC3q51y0kJITz9DOPmqg7d6477xAELuaifL8lNrj6yHc+SPoLcQiGDZ CRf9zhe9OhtweWsz2sLJqbgauP566hjJrUvHLnr7tebdi8rsDmvpZhK90GmO32WVw8epLV yKibFMNFJ253M/6JGk2o6CW9xRy74Jud7eA71Fi9ODmVRj9gvJzLoVgmUJ7zKuZEe7oeyy GD3Qg99GrnkVBjA9xuRt6sVV4JAQWtsHCSOA+5bRKHb/3iPGcoYeyYBykl9WLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658216243; a=rsa-sha256; cv=none; b=AEnB2QT+duYMnPc+IFEJOUUSEZ7rXFo6FzmAyaXbnMB6dQExoq23Adi9nlgIkpxxvGICQe 5DO596l+HE4fZt8Oe4/cRY2ruf4nizK91nEHMqf4lJ03w1gS+ClLxuvG+yPoJGD/eTSyfx 2nyAgnVkOwcQcGwaAxcgl8kGvseTR/jzBgQKFUOI1KMBP1PSmzoPl/D62jjSbohCfStqhI awwNJbNZnOp+jo9/ku/VJ8hpChgJYHUBEUEAbRUh++HnfLA477BDT39sX1XueMe8v6sm/w zr3OBqGOWuEGbUg9HNtfGsPrj16K48S5Mt/fEEA37PbUbLoH9pnsb91y/F2vSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=d920ff6f23f5821e6bd09940432339d1755d5e7a commit d920ff6f23f5821e6bd09940432339d1755d5e7a Author: Andrew Turner AuthorDate: 2022-06-24 11:50:28 +0000 Commit: Andrew Turner CommitDate: 2022-07-19 07:03:30 +0000 Trap SVE instructions until we have SVE support When running on hardware that supports SVE send the correct signal when an SVE instruction is run. Sponsored by: The FreeBSD Foundation (cherry picked from commit ffa5bf8b600a77838be8fbf383382a2e7bafedc6) --- sys/arm64/arm64/trap.c | 5 +++++ sys/arm64/include/armreg.h | 1 + 2 files changed, 6 insertions(+) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index e9afbd47c0af..e845f998633a 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -585,6 +585,11 @@ do_el0_sync(struct thread *td, struct trapframe *frame) panic("VFP exception in userland"); #endif break; + case EXCP_SVE: + call_trapsignal(td, SIGILL, ILL_ILLTRP, (void *)frame->tf_elr, + exception); + userret(td, frame); + break; case EXCP_SVC32: case EXCP_SVC64: svc_handler(td, frame); diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h index 1e7fefd70dc6..c164ebe9ece6 100644 --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -301,6 +301,7 @@ #define EXCP_SVC64 0x15 /* SVC trap for AArch64 */ #define EXCP_HVC 0x16 /* HVC trap */ #define EXCP_MSR 0x18 /* MSR/MRS trap */ +#define EXCP_SVE 0x19 /* SVE trap */ #define EXCP_FPAC 0x1c /* Faulting PAC trap */ #define EXCP_INSN_ABORT_L 0x20 /* Instruction abort, from lower EL */ #define EXCP_INSN_ABORT 0x21 /* Instruction abort, from same EL */