From nobody Mon Dec 18 02:11:45 2023 X-Original-To: dev-commits-src-branches@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 4StjxZ2cXrz54dSm; Mon, 18 Dec 2023 02:11:46 +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 4StjxY6BKcz3L3K; Mon, 18 Dec 2023 02:11:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702865505; 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=xnPeFzOdoO+uBbVWSA00J1f5LTi4RNnqlyif+I2wPUM=; b=ImgR5xvSDkG4K/xQufq1ivWAmUetU73oiwMucfwlmSfoDgwIXxYPjKlcirsPvxELDOG3ux AES4Jw0/7yXnG5sUA46kvfhycA1p0Z9guQK9QZ8GBfhSoy7r8SFLKnxHAinMI81EvO7/bO tAT3+97SlGDTDogWnRayzPdvHpfF90kwi/uwfcGQRtDfVnzi+oexf166uHPwf6DN8jvegn UUznTG5UCb09+Dm9WQFMUkxztJa/l8u8f7FC7R/kJvYemaDGW/4ObG39oj2gDjqutoIo5E hp1shI1VWgPmU2D8FmWMdW2uA9Ic+dxhqLUOI4jEuAG76g1p+4lWjbAd+sLe/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702865506; a=rsa-sha256; cv=none; b=xhfaddVnMljqqWSi9AJUq9/Omi3sX41SzjOZIHrZ493hCQHjM0rP7xWRsCMBe9AiC7uI7G AevP0+Ccb9ETMvjoNqn9I+j6p94MMZK4EZP4zyux+r7VD9r/bAo6KXlhz6UxqJrusaJkZd bqo23RcOQWfEsKi7e+QecpD4Ptu9Py5RxS1I6pdElYdDrCfW6IOiO7UylUdsiSEOzt5rqB zErWAPA/6D0gUrLId+q3v/4Vgq3VAUfS6N8HquvEDifTJ6kGg8BD6TpUDRrTJWanfMLNm3 Ad6vGGu6e4YFY9iyZl9XK3PDGWu3HLQh06i16IFxUQzV7lxBxFDpEMlxnxzd3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702865506; 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=xnPeFzOdoO+uBbVWSA00J1f5LTi4RNnqlyif+I2wPUM=; b=m+7RXWe30Y+2KDTaVqHKDPWrorm/87gKbZXNrqUU3uPKLaNUer+ksOy/5XrTwFq1AkSRgS AcdbFpFB4v3kRaRP79ahkqDImNJTP8khw2jt2j5g+J+V/M1JUXWm70SxO5zbTjWtLqrArm +Y4AHfzyJe57SVOUB3sab7Z94KirD8hBXOp6/TfbIbXJUc55qy6DhSJRbdeW52PKzkXBZU rV7+57iI0E12a25DHQriAejb2u5GECCr6NFTfAvnM5Z0wV8BBydPxTXeKuJPC4sid0qz9K I6sUZb3qSWQCNfSIeNKoGZzeHDzQRmKQlHUO2gAuLKvjFDWyc2MaqGgWDAXLlA== 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 4StjxY4YSwz12vq; Mon, 18 Dec 2023 02:11:45 +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 3BI2Bj0r074732; Mon, 18 Dec 2023 02:11:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BI2BjLo074730; Mon, 18 Dec 2023 02:11:45 GMT (envelope-from git) Date: Mon, 18 Dec 2023 02:11:45 GMT Message-Id: <202312180211.3BI2BjLo074730@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: f5ae760cfe26 - stable/14 - arm: Disable the VFP during boot List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f5ae760cfe2658d79f12c1b7ac9dc577379e5d1c Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f5ae760cfe2658d79f12c1b7ac9dc577379e5d1c commit f5ae760cfe2658d79f12c1b7ac9dc577379e5d1c Author: Mark Johnston AuthorDate: 2023-12-11 14:08:49 +0000 Commit: Mark Johnston CommitDate: 2023-12-18 02:07:49 +0000 arm: Disable the VFP during boot The VFP code expects the kernel to boot with VFP disabled, but some boards will boot with it enabled. Make sure that vfp_init() disables the VFP on each CPU during boot. PR: 273752 Reviewed by: andrew Diagnosed by: Thomas Skibo MFC after: 1 week (cherry picked from commit ce2f34ade8b787b068085fa8a8ddd295b06c2737) --- sys/arm/arm/vfp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm/arm/vfp.c b/sys/arm/arm/vfp.c index bbcb468391b6..6c398a7a3eaa 100644 --- a/sys/arm/arm/vfp.c +++ b/sys/arm/arm/vfp.c @@ -181,6 +181,8 @@ vfp_init(void) elf_hwcap |= HWCAP_VFPv4; } + vfp_disable(); + /* initialize the coprocess 10 and 11 calls * These are called to restore the registers and enable * the VFP hardware.