Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp711161ybg; Wed, 3 Jun 2020 11:31:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymijeLfA5OIGz7/eC6uWUt3/JLzZtqamEkgl90bcLjIFx6DYh9hDPI87vxBzJ7F9ZMYRRF X-Received: by 2002:a17:906:af48:: with SMTP id ly8mr588942ejb.28.1591209115757; Wed, 03 Jun 2020 11:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591209115; cv=none; d=google.com; s=arc-20160816; b=wDW375l/wl3Yewb8e5Jzy3n+H4sMI6tLGrApsyOGuEGXM09eBwKXQ1NH88DJTEjPai Yd808aYXWgZKiQFAUpFdvYDkU1QYNiMHJ5/humt5C8XBaLleCf69UG7GjgmTCi4Td1J4 ey5hIOqjYiI6MIdNGxObrWcypvCdkqtnr02anMgqGEw6HwROsLOK0ED4p5W63QmLUKgK eh9Tli3jRbmZ84QXC6x1VbVJm2RTjDcZuXOjUQR6723peGa+Xht2UK1gvB65SE/lyxEE IqUFZ/dhrucXZU2yYx7/XrPUmGLvmLAQSgGF5BsY02f2ZUyrLgjqpbXx5OL54yO6qiVf hqQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mUMjw5xSTvGbXcX3yz9GkyXP2okQBSslw5TylBNZNGU=; b=kamRWz00IenR1sTt8mLUpCDQzVkY2MxyEsOl1ZnjGJZu29ZLmkz/i+D8R3Krxu+XXA 7xKW0oY2O76BKa59Mk0Ii2Za89a2XJPY0ofdqi1Me/RMgPwe+yHSMbt/9kFOhl97EpLp QcFbBtrs8YJnrAbQ5V8DG7jgyhojVGySDdd2aEMUvi+Tu3bt38zQq9GpZs2OfbBQUvcK +ZbTkuo7aHL/7xL11yvL0A+SKnCU+ownQQ1ur2J4egQ47P+pxT74b3KJWuVGvRf/oDh/ +fucABJdNBgpDkEepAbB1ssnjA7YF64BZ0ZEpvcmeNg8nnafWOA1AeCzJLXwqMKemUrz Y3+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si183810ejq.532.2020.06.03.11.31.31; Wed, 03 Jun 2020 11:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbgFCS2L (ORCPT + 99 others); Wed, 3 Jun 2020 14:28:11 -0400 Received: from foss.arm.com ([217.140.110.172]:36694 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgFCS2L (ORCPT ); Wed, 3 Jun 2020 14:28:11 -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 B9DF931B; Wed, 3 Jun 2020 11:28:10 -0700 (PDT) Received: from bogus (unknown [10.37.8.135]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9073D3F305; Wed, 3 Jun 2020 11:28:08 -0700 (PDT) Date: Wed, 3 Jun 2020 19:28:05 +0100 From: Sudeep Holla To: Bjorn Andersson Cc: Viresh Kumar , Jassi Brar , Arnd Bergmann , Rob Herring , Frank Rowand , Vincent Guittot , Sudeep Holla , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU Message-ID: <20200603182805.GD23722@bogus> References: <0a50f0cf5593baeb628dc8606c523665e5e2ae6c.1589519600.git.viresh.kumar@linaro.org> <20200519012927.GT2165@builder.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200519012927.GT2165@builder.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Thanks for the details response. On Mon, May 18, 2020 at 06:29:27PM -0700, Bjorn Andersson wrote: > On Thu 14 May 22:17 PDT 2020, Viresh Kumar wrote: > [...] I find this part nicely summarise your response. > > - With serialization, if we use only one channel as today at every > > priority, if there are 5 requests to send signal to the receiver and > > the dvfs request is the last one in queue (which may be called from > > scheduler's hot path with fast switching), it unnecessarily needs to > > wait for the first four transfers to finish due to the software > > locking imposed by the mailbox framework. This adds additional delay, > > maybe of few ms only, which isn't required by the hardware but just by > > the software and few ms can be important in scheduler's hotpath. > > > > So these 5 requests, are they conveyed by the signals [1,2,3,4,5] or > [BIT(0), BIT(1), BIT(2), BIT(3), BIT(4)]? > Latter in this case. IMO it is platform choice on how to use it. It is equally possible to send 2^31 different signals. But the receiver must also interpret it in the *exact* same way. In this case, the receiver which is platform firmware interprets as individual bit signals. > In the first case you have to serialize things given that e.g. signal 1 > immediately followed by 2 is indistinguishable from 3. > Agree and we are not proposing to break that use case. It exists in the driver/binding today and will continue as is. > If you signals are single-bit notifications then you don't need any > serialization. > Indeed, we are making use of that. -- Regards, Sudeep