coolliz / easycap-somagic-linux

Automatically exported from code.google.com/p/easycap-somagic-linux
0 stars 0 forks source link

Dropping buffer, dmesg flooded #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Built kernel module on two machines, an Atom netbook with a beta release of 
Ubuntu 13.04 and a Pentium D 2.8ghz machine with 12.04.2 LTS, each now updated 
to 3.8.0-19-generic. Device uses firmware smi2021_3f.bin.

I have the modules loading automatically from /etc/modules. 'Motion' loads the 
device fine, /dev/video1, auto-selecting a resolution of 720x486. But the 
syslog gets spammed with thousands of messages:
[ 1776.273738] smi2021::smi2021_buffer_done: Dropping buffer, Buf->pos: 0, 
trc_av: 1
[ 1776.273790] smi2021::smi2021_buffer_done: Dropping buffer, Buf->pos: 0, 
trc_av: 1
[ 1776.273842] smi2021::smi2021_buffer_done: Dropping buffer, Buf->pos: 0, 
trc_av: 1
[ 1776.273894] smi2021::smi2021_buffer_done: Dropping buffer, Buf->pos: 0, 
trc_av: 1

This caused rsyslog to take up a lot of CPU, so I disabled this service. CPU is 
important because I'm trying to have this Atom netbook record video at the 
highest frame rate it can, using Motion.

The system is working otherwise, at first glance. But the kernel will lock up 
periodically. Sometimes it comes back in a few seconds. Sometimes I get kernel 
messages about the watchdog timer or another process segfaulting during these 
freezes. If frozen, pulling the USB device from the computer returns it to a 
usable state.

Capturing video to a file using the userspace tools does not reveal any 
immediately problems, but this isn't useful to me as I need the video to be 
available to Motion.

Any ideas? Any debugging info I can provide?

Original issue reported on code.google.com by ra...@rmcbank.com on 24 Apr 2013 at 12:14

GoogleCodeExporter commented 9 years ago
Disabling ACPI on bootup seems to have helped the freezing issue. The Atom N270 
shows up as 1 CPU now instead of 2 (hyperthreading), not sure if this has 
anything to do with the issue. Dmesg still floods.

Original comment by ra...@rmcbank.com on 26 Apr 2013 at 7:52

GoogleCodeExporter commented 9 years ago
Even booting with acpi=ht causes the freezing issue. From 
https://wiki.ubuntu.com/DebuggingACPI :
> Try booting with "acpi=ht"
> 
>     This disables all of ACPI except just enough to enable Hyper Threading. If
> acpi=off works and acpi=ht fails, then the issue is in the ACPI table parsing 
code 
> itself, or perhaps the SMP code. 

Original comment by ra...@rmcbank.com on 16 May 2013 at 7:16