Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2984647rwl; Mon, 27 Mar 2023 07:51:07 -0700 (PDT) X-Google-Smtp-Source: AKy350YsIf4i4o2b1QRL90yG88xap0cYuC8/Thvu+DhsYDRs4QRlAKTSAEg0ZQYwk2SXzn8jl1uJ X-Received: by 2002:aa7:cf86:0:b0:500:2cac:332c with SMTP id z6-20020aa7cf86000000b005002cac332cmr11649176edx.25.1679928667338; Mon, 27 Mar 2023 07:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679928667; cv=none; d=google.com; s=arc-20160816; b=RzQ8D6CFnZ2tLCu7JMch4s4qvlDmcTB4ZG9R6aCXqwIgAjgiRjZFtTgTdyryiM8ery /tnv1f5b6w+Wr5CHQm/TyrTDXS0XJWhyZ5FcKSdzWgdTmkeK5y7lsmkyjuxNycNTMkms WKYtVzzsZQb9Qi9HO9XHwlxJtGrH16mtTczOmp9YXVW465jmnr1hw/VBCx0MveF6dlMU YKLXar9tUJH2xg2EBwGxrhpjaqbF+It6LcQm0/Tn2LRDLIoHibSGXFzlzNpXKMGx6aV1 l2nYkdFgVs4Hh2D8nNIyTGIZPQ26kpl07cLxxvegySmK+5Q3ydfwqKKv/cQa61kNNd7k i5Pg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a05640207d300b005022d0268f3si6167256edy.669.2023.03.27.07.50.42; Mon, 27 Mar 2023 07:51:07 -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 S232579AbjC0Oqi (ORCPT + 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 ); 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 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: X-Mailing-List: linux-kernel@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(-) -- 2.25.1