From nobody Sat Nov 11 18:00:15 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 4SSNl329stz50bKn; Sat, 11 Nov 2023 18:00:15 +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 4SSNl31kkHz4Z60; Sat, 11 Nov 2023 18:00:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699725615; 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=IdyjaVcVmstrcN0oBg5G+lCqB+1af8qpY+CxEs174Ac=; b=Cv9m8OspJXQm5ikXSvKqy1+QWHRme8W/GUku8P+QgD0/4NvDyOj13eaP4PU4jZfFl/5l6g dhqpUgZyh1ZUnCDlTip82y8gf0oQmAQM7V1pztIFjgeEyjzdbHFs8Z0Da/9X50U4oli665 qNGcNpwrNtg4wBXQAiC0jqM8d6f4GcBY+PmTc2NAGJdjSj1VkvZwwX9duAci08Eei/vieD agf6llvoH3J9pSOE1zuJQIldtEC3c+FoDODr+5qdUmRTqS1rlFIZs4BBkcFN2m6UBXMXnB 0s9m354EgWpxfQmjoilOhXDvPIVVAFaejp6townRQVsJljK1vOEwXRzHhXjaTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699725615; 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=IdyjaVcVmstrcN0oBg5G+lCqB+1af8qpY+CxEs174Ac=; b=rfYpx3pRw0mFZHnxrOv6fGB5FnqXVlC3Us/6zq2M8fZlDz01O4WOPSHP/D2bvxEadrLrJ5 KLrQK1LtJn1aCDfZU3gQAOQBRgki+UY0HYBTVsWZpVFKISqEyJKQGN9NlADzTKl+HVU/lY olCZSf5wun613NmhzjeYU+GAGsU9TMoTLxPh2GtI0aVyXAVTd2dZQzJGx8oucE85o16lME joXo7pNQSOe3WLUVNZ0pUnZMy/nvVkplmJqFzWUwtoppV0UkUybeGcDoG212euL7rp3XI8 /jPWjQQOfdnGTxNSDz0KT/XSYdgGIl992OfpOawWJB5GuNRKsqogVIsVhwpbUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699725615; a=rsa-sha256; cv=none; b=texb98yGYAqPOiBv5Kq+Fa/kvw4vrLfyGhfQJWaGIPOlB9eEkml3GGRdQvBuvy/+8EVGZq rtZD492ijzy7ItpHx+ns/Z0B5xXCqIiGkeR9kJITAutpb32wsN0xl/M+ZQos8mGbCySz/G EMLBXCS1NlFMLfUPnSWdPiUa70ZA2bgyA1Ti7ygrljW971mquxCDhLjSboQHhehvl4b+zS 09hCovTt0MQ3auGTmXXuVgfg1EWdFHMnhVeUJNUzHWdmThLgkpPHyKm/854s2Ll2uZdO6T 0pbRliAGm5qjiAWsYNXNhOrlXjpT9Kzj3guKkFjWJRvNvIpfyv+4VQu/D5TwuA== 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 4SSNl30nGYzpqr; Sat, 11 Nov 2023 18:00:15 +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 3ABI0FPR013746; Sat, 11 Nov 2023 18:00:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ABI0FVu013737; Sat, 11 Nov 2023 18:00:15 GMT (envelope-from git) Date: Sat, 11 Nov 2023 18:00:15 GMT Message-Id: <202311111800.3ABI0FVu013737@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Gallatin Subject: git: b2921fdc2330 - main - arm64: Implement bus_get_resource and bus_delete_resource. 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: gallatin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2921fdc2330a5750f557fa321b94f972d5a7702 Auto-Submitted: auto-generated The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=b2921fdc2330a5750f557fa321b94f972d5a7702 commit b2921fdc2330a5750f557fa321b94f972d5a7702 Author: Andrew Gallatin AuthorDate: 2023-11-11 17:54:19 +0000 Commit: Andrew Gallatin CommitDate: 2023-11-11 17:57:39 +0000 arm64: Implement bus_get_resource and bus_delete_resource. These devmethods were not defined, leading to the surprising result of using bus_set_resource(), and then immediately turning around and getting zeros back from bus_get_resource(). These are now simply passed through to the generic definitions, since there is no need for them to be arm64 specific. Note that jhb plans to replace most of the devmethods with the generic versions. Suggested by: jhb Sponsored by: Netflix --- sys/arm64/arm64/nexus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm64/arm64/nexus.c b/sys/arm64/arm64/nexus.c index b9871f0e9b3a..6ba73cd456ef 100644 --- a/sys/arm64/arm64/nexus.c +++ b/sys/arm64/arm64/nexus.c @@ -136,6 +136,8 @@ static device_method_t nexus_methods[] = { DEVMETHOD(bus_adjust_resource, nexus_adjust_resource), DEVMETHOD(bus_alloc_resource, nexus_alloc_resource), DEVMETHOD(bus_deactivate_resource, nexus_deactivate_resource), + DEVMETHOD(bus_delete_resource, bus_generic_rl_delete_resource), + DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), DEVMETHOD(bus_get_resource_list, nexus_get_reslist), DEVMETHOD(bus_map_resource, nexus_map_resource), DEVMETHOD(bus_release_resource, nexus_release_resource),