From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: <6198994.YhDCC7xNAM@wuerfel> References: <1469134557-26869-1-git-send-email-hotran@apm.com> <2852054.37zytD0HIa@wuerfel> <6198994.YhDCC7xNAM@wuerfel> From: Hoan Tran Date: Fri, 9 Sep 2016 13:51:28 -0700 Message-ID: Subject: Re: [PATCH] hwmon: xgene: access mailbox as RAM To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, Jonathan Corbet , Jean Delvare , Ashwin Chaugule , Duc Dang , Jassi Brar , linux-doc@vger.kernel.org, lkml , Devicetree List , Rob Herring , Loc Ho , Guenter Roeck Content-Type: text/plain; charset=UTF-8 List-ID: On Fri, Sep 9, 2016 at 1:50 PM, Arnd Bergmann wrote: > On Friday, September 9, 2016 1:43:17 PM CEST Hoan Tran wrote: >> >> > * Are you sure you don't need any smp_rmb()/smp_wmb() barriers >> > between the accesses? >> >> No, we don't need a strict read/write during access PCC subspace. Just >> make sure all access is committed before PCC send message to the >> platform which done by PCC mailbox driver. >> > > Ok, got it. The PCC mailbox driver presumably uses writel() to > send the message, and that implies the necessary barrier > (unlike writel_relaxed), right? Yes, Hoan > > Arnd > From mboxrd@z Thu Jan 1 00:00:00 1970 From: hotran@apm.com (Hoan Tran) Date: Fri, 9 Sep 2016 13:51:28 -0700 Subject: [PATCH] hwmon: xgene: access mailbox as RAM In-Reply-To: <6198994.YhDCC7xNAM@wuerfel> References: <1469134557-26869-1-git-send-email-hotran@apm.com> <2852054.37zytD0HIa@wuerfel> <6198994.YhDCC7xNAM@wuerfel> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Sep 9, 2016 at 1:50 PM, Arnd Bergmann wrote: > On Friday, September 9, 2016 1:43:17 PM CEST Hoan Tran wrote: >> >> > * Are you sure you don't need any smp_rmb()/smp_wmb() barriers >> > between the accesses? >> >> No, we don't need a strict read/write during access PCC subspace. Just >> make sure all access is committed before PCC send message to the >> platform which done by PCC mailbox driver. >> > > Ok, got it. The PCC mailbox driver presumably uses writel() to > send the message, and that implies the necessary barrier > (unlike writel_relaxed), right? Yes, Hoan > > Arnd >