From nobody Fri Oct 21 08:41:45 2022 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 4Mtycp0Zs6z4fb7c; Fri, 21 Oct 2022 08:41: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 4Mtycn4xVZz3Cxy; Fri, 21 Oct 2022 08:41:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666341705; 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=BWkQJz7jTV+Gkz82TqZAwPTS8Fitnii8115V5i40yIg=; b=OkYg0qRRNJSvTZ/jtA5HXG1tQFo/iPWHepAR8duuRigmAoFS5+kuEnGkIixkubdMMBPeW1 CqqDfdGot3xqo/rPRgLUgAjSq2zPsBi18TgmxS+u8edfONjZs/RSYE+Ty6k+tj/B8YdG+e ThicfcHdAqlISEhEXm+f/TTyA2KUyKDrxZRvOQBvqasnCk7No/Dc73dgQhzxuL0qJddhv3 fPKFZne2jGY8XZ2VTP7OGXcLq1QrtIJY91AQwgF5/q9DYquBASSb8LUebkjwK37Whg1U2g TIHoKJU0N0Ak9YyDeJTf4L7BXjvccBBxO5DCeGW2DlI6CsSqD5VBjPHnQy9c5A== 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 4Mtycn41Xjz18nl; Fri, 21 Oct 2022 08:41:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29L8fjJl006198; Fri, 21 Oct 2022 08:41:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29L8fjZ0006197; Fri, 21 Oct 2022 08:41:45 GMT (envelope-from git) Date: Fri, 21 Oct 2022 08:41:45 GMT Message-Id: <202210210841.29L8fjZ0006197@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wei Hu Subject: git: 0c38e1c3383a - main - arm64: Hyper-V: vmbus: use the IRQ resource from vmbus_res 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: whu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0c38e1c3383ab540ed01284be46769263c560d96 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666341705; 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=BWkQJz7jTV+Gkz82TqZAwPTS8Fitnii8115V5i40yIg=; b=kuPavpBVNr9Dd3P5ak2rFiUN4OcWlTtROGTZojkHGWaFa/zOefVj+9c28KHCvc28PJbV+q 0OgizjCEv8Qq09kIlcK+PxM9C1oOZvjQv1bQdOkrjc/Tosb/x3zmQ3MjU8nVRKiVlG3qd2 1Poc6HLWqovuCWbia2Qj0qfFcHwvot6ikwp3yrrYjnJp6gR1eWRhhecXWrQL7RNoO+M2v+ JqnzpCp82Li6p6wcMpJ4P1h3ixzpN6DKwGfQPlNLHcwZIwe2x5CoWkHcNKRyfy1A9jaMu8 MhE/mIjwFA3PnHozmPfwCycxSsU4bKy88KosfLB8Us7s6/sx2nE+efQPHfMhHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666341705; a=rsa-sha256; cv=none; b=rCUnwGIgLOjaWdhEwfPh8YwIb/9VdOaALr9oiOyffAlVuXs7F8yp3TockJHdAqItCcgBCA 1/AXY2Dl8e+biLI8XaY3zn1Fjxi2rWl1T4Gdw/9/UFLinqwZVdXRk4p7nz/vrvQvQC0z45 ay2Xrp6eh58/lG4jUnmJG45FcZiSfQMqEhFr53dliXyVM43jqS+UGaux+MvucCY/REh0r1 ZY+54LgG0GsfpLXpkkrbQ9SN5Ewwdynn6V/vhExdWEccn788yq1VJ4GkriO4gdkROCdgWx 9oCQ2UAr7bQV1iYxwtWYoryJXEFUnVuIBCYFEqWoIW6h1EuzZdD2Ehnn9Gxvog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by whu: URL: https://cgit.FreeBSD.org/src/commit/?id=0c38e1c3383ab540ed01284be46769263c560d96 commit 0c38e1c3383ab540ed01284be46769263c560d96 Author: Souradeep Chakrabarti AuthorDate: 2022-10-21 07:49:28 +0000 Commit: Wei Hu CommitDate: 2022-10-21 08:40:32 +0000 arm64: Hyper-V: vmbus: use the IRQ resource from vmbus_res In ARM64 gen2 Hyper-V, use IRQ resource from vmbus_res, which is owning the IRQ for current device tree. It allows the MMIO resource to be successfully allocated for vmbus from parent acpi_syscontainer. Reviewed by: whu Tested by: Souradeep Chakrabarti Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D37064 --- sys/dev/hyperv/vmbus/aarch64/vmbus_aarch64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/hyperv/vmbus/aarch64/vmbus_aarch64.c b/sys/dev/hyperv/vmbus/aarch64/vmbus_aarch64.c index ba4d8c9bc36e..66e605b94094 100644 --- a/sys/dev/hyperv/vmbus/aarch64/vmbus_aarch64.c +++ b/sys/dev/hyperv/vmbus/aarch64/vmbus_aarch64.c @@ -111,8 +111,10 @@ vmbus_setup_intr1(struct vmbus_softc *sc) { int err; struct intr_map_data_acpi *irq_data; + device_t dev; - sc->ires = bus_alloc_resource_any(device_get_parent(sc->vmbus_dev), + dev = devclass_get_device(devclass_find("vmbus_res"), 0); + sc->ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->vector, RF_ACTIVE | RF_SHAREABLE); if (sc->ires == NULL) { device_printf(sc->vmbus_dev, "bus_alloc_resouce_any failed\n");