Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1268911

Re: [PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed
Date 2015-11-13 13:40 +0100
Message-ID <qulO2-6pf-9@gated-at.bofh.it> (permalink)
References <qui3M-41Z-5@gated-at.bofh.it> <qujVU-5dq-19@gated-at.bofh.it> <qulEm-6kY-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Friday 13 November 2015 20:20:01 Jisheng Zhang wrote:
> 
> > for outer_cache.sync(). The Aurora outer cache sync has a different method
> > and also doesn't use l2x0_lock. Finally, tauros3 doesn't need a cache sync
> > at all.
> > 
> > Did you look at an older kernel version? We used to do a loop in the
> 
> oops, yes. The kernel version in product still needs the spinlock in sync.
> I didn't check the L2 cache code for about 1 year, sorry for that.
> If we upgrade to newer kernel version, yes, the bit performance bottleneck -- 
> spinlock contention won't exist anymore. Thanks for pointing out this.

If you still see lock contention on the l2x0 lock with your patch applied,
you might want to backport the optimizations to your product kernel, even
more so for the aurora controller in the Armada 370 that had some extra
optimizations.

> But I think we may still see trivial system performance improvement in 500-1000
> times/s of clockevent programming case due to the mb() in writel.

Yes, I think it's fine. Just try to put your best estimate of the
overhead in the patch description when you do the new version.

Unfortunately, it is not easy to measure what the actual overhead is
because low-level benchmarks of outer_cache.sync will show a much lower
overhead than doing it occasionally with an active cache.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed Jisheng Zhang <jszhang@marvell.com> - 2015-11-13 09:40 +0100
  Re: [PATCH] clocksource/drivers/arm_global_timer: Always use  {readl|writel}_relaxed Jisheng Zhang <jszhang@marvell.com> - 2015-11-13 09:50 +0100
    Re: [PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed Arnd Bergmann <arnd@arndb.de> - 2015-11-13 10:30 +0100
      Re: [PATCH] clocksource/drivers/arm_global_timer: Always use  {readl|writel}_relaxed Jisheng Zhang <jszhang@marvell.com> - 2015-11-13 11:10 +0100
        Re: [PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed Arnd Bergmann <arnd@arndb.de> - 2015-11-13 11:40 +0100
          Re: [PATCH] clocksource/drivers/arm_global_timer: Always use  {readl|writel}_relaxed Jisheng Zhang <jszhang@marvell.com> - 2015-11-13 13:30 +0100
            Re: [PATCH] clocksource/drivers/arm_global_timer: Always use {readl|writel}_relaxed Arnd Bergmann <arnd@arndb.de> - 2015-11-13 13:40 +0100

csiph-web