public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@bytesex.org>
To: Gregoire Favre <Gregoire.Favre@freesurf.ch>
Cc: Grzegorz Kulewski <kangur@polcom.net>,
	Con Kolivas <kernel@kolivas.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Why my computer freeze completely with xawtv ?
Date: Mon, 8 Nov 2004 22:28:32 +0100	[thread overview]
Message-ID: <20041108212832.GB4217@bytesex> (raw)
In-Reply-To: <20041108185249.GK5360@magma.epfl.ch>

On Mon, Nov 08, 2004 at 07:52:49PM +0100, Gregoire Favre wrote:
> On Mon, Nov 08, 2004 at 10:17:39AM +0100, Gerd Knorr wrote:
> 
> > Well, if it happens almost independant of the kernel/driver version it
> > most likely is buggy hardware.  I can't do much about it ...
> 
> ? Why couldn't it be a bug present in all kernels/drivers ?

bttv runs rock solid for many people.  Well, at least most versions,
some *are* buggy.  I'm not perfect after all ;)

> > Well known example are some via chipsets which have trouble with
> > multiple devices doing DMA at the same time (those tend to run stable
> > with bttv once you've turned off ide-dma ...).
> 
> I had those xawtv crash with an SCSI only system, and on all my
> MB/CPU/RAM test I doubt that all hardware configuration were buggy.

The point isn't IDE, the point is two devices doing DMA at the same
time.  The usual system diagnose tools don't do that btw, they test one
device after another.  For simliar reasons memtest may run perfectly
fine and neverless gcc segfaults on kernel builds due to bad RAM ...

What most people see is that the machine freezes are much more likely as
soon as they do disk I/O in parallel to watching TV.  It doesn't really
matter whenever the IDE controller or the SCSI hostadapter does the DMA.

PCI-PCI transfers (i.e. DMA from bt878 to graphics card for overlay) are
another case which often broken in chipsets.

> I only have DVB hardware, is that also considered as bttv ?

Full-featured DVB cards (i.e. those with hardware mpeg decoder) do
things compareble to b878.

> Some things I have noticed : xawtv and kdetv don't need CPU to achieve
> the best quality I know about BUT they make the system crash.
> kvdr and tvtime needs lots of time and there quality are really lower
> than the two others, BUT they don't crash my system.

Then it's likely the PCI-PCI transfers which kill the system.

Try switching xawtv into grabdisplay mode, it most likely shows the
same behavior like tvtime then, i.e. eat CPU time and don't crash the
machine.  Thats simply the fact that PCI-PCI transfers are not used
then.  And it's almost certainly not a driver bug then, the driver
just has to setup stuff once and then let the hardware run on its
own (which sometimes has the funny effect that the video overlay
continues to run even after a kernel panic ;)

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)

  reply	other threads:[~2004-11-08 21:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-07 22:46 Why my computer freeze completely with xawtv ? Gregoire Favre
2004-11-07 23:53 ` Con Kolivas
2004-11-08  0:02   ` Gregoire Favre
2004-11-08  0:08     ` Con Kolivas
2004-11-08  0:33       ` Gregoire Favre
2004-11-08  0:37         ` Con Kolivas
2004-11-08  0:41           ` Gregoire Favre
2004-11-08  8:30           ` Grzegorz Kulewski
2004-11-08  9:08             ` Arnd Bergmann
2004-11-08  9:17             ` Gerd Knorr
2004-11-08 11:04               ` Grzegorz Kulewski
2004-11-08 18:52               ` Gregoire Favre
2004-11-08 21:28                 ` Gerd Knorr [this message]
2004-11-08 20:57             ` Olaf Titz
2004-11-08 23:45               ` Gerd Knorr
2004-11-09 20:10                 ` Olaf Titz
2004-11-09 20:40                   ` Valdis.Kletnieks
2004-11-11 21:56                     ` Olaf Titz

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=20041108212832.GB4217@bytesex \
    --to=kraxel@bytesex.org \
    --cc=Gregoire.Favre@freesurf.ch \
    --cc=kangur@polcom.net \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@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