Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp178634pxm; Tue, 22 Feb 2022 08:28:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzs1r8655H73LBF/pwBGn0YNn1M2NF0rhYUWdLgv+cBRbi+LtTqSDkshPrMEUIPn1Cl7qeK X-Received: by 2002:a05:6a00:1143:b0:4f0:e9bf:6333 with SMTP id b3-20020a056a00114300b004f0e9bf6333mr21322769pfm.29.1645547336027; Tue, 22 Feb 2022 08:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645547336; cv=none; d=google.com; s=arc-20160816; b=cvG80ta7LGTPM6NZYrNC1cwiNivqocSUR6vL7r6gy+p3Npx5+Z2AbcNeRtqn/Uyq35 pTZY9werfFt68/Uat/xz5Uq093ynHsz0LFpx8Ve/v9VPy/p3ivQzvkR6+cxm2bguqMwJ TMfRFqUgPozyZ6dTh1wGu3EPVKufaUV0C3Gbg59h9o8JPVjA+ReBUFqPTcnG7w8J5hZy 8W+8DnN0YXccbdawQZ+iHcetg8x7s42jEhfuRZA3ykdN6wbQ6E47PPNWB9rDmqxKUsL+ fk5KnqZPMRNtnxD3WjtXL135sqxpm7VTcSx+HnLG4BpGX/2h6Ei14DiQGCxNOOum6FZv jwkg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=NDozPatV6Z0U3upLRoA8/0EfvFCyJgU33xu9RXKtnXw=; b=ho3SwWBn+oxUABI43MJ2KNSg6S0uOJFL3GeqjDe7HVmI0IesEDHcj8Q8hloG6N9aF7 VprlCV/xuoBGt7bNwOIzPbLx86zcDpvjbgZ95cDPaaovQ8SzutB7hxVTM3IN8FUZyDXQ VTa2pkpiO/3fsg9gHkzG0tNsNieaAIh2lW0b7wdulKDUMErpIDq2UQU3sUeCFXrFYjz4 LZaMbIUiTVlOFvB6DgQWfqjQwgqSYeYSZ3aspi8aNIc6z997mrw/NqJ+P5ZWrN1GpxOO NkR8ZfhnuJm6PdhOz8CcWjJaloi93MjGXiYkatQ6mVpjK6Tspw9ybSYaenliJQm2gz7j Wl4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qlBo4TNy; 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 k26si19656196pgm.323.2022.02.22.08.28.40; Tue, 22 Feb 2022 08:28:56 -0800 (PST) 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=qlBo4TNy; 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 S233204AbiBVQFt (ORCPT + 99 others); Tue, 22 Feb 2022 11:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiBVQFp (ORCPT ); Tue, 22 Feb 2022 11:05:45 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453C410C509 for ; Tue, 22 Feb 2022 08:05:20 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id s1so20697165iob.9 for ; Tue, 22 Feb 2022 08:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=NDozPatV6Z0U3upLRoA8/0EfvFCyJgU33xu9RXKtnXw=; b=qlBo4TNyIiMsjvCisuZQsfrUIdv8juJl7jtH5huUm9T+yenzjxsR383FFe/T9PFGjF rYIWLMfTazeq3TEx12AtcTncKpXfRJg5hkt5Yl565taGFtaRViwGUD+KIvTL2tlM3gm+ 5TQI5NFrSO3d0T13GQdRFokkd5cnDL7Lidys0nDgndjhRU1h4oN+r0F17TuDd6SQDccN cH/c4ejzG3ugG/1lgRAbO7jX6jO3TGclk09F1MbZXz2jvik4UhHhsK/gZs5fRr/Zs+kG 7Y7qQpbIw7zUPCeDfyonjiRfjHyTNfawlki2vuVEgZZNbjFlCm6cquQq9/o4b5wSM0QB PT3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=NDozPatV6Z0U3upLRoA8/0EfvFCyJgU33xu9RXKtnXw=; b=y8A7Yi7nnqGFvRbGmv57+w9AcnRAT9HqS7wnok3MPRl7wez3XtTha3AM27PslUIS9g 2WsqqKmR/cYC4XRBsXGwlyVjaE0EhZwYygde6/nUZPgqJVp4iug1btKBfknz0gR2aJxw PfwfgVOr5uMQDnpdUcdqy+aXAITXjyz7WdORCNtOBlMPgJOSPSpRyCvdIWEV09nDsu4S KSIaUPopB4H4CYOnODrzLuliS3kMkYlGd1hMcFXWLpG4ZiHhwrF/AZYmzHLa4RDvNdhK mfmss45v5stGz/VDUvKrbCty7G+Hbi9p/TbvOgl3vK2gPnNIsFk5DJIFmR9Tg6ofNq38 jSag== X-Gm-Message-State: AOAM531lW/Dqygz2NgmFicIqDWozmSWw6u/B0JG3WMK79Ojt08kgrV0G LvHscRhzfEEsN4qC7zRvnEtSwg== X-Received: by 2002:a05:6638:3045:b0:308:ed08:e744 with SMTP id u5-20020a056638304500b00308ed08e744mr20499419jak.253.1645545919672; Tue, 22 Feb 2022 08:05:19 -0800 (PST) Received: from [172.22.22.4] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id c5sm1964435ilu.77.2022.02.22.08.05.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 08:05:18 -0800 (PST) Message-ID: <4ec997ab-8a6f-76e7-20e7-b7f778124c87@linaro.org> Date: Tue, 22 Feb 2022 10:05:17 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 23/25] bus: mhi: ep: Add support for queueing SKBs to the host Content-Language: en-US From: Alex Elder To: Manivannan Sadhasivam Cc: mhi@lists.linux.dev, quic_hemantk@quicinc.com, quic_bbhatt@quicinc.com, quic_jhugo@quicinc.com, vinod.koul@linaro.org, bjorn.andersson@linaro.org, dmitry.baryshkov@linaro.org, quic_vbadigan@quicinc.com, quic_cang@quicinc.com, quic_skananth@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220212182117.49438-1-manivannan.sadhasivam@linaro.org> <20220212182117.49438-24-manivannan.sadhasivam@linaro.org> <766e6568-0b80-c745-dd8f-7f401fb0422d@linaro.org> <20220222143825.GH5029@thinkpad> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2/22/22 9:18 AM, Alex Elder wrote: > >> But anyway, there is no need to check for CHAIN flag while writing to >> host. >> CHAIN flag is only used or even make sense when host writes data to >> device, so > > I'm not sure that's correct, but I don't want to get into that issue here. > We can talk about that separately. I just wanted to send a short followup here. My comments were based on a misunderstanding, and Mani cleared it up for me. For host receives, the MHI specification states that a packet that requires more than the size of the buffer in a single TRE leads to an overflow event being generated from the device to the host. The buffer on the TRE is filled, and subsequent packet data is written to the next TRE's buffer (assuming it's present). This differs from one feature of IPA and its GSI transfer rings. I won't explain that here, to avoid any confusion. Mani explained things to me, and he's going to send an updated series, which I'll review. -Alex