From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 003BDC433E7 for ; Tue, 13 Oct 2020 10:50:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B989214DB for ; Tue, 13 Oct 2020 10:50:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387598AbgJMKut (ORCPT ); Tue, 13 Oct 2020 06:50:49 -0400 Received: from foss.arm.com ([217.140.110.172]:54730 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbgJMKut (ORCPT ); Tue, 13 Oct 2020 06:50:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 31FA631B; Tue, 13 Oct 2020 03:50:48 -0700 (PDT) Received: from bogus (unknown [10.57.16.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9E3A13F719; Tue, 13 Oct 2020 03:50:46 -0700 (PDT) Date: Tue, 13 Oct 2020 11:50:43 +0100 From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Etienne Carriere , Cristian Marussi , Sudeep Holla , vincent.guittot@linaro.org, Souvik.Chakravarty@arm.com Subject: Re: [PATCH] firmware: arm_scmi: Add missing Rx size re-initialisation Message-ID: <20201013105043.GB7040@bogus> References: <20201008143722.21888-2-etienne.carriere@linaro.org> <20201012141746.32575-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012141746.32575-1-sudeep.holla@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 03:17:46PM +0100, Sudeep Holla wrote: > Few commands provide the list of description partially and require > to be called consecutively until all the descriptors are fetched > completely. In such cases, we don't release the buffers and reuse > them for consecutive transmits. > > However, currently we don't reset the Rx size which will be set as > per the response for the last transmit. This may result in incorrect > response size being interpretted as the firmware may repond with size > greater than the one set but we read only upto the size set by previous > response. > > Let us reset the receive buffer size to max possible in such cases as > we don't know the exact size of the response. > Applied to sudeep.holla/linux (for-next/scmi), thanks! [PATCH] firmware: arm_scmi: Add missing Rx size re-initialisation https://git.kernel.org/sudeep.holla/c/9724722fde -- Regards, Sudeep