All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vidar Tyldum <vidar@tyldum.com>
To: Marko Ristola <marko.ristola@kolumbus.fi>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: Multiple Mantis devices gives me glitches
Date: Tue, 13 Dec 2011 19:11:15 +0100	[thread overview]
Message-ID: <4EE79543.2080802@tyldum.com> (raw)
In-Reply-To: <4EE6FF6F.5050901@kolumbus.fi>

13.12.2011 08:31, Marko Ristola:
> 
> Hi
> 
> Here is a patch that went into Linus GIT this year.
> It reduces the number of DMA transfer interrupts into one third.
> Linus released 2.6.38.8 doesn't seem to have this patch yet

Good news, combining this patch with IRQ management fixes the problem for me.

Status:
 * Stock 2.6.38.8 mantis, no IRQ management:     glitches
 * Stock 2.6.38.8 mantis, with IRQ management:   glitches
 * Patched 2.6.38.8 mantis, no IRQ management:   glitches (less)
 * Patched 2.6.38.8 mantis, with IRQ management: very few glitches
 * Same as above, but latency_timer set to 0xff: no glitches in one hour

The patch was applied to 2.6.38.8 (in Ubuntu terms: 2.6.38-13-generic-pae).
Tests involved having VDR record on three different transponders at the same
time, which means lots of IO and all three cards active at once.

For IRQ management I tried both 'irqbalancer' and manual setting with IRQ
affinity (which is basicly what irqbalancer does).

I tried playing with the latency timer on the other scenarios, not only the
last one, but all had glitches anyways.

Not sure what to conclude with:
 - Unfortunate IRQ handling on this CPU (two and two share IRQ handling)?
 - Too many interrupts generated by driver (design issues)?
 - Driver not handling SMP gracefully?
...or a combination?

Your patch is definately needed. Is there anything I can do to help getting
it in?


-- 
Vidar Tyldum
                              vidar@tyldum.com               PGP: 0x3110AA98

  parent reply	other threads:[~2011-12-13 18:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13  7:31 Multiple Mantis devices gives me glitches Marko Ristola
2011-12-13 13:55 ` Vidar Tyldum
2011-12-13 18:11 ` Vidar Tyldum [this message]
2011-12-13 21:56   ` Marko Ristola
2011-12-14 18:23     ` Vidar Tyldum
  -- strict thread matches above, loose matches on Subject: below --
2011-12-12 22:39 Vidar Tyldum
2011-12-13  7:48 ` Ninja
2011-12-13 16:55 ` Vidar Tyldum

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=4EE79543.2080802@tyldum.com \
    --to=vidar@tyldum.com \
    --cc=linux-media@vger.kernel.org \
    --cc=marko.ristola@kolumbus.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.