tech-kern archive

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

Re: DIOCGDISCARDINFO and DIOCDISCARD



Hello,

On Wed, 23 Oct 2013 18:55:35 +0200
Matthias Drochner <M.Drochner%fz-juelich.de@localhost> wrote:

> On Wed, 23 Oct 2013 03:07:59 -0400
> Michael <macallan%netbsd.org@localhost> wrote:
> > I use mine with PATA adaptors:
> > wd0 at atabus0 drive 0
> > wd0: <SanDisk SDCFH-008G>
> 
> It it identified as "ATAPI" by "atactl identify"? If yes, does the
> patch help?
> If it identifies as CF-ATA, one could add support for the "Erase",
> and possibly "Write Sectors without Erase" to the wd driver (or
> possibly an autoconf attachment, to avoid bloat).

This is the PowerBook ( with the CF card replacing the internal
harddisk ) with your patches applied:
wd0 at atabus0 drive 0
wd0: <SanDisk SDCFH-008G>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 7641 MB, 15525 cyl, 16 head, 63 sec, 512 bytes/sect x 15649200
sectors wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) (using DMA)

# atactl wd0 identify
Model: SanDisk SDCFH-008G, Rev: HDX 5.07, Serial #:      DPZ011210203707
Device type: CF-ATA
Capacity 8012 Mbytes, 15649200 sectors, 512 bytes/sector
Cylinders: 15525, heads: 16, sec/track: 63
Device capabilities:
        DMA
        LBA
        ATA standby timer values
Device supports following standards:
ATA-4 
Command set support:
        NOP command (enabled)
        READ BUFFER command (enabled)
        WRITE BUFFER command (enabled)
        Write cache (disabled)
        FLUSH CACHE EXT command (disabled)
        FLUSH CACHE command (disabled)
        Advanced Power Management feature set (disabled)
        CFA feature set (enabled)

I didn't see any negative side effects ( or for that matter, any side
effects other than the changed atactl output ) on the powerbook or the
Blade.

have fun
Michael


Home | Main Index | Thread Index | Old Index