RTC broken under 2.6.15-rc7-rt1 (was: Re: MPlayer broken under 2.6.15-rc7-rt1?)
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 17:46:55 -0500
On Sat, 2005-12-31 at 21:58 +0100, Jan Engelhardt wrote:
> >Subject: Re: MPlayer broken under 2.6.15-rc7-rt1?
>
> I seriously demand that this be changed into "RTC broekn under..."! :)
Done ;)
[...]
> >
> >Index: linux-2.6.15-rc7-rt1/drivers/char/rtc.c
>
> This patch fixes the rtc BUG for me.
Yeah, attached is a program that does what mplayer does. I run it from
the command line like this:
# for i in `seq 10000`; do ./rtc_ioctl ; done
And with the patch it runs perfectly fine. Without it, it segfaults
several times.
-- Steve
#include <stdio.h>#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/rtc.h>
#define RTC "/dev/rtc"
int main(int argc, char **argv)
{
int fd;
unsigned long data;
if ((fd = open(RTC, O_RDONLY)) < 0) {
perror(RTC);
exit(0);
}
ioctl(fd, RTC_IRQP_SET, 1024);
ioctl(fd, RTC_PIE_ON, 0);
read(fd, &data, sizeof(data));
printf("%08lx\n",data);
close (fd);
exit(0);
}
- References:
- MPlayer broken under 2.6.15-rc7-rt1?
- From: Bradley Reed
- Re: MPlayer broken under 2.6.15-rc7-rt1?
- From: Steven Rostedt
- Re: MPlayer broken under 2.6.15-rc7-rt1?
- From: Jan Engelhardt
- MPlayer broken under 2.6.15-rc7-rt1?
- Prev by Date: Re: [PATCH 1/4] media-video: Pci probing for stradis driver
- Previous by thread: Re: MPlayer broken under 2.6.15-rc7-rt1?
- Next by thread: Réception d'un e-mail non conforme
- Index(es):
Relevant Pages
- [PATCH] Dont pass boot parameters to argv_init[]
... This patch fixes wrong usage, ... static int option_setup ...
(Linux-Kernel) - [PATCH] cpufreq: fix powernow-k7 smp kernel driver on up machines
... This patch fixes the powernow-k7 cpufreq driver smp kernel on an up ... negativ
feedback about this fixing approach! ... int recalibrate_cpu_khz ... extern
void init_cpu_khz; ... (Linux-Kernel) - usb 2.4: Little Rework for usbserial
... This patch fixes various hangs and oopses which happen if serial devices ...
* has a lifetime from probe to disconnect. ... int sent = 0; ... (Linux-Kernel) - [patch 1/3] m68k: export atari_keyb_init
... m68k: export atari_keyb_init ... This patch fixes the following build
error: ... MODPOST 25 modules ... +int atari_keyb_init ... (Linux-Kernel) - [2.6 patch] isdn/hisax/hfc_usb.c: fix check-after-use
... This patch fixes a check-after-use spotted by the Coverity checker. ...
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel)