Re: [RFC][PATCH] at91_ide driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tuesday 20 January 2009 12:07:17 Sergei Shtylyov napisał(a):
>    Besides, we have ide_timing_compute() doing the same thing.
I'm trying use it, but have too bigger results - 1 or 2 cycles is added.
I'm doing something wrong.

        T = 1000000000 / (mck_hz / 1000);
        pdbg("pio %u T %u\n", pio, T);
        ret = ide_timing_compute(drive, pio + XFER_PIO_0, &timing, T, 1);

        t0 = timing->cyc8b;
        t1 = timing->setup;
        t2 = timing->act8b;
        t2i = timing->recover;
        t9 = 0;
        pdbg("1: t0=%02u t1=%02u t2=%02u t2i=%02u t9=%02u\n", t0, t1, t2, t2i, t9);

Clock is approx 100MHz , results should be the same as in standard 
divided by 10.

hda: host max PIO5 wanted PIO0 selected PIO0
at91_ide_set_pio_mode pio 0 T 10004
set_ebi_timings 1: t0=60 t1=07 t2=32 t2i=29 t9=00
set_ebi_timings 2: t0=60 t1=07 t2=29 t2i=00 t9=02

hda: host max PIO5 wanted PIO1 selected PIO1
at91_ide_set_pio_mode pio 1 T 10004
set_ebi_timings 1: t0=39 t1=05 t2=29 t2i=18 t9=00
set_ebi_timings 2: t0=39 t1=05 t2=29 t2i=00 t9=02

hda: host max PIO5 wanted PIO2 selected PIO2
at91_ide_set_pio_mode pio 2 T 10004
set_ebi_timings 1: t0=33 t1=03 t2=29 t2i=12 t9=00
set_ebi_timings 2: t0=24 t1=03 t2=29 t2i=00 t9=01

hda: host max PIO5 wanted PIO3 selected PIO3
at91_ide_set_pio_mode pio 3 T 10004
set_ebi_timings 1: t0=18 t1=03 t2=09 t2i=09 t9=00
set_ebi_timings 2: t0=18 t1=03 t2=08 t2i=07 t9=04

hda: host max PIO5 wanted PIO4 selected PIO4
at91_ide_set_pio_mode pio 4 T 10004
set_ebi_timings 1: t0=12 t1=03 t2=08 t2i=04 t9=00
set_ebi_timings 2: t0=12 t1=03 t2=07 t2i=03 t9=01

hda: host max PIO5 wanted PIO5 selected PIO5
at91_ide_set_pio_mode pio 5 T 10004
set_ebi_timings 1: t0=12 t1=02 t2=07 t2i=05 t9=00
set_ebi_timings 2: t0=10 t1=02 t2=07 t2i=03 t9=01
 
Cheers
Stanislaw Gruszka
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux