From nobody Fri Sep 29 20:22:05 2023 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 4Ry1wZ2S4sz4vclC; Fri, 29 Sep 2023 20:22:06 +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 4Ry1wZ1WXXz3N7j; Fri, 29 Sep 2023 20:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696018926; 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=IS+uFMDYwmhl4xPtm7D7ly8yu3CmlRm1E8Jc8YUzolE=; b=DH09UC/P9P5qFlQJRZDYl8+Mgf6qK4xmBAG222qIRIAAl+PuOiSY6aB0AiuE22M0yA5fD4 xBxorxsBDirbaKliEkoFxs7+cabAp8hELFMUfZme7EiudzAWJ9UK2kESUQ8x5NEvuGoofJ /7LlI+XnfuHuIMPFXskgT9eRNpUqiJio3EcdUiYK5UkKtnFuFILlAuf2G/jtqgPVZXvkuo YenHEjATJqqcKKLoIw1ES1LsX5lj03OIx1qbBov9tV2RJhXILqCZz/fsEvm58U0bZAj0fv wBD/dJcblUkRO/iwh18oQiDhYzkaLu2OZqk2tw4RKwXs5diVCLKw6lE/oS9hrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696018926; a=rsa-sha256; cv=none; b=DmGY+ked//FK0Mjm9ex4gPjMedKtNvznBM7/SLK8QjMUBw4qW0B0nVo9xWb4EiUQ6vcZxQ sK0njpVnxz9gplEXv0pL2dlFiN6vz4oTRfa1mGdRyMrxOBGg1xGpxci6vFUQeRoFCSzwRj p+yQ4SSNU/bkIShyDWro+OAqIYAzMS2MzQojwyfcyNwAE2n0+otcd2Bs8kBmt/SNQc7yZx 6+y1RtqYs5AWHPdx5ojnPNv/PmHrTa4ZsItU9kIW2n/hCutwjuzqSy6dNDWmofXUxLzhGr 2DRjYeVwZTUR6PHgp6d3S2mjaTa8uRc2bBgs8v+GYKko+Iu/5jg8m2k7LWV7XQ== 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=1696018926; 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=IS+uFMDYwmhl4xPtm7D7ly8yu3CmlRm1E8Jc8YUzolE=; b=YJ/NxzMLJ2guJjj2Q/aOoEY+1x/A/1j/SpZVHQW3a9tEKIru9k7F1AtoRQ/7MyNzsc4KcN GO3LAz7u2bXOz0j6cMaAvdp5yu3V4d8cCgrfLSz1QaynwnnJMmRFvb6FVoObLgf9DBPvDe TCJ9kvV/Rw42NXvdSNg9EJBbe6mlhhhEA3wkMvbiJricQslKSB+wueHtiihljfW6pPoK0v jMHsdNf47dE9xb6/LeI9TzB6tBYk64vKuUmT7h+PBOnZv/rsBQfDHVTbLVoZGclrrJW8sg vGZAIl7Q+gjtNDShn+I1+H6gMINpEkYEHFzCuUksiomunrzaHzYvBdnuVfVTEw== 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 4Ry1wZ06Pgz3Vr; Fri, 29 Sep 2023 20:22:06 +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 38TKM5sO067367; Fri, 29 Sep 2023 20:22:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38TKM5Lu067364; Fri, 29 Sep 2023 20:22:05 GMT (envelope-from git) Date: Fri, 29 Sep 2023 20:22:05 GMT Message-Id: <202309292022.38TKM5Lu067364@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: cefd82e00fec - releng/14.0 - vtgpu: Fix the physical memory size 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/releng/14.0 X-Git-Reftype: branch X-Git-Commit: cefd82e00fec12794c3cff81a17fa7fdf2f3a014 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=cefd82e00fec12794c3cff81a17fa7fdf2f3a014 commit cefd82e00fec12794c3cff81a17fa7fdf2f3a014 Author: Andrew Turner AuthorDate: 2023-09-21 10:50:29 +0000 Commit: Andrew Turner CommitDate: 2023-09-29 20:10:00 +0000 vtgpu: Fix the physical memory size Use the correct endian switching function when switching to a little endian 64-bit address. Even on a little-endian machine this will truncate the address to a 32-bit value. Approved by: re (gjb) Sponsored by: Arm Ltd (cherry picked from commit 4386935191c576fa62a52d52734e264fe8329a67) (cherry picked from commit 5df4deb384d3af12b10bc6de0788578d6a56e207) --- sys/dev/virtio/gpu/virtio_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/virtio/gpu/virtio_gpu.c b/sys/dev/virtio/gpu/virtio_gpu.c index 0472bc98b3ba..6209fe4beae1 100644 --- a/sys/dev/virtio/gpu/virtio_gpu.c +++ b/sys/dev/virtio/gpu/virtio_gpu.c @@ -565,7 +565,7 @@ vtgpu_attach_backing(struct vtgpu_softc *sc) s.req.backing.resource_id = htole32(VTGPU_RESOURCE_ID); s.req.backing.nr_entries = htole32(1); - s.req.mem[0].addr = htole32(sc->vtgpu_fb_info.fb_pbase); + s.req.mem[0].addr = htole64(sc->vtgpu_fb_info.fb_pbase); s.req.mem[0].length = htole32(sc->vtgpu_fb_info.fb_size); error = vtgpu_req_resp(sc, &s.req, sizeof(s.req), &s.resp,