Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2478012rwp; Fri, 14 Jul 2023 06:52:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYoIpea07Jo0Al8NfdBEDK9+Q8jyYoF6Mi09zgNPiLEVJdRxVS1EbDbD0Ydhu5AEHwp9oe X-Received: by 2002:a19:430e:0:b0:4f8:7503:2041 with SMTP id q14-20020a19430e000000b004f875032041mr3388973lfa.37.1689342756174; Fri, 14 Jul 2023 06:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689342756; cv=none; d=google.com; s=arc-20160816; b=pJ91REEiX7iu+zZwMZ/dsABtJoMLWEbKKn16XH3gaXxxwVJyj+BGudF0hiw87TB9FF o7Wk4zmbW4AAUhw9hn5eZNmWbwI9CD+/OLsCNziCZH7ZWOZwLfKc2ISDMYjvuzdNMHtL jJ3U1W3kS6DqlGtztY4y44UeM43MciKeEGsQGNN45bxeKm1GeOXetBPUWci4wuZNRY0J SpcIJHQeUr3HijF9wAdmnh9FKRfr/HBQ8BqBG6UbA4zxpckQvaK7TLAFZpGdmDkiMcvX 0AEUeE4Ev675zpDUDXHQsD9t5mzV0ubfuthdXCmFwST9K2Bh78xCYpgwTpScnuvUbRW5 EKOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OrrlpET1J++D0rWn+MEFzbX9FlSrTXFzI92fTxQjI5s=; fh=cwgcbNVgVtBw2JFC5zAC8p7sVzwmKLNQQQmyVCSGUIE=; b=a7V2ySXWg+wZD2FB08g5LGuLJJx2Ahy0s1kkoKhObUnauW2ha4Rd6ClaeMKqIRFOdS JcFdDCH+KNPDzDqMFRS24EUdDGhLigks5Jm5Fugjte2/VY4NA5RRmej+IEN5xk6UJ3DZ Rlcl0rYjmZn7buWq2n/fflkCWqYW059UbXZip7Tw0FNQZEM5/tPiKc3zcH24fOx7ULPE Wlk9zSpUlenx3Ho5e6QZvkkMuwJIpdntn0uuYs+v+paza/lnbz40qiHSDRpOb7f5KTE+ sdZRTQuWZ8tZP2pp0FsgDI8XlZgQuU10VYtk5dVtBafOAMUr0JuK1CMbROjn3RV+mmj7 7KLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mwlleTSR; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a056402134d00b0051e05cd6193si9207558edw.22.2023.07.14.06.52.12; Fri, 14 Jul 2023 06:52:36 -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=@linaro.org header.s=google header.b=mwlleTSR; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235396AbjGNNf4 (ORCPT + 99 others); Fri, 14 Jul 2023 09:35:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235536AbjGNNfr (ORCPT ); Fri, 14 Jul 2023 09:35:47 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B42F030FF for ; Fri, 14 Jul 2023 06:35:43 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-77acb04309dso77296439f.2 for ; Fri, 14 Jul 2023 06:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689341743; x=1691933743; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OrrlpET1J++D0rWn+MEFzbX9FlSrTXFzI92fTxQjI5s=; b=mwlleTSR8yEy1PaS939rfY4GuBWcXyWA0t8fIi9rgz1Pxwi/AZM6vk8gypg4p5WTzN 3l7l9N0d2tmi5avur0AIPBn2UGUs0QwvXlI0WKiDqpNWGNJ/AuIXhmjcfFnulgwYWBAA X+49Py+hY3mt+d74cTdPjb5XxMIDZJ0xJyxvcIPsfmzc3pIpDwiuVUjUPq/9aBdv2sNL QoI+5pQVpxo8l97IjqVAlNtXgafrbO+bUDvXxazPH9RnXtHMpi/JyiZD99DxSTx/OM2q aPAjXC4cLsATkJFzSo6W+NX6Z7Gy4rEUMpn2BfcMY5Vc6ahqzi+2o9ykaVuui1QUJkr6 nvFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689341743; x=1691933743; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OrrlpET1J++D0rWn+MEFzbX9FlSrTXFzI92fTxQjI5s=; b=MMLUu4FvXFQNfjE/pchKlpV486uazpWvhFjFXwcsCEQQ7uDjAYL4lKQpDRq4rtwd1w MxvCoFVd6Dck2JexgvMpiuG9P9LnhjXF+w68Vv0d8A277+80MzdN+9zmpGIoHac5Pu+j tEk4LSBIFn+SfD3BCuT6gj/MshTphNMwZocFYc/ICSzDd4p2pLiat/Mrf6Z37XuRp+Bi P/4NACkCGifdg9OzhQQqtRcj0/s0RNIike/6D7ohJIHiPSA4XfhVv8AffLd5t/75v5Iy AmKQsyicbaOEtiwNL7+yzJ4zoGYNQf4efCb9Mdnq/GqIgPhZ1sVi78yDL/MUCKMRdr/n RryQ== X-Gm-Message-State: ABy/qLbisElFLgkna07lsEZoB5/kVqzXKDta6gru3lf3eExSAhtO94AE 8DsOYfnc9nxHbKVLfifbAkizBA== X-Received: by 2002:a6b:3c0c:0:b0:785:ff35:f340 with SMTP id k12-20020a6b3c0c000000b00785ff35f340mr4830684iob.14.1689341743082; Fri, 14 Jul 2023 06:35:43 -0700 (PDT) Received: from [172.22.22.28] (c-98-61-227-136.hsd1.mn.comcast.net. [98.61.227.136]) by smtp.gmail.com with ESMTPSA id v6-20020a6b5b06000000b007870289f4fdsm2623774ioh.51.2023.07.14.06.35.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jul 2023 06:35:42 -0700 (PDT) Message-ID: Date: Fri, 14 Jul 2023 08:35:40 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v14 01/25] docs: gunyah: Introduce Gunyah Hypervisor Content-Language: en-US To: Elliot Berman , Srinivas Kandagatla , Prakruthi Deepak Heragu , Jonathan Corbet Cc: Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bagas Sanjaya , Will Deacon , Andy Gross , Catalin Marinas , Jassi Brar , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230613172054.3959700-1-quic_eberman@quicinc.com> <20230613172054.3959700-2-quic_eberman@quicinc.com> <5dc7438c-e161-915c-c037-19c5099a274f@quicinc.com> From: Alex Elder In-Reply-To: <5dc7438c-e161-915c-c037-19c5099a274f@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 7/3/23 5:41 PM, Elliot Berman wrote: >> If it's signaled after every message is sent, does it >> indicate that the message has been *received* by VM_B >> (versus just received and copied by Gunyah)? >> > > To connect some dots: the Tx vIRQ is fired when the reader reads a > message and the number of messages still in the queue decrements to the > "not full" threshold. > > https://github.com/quic/gunyah-hypervisor/blob/3d4014404993939f898018cfb1935c2d9bfc2830/hyp/ipc/msgqueue/src/msgqueue_common.c#L142-L148 So the Tx vIRQ on the sender is only fired when the state of the receiver's Rx queue goes from "full" to "not full". Normally there is no signal sent, and a sender sends messages until it gets a "queue full" flag back from a gh_msgq_send() call. At that point it should stop sending, until the Tx vIRQ fires to indicate the receiver queue has "room" (fewer than the "full threshold" messages are consumed). There is no way (at this layer of the protocol) to tell whether a given message has been *received*, only that it has been *sent* (meaning the hypervisor has accepted it). And Gunyah provides reliable delivery (each message received in send order, exactly once). Now that I re-read what you said it makes sense and I guess I just misunderstood. There *might* be a way to reword slightly to prevent any misinterpretation. Thanks. -Alex