Message ID | 20230327144617.3134175-1-quic_bjorande@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1575222vqo; Mon, 27 Mar 2023 08:02:05 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtigGXoJyGgUd4pHGCQa6ee0lDUGXSMs96wwIupKoOHf44qgL5bCHY9stx8Lv1NjKiZ2r2 X-Received: by 2002:a17:902:e3cb:b0:19c:a866:6a76 with SMTP id r11-20020a170902e3cb00b0019ca8666a76mr9398951ple.42.1679929324695; Mon, 27 Mar 2023 08:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679929324; cv=none; d=google.com; s=arc-20160816; b=XWwEfh+VlOxdLGdak7Db0Uqs/fCosl/B6aV/BW49aO2rhl94GJr+NDwHFkcJc8VCOF dxLGFsHna4JtLjFJqZL4PDxnn5SIiT8Np1TJzH916TmlP6SnQEv0NDZ/Wubq8DR67USU y6ixGOIAeyCECNb+V599rmgCm7NvL3+OaGV1lX1ChcsxuQiZQ6Rqd86wOpOgMWWW6ChD 5RI6gpENAK4z6JCFcbXzyciFCIeCT+yqEl1ohVFsP9OieDimjHfgpvElpJgiO1C2p4dD B+67BVRGhgO1st8UbBrjOwPxkfHYkhl3LbnZUYZWcl35mCY4HmDyrlhLt92WlmWVyN8y sWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WeQlCYQ/37d9DwDZVjqE2/ogHyoOgewm3tuiUAQElHg=; b=UlkvwM8xNyhePRCM+7SXiZdMD7iv9rY1qGulLJRT+cPmUzAW2HV4Mo2VxBbhPhCwya ut6PaWKMFRj1A0bt+A+pAuTJ3Oq7hgR83kNpBePNxTIDxk0C0QN053TrhI1zEidiiip5 FJnf8vtFEIakYdYHHy2DaqiOleP++aJeusUd+XF2B96pMVsSna9LiLQS+Iq+1pMuvLjD B+iNrPHC8LFNPS6mzhrLp24aHKr1mWxbYTeeeJuMwtHduGcbNQCDtm/P90itghZ3mB9C cjhG28pApo6mgh4gUqLSC8+zvCs0BEBKYE4ZXCezNmR0F1H2zYguh+2Q8c7kv4UvaNWC 923g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SBwMlPhM; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a170902eb5200b0019931c82e24si3883840pli.195.2023.03.27.08.01.43; Mon, 27 Mar 2023 08:02:04 -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=@quicinc.com header.s=qcppdkim1 header.b=SBwMlPhM; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232890AbjC0Oqi (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 10:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbjC0Oqa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 10:46:30 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE6E34488; Mon, 27 Mar 2023 07:46:27 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32RAM4S1027537; Mon, 27 Mar 2023 14:46:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=WeQlCYQ/37d9DwDZVjqE2/ogHyoOgewm3tuiUAQElHg=; b=SBwMlPhMa90/xS4cPBPMYy7OW/9OKiTelUgR5xDV2J6mWskpor4WQtdks5VHhbatPiS8 mRIOk8F2L3nOwGKO5yqBADli46PMarThNwHJiLyA5K2PnjO1bXh5Tmpns8iSAsn17hN4 KKzsLPjfQmn+CaaT0wVCKc9j5kDDHpuqbFXpzI7SMO5y8lW5HZyd4ruaOHQdU2vzZ6jB avLTP88OJluq+EodZwzb4YgjLJyJ3bykNMR8WkFURi7QFgjBzyLZjWR1UMPnuHQOIWdr qGk+4ZOkGkgrCGoytBDOH0MtUk9nI33GaSLpaJhZffNMbw1mzflrSnewpqgWxIBEwGci 0w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pk7h8rv13-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 14:46:24 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32REkN58010399 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 14:46:23 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 27 Mar 2023 07:46:22 -0700 From: Bjorn Andersson <quic_bjorande@quicinc.com> To: Bjorn Andersson <andersson@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Chris Lew <quic_clew@quicinc.com> CC: <linux-arm-msm@vger.kernel.org>, <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 0/2] rpmsg: glink: Wait for intent after intent request Date: Mon, 27 Mar 2023 07:46:15 -0700 Message-ID: <20230327144617.3134175-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: MIzyFvWE2DrKB8mUrhQzJTto5q5bMrSa X-Proofpoint-ORIG-GUID: MIzyFvWE2DrKB8mUrhQzJTto5q5bMrSa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 bulkscore=0 impostorscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303270116 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761533571640510248?= X-GMAIL-MSGID: =?utf-8?q?1761533571640510248?= |
Series |
rpmsg: glink: Wait for intent after intent request
|
|
Message
Bjorn Andersson
March 27, 2023, 2:46 p.m. UTC
When written it was assumed that upon requesting an intent, the intent would arrive followed by an intent request acknowledgement. But this is not always the case, in which case the current implementation would request yet another intent and when that is acknowledged find the first received intent - if the remote didn't run out of memory and failed the second request... Bjorn Andersson (2): rpmsg: glink: Transition intent request signaling to wait queue rpmsg: glink: Wait for intent, not just request ack drivers/rpmsg/qcom_glink_native.c | 37 ++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 11 deletions(-)
Comments
On 3/27/2023 7:46 AM, Bjorn Andersson wrote: > When written it was assumed that upon requesting an intent, the intent > would arrive followed by an intent request acknowledgement. But this is > not always the case, in which case the current implementation would > request yet another intent and when that is acknowledged find the first > received intent - if the remote didn't run out of memory and failed the > second request... > > Bjorn Andersson (2): > rpmsg: glink: Transition intent request signaling to wait queue > rpmsg: glink: Wait for intent, not just request ack > > drivers/rpmsg/qcom_glink_native.c | 37 ++++++++++++++++++++++--------- > 1 file changed, 26 insertions(+), 11 deletions(-) > Reviewed-by: Chris Lew <quic_clew@quicinc.com>
On Mon, 27 Mar 2023 07:46:15 -0700, Bjorn Andersson wrote: > When written it was assumed that upon requesting an intent, the intent > would arrive followed by an intent request acknowledgement. But this is > not always the case, in which case the current implementation would > request yet another intent and when that is acknowledged find the first > received intent - if the remote didn't run out of memory and failed the > second request... > > [...] Applied, thanks! [1/2] rpmsg: glink: Transition intent request signaling to wait queue commit: c09c7a59bfdd9a5d02a75ab640ed73ad56b3d1bc [2/2] rpmsg: glink: Wait for intent, not just request ack commit: 62efe3ed777c180a924a8576ca0b5a1a55eba9ae Best regards,