Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Do we still need DMB on in-order pipeline such as CA7 processor - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Do we still need DMB on in-order pipeline such as CA7 processor Rate Topic: ****- 1 Votes

#1 User is offline   LiangChiu 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 30-September 12

Posted 15 October 2012 - 01:00 PM

Dear Sirs:

Since CA7 is in-order pipeline and there is no instructions ordering problem in CA7, Do we still need DMB on in-order pipeline such as CA7 processor?
For device memory, I think we should map non-cached and for cache maintenance we should use DSB. In which case the DMB should be used on in-order pipeline series?


Regards
Liang
0

#2 User is offline   isogen74 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 1098
  • Joined: 20-March 07

Posted 15 October 2012 - 05:26 PM

Let's start with "yes" - it will make your code portable to other processors without change. There are a few other good reasons too (DMB has other side effects such as ensuring some CP15 ops are comitted before the next instruction proceeds, draining the write buffer, etc.). Skipping DMB's / DSB's is a micro-optimization which you will regret later when you run code on a different core (by which point you will have forgotten you omitted them and you have to chase hard to debug errors)...




When optimizing software, consider that the quickest code to run is the bit you removed from the call path.
1

#3 User is offline   LiangChiu 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 30-September 12

Posted 16 October 2012 - 08:53 AM

Dear Isogen74:

Thanks for your reply in detail. Help us to clarify our thinking.

Regards
Liang
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic