Paresh Sawant | 4 Dec 10:10 2002

struct to be passed to ioctl call for commanf HDIO_DRIVE_CMD

Hi 

	I want to send ATA command to IDE hard disk driver using ioctl with comand "HDIO_DRIVE_CMD", to do raw write
to hard disk. Which Struct i should pass to ioctl call as a third argument ?

Thanks 
paresh
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Matti Aarnio | 4 Dec 10:25 2002

Re: struct to be passed to ioctl call for commanf HDIO_DRIVE_CMD

On Wed, Dec 04, 2002 at 02:38:18PM +0530, Paresh Sawant wrote:
> Hi!
>         I want to send ATA command to IDE hard disk driver using ioctl 
>	  with comand "HDIO_DRIVE_CMD", to do raw write to hard disk. 
>	  Which Struct i should pass to ioctl call as a third argument ?

  Read the source of  ide_cmd_ioctl()   at  drivers/ide/ide-taskfile.c
  Presently that is the only documentation on it.

> thanks 
> paresh
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Rusty Trivial Russell | 6 Dec 03:59 2002
Picon

[TRIVIAL] Re: oneliners for ide-probe: Patch seems outdated, and has been ignored

From:  "James McMechan" <james_mcmechan <at> hotmail.com>

  With this patch it boots and now behaves according to the comment above the
  if statement and tests the slave device if the master device is flash. Now
  it also tests the slave device if the slave device is flash but that is ok.
  It used to test and disable the master device if the slave was flash.

--- trivial-2.5-bk/drivers/ide/ide-probe.c.orig	2002-12-06 13:56:30.000000000 +1100
+++ trivial-2.5-bk/drivers/ide/ide-probe.c	2002-12-06 13:56:30.000000000 +1100
 <at>  <at>  -214,7 +214,7  <at>  <at> 
 	 */
 	drive->is_flash = 0;
 	if (drive_is_flashcard(drive)) {
-		ide_drive_t *mate = &hwif->drives[1^drive->select.b.unit];
+		ide_drive_t *mate = &hwif->drives[1];
 		if (!mate->ata_flash) {
 			mate->present = 0;
 			mate->noprobe = 1;
--

-- 
  Don't blame me: the Monkey is driving
  File: "James McMechan" <james_mcmechan <at> hotmail.com>: Re: oneliners for ide-probe: Patch seems
outdated, and has been ignored
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Paresh Sawant | 6 Dec 06:09 2002

WIN_READDMA

hi
    i want to send  "WIN_READDMA" ATA command to ide hard drive, i am doing ioctl call using command
HDIO_DRIVE_TASK, what would be the third argument to the ioctl call ? currently i m passing following as
third arg -
unsigned char args[8+512] = {WIN_READDMA,feature,sector_count,low_lba,mid_lba,high_lba,device,};

thanks
paresh
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Felix Triebel | 9 Dec 14:30 2002
Picon
Picon

486 laptop apm problems

Hi,

when using APM with a Compaq 4/33C LTE Lite laptop, I get the following
kernel messages:

-----------------------------------------------------------------------
Linux version 2.4.20-rc4-ac1 (root <at> triebel) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Fre
Nov 29 11:10:52 CET 2002
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000001440000 (usable)
20MB LOWMEM available.
On node 0 totalpages: 5184
zone(0): 4096 pages.
zone(1): 1088 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=Linux ro root=302
Initializing CPU#0
Console: colour VGA+ 80x34
Calibrating delay loop... 16.58 BogoMIPS
Memory: 18760k/20736k available (728k kernel code, 1428k reserved, 162k data, 48k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=2365 max_file_pages=0 max_inodes=0 max_dentries=2365
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU:     After generic, caps: 00000000 00000000 00000000 00000000
(Continue reading)

Marci | 12 Dec 22:31 2002
Picon

VT8235 and IDE problems

Hi, I have a MSI KT4 Ultra MoBo with KT400 and VT8235 , before of this I 
had an Apollo PRO 133 and all worked fine, with this mobo there isn't 
DMA support for my southbridge in kernel 2.4.19 , so I've upgraded it to 
2.4.20 , but I have a problem.

In the boot I see that he recognize my chip and turn on DMA on hda and 
hdb (My HD) , but when it try to start DMA on my hdc (first DVD Reader) 
It locks up with "hdc: DMA disabled" message, then it said about the 
device that is BUSY , then it said "ide1: resetting!" and return to the 
message above ("hdc:DMA...:") in an infinite loop.I don't know what to 
do.I've tried to install ac2 patch for linux-2.4.20 tree, and it don't 
lock up to hdc: DMA disabled (this appears again , but don't freeze 
here) but when I try to enable ide-scsi module it freeze with messages 
about SCSI problems, then it tries to resetting all the SCSI emulated 
devices and this create an infinite loop of these messages!

What is the problem?

Thanks a lot

Bye

Marcello

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Rusty Russell | 13 Dec 02:35 2002
Picon

Re: 2.5.51 ide module problem (fwd)

In message <1039696707.21192.11.camel <at> irongate.swansea.linux.org.uk> you write:
> The module changes basically left me unable to do any further 2.5.5x
> work at an acceptable rate. My time is now allocated to other projects
> until January. At that point hopefully the module stuff will be usable
> again, parameters will work etc and I can go back to work on 2.5.

That's disappointing.  However, I can completely relate to your
frustration with the lack of module parameters.  Linus are you
listening? 8) Hopefully he's back today and will take patches, and
then I can look forward to some bug reports from you...

The patches I have queued for Linus are:
1) Param support
2) /lib/modules directory structure & depmod reversion
3) module's init calls request_module loop fix (bttv and parport do
   this in some configs).

> Rusty is right that the ide stuff has dependancy loops right now. His
> new module stuff shouldn't have crashed but the fundamental work to be
> done is in the IDE layer. There are also some locking problems to
> address before modular IDE becomes useful.

Also, my stress_modules script gave the following warning then oops
from ide-cd on 2.5.51 SMP x86 (IDE is built-in):

Dec 12 11:05:36 mingo kernel: Badness in kobject_register at lib/kobject.c:113
Dec 12 11:05:37 mingo kernel: Call Trace:
Dec 12 11:05:37 mingo kernel:  [<d0968fec>] ide_cdrom_driver+0x4c/0xd4 [ide_cd]
Dec 12 11:05:37 mingo kernel:  [<c01a5745>] kobject_register+0x39/0x50
Dec 12 11:05:37 mingo kernel:  [<c01b2352>] bus_add_driver+0x7a/0xc8
(Continue reading)

Paresh Sawant | 13 Dec 06:02 2002

(unknown)

unsubscribe linux-ide
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

David S. Miller | 13 Dec 06:24 2002
Picon

(unknown)

   From: "Paresh Sawant" <p.Sawant <at> zensar.com>
   Date: Fri, 13 Dec 2002 10:32:07 +0530

   unsubscribe linux-ide

You should't send unsubscribe requests to the mailing list,
what makes you think this will work?

Regardless, I've removed you manually.
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Alan Cox | 13 Dec 11:42 2002
Picon

Re: 2.5.51 ide module problem (fwd)

On Fri, 2002-12-13 at 01:35, Rusty Russell wrote:
> Also, my stress_modules script gave the following warning then oops
> from ide-cd on 2.5.51 SMP x86 (IDE is built-in):

Yes. This mysteriously stsrted happening. I don't know if its now
trapping a long standing IDE bug or its of the other changes people did
to IDE to make it actually follow the devices model properly. I've got a
slightly similar looking 2.4 bug to chase down which makes me suspect
the former.

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane