From patchwork Mon Mar 27 14:46:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13189509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2935C77B61 for ; Mon, 27 Mar 2023 14:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjC0Oqf (ORCPT ); Mon, 27 Mar 2023 10:46:35 -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 ); 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 To: Bjorn Andersson , Mathieu Poirier , Chris Lew CC: , , 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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