From nobody Mon Sep 25 12:01:41 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 4RvM115lwtz4vRgp; Mon, 25 Sep 2023 12:01:41 +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 4RvM1137mSz3dQB; Mon, 25 Sep 2023 12:01:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695643301; 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=+JNVQkLzvXtE6+UsGDawbAsYZKNxibpwyoZfej4GWLs=; b=a0uaImjyQbHzD7M1E/I+YBd2c9H1Mh1EVDksWgJVFD0SdI+jRbqmBuDJzpKT9t4QkkS9xk nZHkHOpqyrxSi9a5xkZZLFYnkv1vNoA2ASYfbq5XDkJLtbfBmz72caszNrJ+4+xAaQMxQD R1GowcIddFcD16IRUWcyvs0gGWyl5Zyb3vHrAleDzG8UyoSqlq8QonJKGvo60SHeg4FyM5 KYxxxaHqUw03WgorLRHCsRySMb2ZKm9aFZPcyp6u5mLQEZqQl+TDXFz6RTSbheT20Z/MFh BwonQjA88J8B5+Yw97/vMu6nqHwcmztS4GKGhL1QHoKpGmEe6Z2n5APoJGMiMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695643301; a=rsa-sha256; cv=none; b=ptpfYD0+fqq59DdF3fqUSyhPfBGwVunp/Np4hiTjPSn8zQfvqLNlm9cktE7b0hz0S6Anqd y29ExHgm9YU6Vmf+OSP19XrncXKcKFSbuAdG4VACkYCiNaiG3Hnly29pXTbDhgVRntqmkj /+76vY0bZHo/99L4C62P+7AEmUvsHKCnM6TU7QwscB3VDmcYGHtLX3Td686qaTvE5EX1Z2 oN02NPcoaEL2c9R9GV4EaCbR+iWiVR94IwZS9opXZmKW6erbDKMrK5ljgmROCkNPBX2fff 8dZJWtTlbs+55YvLOStAp+ye7bf+AOu+ZH5ljOZhvH7IIwlSVXMziAaDG/fzPQ== 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=1695643301; 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=+JNVQkLzvXtE6+UsGDawbAsYZKNxibpwyoZfej4GWLs=; b=vwjLemzgPJl8tKv2dArzw5kXmIdtZ0fakcAz7hIcNIcd0mbGBWuSDXutDaMSw3YUmIIvxg YPuMFKj7ssZXybcqzMO4Es//a4U8FHRj69nq8SMuBo72rsLt849OR0xNdcLgpTySulI95Q r4qwF5x1/iuS7CYnPqVWro9iBYZ+M18myklse4O/IgUrXdt3WgyggvGxyPhtLwZL+ur/ix Da8HS1GEph/1UXFV6ve34/sykw4Kx2d1cLNF2/eVdntXXBpk1npyP0NvYaS9Dc32+83caF fBeRxNIMNZKXoV8+FeIDVurKMUc54k0sC+C/S5NmWSgrfz6vTwqq/sJaWdpgNQ== 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 4RvM112DV2z1Rc8; Mon, 25 Sep 2023 12:01:41 +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 38PC1fDL058823; Mon, 25 Sep 2023 12:01:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38PC1f98058820; Mon, 25 Sep 2023 12:01:41 GMT (envelope-from git) Date: Mon, 25 Sep 2023 12:01:41 GMT Message-Id: <202309251201.38PC1f98058820@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: 5df4deb384d3 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 5df4deb384d3af12b10bc6de0788578d6a56e207 Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=5df4deb384d3af12b10bc6de0788578d6a56e207 commit 5df4deb384d3af12b10bc6de0788578d6a56e207 Author: Andrew Turner AuthorDate: 2023-09-21 10:50:29 +0000 Commit: Andrew Turner CommitDate: 2023-09-25 12:01:28 +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. Sponsored by: Arm Ltd (cherry picked from commit 4386935191c576fa62a52d52734e264fe8329a67) --- 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,