From nobody Thu Feb 9 17:42:53 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 4PCPMz52yBz3my9f; Thu, 9 Feb 2023 17:42:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCPMz4VJLz4Z66; Thu, 9 Feb 2023 17:42:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675964575; 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: in-reply-to:in-reply-to:references:references; bh=UQJWzmCuPkVrlygmGqRqXwFTTvjXJZduLFrDzPGzZnA=; b=xMtESsZpw/HwOjw0DiCJoAoC3r4bQ1WWETeZjX9ofASuAuqZjNnWJKRCfgnnMWsFFK1561 7qGoYHqoLQaiYa6lvfm8kTqMoJhJDgpRKHsEegwugQFqoChRRg1K+MYvjhMdrKGtuEbQFO uP8yrKPHjHq7xL07T5piC3nq9ht6H/UnMszVUcrTAoa+ZkQigWmOLQmSm31ikRwiJVP7r1 k34/b9Txxs+wrPuqAo2uv14NQRX29/MLcoRR+WHXEHOnAQw34Ox9IMPw0hF9o9RIWvLuqp /0HdzHWnU+693yJCH9Md64oy3at+ev/eHP2MlCbczSkXZUc2v8Q6koZKjOU/WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675964575; 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: in-reply-to:in-reply-to:references:references; bh=UQJWzmCuPkVrlygmGqRqXwFTTvjXJZduLFrDzPGzZnA=; b=Fs+WK7a7/88I9M48jZbd8wdPoytuoPmgMCnV4VWg2lKypI6UqAGwIt4n9AnTL5MQIaGaN+ JsBg5qhapCyEPH+5fUvc+DbNJ6Deq59lMOQwHgwlIHcVxn/8zaYJwMG278ucSUkPLJHI/w wkNkr78PANS/oBBttt6D3ihnTPEq1RtSDODGhQGz48h2xwGYwRTgiEyCWpEOmNTv0rLFK5 xvv0E+HDLhNVAgRsH1awWuhD7GxBhPREQsZJx8LHp8DOg+t5MnFIBVSoeBCj53F5KMkWKg G8ruqVPzge9ILNWN7Y65qe/yAWLo3X6VOOKXK8V2gsynn8GPrMTgmEPR6FGUpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675964575; a=rsa-sha256; cv=none; b=UC37/hylUQtwXPVajWAX3LUqLdSl4A/ZJN4moP/SKGkXJ310e7j+ESosal/LhbRlz93tsR hm0CEnq+gOZ5SA/JLNpvpM+GvBFql3tpePf9XeXaxh0K1ZPCVppJONR9+bzAuEF3G3m7At 1jUl5x1cr7ckYTdTL42PahhBca5wGJ1mXkvuPPgOPwvFb5RsoNZ2nD1xPtxAgVwKPCBFD7 xbJG+MvMP2CF8pPyyY6yTVpscUsifyXErf5SbajPWQUwDn6YJC4/iGDXegnfLmK/HnbOft cM6IMXnFjhbqoTIRM7DqJ3pSkqI828x8ZCiZt6KUZlvWlZBKKlgfrSxKaBiq0A== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PCPMz0HlfzSN5; Thu, 9 Feb 2023 17:42:54 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <195e5cd0-e2cf-14d4-07d4-f368ab1a5f59@FreeBSD.org> Date: Thu, 9 Feb 2023 09:42:53 -0800 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: git: f9bdaab95ec4 - main - ofwbus: remove handling of resources from ofwbus Content-Language: en-US To: Mitchell Horne , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202302082052.318KqNUL052449@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202302082052.318KqNUL052449@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N On 2/8/23 12:52 PM, Mitchell Horne wrote: > The branch main has been updated by mhorne: > > URL: https://cgit.FreeBSD.org/src/commit/?id=f9bdaab95ec469738fbfc1f0edd3e8c744b7f71f > > commit f9bdaab95ec469738fbfc1f0edd3e8c744b7f71f > Author: Elliott Mitchell > AuthorDate: 2023-02-08 20:17:03 +0000 > Commit: Mitchell Horne > CommitDate: 2023-02-08 20:50:46 +0000 > > ofwbus: remove handling of resources from ofwbus > > The architecture nexus should handle allocation and release of memory and > interrupts. This is to ensure that system-wide resources such as these > are available to all devices, not just children of ofwbus0. > > On powerpc this moves the ownership of these resources up one level, > from ofwbus0 to nexus0. Other architectures already have the required > logic in their nexus implementation, so this eliminates the duplication > of resources. An implementation of nexus_adjust_resource() is added for > arm, arm64, and riscv. > > As noted by ian@ in the review, resource handling was the main bit of > logic distinguishing ofwbus from simplebus. With some attention to > detail, it should be possible to merge the two in the future. > > Co-authored by: mhorne > MFC after: 1 month > Differential Revision: https://reviews.freebsd.org/D30554 Thanks! I actually had an earlier version of this but hadn't managed to get it tested on powerpc. I had it as part of a branch to cleanup bus_activate_resource methods across various architectures whcih I will now rebase and try to finish up. If you are curious: https://github.com/freebsd/freebsd-src/compare/main...bsdjhb:freebsd:bus_map_resource_more -- John Baldwin