Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1400387rwl; Fri, 7 Apr 2023 15:41:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YSVNiuIadbl6fqPnhKPP983JU7VLKinigCuWN0emhUaGGEeeuFtTnm0XhCGNo5+qYEvUjs X-Received: by 2002:a62:5f46:0:b0:5a8:abd2:2beb with SMTP id t67-20020a625f46000000b005a8abd22bebmr123697pfb.30.1680907263936; Fri, 07 Apr 2023 15:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680907263; cv=none; d=google.com; s=arc-20160816; b=oO8wx7dTVK3d+k5h4zUZrBjLmhPs6vSSljGGXC7XRVhCswV6QfVF2puonAlRwlk7Xs czlkJzJgSxKGgKzxukk4P37HOWvQEWgCfxWKhv0731qSdhC+fLTZoNs2PGvpBF2RBEWx Byl7fFqivImxShcr8oDaf+0Nx6oTJLj+BK0dkweIXYkg7TFaAFwYlQzWNkudnU1zFnWg FWJuRzA5E4SXGam/QUWxrwXSwXKCbFSENdoSdMQL1hDdxYKdzpc8E941qCbuMFJp9706 nvyFFEFqay2BX5hHmUsjIzu9F+T7v2yUD8GrY1Ak2NCKk5297KurAWd7OgWKpH2qgTR/ CD5A== 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=GLPTOTfwSYH4/Oiye4DOEFwrubn3rrjGIYd6rskQ6hg=; b=MpeIwOCuSd0/bt3EuG+sty9G8PZME4aU7ksiS8Haj9hcH6eC0GAwPsx65Yw/vJcFDQ Og1tESoW3gnb0RDVh7UIjlJkrNN5yAqEIhiUabXvIRS1busjdlLLfPjMG/XyuofS4iR2 mnHhpHKf3YL4EIB+uobNWuErfauwz80QA8syeWbvuINKufvKk4kQdIofn0T55zS5EUMr ctyAblBAoru+bLnEqci07QpjttbrwVSb9/AXDLlF569mESfV0paAhi59HE7z2uaiRpFC IVfSpKJFVvFVjTpr1cvpkdPQzftosm2uah827UsTi1P5aADOXyawCOmasqa3bWIjzwBo afig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KP8y2ONQ; 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 r4-20020aa79884000000b0059d96ba730dsi4506609pfl.110.2023.04.07.15.40.53; Fri, 07 Apr 2023 15:41:03 -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=KP8y2ONQ; 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 S229808AbjDGWf6 (ORCPT + 99 others); Fri, 7 Apr 2023 18:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjDGWf5 (ORCPT ); Fri, 7 Apr 2023 18:35:57 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A32CA1A; Fri, 7 Apr 2023 15:35:54 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 337LbUgi030608; Fri, 7 Apr 2023 22:35:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=GLPTOTfwSYH4/Oiye4DOEFwrubn3rrjGIYd6rskQ6hg=; b=KP8y2ONQGKZIohtcbcVh6KPVfIHsKls4n73O1Gmoyn+jXcsKhCjNN0UUEzz1IaJ1CJCG JtfLveRlbq2v9G3yWxa5W/i6Sbl6OAkN41l0kLGYvOYEYfQ5pYXzOLrnNpNXwMM7ohjg ySJ61ktiB3JYW1kZeFnjXm6MEtrSbn/2Atjd7BI9boOgNbgfPdpObhIsSNNpGyxHsLRH DfGPzbvDkVqknAepsmPU9w80s/jrVg5gQrT+PsCM7jeJ+CNlMR5tTDauDmgL6ATmI6NF qQbNeUJmI9H9SAzOdzfQQ23B2mqWoukN4Sx2o3mXQ4hLQnSqJYJg/BnXBjg2CJ7kINU+ Nw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ptgpk1jc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Apr 2023 22:35:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 337MZpeC027751 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Apr 2023 22:35:51 GMT Received: from [10.110.34.31] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 7 Apr 2023 15:35:50 -0700 Message-ID: <58305f4d-fbcb-44cc-053c-d30f4ca082e7@quicinc.com> Date: Fri, 7 Apr 2023 15:35:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 0/2] rpmsg: glink: Wait for intent after intent request Content-Language: en-US To: Bjorn Andersson , Bjorn Andersson , Mathieu Poirier CC: , , References: <20230327144617.3134175-1-quic_bjorande@quicinc.com> From: Chris Lew In-Reply-To: <20230327144617.3134175-1-quic_bjorande@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ctf5nHn8wnafu-MSPyw-OvmjotHfcvYA X-Proofpoint-GUID: ctf5nHn8wnafu-MSPyw-OvmjotHfcvYA 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-04-07_14,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304070204 X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 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