Re: patch: atapi dvd-ram support
On Sat, Nov 11 2000, Hisaaki Shibata wrote: > > Or you could try the 2.4 version, as I said originally the 2.2 patch > > hasn't been tested at all. It would be nice to know if that works > > for you, as I may have screwed up the backport a bit. > > I tested on 2.4-test10 + dvd-ram-240t10p5.diff.bz2 + dvdram-ro_fix.diff env. > It occured oops too :-(. Interesting, then it isn't the backport that is buggy. > And I forgot to say that my DVD-RAM drive is a new 9.4GB DVD-RAM model drive. I'd like to know specifically what make/model drive you have? The oops you sent earlier seems to indicate an empty ide dma request setup. If you disable DMA on the drive, does it then work? I'd send you a patch right now, but I have to unpack my trees first. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
> Or you could try the 2.4 version, as I said originally the 2.2 patch > hasn't been tested at all. It would be nice to know if that works > for you, as I may have screwed up the backport a bit. I tested on 2.4-test10 + dvd-ram-240t10p5.diff.bz2 + dvdram-ro_fix.diff env. It occured oops too :-(. And I forgot to say that my DVD-RAM drive is a new 9.4GB DVD-RAM model drive. Best Regards, Hisaaki Shibata -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Hi, > > By using serial console, I get messages for you ;-) > > Thanks, now you're just one step short of being really > helpful :-). Pass it through ksymoops please, so the > addresses will map to function names + offsets. I atacched files. Is it OK? > > hdc: timeout waiting for DMA > > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 > > Try it without DMA as well, please. I think I see a DMA bug in there right > now, I'll recheck and send you a new patch. I see. I will try it and will report it. Best Regards, -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 ksymoops 2.3.4 on i686 2.2.17-RAID-reiser-ide.all-ide-cd. Options used -V (default) -k /proc/ksyms (default) -l /proc/modules (default) -o /lib/modules/2.2.17-RAID-reiser-ide.all-ide-cd/ (default) -m /usr/src/linux/System.map (default) Warning: You did not tell me where to find symbol information. I will assume that the log matches the kernel and modules that are running right now and I'll use the default options above for symbol resolution. If the current kernel and/or modules do not match the log, you can get more accurate output by telling me the kernel version and where to find map, modules, ksyms etc. ksymoops -h explains the options. Warning (compare_maps): ksyms_base symbol module_list_R__ver_module_list not found in System.map. Ignoring ksyms_base entry Unable to handle kernel NULL pointer dereference at virtual address 002c current->tss.cr3 = 13185000, %cr3 = 13185000 *pde = Oops: CPU:1 EIP:0010:[] Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00010292 eax: ebx: f008 ecx: 128e395c edx: c02402d8 esi: 0001 edi: d7fda800 ebp: c0240318 esp: d3013bec ds: 0018 es: 0018 ss: 0018 Process fdisk (pid: 704, process nr: 60, stackpage=d3013000) Stack: c02402d8 c0240318 0002 0087 c017d6bc c01c5d49 01c2 c016afd4 c01a7fde c0240318 0001 0001 c019a771 c0240318 d5960e00 8000 0001 c0240318 d5960e00 0001 c02296f8 0286 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 8b 58 2c c7 44 24 1c 00 00 00 00 85 db 75 13 8b 70 20 8b 48 >>EIP; c01a7b0a<= Trace; c017d6bc Trace; c01c5d49 <__const_udelay+29/30> Trace; c016afd4 Trace; c01a7fde Trace; c019a771 Trace; c01a9f82 Trace; d8aaf81c Trace; d8aaf85a Trace; c019961a Trace; c01c5d49 <__const_udelay+29/30> Trace; d8ab0832 Trace; d8ab0788 Trace; c012c44f Trace; d8ab094d Trace; c019aa66 Trace; c012c44f Trace; c019adc6 Trace; c01989cf Trace; c019ae8b Trace; c0197bb0 Trace; d880164c <_end+185bece4/186b9698> Trace; c012b631 <__wait_on_buffer+c1/134> Trace; d880164c <_end+185bece4/186b9698> Trace; c0164430 Trace; d880 <_end+185bd698/186b9698> Trace; d8801674 <_end+185bed0c/186b9698> Trace; d8801680 <_end+185bed18/186b9698> Trace; c0167623 Trace; d880164c <_end+185bece4/186b9698> Trace; d8820e3c <_end+185de4d4/186b9698> Trace; c0166933 Trace; c01d99cf Trace; c0159d77 Trace; c012e95c Trace; c012b8f7 Trace; c012b8ee Trace; c01b8aa4 Trace; c012b94d Trace; c010a47d Trace; c010a344 Code; c01a7b0a <_EIP>: Code; c01a7b0a<= 0: 8b 58 2c mov0x2c(%eax),%ebx <= Code; c01a7b0d 3: c7 44 24 1c 00 00 00 movl $0x0,0x1c(%esp,1) Code; c01a7b14 a: 00 Code; c01a7b15 b: 85 db test %ebx,%ebx Code; c01a7b17 d: 75 13 jne22 <_EIP+0x22> c01a7b2c Code; c01a7b19 f: 8b 70 20 mov0x20(%eax),%esi Code; c01a7b1c 12: 8b 48 00 mov0x0(%eax),%ecx 2 warnings issued. Results may not be reliable. ksymoops 2.3.4 on i686 2.2.17-RAID-reiser-ide.all-ide-cd. Options used -V (default) -k /proc/ksyms (default) -l /proc/modules (default) -o /lib/modules/2.2.17-RAID-reiser-ide.all-ide-cd/ (default) -m /usr/src/linux/System.map (default) Warning: You did not tell me where to find symbol information. I will assume that the log matches the kernel and modules that are running right now and I'll use the default options above for symbol resolution. If the current kernel and/or modules do not match the log, you can get more accurate output by telling me the kernel version and where to find map, modules, ksyms etc. ksymoops -h explains the options. Warning (compare_maps): ksyms_base symbol module_list_R__ver_module_list not found in System.map. Ignoring ksyms_base entry Unable to handle kernel NULL pointer dereference at virtual address 0014 current->tss.cr3 = 00101000, %cr3 = 00101000 *pde = Oops: CPU:0 EIP:0010:[] Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00010
Re: patch: atapi dvd-ram support
On Tue, Oct 31 2000, Hisaaki Shibata wrote: > By using serial console, I get messages for you ;-) Thanks, now you're just one step short of being really helpful :-). Pass it through ksymoops please, so the addresses will map to function names + offsets. > In case of doing "dd if=/dev/zero of=/dev/hdc bs=2048 count=1". > > hdc: ATAPI DVD-ROM DVD-RAM drive, 512kB Cache, UDMA(33) > hdc: timeout waiting for DMA > ide_dmaproc: chipset supported ide_dma_timeout func only: 14 Try it without DMA as well, please. I think I see a DMA bug in there right now, I'll recheck and send you a new patch. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Hello again, > > I tried the patch. > > But kernel said Oops both fdisk /dev/hdc and > > dd if=/dev/zero of=/dev/hdc bs=2048 count=1 . > > > After showing above strace message in a few seconds, kernel panic happened. > > > > I can not see some head line of Oops messages. Sorry. > > Is there any way for you to grab those messages, maybe with a serial > console? I'd really like to see them. By using serial console, I get messages for you ;-) In case of doing "dd if=/dev/zero of=/dev/hdc bs=2048 count=1". hdc: ATAPI DVD-ROM DVD-RAM drive, 512kB Cache, UDMA(33) hdc: timeout waiting for DMA ide_dmaproc: chipset supported ide_dma_timeout func only: 14 hdc: irq timeout: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error } hdc: irq timeout: error=0x7f hdc: DMA disabled hdc: ATAPI reset complete Unable to handle kernel NULL pointer dereference at virtual address 0014 current->tss.cr3 = 00101000, %cr3 = 00101000 *pde = Oops: CPU:0 EIP:0010:[] EFLAGS: 00010292 eax: ebx: c0240318 ecx: 0003 edx: d8ab0788 esi: d58a2600 edi: 0080 ebp: 0001 esp: c020dd74 ds: 0018 es: 0018 ss: 0018 Process swapper (pid: 0, process nr: 0, stackpage=c020d000) Stack: 0080 0001 c0240318 d58a2600 8000 0001 c0229c20 0286 00feaac0 0080a3a4 c022d900 d2f157a0 c0229c20 d8aaf81c c020dde8 c0240318 d8aaf917 c0240318 0188 c019961a d58a2600 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 8b 50 14 8b 70 10 8d 44 24 34 89 44 24 18 c1 ee 02 31 c0 8b Aiee, killing interrupt handler Kernel panic: Attempted to kill the idle task! In swapper task - not syncing In case of "/sbin/fdisk /dev/hdc" is a little bit different. [root@celto shibata]# /sbin/fdisk /dev/hdc Device contains neither a valid DOS partition table, nor Sun or SGI disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Command (m for help): p Disk /dev/hdc: 1 heads, 8946816 sectors, 1 cylinders Units = cylinders of 8946816 * 512 bytes Device BootStart EndBlocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1, default 1): 1 Command (m for help): p Disk /dev/hdc: 1 heads, 8946816 sectors, 1 cylinders Units = cylinders of 8946816 * 512 bytes Device BootStart EndBlocks Id System /dev/hdc1 1 1 4473407+ 83 Linux Partition 1 has different physical/logical endings: phys=(512, 0, 0) logical=(0, 0, 8946816) Partition 1 does not end on cylinder boundary: phys=(512, 0, 0) should be (512, 0, 8946816) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. hdc: ATAPI DVD-ROM DVD-RAM drive, 512kB Cache, UDMA(33) Unable to handle kernel NULL pointer dereference at virtual address 002c current->tss.cr3 = 13185000, %cr3 = 13185000 *pde = Oops: CPU:1 EIP:0010:[] EFLAGS: 00010292 eax: ebx: f008 ecx: 128e395c edx: c02402d8 esi: 0001 edi: d7fda800 ebp: c0240318 esp: d3013bec ds: 0018 es: 0018 ss: 0018 Process fdisk (pid: 704, process nr: 60, stackpage=d3013000) Stack: c02402d8 c0240318 0002 0087 c017d6bc c01c5d49 01c2 c016afd4 c01a7fde c0240318 0001 0001 c019a771 c0240318 d5960e00 8000 0001 c0240318 d5960e00 0001 c02296f8 0286 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 8b 58 2c c7 44 24 1c 00 00 00 00 85 db 75 13 8b 70 20 8b 48 > > Please let me test more patches. I will keep up with you. I hope it will be your help. > Or you could try the 2.4 version, as I said originally the 2.2 patch > hasn't been tested at all. It would be nice to know if that works > for you, as I may have screwed up the backport a bit. Before goto bed, I will get 2.4.x kernel and add your patch. I will report again. Best Regards, -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sun, Oct 29 2000, Hisaaki Shibata wrote: > I tried the patch. > But kernel said Oops both fdisk /dev/hdc and > dd if=/dev/zero of=/dev/hdc bs=2048 count=1 . > After showing above strace message in a few seconds, kernel panic happened. > > I can not see some head line of Oops messages. Sorry. Is there any way for you to grab those messages, maybe with a serial console? I'd really like to see them. > Please let me test more patches. I will keep up with you. Or you could try the 2.4 version, as I said originally the 2.2 patch hasn't been tested at all. It would be nice to know if that works for you, as I may have screwed up the backport a bit. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Thanks again. > > > Ok, does /proc/sys/dev/cdrom/info list DVD-RAM as a capability? > > CD-ROM information, Id: cdrom.c 3.12 2000/10/22 > > > > Can write DVD-RAM: 1 > > So far, so good. :-) > > Should I set any flags to permit write a DVD-RAM media ? > > No, as I said it should detect it automatically. But d'oh, I > just realised that it is set too soon... Sorry, try with this > patch. Thank you for your quick response. I tried the patch. But kernel said Oops both fdisk /dev/hdc and dd if=/dev/zero of=/dev/hdc bs=2048 count=1 . strace dd if=/dev/zero of=/dev/hdc bs=2048 count=1 shows - [root@celto shibata]# strace dd if=/dev/zero of=/dev/hdc bs=2048 count=1 execve("/bin/dd", ["dd", "if=/dev/zero", "of=/dev/hdc", "bs=2048", "count=1"], [/* 19 vars */]) = 0 brk(0) = 0x80504a8 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=19214, ...}) = 0 old_mmap(NULL, 19214, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3)= 0 open("/lib/libc.so.6", O_RDONLY)= 3 fstat(3, {st_mode=S_IFREG|0755, st_size=5224080, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0(\215\1"..., 4096) = 4096 old_mmap(NULL, 941692, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40019000 mprotect(0x400f7000, 32380, PROT_NONE) = 0 old_mmap(0x400f7000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xdd000) = 0x400f7000 old_mmap(0x400fc000, 11900, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400fc000 close(3)= 0 munmap(0x40014000, 19214) = 0 personality(PER_LINUX) = 0 getpid()= 709 brk(0) = 0x80504a8 brk(0x80504e0) = 0x80504e0 brk(0x8051000) = 0x8051000 close(0)= 0 open("/dev/zero", O_RDONLY|O_LARGEFILE) = 0 close(1)= 0 open("/dev/hdc", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOSYS (Function not implemented) open("/dev/hdc", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOSYS (Function not implemented) open("/dev/hdc", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 1 rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {0x804adec, [], 0x400}, NULL, 8) = 0 rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {0x804adec, [], 0x400}, NULL, 8) = 0 rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {0x804adec, [], 0x400}, NULL, 8) = 0 rt_sigaction(SIGUSR1, NULL, {SIG_DFL}, 8) = 0 rt_sigaction(SIGUSR1, {0x804aeac, [], 0x400}, NULL, 8) = 0 brk(0x8054000) = 0x8054000 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048 write(2, "1+0 records in\n", 151+0 records in )= 15 write(2, "1+0 records out\n", 161+0 records out ) = 16 close(0)= 0 close(1 - After showing above strace message in a few seconds, kernel panic happened. I can not see some head line of Oops messages. Sorry. Please let me test more patches. I will keep up with you. Best Regards, -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sun, Oct 29 2000, Hisaaki Shibata wrote: > > Ok, does /proc/sys/dev/cdrom/info list DVD-RAM as a capability? > > Yes. > I think it seems good. > > # more info > CD-ROM information, Id: cdrom.c 3.12 2000/10/22 > > Can write DVD-RAM: 1 So far, so good. > Should I set any flags to permit write a DVD-RAM media ? No, as I said it should detect it automatically. But d'oh, I just realised that it is set too soon... Sorry, try with this patch. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs --- drivers/block/ide-cd.c~ Sat Oct 28 20:09:03 2000 +++ drivers/block/ide-cd.c Sat Oct 28 20:09:23 2000 @@ -2597,8 +2597,6 @@ int minor = drive->select.b.unit << PARTN_BITS; int nslots, ro; - ro = !CDROM_CONFIG_FLAGS(drive)->dvd_ram; - set_device_ro(MKDEV(HWIF(drive)->major, minor), ro); set_blocksize(MKDEV(HWIF(drive)->major, minor), CD_FRAMESIZE); drive->special.all = 0; @@ -2718,6 +2716,9 @@ info->start_seek= 0; nslots = ide_cdrom_probe_capabilities (drive); + + ro = !CDROM_CONFIG_FLAGS(drive)->dvd_ram; + set_device_ro(MKDEV(HWIF(drive)->major, minor), ro); if (ide_cdrom_register (drive, nslots)) { printk ("%s: ide_cdrom_setup failed to register device with the cdrom driver.\n", drive->name);
Re: patch: atapi dvd-ram support
Thank you, again. > On Sat, Oct 28 2000, Hisaaki Shibata wrote: > > > > But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. > > > > > > What do you mean? What happened? strace of mke2fs of mkudf would > > > be nice to have. > > > > My system said it is not permited because it is read only. > > [snip] > > Ok, does /proc/sys/dev/cdrom/info list DVD-RAM as a capability? Yes. I think it seems good. # more info CD-ROM information, Id: cdrom.c 3.12 2000/10/22 drive name: hdc drive speed:0 drive # of slots: 1 Can close tray: 1 Can open tray: 1 Can lock tray: 1 Can change speed: 1 Can select disk:0 Can read multisession: 1 Can read MCN: 1 Reports media changed: 1 Can play audio: 1 Can write CD-R: 0 Can write CD-RW:0 Can read DVD: 1 Can write DVD-R:0 Can write DVD-RAM: 1 > > And /proc/ide/hdc/media says "cdrom". Is it OK? > > Yes, that is fine. OK. Should I set any flags to permit write a DVD-RAM media ? Best Regards, -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sat, Oct 28 2000, Hisaaki Shibata wrote: > > > But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. > > > > What do you mean? What happened? strace of mke2fs of mkudf would > > be nice to have. > > My system said it is not permited because it is read only. [snip] Ok, does /proc/sys/dev/cdrom/info list DVD-RAM as a capability? > And /proc/ide/hdc/media says "cdrom". Is it OK? Yes, that is fine. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Thanks, Axboe > > But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. > > What do you mean? What happened? strace of mke2fs of mkudf would > be nice to have. My system said it is not permited because it is read only. execve("/sbin/mke2fs", ["/sbin/mke2fs", "/dev/hdc"], [/* 19 vars */]) = 0 brk(0) = 0x804dd80 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=19214, ...}) = 0 old_mmap(NULL, 19214, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3)= 0 open("/lib/libext2fs.so.2", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=83284, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2146\0"..., 4096) = 4096 old_mmap(NULL, 71696, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40019000 mprotect(0x4002a000, 2064, PROT_NONE) = 0 old_mmap(0x4002a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) = 0x4002a000 close(3)= 0 open("/lib/libcom_err.so.2", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=8057, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\230\t\0"..., 4096) = 4096 And /proc/ide/hdc/media says "cdrom". Is it OK? Best Regards, -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sat, Oct 28 2000, Andre Hedrick wrote: > > This is not necessary, the ide-cd driver will set the read-only > > flag appropriately depending on the device type detected. > > This may not be the best option as the default. > If a dvd-ram is used for backup you may not always want it in RW mode. > Just a thought. Just mount it ro then? -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sat, 28 Oct 2000, Jens Axboe wrote: > This is not necessary, the ide-cd driver will set the read-only > flag appropriately depending on the device type detected. This may not be the best option as the default. If a dvd-ram is used for backup you may not always want it in RW mode. Just a thought. Andre Hedrick The Linux ATA/IDE guy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Fri, Oct 27 2000, Andre Hedrick wrote: > hdparm -r0 /dev/hdc [snip] > That is how it is DONE! This is not necessary, the ide-cd driver will set the read-only flag appropriately depending on the device type detected. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Sat, Oct 28 2000, Hisaaki Shibata wrote: > I did patch 2.2.17 tree with dvd-ram-2217p17.diff.bz2. > > At that time, following patch is rejected. > I think these lines should be removed from patchs. > > @@ -1329,7 +1369,7 @@ >static > void cdrom_sleep (int time) > { > - current->state = TASK_INTERRUPTIBLE; > + __set_current_state(TASK_INTERRUPTIBLE); > schedule_timeout(time); > } > > After removing these, I could make bzImage. Weird, should not reject. Oh well. > But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. What do you mean? What happened? strace of mke2fs of mkudf would be nice to have. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
hdparm -r0 /dev/hdc smsc:/proc/ide/hdc # cat model driver media MATSHITADVD-RAM LF-D210 ide-cdrom version 4.99 cdrom smsc:/proc/ide/hdc # hdparm -r0 /dev/hdc /dev/hdc: setting readonly to 0 (off) readonly = 0 (off) smsc:/ # mke2fs -b 2048 /dev/hdc -m 0 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=2048 (log=1) Fragment size=2048 (log=1) 561152 inodes, 2236704 blocks 0 blocks (0.00%) reserved for the super user First data block=0 137 block groups 16384 blocks per group, 16384 fragments per group 4096 inodes per group Superblock backups stored on blocks: 16384, 49152, 81920, 114688, 147456, 409600, 442368, 802816, 1327104, 2048000 Writing inode tables: done Writing superblocks and filesystem accounting information: done That is how it is DONE! On Sat, 28 Oct 2000, Hisaaki Shibata wrote: > Hello > > I did patch 2.2.17 tree with dvd-ram-2217p17.diff.bz2. > > At that time, following patch is rejected. > I think these lines should be removed from patchs. > > @@ -1329,7 +1369,7 @@ >static > void cdrom_sleep (int time) > { > - current->state = TASK_INTERRUPTIBLE; > + __set_current_state(TASK_INTERRUPTIBLE); > schedule_timeout(time); > } > > After removing these, I could make bzImage. > > But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. > > dmesg shows; > -- > ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx > PIIX4: IDE controller on PCI bus 00 dev 39 > PIIX4: chipset revision 1 > PIIX4: not 100% native mode: will probe irqs later > ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio > ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio > PDC20262: IDE controller on PCI bus 00 dev 60 > PDC20262: chipset revision 1 > PDC20262: not 100% native mode: will probe irqs later > PDC20262: ROM enabled at 0xe700 > PDC20262: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode. > PDC20262: FORCING PRIMARY MODE BIT 0x00 -> 0x01 MASTER > PDC20262: FORCING SECONDARY MODE BIT 0x00 -> 0x01 MASTER > ide2: BM-DMA at 0xec00-0xec07, BIOS settings: hde:DMA, hdf:pio > ide3: BM-DMA at 0xec08-0xec0f, BIOS settings: hdg:DMA, hdh:pio > hdc: HITACHI DVD-RAM GF-2000, ATAPI CDROM drive > hde: IBM-DTLA-305020, ATA DISK drive > hdg: IBM-DTLA-305020, ATA DISK drive > ide1 at 0x170-0x177,0x376 on irq 15 > ide2 at 0xdc00-0xdc07,0xe002 on irq 16 > ide3 at 0xe400-0xe407,0xe802 on irq 16 > hde: IBM-DTLA-305020, 19623MB w/380kB Cache, CHS=39870/16/63, UDMA(66) > hdg: IBM-DTLA-305020, 19623MB w/380kB Cache, CHS=39870/16/63, UDMA(66) > > [SNIP] > > hdc: ATAPI DVD-ROM DVD-RAM drive, 512kB Cache, UDMA(33) > Uniform CD-ROM driver Revision: 3.12 > VFS: Disk change detected on device ide1(22,0) > Uniform CD-ROM driver unloaded > -- > > /proc/ide/hdc/media shows; > cdrom > > How can I read/write DVD-RAM media like MO drive? > > I can read/write ATAPI 5.2GB DVD-RAM media with 2.2.16 ide-scsi mode in ext2fs. > > Best Regards, > > > > I've put up patches for 2.2 and 2.4 adding native ATAPI dvd-ram support. > > The 2.2 patch is completely untested, but the 2.4 version appears to > > work well. > > > > *.kernel.org/pub/linux/kernel/people/axboe/dvdram > > -- > W [EMAIL PROTECTED] > |O-O| Hisaaki Shibata > 0(mmm)0 P-mail: 070-5419-3233IRC: #luky >~http://his.luky.org/ last update:2000.3.12 > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > Please read the FAQ at http://www.tux.org/lkml/ > Andre Hedrick The Linux ATA/IDE guy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Hello I did patch 2.2.17 tree with dvd-ram-2217p17.diff.bz2. At that time, following patch is rejected. I think these lines should be removed from patchs. @@ -1329,7 +1369,7 @@ static void cdrom_sleep (int time) { - current->state = TASK_INTERRUPTIBLE; + __set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(time); } After removing these, I could make bzImage. But I could not mkudf nor mkext2fs to my ATAPI 9.4GB new DVD-RAM drive. dmesg shows; -- ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller on PCI bus 00 dev 39 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio PDC20262: IDE controller on PCI bus 00 dev 60 PDC20262: chipset revision 1 PDC20262: not 100% native mode: will probe irqs later PDC20262: ROM enabled at 0xe700 PDC20262: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode. PDC20262: FORCING PRIMARY MODE BIT 0x00 -> 0x01 MASTER PDC20262: FORCING SECONDARY MODE BIT 0x00 -> 0x01 MASTER ide2: BM-DMA at 0xec00-0xec07, BIOS settings: hde:DMA, hdf:pio ide3: BM-DMA at 0xec08-0xec0f, BIOS settings: hdg:DMA, hdh:pio hdc: HITACHI DVD-RAM GF-2000, ATAPI CDROM drive hde: IBM-DTLA-305020, ATA DISK drive hdg: IBM-DTLA-305020, ATA DISK drive ide1 at 0x170-0x177,0x376 on irq 15 ide2 at 0xdc00-0xdc07,0xe002 on irq 16 ide3 at 0xe400-0xe407,0xe802 on irq 16 hde: IBM-DTLA-305020, 19623MB w/380kB Cache, CHS=39870/16/63, UDMA(66) hdg: IBM-DTLA-305020, 19623MB w/380kB Cache, CHS=39870/16/63, UDMA(66) [SNIP] hdc: ATAPI DVD-ROM DVD-RAM drive, 512kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.12 VFS: Disk change detected on device ide1(22,0) Uniform CD-ROM driver unloaded -- /proc/ide/hdc/media shows; cdrom How can I read/write DVD-RAM media like MO drive? I can read/write ATAPI 5.2GB DVD-RAM media with 2.2.16 ide-scsi mode in ext2fs. Best Regards, > I've put up patches for 2.2 and 2.4 adding native ATAPI dvd-ram support. > The 2.2 patch is completely untested, but the 2.4 version appears to > work well. > > *.kernel.org/pub/linux/kernel/people/axboe/dvdram -- W [EMAIL PROTECTED] |O-O| Hisaaki Shibata 0(mmm)0 P-mail: 070-5419-3233IRC: #luky ~http://his.luky.org/ last update:2000.3.12 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Wed, Oct 25 2000, Andre Hedrick wrote: > > The optimal solution is to make the UDF tools part of the util-linux > > package, which will probably happen at some point. I don't really know, > > that part is not mine. I might put some work into making this happen, > > though. > > Andries, > > Jens needs a favor ;-) Heh, not quite yet :-). The UDF tools need to be "converted" to be more like the regular file system utilities first. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Wed, 25 Oct 2000, Jens Axboe wrote: > On Tue, Oct 24 2000, Jeff V. Merkey wrote: > > > Are you suggesting the tools be part of the kernel tree? If you are, I > > > don't think they belong here because they are userland tools like > > > mkisofs and the like. Nothing really related to the kernel. > > > > No. I'm suggesting they be in the utils area of kernel.org so folks > > don't have to run all over the net locating them. I like just typing > > > > 'rsync ftp.kernel.org:pub/linux /home/ftp/linux' to update my mirror for > > my Linux customers rather than run all over the internet looking for stuff. > > The optimal solution is to make the UDF tools part of the util-linux > package, which will probably happen at some point. I don't really know, > that part is not mine. I might put some work into making this happen, > though. Andries, Jens needs a favor ;-) Andre Hedrick The Linux ATA/IDE guy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Jens Axboe wrote: > > On Tue, Oct 24 2000, Jeff V. Merkey wrote: > > > Are you suggesting the tools be part of the kernel tree? If you are, I > > > don't think they belong here because they are userland tools like > > > mkisofs and the like. Nothing really related to the kernel. > > > > No. I'm suggesting they be in the utils area of kernel.org so folks > > don't have to run all over the net locating them. I like just typing > > > > 'rsync ftp.kernel.org:pub/linux /home/ftp/linux' to update my mirror for > > my Linux customers rather than run all over the internet looking for stuff. > > The optimal solution is to make the UDF tools part of the util-linux > package, which will probably happen at some point. I don't really know, > that part is not mine. I might put some work into making this happen, > though. This would be a good idea. Jeff > > -- > * Jens Axboe <[EMAIL PROTECTED]> > * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Tue, Oct 24 2000, Jeff V. Merkey wrote: > > Are you suggesting the tools be part of the kernel tree? If you are, I > > don't think they belong here because they are userland tools like > > mkisofs and the like. Nothing really related to the kernel. > > No. I'm suggesting they be in the utils area of kernel.org so folks > don't have to run all over the net locating them. I like just typing > > 'rsync ftp.kernel.org:pub/linux /home/ftp/linux' to update my mirror for > my Linux customers rather than run all over the internet looking for stuff. The optimal solution is to make the UDF tools part of the util-linux package, which will probably happen at some point. I don't really know, that part is not mine. I might put some work into making this happen, though. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
I'm sorry. I completely missed the .org part there. "Jeff V. Merkey" wrote: > > No. I'm suggesting they be in the utils area of kernel.org so folks > don't have to > run all over the net locating them. I like just typing > > 'rsync ftp.kernel.org:pub/linux /home/ftp/linux' to update my mirror for > my Linux > customers rather than run all over the internet looking for stuff. > > :-) > -- = Mohammad A. Haque http://www.haque.net/ [EMAIL PROTECTED] "Alcohol and calculus don't mix. Project Lead Don't drink and derive." --Unknown http://wm.themes.org/ [EMAIL PROTECTED] = - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
"Mohammad A. Haque" wrote: > > Are you suggesting the tools be part of the kernel tree? If you are, I > don't think they belong here because they are userland tools like > mkisofs and the like. Nothing really related to the kernel. No. I'm suggesting they be in the utils area of kernel.org so folks don't have to run all over the net locating them. I like just typing 'rsync ftp.kernel.org:pub/linux /home/ftp/linux' to update my mirror for my Linux customers rather than run all over the internet looking for stuff. :-) Jeff > > > > > Jens, > > > > It would be a good idea to roll these tools into the kernel.org tree so > > folks don't have > > to run all over the net looking for them. I'll go and grab them and > > start testing. > > > > -- > > = > Mohammad A. Haque http://www.haque.net/ >[EMAIL PROTECTED] > > "Alcohol and calculus don't mix. Project Lead >Don't drink and derive." --Unknown http://wm.themes.org/ >[EMAIL PROTECTED] > = - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Are you suggesting the tools be part of the kernel tree? If you are, I don't think they belong here because they are userland tools like mkisofs and the like. Nothing really related to the kernel. > > Jens, > > It would be a good idea to roll these tools into the kernel.org tree so > folks don't have > to run all over the net looking for them. I'll go and grab them and > start testing. > -- = Mohammad A. Haque http://www.haque.net/ [EMAIL PROTECTED] "Alcohol and calculus don't mix. Project Lead Don't drink and derive." --Unknown http://wm.themes.org/ [EMAIL PROTECTED] = - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
Jens Axboe wrote: > > On Tue, Oct 24 2000, Jeff V. Merkey wrote: > > Super!. I'll download and test it. We've had nothing but problems with > > DVD devices in 2.4. Hopefully this works. Where are the utilities for > > I beat up the 2.4 version yesterday, and it looks solid so far. The > actual write handling is the same as in the packet writing patches, > so it's been in my trees for a while and I haven't found any bugs > in it so far. So it should be solid. > > > UDF formatted images for DVD devices? ISO images will only burn up to > > 4GB. > > Go to sourceforge.net and do a search for linux-udf, grab the release > of your choice. It has the UDF image tools. Jens, It would be a good idea to roll these tools into the kernel.org tree so folks don't have to run all over the net looking for them. I'll go and grab them and start testing. Thanks! :-) Jeff > > -- > * Jens Axboe <[EMAIL PROTECTED]> > * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Tue, Oct 24 2000, Jeff V. Merkey wrote: > Super!. I'll download and test it. We've had nothing but problems with > DVD devices in 2.4. Hopefully this works. Where are the utilities for I beat up the 2.4 version yesterday, and it looks solid so far. The actual write handling is the same as in the packet writing patches, so it's been in my trees for a while and I haven't found any bugs in it so far. So it should be solid. > UDF formatted images for DVD devices? ISO images will only burn up to > 4GB. Go to sourceforge.net and do a search for linux-udf, grab the release of your choice. It has the UDF image tools. -- * Jens Axboe <[EMAIL PROTECTED]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: patch: atapi dvd-ram support
On Tue, Oct 24, 2000 at 04:21:12PM -0700, Jens Axboe wrote: > Hi, > > I've put up patches for 2.2 and 2.4 adding native ATAPI dvd-ram support. > The 2.2 patch is completely untested, but the 2.4 version appears to > work well. > > *.kernel.org/pub/linux/kernel/people/axboe/dvdram > > -- > * Jens Axboe <[EMAIL PROTECTED]> > * SuSE Labs Jens, Super!. I'll download and test it. We've had nothing but problems with DVD devices in 2.4. Hopefully this works. Where are the utilities for UDF formatted images for DVD devices? ISO images will only burn up to 4GB. :-) Jeff > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > Please read the FAQ at http://www.tux.org/lkml/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/