List:       linux-video
Subject:    [video4linux] File system corruption and bttv
From:       steven swanson <sswanson () ups ! edu>
Date:       1998-08-05 2:21:38


So I finally got overlay mode working (it looks greats), but now I think
bttv is corrupting my filesytem.  Here is my system:
 
Here is what happened (my system info follows):

1.  I uncommented the code in bttv that fixes the triton chip set bug in
th bttv.c (around line 2400) and added declaritions for b and bo as ints.

Overlay worked fine with fbtv, but with xawtv the picture was off a bit.

2.  I tried passing vidmem=0xfe000400 to bttv, but then v4l listed my
framebuffer at 0xf7777777, so I hard coded 0xfe000400 into bttv.c on line
2393.  

Overlay was alligned fine in 1280x1024, but then I tried to change to my
1560x1170 (my prefered mode)  and it was the window again

3.  so i changed my hard coded value to 0xfe000a00.

and watched the simpsons and startrek quite happily.  But when I tried to
do something useful like loot at a file, I got a bunch of errors form
ext2.  I figured it was just quirkines in a new kernel, and I rebooted
ran fsck, and all was well again.  Watched some more simpsons.

Then all hell broke lose, fsck couldn't fix the problems that showed this
time, had to to complete reformat/reinstall.

4.  Got up and running again.  Started checking stuff sytematically.  I
managed to reproduce the problems intermittently.  They seem to occur
mostly when I am watch tv under X.  

A couple of wierd things about the file system corruption:  The xawtv-2.19
directory got completely fried boht the first time and in my systematic
testing process later.  Also files wer sometimes modified as well as just
lost, in particular the link in /dev/video -> /dev/video0 became
/dev/video -> videoeo0.

Also I have taken a look at the logs.  Nothing looks out of the ordinary
or different from before when overlay mode did not work, except for the
messages about fixing the triton bug.

Any ideas?

-steve

my system:

Pentium 100
Triton chipset
xawtv 2.19 and experimental bttv drivers
kernel 2.1.110
hauppauge 401 with bttv878
Matrox Millinium II 8Megs 
X11 2.3.3
2 Ide hard drives on the first controller, and cdrom on the second.

from proc/pci

PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Intel 82437 (rev 2).
      Medium devsel.  Master Capable.  Latency=64.  
  Bus  0, device   7, function  0:
    ISA bridge: Intel 82371FB PIIX ISA (rev 2).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  No
bursts.  
  Bus  0, device  14, function  0:
    Multimedia video controller: Brooktree Unknown device (rev 2).
      Vendor id=109e. Device id=36e.
      Medium devsel.  Fast back-to-back capable.  IRQ a.  Master Capable.
Latency=66.  Min Gnt=16.Max Lat=40.
      Prefetchable 32 bit memory at 0xfffbe000 [0xfffbe008].
  Bus  0, device  14, function  1:
    Multimedia controller: Brooktree Unknown device (rev 2).
      Vendor id=109e. Device id=878.
      Medium devsel.  Fast back-to-back capable.  IRQ a.  Master Capable.
Latency=66.  Min Gnt=4.Max Lat=255.
      Prefetchable 32 bit memory at 0xfffbf000 [0xfffbf008].
  Bus  0, device  15, function  0:
    VGA compatible controller: Matrox Millennium II (rev 0).
      Medium devsel.  Fast back-to-back capable.  IRQ b.  Master Capable.
Latency=64.  
      Prefetchable 32 bit memory at 0xfe000000 [0xfe000008].
      Non-prefetchable 32 bit memory at 0xffbec000 [0xffbec000].
      Non-prefetchable 32 bit memory at 0xff000000 [0xff000000].


------------
To unsubscribe from this list send mail to majordomo@phunk.org with the
line "unsubscribe video4linux" without the quotes in the body of the
message.

List:       linux-video
Subject:    Re: [video4linux] File system corruption and bttv
From:       Brian Craft <bcboy () dorothy ! wanglab ! brandeis ! edu>
Date:       1998-08-05 5:46:18

Perhaps try the patch I posted instead of the concurrency workaround.
It turns on "430FX" mode on the bt878, instead of messing with the bus
settings.

I know nothing about how the two approaches differ, but I've watched a
3hr movie & a few B5 episodes w/o any problems.

btw, I'm using 2.0.34, so maybe it's a 2.1.x problem you're seeing.

b.c.
------------
To unsubscribe from this list send mail to majordomo@phunk.org with the
line "unsubscribe video4linux" without the quotes in the body of the
message.

List:       linux-video
Subject:    Re: [video4linux] File system corruption and bttv
From:       Ralph Metzler < rjkm () thp ! uni-koeln ! de>
Date:       1998-08-05 9:22:57

Brian Craft writes:
 > Perhaps try the patch I posted instead of the concurrency workaround.
 > It turns on "430FX" mode on the bt878, instead of messing with the bus
 > settings.

Yes, definitely.
I used the concurrency workaround before I knew about the ETBF bit.
It was not documented in the Bt848 manual, only in the Bt848A/Bt849 manual
which appeared much later.
I will add your Bt878 patch (and a lot of others) to the bttv distribution
as soon as I can.
I was a little busy with other things during the last weeks.

Ralph
------------
To unsubscribe from this list send mail to majordomo@phunk.org with the
line "unsubscribe video4linux" without the quotes in the body of the
message.