linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gilles.chanteperdrix@xenomai.org (Gilles Chanteperdrix)
To: linux-arm-kernel@lists.infradead.org
Subject: imx6q: high interrupt latencies
Date: Sat, 29 Sep 2012 23:58:57 +0200	[thread overview]
Message-ID: <50676F21.4000705@xenomai.org> (raw)


Hi,

I have been observing high interrupt latencies on imx6q, the problem
seems to be in the FEC driver, function fec_enet_tx. The following line:

        while (((status = bdp->cbd_sc) & BD_ENET_TX_READY) == 0) {

can take 100us or more to execute, during which the local timer
interrupt are postponed.

As far as I understand, bdp is a pointer to a "struct bufdesc" shared
with the hardware and its status member is updated by the hardware when
the corresponding ethernet packet transmission is complete.

Adding a call to "mb()" or "outer_sync()" before reading the status
seems to avoid the issue, though I do not know if this is the proper fix.

Some more data. The boot logs say:
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU identified as i.MX6Q, silicon rev 1.0
l2x0: 16 ways, CACHE_ID 0x410000c7

the kernel is compiled with the following errata enabled:
CONFIG_PL310_ERRATA_588369
CONFIG_PL310_ERRATA_727915
CONFIG_ARM_ERRATA_743622
CONFIG_ARM_ERRATA_751472
CONFIG_ARM_ERRATA_754322
CONFIG_ARM_ERRATA_764369
CONFIG_PL310_ERRATA_769419

Regards.

-- 
                                                                Gilles.

             reply	other threads:[~2012-09-29 21:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29 21:58 Gilles Chanteperdrix [this message]
2012-10-08  5:20 ` imx6q: high interrupt latencies Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50676F21.4000705@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).