From: Ninja <Ninja15@gmx.de>
To: linux-media <linux-media@vger.kernel.org>
Subject: Re: Mantis CAM not SMP safe / Activating CAM on Technisat Skystar HD2 (DVB-S2)
Date: Sat, 10 Dec 2011 00:57:33 +0100 [thread overview]
Message-ID: <4EE2A06D.7070901@gmx.de> (raw)
In-Reply-To: <4EC052CE.1080002@gmx.de>
Hi,
has anyone an idea how the SMP problems could be fixed?
I did some further investigation. When comparing the number of
interrupts with all cores enabled and the interrupts with only one core
enabled it seems like only the IRQ0 changed, the other IRQs and the
total number stays quite the same:
4 Cores:
All IRQ/sec: 493
Masked IRQ/sec: 400
Unknown IRQ/sec: 0
DMA/sec: 400
IRQ-0/sec: 143
IRQ-1/sec: 0
OCERR/sec: 0
PABRT/sec: 0
RIPRR/sec: 0
PPERR/sec: 0
FTRGT/sec: 0
RISCI/sec: 258
RACK/sec: 0
1 Core:
All IRQ/sec: 518
Masked IRQ/sec: 504
Unknown IRQ/sec: 0
DMA/sec: 504
IRQ-0/sec: 246
IRQ-1/sec: 0
OCERR/sec: 0
PABRT/sec: 0
RIPRR/sec: 0
PPERR/sec: 0
FTRGT/sec: 0
RISCI/sec: 258
RACK/sec: 0
So, where might be the problem?
I don't think the IRQ gets lost on the way from the device to the
driver, because only IRQ0 is affected.
I don't think the device or the driver is to slow because it works fine
with only one Core and it also works with
SMP when ignoring the timeout and just read the data at the time the IRQ
should have fired.
Maybe the (cam) locking is faulty (looks fine to me...).
Maybe the IRQ handler gets executed parallel on two cores which leads to
the problem. But then I think this
should be fixed when setting IRQ affinity to only core, but it didn't
help with the problem.
I hope somebody can help, because I think we are very close to a fully
functional CAM here.
I ran out of things to test to get closer to the solution :(
Btw: Is there any documentation available for the mantis PCI bridge?
Manuel
next prev parent reply other threads:[~2011-12-09 23:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-13 23:29 Mantis CAM not SMP safe / Activating CAM on Technisat Skystar HD2 (DVB-S2) Ninja
2011-12-09 23:57 ` Ninja [this message]
2011-12-12 11:08 ` Marko Ristola
2011-12-13 21:30 ` Ninja
2011-12-16 8:10 ` Ninja
-- strict thread matches above, loose matches on Subject: below --
2011-11-13 23:17 Ninja
2011-11-13 19:30 Ninja
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=4EE2A06D.7070901@gmx.de \
--to=ninja15@gmx.de \
--cc=linux-media@vger.kernel.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