Re: ATAng and CF cards

2003-09-12 Thread Alex Dupre
Monday, September 8, 2003, 11:48:55 AM, you wrote:

Sl DOH! things are not going weel this morning, this patch should be right:

I didn't try your patch, yet, but I can report some other phantom
drives with ataNG. The system is still the net4501 board.

With Sandisk 32MB CF:

ata0-master: pio=0x09 wdma=0x udma=0x cable=40pin
ad0: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
ad0: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
GEOM: create disk ad0 dp=0xc0d46770
ad0: SanDisk SDCFB-32/vde 1.10 ATA-0 disk at ata0-master
ad0: 30MB (62720 sectors), 490 C, 4 H, 32 S, 512 B
ad0: 1 secs/int, 1 depth queue, ???
GEOM: new disk ad0
[0] f:80 typ:4 s(CHS):0/1/1 e(CHS):489/3/32 s:32 l:62688
[1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
[2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
[3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
GEOM: Configure ad0s1, start 16384 length 32096256 end 32112639


With Hitachi 8MB CF:

ata0-slave: pio=0x08 wdma=0x udma=0x cable=40pin
ata0-master: pio=0x09 wdma=0x udma=0x cable=40pin
ad0: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
ad0: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
GEOM: create disk ad0 dp=0xc0d46770
ad0: Hitachi CV 5.1.1/Rev 1.01 ATA-0 disk at ata0-master
ad0: 7MB (15744 sectors), 246 C, 2 H, 32 S, 512 B
ad0: 1 secs/int, 1 depth queue, ???
GEOM: new disk ad0
ad1: WARNING - SETFEATURES recovered from missing interrupt
[0] f:80 typ:1 s(CHS):0/1/1 e(CHS):245/1/32 s:32 l:15712
[1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
[2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
[3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0
GEOM: Configure ad0s1, start 16384 length 8044544 end 8060927
ad1: WARNING - SETFEATURES recovered from missing interrupt
GEOM: create disk ad1 dp=0xc0d46670
ad1: / ATA-0 disk at ata0-slave


Fatal trap 18: integer divide fault while in kernel mode
instruction pointer = 0x8:0xc028517b
stack pointer   = 0x10:0xc0315c44
frame pointer   = 0x10:0xc0315cc4
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
trap number = 18
panic: integer divide fault

-- 
Alex Dupre [EMAIL PROTECTED]
http://www.alexdupre.com/  [EMAIL PROTECTED]

Today's excuse: firewall needs cooling


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-12 Thread Alex Dupre
Monday, September 8, 2003, 11:48:55 AM, you wrote:

Sl DOH! things are not going weel this morning, this patch should be right:

Tested your patch, but it's exactly the same as before.

-- 
Alex Dupre [EMAIL PROTECTED]
http://www.alexdupre.com/  [EMAIL PROTECTED]

Today's excuse: Plumber mistook routing panel for decorative wall fixture


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread Soren Schmidt
It seems YazzY wrote:
 Hi.
 
 It can be mounted when I boot the laptop and do not take the card out of 
 the slot.
 If I eject it and then put it back in, I cannot mount it or dd files to 
 it anymore...
 Anyway, this bit of dmesg does not look healthy to me. And as I said, 
 everything worked fine before the ATAng code got changed.

Please try this simple patch:

Index: ata-lowlevel.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.8
diff -u -r1.8 ata-lowlevel.c
--- ata-lowlevel.c  1 Sep 2003 11:13:21 -   1.8
+++ ata-lowlevel.c  8 Sep 2003 07:24:44 -
@@ -763,7 +772,10 @@
 struct ata_channel *ch = request-device-channel;
 int resid;
 
-if (ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
+if ((!(request-flags  ATA_R_ATAPI)  
+request-u.ata.command = ATA_ATA_IDENTIFY 
+request-u.ata.command = ATA_ATAPI_IDENTIFY)) ||
+   ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
ATA_IDX_INSW_STRM(ch, ATA_DATA,
  (void*)((uintptr_t)request-data+request-donecount),
  size / sizeof(int16_t));
-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread Peter Jeremy
On Mon, Sep 08, 2003 at 05:30:28AM +0200, YazzY wrote:
Isn't the ATAng code great?
It makes it affordable to get a 9007199253773098MB CF for the price of a 
 32 MB card.
Now I am taking backups of the internet on it.
:)

The old ATA code (in -stable) can only manage to expand my 3102MB disk
to 43402MB.  I might install -CURRENT into the spare 40GB and see if I
can manage to expand it by a few billion TB :-).

Peter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread Soren Schmidt
It seems Soren Schmidt wrote:
 It seems YazzY wrote:
  Hi.
  
  It can be mounted when I boot the laptop and do not take the card out of 
  the slot.
  If I eject it and then put it back in, I cannot mount it or dd files to 
  it anymore...
  Anyway, this bit of dmesg does not look healthy to me. And as I said, 
  everything worked fine before the ATAng code got changed.
 
 Please try this simple patch:

Forget that, wrong patch, here goes the right one:

Index: ata-lowlevel.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.10
diff -u -r1.10 ata-lowlevel.c
--- ata-lowlevel.c  8 Sep 2003 08:36:46 -   1.10
+++ ata-lowlevel.c  8 Sep 2003 09:36:53 -
@@ -772,7 +772,10 @@
 struct ata_channel *ch = request-device-channel;
 int resid;
 
-if (ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
+if ((!(request-flags  ATA_R_ATAPI)  
+(request-u.ata.command = ATA_ATA_IDENTIFY ||
+ request-u.ata.command = ATA_ATAPI_IDENTIFY)) ||
+   ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
ATA_IDX_INSW_STRM(ch, ATA_DATA,
  (void*)((uintptr_t)request-data+request-donecount),
  size / sizeof(int16_t));

-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread Soren Schmidt
It seems Soren Schmidt wrote:
 Forget that, wrong patch, here goes the right one:

DOH! things are not going weel this morning, this patch should be right:

Index: ata-lowlevel.c
===
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.10
diff -u -r1.10 ata-lowlevel.c
--- ata-lowlevel.c  8 Sep 2003 08:36:46 -   1.10
+++ ata-lowlevel.c  8 Sep 2003 09:47:14 -
@@ -772,7 +772,10 @@
 struct ata_channel *ch = request-device-channel;
 int resid;
 
-if (ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
+if ((!(request-flags  ATA_R_ATAPI)  
+(request-u.ata.command == ATA_ATA_IDENTIFY ||
+ request-u.ata.command == ATA_ATAPI_IDENTIFY)) ||
+   ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
ATA_IDX_INSW_STRM(ch, ATA_DATA,
  (void*)((uintptr_t)request-data+request-donecount),
  size / sizeof(int16_t));
-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread Andrew Thompson
On Mon, 2003-09-08 at 21:38, Soren Schmidt wrote:
 It seems Soren Schmidt wrote:
  It seems YazzY wrote:
   Hi.
   
   It can be mounted when I boot the laptop and do not take the card out of 
   the slot.
   If I eject it and then put it back in, I cannot mount it or dd files to 
   it anymore...
   Anyway, this bit of dmesg does not look healthy to me. And as I said, 
   everything worked fine before the ATAng code got changed.
  
  Please try this simple patch:
 
 Forget that, wrong patch, here goes the right one:
 
 Index: ata-lowlevel.c
 ===
 RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
 retrieving revision 1.10
 diff -u -r1.10 ata-lowlevel.c
 --- ata-lowlevel.c8 Sep 2003 08:36:46 -   1.10
 +++ ata-lowlevel.c8 Sep 2003 09:36:53 -
 @@ -772,7 +772,10 @@
  struct ata_channel *ch = request-device-channel;
  int resid;
  
 -if (ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
 +if ((!(request-flags  ATA_R_ATAPI)  
 +  (request-u.ata.command = ATA_ATA_IDENTIFY ||
 +   request-u.ata.command = ATA_ATAPI_IDENTIFY)) ||
 + ch-flags  ATA_USE_16BIT || (size % sizeof(int32_t)))
   ATA_IDX_INSW_STRM(ch, ATA_DATA,
 (void*)((uintptr_t)request-data+request-donecount),
 size / sizeof(int16_t));

Correct me if im wrong, but shouldnt it be =='s

+(request-u.ata.command == ATA_ATA_IDENTIFY ||
+ request-u.ata.command == ATA_ATAPI_IDENTIFY)) ||


Andy


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-08 Thread David Gilbert
 YazzY == YazzY  [EMAIL PROTECTED] writes:

YazzY Isn't the ATAng code great?  It makes it affordable to get a
YazzY 9007199253773098MB CF for the price of a 32 MB card.  Now I am
YazzY taking backups of the internet on it.  :)

Pocket internet... now there's a product.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


ATAng and CF cards

2003-09-07 Thread Martin Jessa
Hi.

The latest changes in ATAng code made it impossible to use my CF cards.
I have a few of them which previously worked just fine.
Now, each time I put one to my laptop's PCMCIA slot i get following errors:

pccard0: Allocation failed for cfe 0
ata2: CL ATA FLASH CARD LEXAR   TIDALWV at port 0x110-0x11f irq 11 function 0 config 
1 on pccard0
ata2: [MPSAFE]
ad4: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
ad4: FAILURE - SETFEATURES status=51READY,DSC,ERROR error=4ABORTED
ad4: FAILURE - SET_MULTI status=51READY,DSC,ERROR error=4ABORTED
GEOM: create disk ad4 dp=0xc1e9d770
ad4: 9007199253773098MB 
\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P
 [426376296036596/208/208] at ata2-master PIO0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-07 Thread Doug White
On Sun, 7 Sep 2003, Martin Jessa wrote:

 The latest changes in ATAng code made it impossible to use my CF cards.
 I have a few of them which previously worked just fine.
 Now, each time I put one to my laptop's PCMCIA slot i get following errors:

Looks like it mounted fine to me; some of the special options failed but
thats not unusual.

 GEOM: create disk ad4 dp=0xc1e9d770
 ad4: 9007199253773098MB 
 \M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P
  [426376296036596/208/208] at ata2-master PIO0

Does ad4 work?

-- 
Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED]  |  www.FreeBSD.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-07 Thread Bruce Evans
On Sun, 7 Sep 2003, Doug White wrote:

 On Sun, 7 Sep 2003, Martin Jessa wrote:

  The latest changes in ATAng code made it impossible to use my CF cards.
  I have a few of them which previously worked just fine.
  Now, each time I put one to my laptop's PCMCIA slot i get following errors:

 Looks like it mounted fine to me; some of the special options failed but
 thats not unusual.

  GEOM: create disk ad4 dp=0xc1e9d770
  ad4: 9007199253773098MB 
  \M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P
   [426376296036596/208/208] at ata2-master PIO0

 Does ad4 work?

Perhaps not the last 9007199252 TB of it.

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-07 Thread YazzY
Hi.

It can be mounted when I boot the laptop and do not take the card out of 
the slot.
If I eject it and then put it back in, I cannot mount it or dd files to 
it anymore...
Anyway, this bit of dmesg does not look healthy to me. And as I said, 
everything worked fine before the ATAng code got changed.

Cheers,
YazzY
Doug White wrote:
On Sun, 7 Sep 2003, Martin Jessa wrote:


The latest changes in ATAng code made it impossible to use my CF cards.
I have a few of them which previously worked just fine.
Now, each time I put one to my laptop's PCMCIA slot i get following errors:


Looks like it mounted fine to me; some of the special options failed but
thats not unusual.

GEOM: create disk ad4 dp=0xc1e9d770
ad4: 9007199253773098MB 
\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P
 [426376296036596/208/208] at ata2-master PIO0


Does ad4 work?



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-07 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Bruce Evans [EMAIL PROTECTED] writes:
: On Sun, 7 Sep 2003, Doug White wrote:
:  On Sun, 7 Sep 2003, Martin Jessa wrote:
:   ad4: 9007199253773098MB 
\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P
 [426376296036596/208/208] at ata2-master PIO0
: 
:  Does ad4 work?
: 
: Perhaps not the last 9007199252 TB of it.

:-)

Where can I get a 9007199252TB flash part?

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATAng and CF cards

2003-09-07 Thread YazzY
Isn't the ATAng code great?
It makes it affordable to get a 9007199253773098MB CF for the price of a 
 32 MB card.
Now I am taking backups of the internet on it.
:)



M. Warner Losh wrote:
In message: [EMAIL PROTECTED]
Bruce Evans [EMAIL PROTECTED] writes:
: On Sun, 7 Sep 2003, Doug White wrote:
:  On Sun, 7 Sep 2003, Martin Jessa wrote:
:   ad4: 9007199253773098MB \M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P\M-P [426376296036596/208/208] at ata2-master PIO0
: 
:  Does ad4 work?
: 
: Perhaps not the last 9007199252 TB of it.

:-)

Where can I get a 9007199252TB flash part?

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]