]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
ARM: tegra: dvfs: Swap CL-DVFS barrier and read fence
authorAlex Frid <afrid@nvidia.com>
Mon, 31 Mar 2014 19:34:03 +0000 (12:34 -0700)
committerKrishna Reddy <vdumpa@nvidia.com>
Tue, 1 Apr 2014 00:20:41 +0000 (17:20 -0700)
commitfd68c431105cfb8e8f60ec5c271c8fe1adb9c3a9
treea1b9c3dffe0296dd126618669babc3150a992db0
parent3580417b82fcfc887d8646385b28d58f87092a84
ARM: tegra: dvfs: Swap CL-DVFS barrier and read fence

To assure completion of the previous writes through Tegra interconnect
CL-DVFS driver used memory write barrier followed by read fence.

Removed the preceding memory barrier, since it has no additional to
read fence effect (given Tegra IO mapping as device). Added barrier
after read fence. The latter is needed to avoid partial overlap of
read operation and propagation delay after read (if any). Such overlap
is possible because architectural timer used as delay counter is not
MMIO register.

Bug 1484343

Change-Id: Ic0bcbeb980e5b728e5b1ee949f1aacfe94309931
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/390284
Reviewed-by: Hoang Pham <hopham@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
arch/arm/mach-tegra/tegra_cl_dvfs.c