Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3053490rwi; Tue, 1 Nov 2022 15:24:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pQ4xgTth/BCxPvrYqruiQbt2GyMYdulSWrF0b6mctc/NgoSaPB9kxOVCqJs9IwceXhK4F X-Received: by 2002:a17:907:2bdb:b0:7ad:95e5:ce80 with SMTP id gv27-20020a1709072bdb00b007ad95e5ce80mr20760505ejc.625.1667341440243; Tue, 01 Nov 2022 15:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667341440; cv=none; d=google.com; s=arc-20160816; b=ccEIMH3sCcy8/+I2Jh93tRPPv/METqU0v/tJX8Lm2daofX35gR+7yneHqkMdRS1TVP FcaMKLguO0NFW/+weU32bC49ncKpMFPbEO3ZHuSEY2lrhNMRh0QutyU29xX90Iv+kBco /+VhhHEITu4TICQsoonqKLUdIJmwAZJBoHWCMbDwVq7afiqoV3S2jYjQpirWqryxiOpE wqQn1MSHHHcV4VUzMhTTfFgppKgd/rn9Dv0iIyxt33usNu9EAkfjbjQuas2uhh6JOEaP pywmQ3aA9iwAXSIYgtUImXllb4tFhOX1Yajyhxjum+GAx4bSfspd3kewwKHH0eOqmwHp o7FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4TMJ2/97uEF+3KaUi8/IJUBwB2FgHNsew0b2CWSykd0=; b=HMlvDcy3WjXGWq04dY7pudh/SsTkj0fE6acMrYB7f8L2P2y4i5jw+ClRc8YB9nUHek bAwbaaSRvMYVnhWP3zDDJRWOu4eJ6iNrPmA4BgmsqEPGPojJCkhd+w41vcPlYjcpzaZH CX9sq7CxZDTXBmqFZbzWEynI87wo3jL1AXAPfjuZIQpAh21PVGrN/7zNrvJtXlkR8pzU +35OS25gUqXqOZYEJIXb9K95srryK9PVThd3ECCWd7TaGcpCu3LA6ArceLYmo5/cIg7F bOsin3nbQdTiyCMGAQdxHJXyPoNCjfdYa3X/oKiCAk7Gc9k8LMexUU1/tuOjX4FRYuUu Jubw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N5MlkBYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go44-20020a1709070dac00b0073d92f83e06si15122259ejc.887.2022.11.01.15.23.35; Tue, 01 Nov 2022 15:24:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N5MlkBYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbiKAV7o (ORCPT + 97 others); Tue, 1 Nov 2022 17:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbiKAV7X (ORCPT ); Tue, 1 Nov 2022 17:59:23 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6B51A812; Tue, 1 Nov 2022 14:58:49 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id f5so19024861ejc.5; Tue, 01 Nov 2022 14:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4TMJ2/97uEF+3KaUi8/IJUBwB2FgHNsew0b2CWSykd0=; b=N5MlkBYasbaBLPbYSLbwkBFgPK6XXiKDrbPXeLderFC0hN+1hqOiBdezANh1oMuCZY imjOu8VGMMXlEk60P8cD0Z5PE6gEyd4OkOST0fKrKQp3ENUFvL9lN9/4qwYfFkDXOMA9 iSJlDLbkIpVta68NLet1Cl1wEZkEjxA4BQLy/kXGoQ4EADyX7/SAC2AoguIFFkpLNRXr keqExt3Bo/d7P0ZzgJzNy4le+ovY3LvlsPH4vN5e8uAfsrx02Z/PlE9TACqm/RswpPjN exD9MmDNVG5L0RaTNgfiBMBpjdU57J761psqOv91wEC/bdQrTcPLpDD/Pt8/fsJzW/00 Y8mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4TMJ2/97uEF+3KaUi8/IJUBwB2FgHNsew0b2CWSykd0=; b=xyZpzWbIt7w7uXmcAdzU9nkfKoRRFT7BTQ3QwgWKgwQXSA/fAYA2fFuJ3ZgS2KOwXp 2XH1eymU6BJrUMKeFdngOXdOGk8VXxaN5IBoaXSNyXNWG1Nvl6yoL9XjEHIxxj0WE331 axgaPgx0mEB44Es1PmDwuMAE6CI8A4w4++oo6pA0/VEq4uxsr5h4bhw04VVXClOyFUEP LjfgR6i/3EvyMGP3qHZvlcTwRyBbbhsV33NChgqBFbQSaWNB37EduNlLayeBCTKvgENS JSe2JqkHW6AyLZw8IyVHn+IYXjxFYYXHlsBCPYC1xg6UiuhzmPXPaN+QnWc+SyWbsm+f xyDg== X-Gm-Message-State: ACrzQf1WlF3PuePe5u+UG4kElFASv9MQBkYwB15KL6YvfAP72WS/UWar +J6QsV2aAtcweinWw5gNLr+udsuxI22aEAqGg7w= X-Received: by 2002:a17:906:2a93:b0:78d:b87e:6aab with SMTP id l19-20020a1709062a9300b0078db87e6aabmr20674022eje.157.1667339928024; Tue, 01 Nov 2022 14:58:48 -0700 (PDT) MIME-Version: 1.0 References: <20221026185846.3983888-1-quic_eberman@quicinc.com> <20221026185846.3983888-3-quic_eberman@quicinc.com> <4cb58489-cd42-1868-9add-0c360065de23@quicinc.com> In-Reply-To: <4cb58489-cd42-1868-9add-0c360065de23@quicinc.com> From: Jassi Brar Date: Tue, 1 Nov 2022 16:58:36 -0500 Message-ID: Subject: Re: [PATCH v6 02/21] dt-bindings: Add binding for gunyah hypervisor To: Elliot Berman Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Prakruthi Deepak Heragu , Andy Gross , Dmitry Baryshkov , linux-arm-kernel@lists.infradead.org, Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Jonathan Corbet , Will Deacon , Catalin Marinas , Arnd Bergmann , Greg Kroah-Hartman , Srinivas Kandagatla , Amol Maheshwari , Kalle Valo , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 1, 2022 at 3:35 PM Elliot Berman wrote: > > > > On 11/1/2022 9:23 AM, Jassi Brar wrote: > > On Mon, Oct 31, 2022 at 10:20 PM Elliot Berman wrote: > >> > >> Hi Jassi, > >> > >> On 10/27/2022 7:33 PM, Jassi Brar wrote: > >> > On Wed, Oct 26, 2022 at 1:59 PM Elliot Berman > >> wrote: > >> > ..... > >> >> + > >> >> + gunyah-resource-mgr@0 { > >> >> + compatible = "gunyah-resource-manager-1-0", > >> "gunyah-resource-manager"; > >> >> + interrupts = , /* TX > >> full IRQ */ > >> >> + ; /* RX > >> empty IRQ */ > >> >> + reg = <0x00000000 0x00000000>, <0x00000000 0x00000001>; > >> >> + /* TX, RX cap ids */ > >> >> + }; > >> >> > >> > All these resources are used only by the mailbox controller driver. > >> > So, this should be the mailbox controller node, rather than the > >> > mailbox user.> One option is to load gunyah-resource-manager as a > >> module that relies > >> > on the gunyah-mailbox provider. That would also avoid the "Allow > >> > direct registration to a channel" hack patch. > >> > >> A message queue to another guest VM wouldn't be known at boot time and > >> thus couldn't be described on the devicetree. > >> > > I think you need to implement of_xlate() ... or please tell me what > > exactly you need to specify in the dt. > > Dynamically created virtual machines can't be known on the dt, so there > is nothing to specify in the DT. There couldn't be a devicetree node for > the message queue client because that client is only exists once the VM > is created by userspace. > The underlying "physical channel" is the synchronous SMC instruction, which remains 1 irrespective of the number of mailbox instances created. So basically you are sharing one resource among users. Why doesn't the RM request the "smc instruction" channel once and share it among users? -j