linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (no subject)
@ 2003-12-26 20:20 caszonyi
  2003-12-26 22:27 ` your mail Linus Torvalds
  2003-12-26 22:28 ` panic in bttv_risc_planar Martin J. Bligh
  0 siblings, 2 replies; 9+ messages in thread
From: caszonyi @ 2003-12-26 20:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: kraxel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 245 bytes --]

Hi

I was trying to capture a tv program  with mencoder when the oops occured
a couple  of hours later the system froze without leaving a single trace
in logs. I was able to reboot with SysRq.

Programs versions, config and dmesg are attached.


[-- Attachment #2: Type: TEXT/PLAIN, Size: 772 bytes --]

If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Linux grinch 2.6.0 #3 Fri Dec 19 23:02:04 EET 2003 i686 unknown
 
Gnu C                  3.2.3
Gnu make               3.80
util-linux             2.11z
mount                  2.11z
module-init-tools      0.9.9
e2fsprogs              1.32
jfsutils               1.1.4
reiserfsprogs          3.6.4
xfsprogs               2.3.5
quota-tools            3.08.
PPP                    2.4.1
nfs-utils              1.0.4
Dynamic linker (ldd)   2.3.1
Linux C++ Library      5.0.3
Procps                 3.1.8
Net-tools              1.60
Kbd                    1.08
Sh-utils               2.0
Modules Loaded         

[-- Attachment #3: Type: TEXT/PLAIN, Size: 10207 bytes --]

Dec 26 17:57:21 grinch -- MARK --
Dec 26 17:59:08 grinch kernel: Unable to handle kernel paging request at virtual address c4bea00c
Dec 26 17:59:08 grinch kernel:  printing eip:
Dec 26 17:59:08 grinch kernel: c0333f60
Dec 26 17:59:08 grinch kernel: *pde = 00011067
Dec 26 17:59:08 grinch kernel: *pte = 04bea000
Dec 26 17:59:08 grinch kernel: Oops: 0000 [#1]
Dec 26 17:59:08 grinch kernel: CPU:    0
Dec 26 17:59:08 grinch kernel: EIP:    0060:[<c0333f60>]    Not tainted
Dec 26 17:59:08 grinch kernel: EFLAGS: 00210206
Dec 26 17:59:08 grinch kernel: EIP is at bttv_risc_planar+0x140/0x2c0
Dec 26 17:59:08 grinch kernel: eax: 00000000   ebx: 00001000   ecx: 00000000   edx: c4bea000
Dec 26 17:59:08 grinch kernel: esi: 00001000   edi: c4be9a20   ebp: 00000b64   esp: c5455b50
Dec 26 17:59:08 grinch kernel: ds: 007b   es: 007b   ss: 0068
Dec 26 17:59:08 grinch kernel: Process mencoder (pid: 572, threadinfo=c5454000 task=c6ca2040)
Dec 26 17:59:08 grinch kernel: Stack: cfe40000 c56df6a8 000020bc 00000000 c4bea000 c4be9810 c68e98a4 00000000 
Dec 26 17:59:08 grinch kernel:        0000039c 0000011f 000820ce 00081f00 c56df600 000a26c0 c0335197 c0556e00 
Dec 26 17:59:08 grinch kernel:        c56df6a8 c4be9000 0000039c 0000039c 0000039c 00000120 0000088e 0000004e 
Dec 26 17:59:08 grinch kernel: Call Trace:
Dec 26 17:59:08 grinch kernel:  [<c0335197>] bttv_buffer_risc+0x1f7/0x6a0
Dec 26 17:59:08 grinch kernel:  [<c032d7f0>] bttv_prepare_buffer+0xf0/0x190
Dec 26 17:59:08 grinch kernel:  [<c032d952>] buffer_prepare+0x42/0x50
Dec 26 17:59:08 grinch kernel:  [<c033ea8f>] videobuf_qbuf+0xbf/0x160
Dec 26 17:59:08 grinch kernel:  [<c032fe91>] bttv_do_ioctl+0x11e1/0x14e0
Dec 26 17:59:08 grinch kernel:  [<c012572b>] update_wall_time+0xb/0x40
Dec 26 17:59:08 grinch kernel:  [<c0125b9f>] do_timer+0xdf/0xf0
Dec 26 17:59:08 grinch kernel:  [<c0138f21>] mempool_alloc+0x91/0x180
Dec 26 17:59:08 grinch kernel:  [<c0138f21>] mempool_alloc+0x91/0x180
Dec 26 17:59:08 grinch kernel:  [<c011b840>] autoremove_wake_function+0x0/0x50
Dec 26 17:59:08 grinch kernel:  [<c013e9cc>] mark_page_accessed+0x2c/0x40
Dec 26 17:59:08 grinch kernel:  [<c011a181>] __wake_up_common+0x31/0x50
Dec 26 17:59:08 grinch kernel:  [<c011a181>] __wake_up_common+0x31/0x50
Dec 26 17:59:08 grinch kernel:  [<c02ce732>] n_tty_receive_buf+0x192/0xff0
Dec 26 17:59:08 grinch kernel:  [<c01699aa>] d_splice_alias+0x4a/0x110
Dec 26 17:59:08 grinch kernel:  [<c02d1421>] pty_write+0x1a1/0x1b0
Dec 26 17:59:08 grinch kernel:  [<c0118fd8>] kernel_map_pages+0x28/0x90
Dec 26 17:59:08 grinch kernel:  [<c013a50c>] __alloc_pages+0x35c/0x3b0
Dec 26 17:59:08 grinch kernel:  [<c0329d28>] video_usercopy+0xd8/0x1d0
Dec 26 17:59:08 grinch kernel:  [<c0145824>] do_mmap_pgoff+0x434/0x710
Dec 26 17:59:08 grinch kernel:  [<c03301ce>] bttv_ioctl+0x3e/0x70
Dec 26 17:59:08 grinch kernel:  [<c032ecb0>] bttv_do_ioctl+0x0/0x14e0
Dec 26 17:59:08 grinch kernel:  [<c0163e33>] sys_ioctl+0xf3/0x280
Dec 26 17:59:08 grinch kernel:  [<c0109367>] syscall_call+0x7/0xb
Dec 26 17:59:08 grinch kernel: 
Dec 26 17:59:08 grinch kernel: Code: 8b 52 0c 39 54 24 5c 89 54 24 0c 89 d0 73 e4 8b 4c 24 20 89 
Dec 26 17:59:23 grinch kernel:  <1>Unable to handle kernel paging request at virtual address c4bea00c
Dec 26 17:59:23 grinch kernel:  printing eip:
Dec 26 17:59:23 grinch kernel: c0333f60
Dec 26 17:59:23 grinch kernel: *pde = 00011067
Dec 26 17:59:23 grinch kernel: *pte = 04bea000
Dec 26 17:59:23 grinch kernel: Oops: 0000 [#2]
Dec 26 17:59:23 grinch kernel: CPU:    0
Dec 26 17:59:23 grinch kernel: EIP:    0060:[<c0333f60>]    Not tainted
Dec 26 17:59:23 grinch kernel: EFLAGS: 00210206
Dec 26 17:59:23 grinch kernel: EIP is at bttv_risc_planar+0x140/0x2c0
Dec 26 17:59:23 grinch kernel: eax: 00000000   ebx: 00001000   ecx: 00000000   edx: c4bea000
Dec 26 17:59:23 grinch kernel: esi: 00001000   edi: c4be9a20   ebp: 00000b64   esp: c5455b50
Dec 26 17:59:23 grinch kernel: ds: 007b   es: 007b   ss: 0068
Dec 26 17:59:23 grinch kernel: Process mencoder (pid: 573, threadinfo=c5454000 task=c6ca2660)
Dec 26 17:59:23 grinch kernel: Stack: cfe40000 c56df2e8 000020bc 00000000 c4bea000 c4be9810 c68e98a4 00000000 
Dec 26 17:59:23 grinch kernel:        0000039c 0000011f 000820ce 00081f00 c56df240 000a26c0 c0335197 c0556e00 
Dec 26 17:59:23 grinch kernel:        c56df2e8 c4be9000 0000039c 0000039c 0000039c 00000120 0000088e 0000004e 
Dec 26 17:59:23 grinch kernel: Call Trace:
Dec 26 17:59:23 grinch kernel:  [<c0335197>] bttv_buffer_risc+0x1f7/0x6a0
Dec 26 17:59:23 grinch kernel:  [<c032d7f0>] bttv_prepare_buffer+0xf0/0x190
Dec 26 17:59:23 grinch kernel:  [<c032d952>] buffer_prepare+0x42/0x50
Dec 26 17:59:23 grinch kernel:  [<c033ea8f>] videobuf_qbuf+0xbf/0x160
Dec 26 17:59:23 grinch kernel:  [<c032fe91>] bttv_do_ioctl+0x11e1/0x14e0
Dec 26 17:59:23 grinch kernel:  [<c012572b>] update_wall_time+0xb/0x40
Dec 26 17:59:23 grinch kernel:  [<c0125b9f>] do_timer+0xdf/0xf0
Dec 26 17:59:23 grinch kernel:  [<c01094d4>] common_interrupt+0x18/0x20
Dec 26 17:59:23 grinch kernel:  [<c01142d4>] delay_tsc+0x14/0x20
Dec 26 17:59:23 grinch kernel:  [<c02b4132>] __delay+0x12/0x20
Dec 26 17:59:23 grinch kernel:  [<c036b2a4>] i2c_outb+0x104/0x2f0
Dec 26 17:59:23 grinch kernel:  [<c0163b3f>] kill_fasync+0x2f/0x70
Dec 26 17:59:23 grinch kernel:  [<c02ce732>] n_tty_receive_buf+0x192/0xff0
Dec 26 17:59:23 grinch kernel:  [<c036b14e>] i2c_stop+0x9e/0xf0
Dec 26 17:59:23 grinch kernel:  [<c0163b3f>] kill_fasync+0x2f/0x70
Dec 26 17:59:23 grinch kernel:  [<c02ce732>] n_tty_receive_buf+0x192/0xff0
Dec 26 17:59:23 grinch kernel:  [<c036616d>] i2c_master_send+0x6d/0xc0
Dec 26 17:59:23 grinch kernel:  [<c033cd2d>] set_tv_freq+0x11d/0x280
Dec 26 17:59:23 grinch kernel:  [<c02d1421>] pty_write+0x1a1/0x1b0
Dec 26 17:59:23 grinch kernel:  [<c0118fd8>] kernel_map_pages+0x28/0x90
Dec 26 17:59:23 grinch kernel:  [<c013a50c>] __alloc_pages+0x35c/0x3b0
Dec 26 17:59:23 grinch kernel:  [<c0329d28>] video_usercopy+0xd8/0x1d0
Dec 26 17:59:23 grinch kernel:  [<c0145824>] do_mmap_pgoff+0x434/0x710
Dec 26 17:59:23 grinch kernel:  [<c03301ce>] bttv_ioctl+0x3e/0x70
Dec 26 17:59:23 grinch kernel:  [<c032ecb0>] bttv_do_ioctl+0x0/0x14e0
Dec 26 17:59:23 grinch kernel:  [<c0163e33>] sys_ioctl+0xf3/0x280
Dec 26 17:59:23 grinch kernel:  [<c0109367>] syscall_call+0x7/0xb
Dec 26 17:59:23 grinch kernel: 
Dec 26 17:59:23 grinch kernel: Code: 8b 52 0c 39 54 24 5c 89 54 24 0c 89 d0 73 e4 8b 4c 24 20 89 
Dec 26 17:59:36 grinch kernel:  <1>Unable to handle kernel paging request at virtual address c4bea00c
Dec 26 17:59:36 grinch kernel:  printing eip:
Dec 26 17:59:36 grinch kernel: c0333f60
Dec 26 17:59:36 grinch kernel: *pde = 00011067
Dec 26 17:59:36 grinch kernel: *pte = 04bea000
Dec 26 17:59:36 grinch kernel: Oops: 0000 [#3]
Dec 26 17:59:36 grinch kernel: CPU:    0
Dec 26 17:59:36 grinch kernel: EIP:    0060:[<c0333f60>]    Not tainted
Dec 26 17:59:36 grinch kernel: EFLAGS: 00210206
Dec 26 17:59:36 grinch kernel: EIP is at bttv_risc_planar+0x140/0x2c0
Dec 26 17:59:36 grinch kernel: eax: 00000000   ebx: 00001000   ecx: 00000000   edx: c4bea000
Dec 26 17:59:36 grinch kernel: esi: 00001000   edi: c4be9a20   ebp: 00000b64   esp: c6567b50
Dec 26 17:59:36 grinch kernel: ds: 007b   es: 007b   ss: 0068
Dec 26 17:59:36 grinch kernel: Process mencoder (pid: 575, threadinfo=c6566000 task=c6ca2c80)
Dec 26 17:59:36 grinch kernel: Stack: cfe40000 cd1cbd28 000020bc 00000000 c4bea000 c4be9810 c68e98a4 00000000 
Dec 26 17:59:36 grinch kernel:        0000039c 0000011f 000820ce 00081f00 cd1cbc80 000a26c0 c0335197 c0556e00 
Dec 26 17:59:36 grinch kernel:        cd1cbd28 c4be9000 0000039c 0000039c 0000039c 00000120 0000088e 0000004e 
Dec 26 17:59:36 grinch kernel: Call Trace:
Dec 26 17:59:36 grinch kernel:  [<c0335197>] bttv_buffer_risc+0x1f7/0x6a0
Dec 26 17:59:36 grinch kernel:  [<c032d7f0>] bttv_prepare_buffer+0xf0/0x190
Dec 26 17:59:36 grinch kernel:  [<c032d952>] buffer_prepare+0x42/0x50
Dec 26 17:59:36 grinch kernel:  [<c033ea8f>] videobuf_qbuf+0xbf/0x160
Dec 26 17:59:36 grinch kernel:  [<c032fe91>] bttv_do_ioctl+0x11e1/0x14e0
Dec 26 17:59:36 grinch kernel:  [<c01198d6>] scheduler_tick+0x226/0x4a0
Dec 26 17:59:36 grinch kernel:  [<c01258c6>] update_process_times+0x46/0x60
Dec 26 17:59:36 grinch kernel:  [<c0125a10>] run_timer_softirq+0x110/0x1b0
Dec 26 17:59:36 grinch kernel:  [<c0125b9f>] do_timer+0xdf/0xf0
Dec 26 17:59:36 grinch kernel:  [<c0119120>] recalc_task_prio+0x90/0x1a0
Dec 26 17:59:36 grinch kernel:  [<c01192ce>] try_to_wake_up+0x9e/0x160
Dec 26 17:59:36 grinch kernel:  [<c01192ce>] try_to_wake_up+0x9e/0x160
Dec 26 17:59:36 grinch kernel:  [<c011a181>] __wake_up_common+0x31/0x50
Dec 26 17:59:36 grinch kernel:  [<c02ce732>] n_tty_receive_buf+0x192/0xff0
Dec 26 17:59:36 grinch kernel:  [<c01258c6>] update_process_times+0x46/0x60
Dec 26 17:59:36 grinch kernel:  [<c010b1f7>] do_IRQ+0x107/0x140
Dec 26 17:59:36 grinch kernel:  [<c02d1421>] pty_write+0x1a1/0x1b0
Dec 26 17:59:36 grinch kernel:  [<c0119120>] recalc_task_prio+0x90/0x1a0
Dec 26 17:59:36 grinch kernel:  [<c01192ce>] try_to_wake_up+0x9e/0x160
Dec 26 17:59:36 grinch kernel:  [<c011a181>] __wake_up_common+0x31/0x50
Dec 26 17:59:36 grinch kernel:  [<c0329d28>] video_usercopy+0xd8/0x1d0
Dec 26 17:59:36 grinch kernel:  [<c0119bb1>] schedule+0x51/0x570
Dec 26 17:59:36 grinch kernel:  [<c03301ce>] bttv_ioctl+0x3e/0x70
Dec 26 17:59:36 grinch kernel:  [<c032ecb0>] bttv_do_ioctl+0x0/0x14e0
Dec 26 17:59:36 grinch kernel:  [<c0163e33>] sys_ioctl+0xf3/0x280
Dec 26 17:59:36 grinch kernel:  [<c010dbf2>] do_syscall_trace+0x42/0x90
Dec 26 17:59:36 grinch kernel:  [<c0109367>] syscall_call+0x7/0xb
Dec 26 17:59:36 grinch kernel: 
Dec 26 17:59:36 grinch kernel: Code: 8b 52 0c 39 54 24 5c 89 54 24 0c 89 d0 73 e4 8b 4c 24 20 89 
Dec 26 18:17:21 grinch -- MARK --
Dec 26 18:37:21 grinch -- MARK --
Dec 26 18:57:21 grinch -- MARK --
Dec 26 19:17:21 grinch -- MARK --
Dec 26 19:37:21 grinch -- MARK --
Dec 26 19:57:21 grinch -- MARK --
Dec 26 20:17:21 grinch -- MARK --
Dec 26 20:37:21 grinch -- MARK --
Dec 26 20:47:02 grinch syslogd 1.4.1: restart.


[-- Attachment #4: Type: TEXT/PLAIN, Size: 10850 bytes --]

Linux version 2.6.0 (root@grinch) (gcc version 3.2.3) #3 Fri Dec 19 23:02:04 EET 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
 BIOS-e820: 000000000fff0000 - 000000000fff3000 (ACPI NVS)
 BIOS-e820: 000000000fff3000 - 0000000010000000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
255MB LOWMEM available.
On node 0 totalpages: 65520
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 61424 pages, LIFO batch:14
  HighMem zone: 0 pages, LIFO batch:1
DMI not present.
Building zonelist for node : 0
Kernel command line: BOOT_IMAGE=k260 ro root=306 psmouse_noext nmi_watchdog=2
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 700.411 MHz processor.
Console: colour VGA+ 132x25
Memory: 253804k/262080k available (3093k kernel code, 7548k reserved, 842k data, 356k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1372.16 BogoMIPS
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU:     After generic identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:     After vendor identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU:     After all inits, caps: 0183fbf7 c1c7fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Duron(tm) Processor stepping 01
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
testing NMI watchdog ... OK.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 699.0952 MHz.
..... host bus clock speed is 199.0986 MHz.
NET: Registered protocol family 16
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: the driver 'system' has been registered
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fbdf0
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xbe20, dseg 0xf0000
pnp: match found with the PnP device '00:07' and the driver 'system'
pnp: match found with the PnP device '00:08' and the driver 'system'
pnp: match found with the PnP device '00:0b' and the driver 'system'
pnp: 00:0b: ioport range 0x208-0x20f has been reserved
PnPBIOS: 16 nodes reported by PnP BIOS; 16 recorded by driver
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Disabling VIA memory write queue (PCI ID 0305, rev 02): [55] 81 & 1f -> 01
PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
Coda Kernel/Venus communications, v6.0.0, coda@cs.cmu.edu
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
udf: registering filesystem
SGI XFS for Linux with ACLs, no debug enabled
isapnp: Scanning for PnP cards...
isapnp: Card 'Crystal Codec'
isapnp: 1 Plug & Play card detected total
pty: 512 Unix98 ptys configured
request_module: failed /sbin/modprobe -- parport_lowlevel. error = -16
lp: driver loaded but no devices found
Real Time Clock Driver v1.12
Non-volatile memory driver v1.2
ppdev: user-space parallel port driver
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 128M @ 0xd0000000
[drm] Initialized radeon 1.9.0 20020828 on minor 0
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
pnp: the driver 'serial' has been registered
pnp: match found with the PnP device '00:0d' and the driver 'serial'
pnp: match found with the PnP device '00:0e' and the driver 'serial'
pnp: the driver 'parport_pc' has been registered
pnp: match found with the PnP device '00:10' and the driver 'parport_pc'
parport0: PC-style at 0x3bc (0x7bc) [PCSPP,TRISTATE]
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
lp0: using parport0 (polling).
lp0: console ready
parport_pc: Via 686A parallel port: io=0x3BC
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
spurious 8259A interrupt: IRQ7.
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 10 for device 0000:00:08.0
eth0: RealTek RTL8139 at 0xd0883000, 00:40:f4:72:99:b3, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
PCI: Found IRQ 11 for device 0000:00:0a.0
eth1: RealTek RTL8139 at 0xd0885000, 00:40:f4:74:6d:fb, IRQ 11
eth1:  Identified 8139 chip type 'RTL-8100B/8139D'
Linux video capture interface: v1.00
bttv: driver version 0.9.12 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
PCI: Found IRQ 9 for device 0000:00:09.0
PCI: Sharing IRQ 9 with 0000:00:09.1
bttv0: Bt878 (rev 2) at 0000:00:09.0, irq: 9, latency: 32, mmio: 0xe2001000
bttv0: detected: AVermedia TVCapture 98 [card=13], PCI subsystem ID is 1461:0002
bttv0: using: AVerMedia TVCapture 98 [card=13,autodetected]
bttv0: Hauppauge/Voodoo msp34xx: reset line init [11]
bttv0: Avermedia eeprom[0x4011]: tuner=5 radio:no remote control:yes
bttv0: using tuner=5
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for MSP34xx (alternate address) @ 0x88... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
tvaudio: TV audio decoder + audio/video mux driver
tvaudio: known chips: tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54 (PV951),ta8874z
tuner: chip found @ 0xc2
tuner: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
registering 0-0061
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci0000:00:07.1
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 2F040J0, ATA DISK drive
hdb: SONY CDU4811, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: TEAC CD-W552E, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(66)
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 >
end_request: I/O error, dev hdb, sector 0
hdb: ATAPI 48X CD-ROM drive, 120kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
end_request: I/O error, dev hdc, sector 0
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
mice: PS/2 mouse device common for all mice
input: PC Speaker
input: PS/2 Generic Mouse on isa0060/serio1
serio: i8042 AUX port at 0x60,0x64 irq 12
input: AT Translated Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
i2c /dev entries driver
tuner: type already set (5)
registering 0-0050
tuner: type already set (5)
registering 0-0051
tuner: type already set (5)
registering 0-0052
tuner: type already set (5)
registering 0-0053
tuner: type already set (5)
registering 0-0054
tuner: type already set (5)
registering 0-0055
tuner: type already set (5)
registering 0-0056
tuner: type already set (5)
registering 0-0057
registering 1-0050
registering 1-0051
pnp: the driver 'cs4232' has been registered
pnp: match found with the PnP device '01:01.00' and the driver 'cs4232'
pnp: Device 01:01.00 activated.
<Crystal audio controller (CS4239)> at 0x534 irq 5 dma 1,0
ad1848: Interrupt test failed (IRQ5)
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
ad1848: No ISAPnP cards found, trying standard ones...
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
btaudio: driver version 0.7 loaded [digital+analog]
PCI: Found IRQ 9 for device 0000:00:09.1
PCI: Sharing IRQ 9 with 0000:00:09.0
btaudio: Bt878 (rev 2) at 00:09.1, irq: 9, latency: 32, mmio: 0xe2002000
btaudio: using card config "default"
btaudio: registered device dsp1 [digital]
btaudio: registered device dsp2 [analog]
btaudio: registered device mixer1
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
IPv4 over IPv4 tunneling driver
ip_conntrack version 2.1 (2047 buckets, 16376 max) - 300 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
You didn't specify the type of your ufs filesystem

mount -t ufs -o ufstype=sun|sunx86|44bsd|old|hp|nextstep|netxstep-cd|openstep ...

>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
ufs_read_super: bad magic number
UDF-fs DEBUG fs/udf/lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not supported: rc=-22
UDF-fs DEBUG fs/udf/super.c:1544:udf_fill_super: Multi-session=0
UDF-fs DEBUG fs/udf/super.c:532:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs: No VRS found
VFS: Mounted root (jfs filesystem) readonly.
Freeing unused kernel memory: 356k freed
Adding 530104k swap on /dev/hda7.  Priority:-1 extents:1
eth0: link down
eth1: link down

[-- Attachment #5: Type: TEXT/PLAIN, Size: 6670 bytes --]

CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y

CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN=y
CONFIG_BROKEN_ON_SMP=y

CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=16
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y

CONFIG_X86_PC=y
CONFIG_MK7=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_USE_3DNOW=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_PREEMPT=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
CONFIG_X86_CPUID=y
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y

CONFIG_PM=y


CONFIG_APM=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_RTC_IS_GMT=y


CONFIG_PCI=y
CONFIG_PCI_GODIRECT=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
CONFIG_ISA=y

CONFIG_BINFMT_ELF=y




CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_CML1=y
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_PC_SUPERIO=y
CONFIG_PARPORT_1284=y

CONFIG_PNP=y
CONFIG_PNP_DEBUG=y

CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y

CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y

CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_IDE_TASKFILE_IO=y

CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y







CONFIG_NET=y

CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_NETLINK_DEV=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_NET_IPIP=y
CONFIG_ARPD=y

CONFIG_NETFILTER=y

CONFIG_IP_NF_CONNTRACK=y
CONFIG_IP_NF_FTP=y
CONFIG_IP_NF_IRC=y
CONFIG_IP_NF_TFTP=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_LIMIT=y
CONFIG_IP_NF_MATCH_IPRANGE=y
CONFIG_IP_NF_MATCH_MAC=y
CONFIG_IP_NF_MATCH_PKTTYPE=y
CONFIG_IP_NF_MATCH_MARK=y
CONFIG_IP_NF_MATCH_MULTIPORT=y
CONFIG_IP_NF_MATCH_TOS=y
CONFIG_IP_NF_MATCH_RECENT=y
CONFIG_IP_NF_MATCH_ECN=y
CONFIG_IP_NF_MATCH_DSCP=y
CONFIG_IP_NF_MATCH_AH_ESP=y
CONFIG_IP_NF_MATCH_LENGTH=y
CONFIG_IP_NF_MATCH_TTL=y
CONFIG_IP_NF_MATCH_TCPMSS=y
CONFIG_IP_NF_MATCH_HELPER=y
CONFIG_IP_NF_MATCH_STATE=y
CONFIG_IP_NF_MATCH_CONNTRACK=y
CONFIG_IP_NF_MATCH_OWNER=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_NAT=y
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_IP_NF_TARGET_REDIRECT=y
CONFIG_IP_NF_TARGET_NETMAP=y
CONFIG_IP_NF_TARGET_SAME=y
CONFIG_IP_NF_NAT_LOCAL=y
CONFIG_IP_NF_NAT_SNMP_BASIC=y
CONFIG_IP_NF_NAT_IRC=y
CONFIG_IP_NF_NAT_FTP=y
CONFIG_IP_NF_NAT_TFTP=y
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_TOS=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_IP_NF_TARGET_DSCP=y
CONFIG_IP_NF_TARGET_MARK=y
CONFIG_IP_NF_TARGET_CLASSIFY=y
CONFIG_IP_NF_TARGET_LOG=y
CONFIG_IP_NF_TARGET_ULOG=y
CONFIG_IP_NF_TARGET_TCPMSS=y
CONFIG_IP_NF_ARPTABLES=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_XFRM=y

CONFIG_IPV6_SCTP__=y


CONFIG_NETDEVICES=y


CONFIG_NET_ETHERNET=y
CONFIG_MII=y

CONFIG_NET_PCI=y
CONFIG_8139TOO=y


CONFIG_PPP=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y


CONFIG_SHAPER=y







CONFIG_INPUT=y

CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768

CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y

CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=y

CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y

CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_MULTIPORT=y
CONFIG_SERIAL_8250_RSA=y

CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=512
CONFIG_PRINTER=y
CONFIG_LP_CONSOLE=y
CONFIG_PPDEV=y

CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y

CONFIG_I2C_ALGOBIT=y

CONFIG_I2C_VIA=y
CONFIG_I2C_VIAPRO=y

CONFIG_I2C_SENSOR=y
CONFIG_SENSORS_EEPROM=y
CONFIG_SENSORS_VIA686A=y



CONFIG_NVRAM=y
CONFIG_RTC=y

CONFIG_AGP=y
CONFIG_AGP_VIA=y
CONFIG_DRM=y
CONFIG_DRM_RADEON=y

CONFIG_VIDEO_DEV=y


CONFIG_VIDEO_BT848=y


CONFIG_VIDEO_TUNER=y
CONFIG_VIDEO_BUF=y
CONFIG_VIDEO_BTCX=y

CONFIG_VIDEO_SELECT=y

CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y

CONFIG_SOUND=y


CONFIG_SOUND_PRIME=y
CONFIG_SOUND_BT878=y
CONFIG_SOUND_OSS=y
CONFIG_SOUND_TRACEINIT=y
CONFIG_SOUND_DMAP=y
CONFIG_SOUND_CS4232=y
CONFIG_SOUND_YM3812=y
CONFIG_SOUND_TVMIXER=y


CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_JBD=y
CONFIG_FS_MBCACHE=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_DEBUG=y
CONFIG_FS_POSIX_ACL=y
CONFIG_XFS_FS=y
CONFIG_XFS_POSIX_ACL=y

CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=y
CONFIG_UDF_FS=y

CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y

CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_DEVPTS_FS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y

CONFIG_UFS_FS=y

CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
CONFIG_SMB_FS=y
CONFIG_CODA_FS=y
CONFIG_CODA_FS_OLD_API=y

CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_SMB_NLS=y
CONFIG_NLS=y

CONFIG_NLS_DEFAULT="iso8859-2"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
CONFIG_NLS_CODEPAGE_1250=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_UTF8=y


CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_PAGEALLOC=y
CONFIG_X86_EXTRA_IRQS=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y



CONFIG_CRC32=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_PC=y

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: your mail
  2003-12-26 20:20 caszonyi
@ 2003-12-26 22:27 ` Linus Torvalds
  2004-01-05 10:59   ` Gerd Knorr
  2003-12-26 22:28 ` panic in bttv_risc_planar Martin J. Bligh
  1 sibling, 1 reply; 9+ messages in thread
From: Linus Torvalds @ 2003-12-26 22:27 UTC (permalink / raw)
  To: caszonyi; +Cc: linux-kernel, kraxel



On Fri, 26 Dec 2003 caszonyi@rdslink.ro wrote:
> 
> I was trying to capture a tv program  with mencoder when the oops occured
> a couple  of hours later the system froze without leaving a single trace
> in logs. I was able to reboot with SysRq.
> 
> Programs versions, config and dmesg are attached.

Looks like this loop:

		....
                        while (voffset >= sg_dma_len(vsg)) {
                                voffset -= sg_dma_len(vsg);
                                vsg++;
                        }
		....

and in particular, it's the "sg_dma_len()" access that oopses, apparently 
because vsg was stale to begin with, or because it incremented past the 
last pointer.

The pointer that fails (0xc4bea00c) looks reasonable, so it's almost
certainly due to CONFIG_PAGE_DEBUG showing some kind of use-after-free
problem (ie the pointer is stale, and the memory has already been freed).

I suspect the problem is that 

	"voffset >= sg_dma_len(vsg)"

test: if "voffset" is _exactly_ the same as sg_dma_len(), then we will 
test one more iteration (when "voffset" is 0), and that iteration may be 
past the end of the "vsg" array.

I suspect the fix might be to change the test to

	"voffset && voffset >= sg_dma_len(vsg)"

to make sure that we never access vsg past the end of the array.
		

		Linus

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-26 20:20 caszonyi
  2003-12-26 22:27 ` your mail Linus Torvalds
@ 2003-12-26 22:28 ` Martin J. Bligh
  2003-12-27  0:47   ` caszonyi
  1 sibling, 1 reply; 9+ messages in thread
From: Martin J. Bligh @ 2003-12-26 22:28 UTC (permalink / raw)
  To: Calin Szonyi, linux-kernel; +Cc: kraxel

> Dec 26 17:59:08 grinch kernel: EIP is at bttv_risc_planar+0x140/0x2c0

If you could take the vmlinux binary and do "gdb vmlinux", then
"disassemble bttv_risc_planar" and post all the output, that'd help.

Or ideally, recompile with -g, and use addr2line to find out exactly
what it was.

M.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-26 22:28 ` panic in bttv_risc_planar Martin J. Bligh
@ 2003-12-27  0:47   ` caszonyi
  2003-12-27  4:28     ` Martin J. Bligh
  2003-12-27  4:30     ` Martin J. Bligh
  0 siblings, 2 replies; 9+ messages in thread
From: caszonyi @ 2003-12-27  0:47 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel, kraxel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 697 bytes --]

On Fri, 26 Dec 2003, Martin J. Bligh wrote:

> > Dec 26 17:59:08 grinch kernel: EIP is at bttv_risc_planar+0x140/0x2c0
>
> If you could take the vmlinux binary and do "gdb vmlinux", then
> "disassemble bttv_risc_planar" and post all the output, that'd help.
>

i did this but _after_ i recompiled the kernel with debug info
(CONFIG_DEBUG_INFO=y)

The result is attached


> Or ideally, recompile with -g, and use addr2line to find out exactly
> what it was.
>

I'm not familiar with addr2line :-(
I was trying this command line(the result is below):
 //usr/src/linux-2.6.0 $ addr2line -e ./vmlinux 320
??:0

I obtain the same result if i use 0x140 instead of 320 (320 is decimal
for 0x140)

> M.
>

[-- Attachment #2: Type: TEXT/PLAIN, Size: 13108 bytes --]

GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-slackware-linux"...
Dump of assembler code for function bttv_risc_planar:
0xc0333d20 <bttv_risc_planar>:	push   %ebp
0xc0333d21 <bttv_risc_planar+1>:	push   %edi
0xc0333d22 <bttv_risc_planar+2>:	push   %esi
0xc0333d23 <bttv_risc_planar+3>:	push   %ebx
0xc0333d24 <bttv_risc_planar+4>:	sub    $0x28,%esp
0xc0333d27 <bttv_risc_planar+7>:	mov    0x4c(%esp,1),%eax
0xc0333d2b <bttv_risc_planar+11>:	mov    0x54(%esp,1),%edx
0xc0333d2f <bttv_risc_planar+15>:	imul   0x54(%esp,1),%eax
0xc0333d34 <bttv_risc_planar+20>:	mov    0x40(%esp,1),%ecx
0xc0333d38 <bttv_risc_planar+24>:	mov    0x48(%esp,1),%edi
0xc0333d3c <bttv_risc_planar+28>:	mov    0x58(%esp,1),%ebp
0xc0333d40 <bttv_risc_planar+32>:	mov    %ecx,0x4(%esp,1)
0xc0333d44 <bttv_risc_planar+36>:	add    %eax,%eax
0xc0333d46 <bttv_risc_planar+38>:	shr    $0xc,%eax
0xc0333d49 <bttv_risc_planar+41>:	lea    0x2(%edx,%eax,1),%eax
0xc0333d4d <bttv_risc_planar+45>:	mov    0x3c(%esp,1),%edx
0xc0333d51 <bttv_risc_planar+49>:	lea    (%eax,%eax,4),%eax
0xc0333d54 <bttv_risc_planar+52>:	shl    $0x2,%eax
0xc0333d57 <bttv_risc_planar+55>:	mov    %eax,0x8(%esp,1)
0xc0333d5b <bttv_risc_planar+59>:	mov    (%edx),%eax
0xc0333d5d <bttv_risc_planar+61>:	mov    %eax,(%esp,1)
0xc0333d60 <bttv_risc_planar+64>:	call   0xc033fc10 <btcx_riscmem_alloc>
0xc0333d65 <bttv_risc_planar+69>:	test   %eax,%eax
0xc0333d67 <bttv_risc_planar+71>:	js     0xc0333fb1 <bttv_risc_planar+657>
0xc0333d6d <bttv_risc_planar+77>:	mov    0x40(%esp,1),%ecx
0xc0333d71 <bttv_risc_planar+81>:	mov    0x4(%ecx),%ecx
0xc0333d74 <bttv_risc_planar+84>:	movl   $0x8000000e,(%ecx)
0xc0333d7a <bttv_risc_planar+90>:	add    $0x4,%ecx
0xc0333d7d <bttv_risc_planar+93>:	movl   $0x0,(%ecx)
0xc0333d83 <bttv_risc_planar+99>:	mov    0x54(%esp,1),%eax
0xc0333d87 <bttv_risc_planar+103>:	movl   $0x0,0x24(%esp,1)
0xc0333d8f <bttv_risc_planar+111>:	add    $0x4,%ecx
0xc0333d92 <bttv_risc_planar+114>:	mov    0x44(%esp,1),%esi
0xc0333d96 <bttv_risc_planar+118>:	cmp    %eax,0x24(%esp,1)
0xc0333d9a <bttv_risc_planar+122>:	mov    %ecx,0x18(%esp,1)
0xc0333d9e <bttv_risc_planar+126>:	mov    %esi,0x14(%esp,1)
0xc0333da2 <bttv_risc_planar+130>:	mov    %esi,0x10(%esp,1)
0xc0333da6 <bttv_risc_planar+134>:	jae    0xc0333fa4 <bttv_risc_planar+644>
0xc0333dac <bttv_risc_planar+140>:	mov    0x3c(%esp,1),%edx
0xc0333db0 <bttv_risc_planar+144>:	mov    0x3d0(%edx),%eax
0xc0333db6 <bttv_risc_planar+150>:	test   %eax,%eax
0xc0333db8 <bttv_risc_planar+152>:	je     0xc0333dcb <bttv_risc_planar+171>
0xc0333dba <bttv_risc_planar+154>:	mov    0x54(%esp,1),%eax
0xc0333dbe <bttv_risc_planar+158>:	sub    $0x4,%eax
0xc0333dc1 <bttv_risc_planar+161>:	cmp    %eax,0x24(%esp,1)
0xc0333dc5 <bttv_risc_planar+165>:	jae    0xc0333f92 <bttv_risc_planar+626>
0xc0333dcb <bttv_risc_planar+171>:	cmpl   $0x1,0x64(%esp,1)
0xc0333dd0 <bttv_risc_planar+176>:	je     0xc0333fd9 <bttv_risc_planar+697>
0xc0333dd6 <bttv_risc_planar+182>:	cmpl   $0x1,0x64(%esp,1)
0xc0333ddb <bttv_risc_planar+187>:	movl   $0x1,0x1c(%esp,1)
0xc0333de3 <bttv_risc_planar+195>:	jb     0xc0333df8 <bttv_risc_planar+216>
0xc0333de5 <bttv_risc_planar+197>:	cmpl   $0x2,0x64(%esp,1)
0xc0333dea <bttv_risc_planar+202>:	je     0xc0333fc3 <bttv_risc_planar+675>
0xc0333df0 <bttv_risc_planar+208>:	movl   $0x0,0x1c(%esp,1)
0xc0333df8 <bttv_risc_planar+216>:	mov    0x4c(%esp,1),%eax
0xc0333dfc <bttv_risc_planar+220>:	test   %eax,%eax
0xc0333dfe <bttv_risc_planar+222>:	mov    %eax,0x20(%esp,1)
0xc0333e02 <bttv_risc_planar+226>:	je     0xc0333f7a <bttv_risc_planar+602>
0xc0333e08 <bttv_risc_planar+232>:	mov    0x14(%esp,1),%edx
0xc0333e0c <bttv_risc_planar+236>:	mov    0xc(%edx),%ebx
0xc0333e0f <bttv_risc_planar+239>:	cmp    %ebx,%edi
0xc0333e11 <bttv_risc_planar+241>:	mov    %ebx,%eax
0xc0333e13 <bttv_risc_planar+243>:	jb     0xc0333e29 <bttv_risc_planar+265>
0xc0333e15 <bttv_risc_planar+245>:	addl   $0x10,0x14(%esp,1)
0xc0333e1a <bttv_risc_planar+250>:	sub    %eax,%edi
0xc0333e1c <bttv_risc_planar+252>:	mov    0x14(%esp,1),%ecx
0xc0333e20 <bttv_risc_planar+256>:	mov    0xc(%ecx),%ebx
0xc0333e23 <bttv_risc_planar+259>:	cmp    %ebx,%edi
0xc0333e25 <bttv_risc_planar+261>:	mov    %ebx,%eax
0xc0333e27 <bttv_risc_planar+263>:	jae    0xc0333e15 <bttv_risc_planar+245>
0xc0333e29 <bttv_risc_planar+265>:	mov    0xc(%esi),%eax
0xc0333e2c <bttv_risc_planar+268>:	cmp    %eax,%ebp
0xc0333e2e <bttv_risc_planar+270>:	mov    %eax,0xc(%esp,1)
0xc0333e32 <bttv_risc_planar+274>:	jb     0xc0333e46 <bttv_risc_planar+294>
0xc0333e34 <bttv_risc_planar+276>:	add    $0x10,%esi
0xc0333e37 <bttv_risc_planar+279>:	sub    %eax,%ebp
0xc0333e39 <bttv_risc_planar+281>:	mov    0xc(%esi),%edx
0xc0333e3c <bttv_risc_planar+284>:	cmp    %edx,%ebp
0xc0333e3e <bttv_risc_planar+286>:	mov    %edx,0xc(%esp,1)
0xc0333e42 <bttv_risc_planar+290>:	mov    %edx,%eax
0xc0333e44 <bttv_risc_planar+292>:	jae    0xc0333e34 <bttv_risc_planar+276>
0xc0333e46 <bttv_risc_planar+294>:	mov    0x5c(%esp,1),%eax
0xc0333e4a <bttv_risc_planar+298>:	test   %eax,%eax
0xc0333e4c <bttv_risc_planar+300>:	je     0xc0333e78 <bttv_risc_planar+344>
0xc0333e4e <bttv_risc_planar+302>:	mov    0x10(%esp,1),%ecx
0xc0333e52 <bttv_risc_planar+306>:	mov    0xc(%ecx),%eax
0xc0333e55 <bttv_risc_planar+309>:	cmp    %eax,0x5c(%esp,1)
0xc0333e59 <bttv_risc_planar+313>:	jb     0xc0333e78 <bttv_risc_planar+344>
0xc0333e5b <bttv_risc_planar+315>:	nop    
0xc0333e5c <bttv_risc_planar+316>:	lea    0x0(%esi,1),%esi
0xc0333e60 <bttv_risc_planar+320>:	addl   $0x10,0x10(%esp,1)
0xc0333e65 <bttv_risc_planar+325>:	sub    %eax,0x5c(%esp,1)
0xc0333e69 <bttv_risc_planar+329>:	je     0xc0333e78 <bttv_risc_planar+344>
0xc0333e6b <bttv_risc_planar+331>:	mov    0x10(%esp,1),%edx
0xc0333e6f <bttv_risc_planar+335>:	mov    0xc(%edx),%eax
0xc0333e72 <bttv_risc_planar+338>:	cmp    %eax,0x5c(%esp,1)
0xc0333e76 <bttv_risc_planar+342>:	jae    0xc0333e60 <bttv_risc_planar+320>
0xc0333e78 <bttv_risc_planar+344>:	mov    0x20(%esp,1),%ecx
0xc0333e7c <bttv_risc_planar+348>:	mov    %ebx,%edx
0xc0333e7e <bttv_risc_planar+350>:	sub    %edi,%edx
0xc0333e80 <bttv_risc_planar+352>:	lea    (%ecx,%edi,1),%eax
0xc0333e83 <bttv_risc_planar+355>:	cmp    %ebx,%eax
0xc0333e85 <bttv_risc_planar+357>:	mov    0x1c(%esp,1),%eax
0xc0333e89 <bttv_risc_planar+361>:	mov    %ecx,%ebx
0xc0333e8b <bttv_risc_planar+363>:	cmova  %edx,%ebx
0xc0333e8e <bttv_risc_planar+366>:	test   %eax,%eax
0xc0333e90 <bttv_risc_planar+368>:	je     0xc0333fb9 <bttv_risc_planar+665>
0xc0333e96 <bttv_risc_planar+374>:	movzbl 0x60(%esp,1),%ecx
0xc0333e9b <bttv_risc_planar+379>:	mov    %ebx,%eax
0xc0333e9d <bttv_risc_planar+381>:	shr    %cl,%eax
0xc0333e9f <bttv_risc_planar+383>:	lea    (%eax,%ebp,1),%eax
0xc0333ea2 <bttv_risc_planar+386>:	cmp    0xc(%esp,1),%eax
0xc0333ea6 <bttv_risc_planar+390>:	jbe    0xc0333eb0 <bttv_risc_planar+400>
0xc0333ea8 <bttv_risc_planar+392>:	mov    0xc(%esp,1),%ebx
0xc0333eac <bttv_risc_planar+396>:	sub    %ebp,%ebx
0xc0333eae <bttv_risc_planar+398>:	shl    %cl,%ebx
0xc0333eb0 <bttv_risc_planar+400>:	movzbl 0x60(%esp,1),%ecx
0xc0333eb5 <bttv_risc_planar+405>:	mov    %ebx,%eax
0xc0333eb7 <bttv_risc_planar+407>:	shr    %cl,%eax
0xc0333eb9 <bttv_risc_planar+409>:	mov    0x10(%esp,1),%ecx
0xc0333ebd <bttv_risc_planar+413>:	add    0x5c(%esp,1),%eax
0xc0333ec1 <bttv_risc_planar+417>:	mov    0xc(%ecx),%edx
0xc0333ec4 <bttv_risc_planar+420>:	cmp    %edx,%eax
0xc0333ec6 <bttv_risc_planar+422>:	jbe    0xc0333ed5 <bttv_risc_planar+437>
0xc0333ec8 <bttv_risc_planar+424>:	mov    %edx,%ebx
0xc0333eca <bttv_risc_planar+426>:	movzbl 0x60(%esp,1),%ecx
0xc0333ecf <bttv_risc_planar+431>:	sub    0x5c(%esp,1),%ebx
0xc0333ed3 <bttv_risc_planar+435>:	shl    %cl,%ebx
0xc0333ed5 <bttv_risc_planar+437>:	mov    $0x90000000,%edx
0xc0333eda <bttv_risc_planar+442>:	mov    %edx,%eax
0xc0333edc <bttv_risc_planar+444>:	mov    0x20(%esp,1),%ecx
0xc0333ee0 <bttv_risc_planar+448>:	or     $0x8000000,%eax
0xc0333ee5 <bttv_risc_planar+453>:	cmp    %ecx,0x4c(%esp,1)
0xc0333ee9 <bttv_risc_planar+457>:	cmove  %eax,%edx
0xc0333eec <bttv_risc_planar+460>:	mov    %edx,%eax
0xc0333eee <bttv_risc_planar+462>:	or     $0x4000000,%eax
0xc0333ef3 <bttv_risc_planar+467>:	cmp    %ecx,%ebx
0xc0333ef5 <bttv_risc_planar+469>:	cmove  %eax,%edx
0xc0333ef8 <bttv_risc_planar+472>:	mov    0x18(%esp,1),%eax
0xc0333efc <bttv_risc_planar+476>:	or     %ebx,%edx
0xc0333efe <bttv_risc_planar+478>:	mov    %edx,(%eax)
0xc0333f00 <bttv_risc_planar+480>:	movzbl 0x60(%esp,1),%ecx
0xc0333f05 <bttv_risc_planar+485>:	mov    %ebx,%edx
0xc0333f07 <bttv_risc_planar+487>:	add    $0x4,%eax
0xc0333f0a <bttv_risc_planar+490>:	mov    %eax,0x18(%esp,1)
0xc0333f0e <bttv_risc_planar+494>:	shr    %cl,%edx
0xc0333f10 <bttv_risc_planar+496>:	mov    0x18(%esp,1),%ecx
0xc0333f14 <bttv_risc_planar+500>:	mov    %edx,%eax
0xc0333f16 <bttv_risc_planar+502>:	shl    $0x10,%eax
0xc0333f19 <bttv_risc_planar+505>:	or     %edx,%eax
0xc0333f1b <bttv_risc_planar+507>:	mov    %eax,(%ecx)
0xc0333f1d <bttv_risc_planar+509>:	add    $0x4,%ecx
0xc0333f20 <bttv_risc_planar+512>:	mov    %ecx,0x18(%esp,1)
0xc0333f24 <bttv_risc_planar+516>:	mov    0x14(%esp,1),%ecx
0xc0333f28 <bttv_risc_planar+520>:	mov    0x8(%ecx),%eax
0xc0333f2b <bttv_risc_planar+523>:	mov    0x18(%esp,1),%ecx
0xc0333f2f <bttv_risc_planar+527>:	add    %edi,%eax
0xc0333f31 <bttv_risc_planar+529>:	add    %ebx,%edi
0xc0333f33 <bttv_risc_planar+531>:	mov    %eax,(%ecx)
0xc0333f35 <bttv_risc_planar+533>:	mov    0x1c(%esp,1),%eax
0xc0333f39 <bttv_risc_planar+537>:	add    $0x4,%ecx
0xc0333f3c <bttv_risc_planar+540>:	mov    %ecx,0x18(%esp,1)
0xc0333f40 <bttv_risc_planar+544>:	test   %eax,%eax
0xc0333f42 <bttv_risc_planar+546>:	je     0xc0333f70 <bttv_risc_planar+592>
0xc0333f44 <bttv_risc_planar+548>:	mov    0x8(%esi),%eax
0xc0333f47 <bttv_risc_planar+551>:	add    %ebp,%eax
0xc0333f49 <bttv_risc_planar+553>:	add    %edx,%ebp
0xc0333f4b <bttv_risc_planar+555>:	mov    %eax,(%ecx)
0xc0333f4d <bttv_risc_planar+557>:	mov    0x5c(%esp,1),%eax
0xc0333f51 <bttv_risc_planar+561>:	add    $0x4,%ecx
0xc0333f54 <bttv_risc_planar+564>:	mov    %ecx,0x18(%esp,1)
0xc0333f58 <bttv_risc_planar+568>:	mov    0x10(%esp,1),%ecx
0xc0333f5c <bttv_risc_planar+572>:	add    0x8(%ecx),%eax
0xc0333f5f <bttv_risc_planar+575>:	mov    0x18(%esp,1),%ecx
0xc0333f63 <bttv_risc_planar+579>:	mov    %eax,(%ecx)
0xc0333f65 <bttv_risc_planar+581>:	add    %edx,0x5c(%esp,1)
0xc0333f69 <bttv_risc_planar+585>:	add    $0x4,%ecx
0xc0333f6c <bttv_risc_planar+588>:	mov    %ecx,0x18(%esp,1)
0xc0333f70 <bttv_risc_planar+592>:	sub    %ebx,0x20(%esp,1)
0xc0333f74 <bttv_risc_planar+596>:	jne    0xc0333e08 <bttv_risc_planar+232>
0xc0333f7a <bttv_risc_planar+602>:	mov    0x1c(%esp,1),%ebx
0xc0333f7e <bttv_risc_planar+606>:	add    0x50(%esp,1),%edi
0xc0333f82 <bttv_risc_planar+610>:	test   %ebx,%ebx
0xc0333f84 <bttv_risc_planar+612>:	je     0xc0333f92 <bttv_risc_planar+626>
0xc0333f86 <bttv_risc_planar+614>:	mov    0x68(%esp,1),%eax
0xc0333f8a <bttv_risc_planar+618>:	add    0x68(%esp,1),%ebp
0xc0333f8e <bttv_risc_planar+622>:	add    %eax,0x5c(%esp,1)
0xc0333f92 <bttv_risc_planar+626>:	incl   0x24(%esp,1)
0xc0333f96 <bttv_risc_planar+630>:	mov    0x54(%esp,1),%edx
0xc0333f9a <bttv_risc_planar+634>:	cmp    %edx,0x24(%esp,1)
0xc0333f9e <bttv_risc_planar+638>:	jb     0xc0333dac <bttv_risc_planar+140>
0xc0333fa4 <bttv_risc_planar+644>:	mov    0x18(%esp,1),%eax
0xc0333fa8 <bttv_risc_planar+648>:	mov    0x40(%esp,1),%ecx
0xc0333fac <bttv_risc_planar+652>:	mov    %eax,0x8(%ecx)
0xc0333faf <bttv_risc_planar+655>:	xor    %eax,%eax
0xc0333fb1 <bttv_risc_planar+657>:	add    $0x28,%esp
0xc0333fb4 <bttv_risc_planar+660>:	pop    %ebx
0xc0333fb5 <bttv_risc_planar+661>:	pop    %esi
0xc0333fb6 <bttv_risc_planar+662>:	pop    %edi
0xc0333fb7 <bttv_risc_planar+663>:	pop    %ebp
0xc0333fb8 <bttv_risc_planar+664>:	ret    
0xc0333fb9 <bttv_risc_planar+665>:	mov    $0xb0000000,%edx
0xc0333fbe <bttv_risc_planar+670>:	jmp    0xc0333eda <bttv_risc_planar+442>
0xc0333fc3 <bttv_risc_planar+675>:	xor    %eax,%eax
0xc0333fc5 <bttv_risc_planar+677>:	testl  $0x3,0x24(%esp,1)
0xc0333fcd <bttv_risc_planar+685>:	sete   %al
0xc0333fd0 <bttv_risc_planar+688>:	mov    %eax,0x1c(%esp,1)
0xc0333fd4 <bttv_risc_planar+692>:	jmp    0xc0333df8 <bttv_risc_planar+216>
0xc0333fd9 <bttv_risc_planar+697>:	mov    0x24(%esp,1),%ecx
0xc0333fdd <bttv_risc_planar+701>:	xor    $0x1,%ecx
0xc0333fe0 <bttv_risc_planar+704>:	and    $0x1,%ecx
0xc0333fe3 <bttv_risc_planar+707>:	mov    %ecx,0x1c(%esp,1)
0xc0333fe7 <bttv_risc_planar+711>:	jmp    0xc0333df8 <bttv_risc_planar+216>
End of assembler dump.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-27  0:47   ` caszonyi
@ 2003-12-27  4:28     ` Martin J. Bligh
  2003-12-27 17:44       ` caszonyi
  2003-12-27  4:30     ` Martin J. Bligh
  1 sibling, 1 reply; 9+ messages in thread
From: Martin J. Bligh @ 2003-12-27  4:28 UTC (permalink / raw)
  To: Calin Szonyi; +Cc: linux-kernel, kraxel

> I'm not familiar with addr2line :-(
> I was trying this command line(the result is below):
>  //usr/src/linux-2.6.0 $ addr2line -e ./vmlinux 320
> ??:0
> 
> I obtain the same result if i use 0x140 instead of 320 (320 is decimal
> for 0x140)

"addr2line -e ./vmlinux 0xc0333f60" if I recall correctly
(the full address, not the offset within the function). Might not need
the 0x in front.

But I think maybe Linus already told you what it is ;-)

M.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-27  0:47   ` caszonyi
  2003-12-27  4:28     ` Martin J. Bligh
@ 2003-12-27  4:30     ` Martin J. Bligh
  2003-12-27 17:38       ` caszonyi
  1 sibling, 1 reply; 9+ messages in thread
From: Martin J. Bligh @ 2003-12-27  4:30 UTC (permalink / raw)
  To: Calin Szonyi; +Cc: linux-kernel, kraxel

Dec 26 17:59:08 grinch kernel: Unable to handle kernel paging request at virtual address c4bea00c
Dec 26 17:59:08 grinch kernel:  printing eip:
Dec 26 17:59:08 grinch kernel: c0333f60
...
and yet ...
...
> 0xc0333f63 <bttv_risc_planar+579>:	mov    %eax,(%ecx)
> 0xc0333f65 <bttv_risc_planar+581>:	add    %edx,0x5c(%esp,1)

Mmm. you *sure* nothing else changed? You didn't take out -O2 when you
put in -g or change the config file at all or anything?

M.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-27  4:30     ` Martin J. Bligh
@ 2003-12-27 17:38       ` caszonyi
  0 siblings, 0 replies; 9+ messages in thread
From: caszonyi @ 2003-12-27 17:38 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel, kraxel

On Fri, 26 Dec 2003, Martin J. Bligh wrote:

> Dec 26 17:59:08 grinch kernel: Unable to handle kernel paging request at virtual address c4bea00c
> Dec 26 17:59:08 grinch kernel:  printing eip:
> Dec 26 17:59:08 grinch kernel: c0333f60
> ...
> and yet ...
> ...
> > 0xc0333f63 <bttv_risc_planar+579>:	mov    %eax,(%ecx)
> > 0xc0333f65 <bttv_risc_planar+581>:	add    %edx,0x5c(%esp,1)
>
> Mmm. you *sure* nothing else changed? You didn't take out -O2 when you
> put in -g or change the config file at all or anything?
>

yes (almost)
the *only* thing i did was to select
 [*]   Compile the kernel with debug info
in menuconfig
I have no ideea what gcc options will change if i select this option in
kernel config.

> M.
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: panic in bttv_risc_planar
  2003-12-27  4:28     ` Martin J. Bligh
@ 2003-12-27 17:44       ` caszonyi
  0 siblings, 0 replies; 9+ messages in thread
From: caszonyi @ 2003-12-27 17:44 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel, kraxel

On Fri, 26 Dec 2003, Martin J. Bligh wrote:

> > I'm not familiar with addr2line :-(
> > I was trying this command line(the result is below):
> >  //usr/src/linux-2.6.0 $ addr2line -e ./vmlinux 320
> > ??:0
> >
> > I obtain the same result if i use 0x140 instead of 320 (320 is decimal
> > for 0x140)
>
> "addr2line -e ./vmlinux 0xc0333f60" if I recall correctly
> (the full address, not the offset within the function). Might not need
> the 0x in front.
>

here is what addr2line says
root@grinch -19:39:14- 0 jobs, ver 2.05b.0 4
 //usr/src/linux-2.6.0 $ addr2line -e ./vmlinux c0333f60
/usr/src/linux-2.6.0/drivers/media/video/bttv-risc.c:195

the line  is:

*(rp++)=cpu_to_le32(sg_dma_address(vsg)+voffset);


> But I think maybe Linus already told you what it is ;-)
>

I did the change that Linus suggested and so far so good (no problems)

> M.
>

Thanks to all

Bye
Calin


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: your mail
  2003-12-26 22:27 ` your mail Linus Torvalds
@ 2004-01-05 10:59   ` Gerd Knorr
  0 siblings, 0 replies; 9+ messages in thread
From: Gerd Knorr @ 2004-01-05 10:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: caszonyi, linux-kernel

> 		....
>                         while (voffset >= sg_dma_len(vsg)) {
>                                 voffset -= sg_dma_len(vsg);
>                                 vsg++;
>                         }
> 		....

> I suspect the problem is that 
> 
> 	"voffset >= sg_dma_len(vsg)"
> 
> test: if "voffset" is _exactly_ the same as sg_dma_len(), then we will 
> test one more iteration (when "voffset" is 0), and that iteration may be 
> past the end of the "vsg" array.

That certainly makes sense, the 'v' plane is the last one in the memory
block for the video frame to be captured, so voffset / vsg will walk to
the last sg entry and may overrun described.  Good catch, I'm impressed.

> I suspect the fix might be to change the test to
> 
> 	"voffset && voffset >= sg_dma_len(vsg)"

Merged into my tree, thanks.

still busy with the xmas mail backlog,

  Gerd


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-01-05 15:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-26 20:20 caszonyi
2003-12-26 22:27 ` your mail Linus Torvalds
2004-01-05 10:59   ` Gerd Knorr
2003-12-26 22:28 ` panic in bttv_risc_planar Martin J. Bligh
2003-12-27  0:47   ` caszonyi
2003-12-27  4:28     ` Martin J. Bligh
2003-12-27 17:44       ` caszonyi
2003-12-27  4:30     ` Martin J. Bligh
2003-12-27 17:38       ` caszonyi

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).