The NetBSD Project

CVS log for src/sys/dev/ic/mvsata.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Mon May 6 14:52:51 2013 UTC (2 weeks, 4 days ago) by jakllsch
Branch: MAIN
CVS Tags: khorben-n900, HEAD
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

Put back AT_POLL hack in mvsata_bio_ready().  Without it 1.5Gbps
SATA WD800JD drives cause the kernel to stall during autoconf on
Orion.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 3 17:15:07 2013 UTC (7 weeks, 1 day ago) by bouyer
Branch: MAIN
Changes since 1.29: +7 -6 lines
Diff to previous 1.29 (colored)

Fix kernel dump on ahci controller, by making sure we won't sleep
while dumping:
- introduce ata_delay() which either use delay() or kpause()
  depending on flags. use it in sata_reset_interface() and
  some ahci functions
- kill ATA_NOSLEEP, it was tested but never set. use ATA_POLL instead.
- reduce delay while polling in ahci, to speed up the dump

Should fix PR kern/41095

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 10 21:21:29 2013 UTC (3 months, 1 week ago) by jakllsch
Branch: MAIN
CVS Tags: tls-maxphys-nbase, tls-maxphys-base, agc-symver-base, agc-symver
Changes since 1.28: +135 -64 lines
Diff to previous 1.28 (colored)

This change adds SATA port multiplier support to mvsata(4).

Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 10 20:13:53 2013 UTC (3 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.27: +10 -10 lines
Diff to previous 1.27 (colored)

Timeouts have priority over panicing.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 10 19:22:23 2013 UTC (3 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

The device queue tag and the host queue tag are not the same thing.
We don't support device queueing yet, so write that tag as zero.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 10 19:20:19 2013 UTC (3 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.25: +12 -4 lines
Diff to previous 1.25 (colored)

We can't (well, actually we can, but we still can't) assume that all
ata_bios are LBA.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 3 20:13:28 2013 UTC (3 months, 2 weeks ago) by jakllsch
Branch: MAIN
Changes since 1.24: +5 -4 lines
Diff to previous 1.24 (colored)

Add argument to wdccommandext() to allow the entire contents of the
device/head register to be specified.  Needed for upcoming port multipler
support in mvsata(4).

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 31 15:50:34 2012 UTC (9 months, 3 weeks ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.23: +46 -40 lines
Diff to previous 1.23 (colored)

Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 26 20:49:48 2012 UTC (9 months, 4 weeks ago) by jakllsch
Branch: MAIN
Changes since 1.22: +21 -27 lines
Diff to previous 1.22 (colored)

Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jul 24 14:04:30 2012 UTC (9 months, 4 weeks ago) by jakllsch
Branch: MAIN
Changes since 1.21: +29 -29 lines
Diff to previous 1.21 (colored)

Revert dsl@'s changes of Sun, 15 Jul 2012 10:55:35 +0000 and
Sun, 15 Jul 2012 10:56:50 +0000, excepting the kernel version bump.
First step in reverting regressions to ata(4) subsystem during the addition of
port multiplier support.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 19 12:39:08 2012 UTC (10 months ago) by jakllsch
Branch: MAIN
Changes since 1.20: +11 -7 lines
Diff to previous 1.20 (colored)

Fix MVSATA_WDC_* macros to actually access the Shadow Register Block.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 15 10:55:30 2012 UTC (10 months, 1 week ago) by dsl
Branch: MAIN
Changes since 1.19: +29 -29 lines
Diff to previous 1.19 (colored)

Some namespace protection (and add greppablity).
Prefix the DRIVE_ and DRIVET_ constants from atavar.h with ATA_.
Don't use an enum for drive_type - you don't know how big it will be.
Move driver_type to avoid implicit structure padding (esp on arm).
This change is purely lexical and mechanical.

Update to 6.99.9 - this wasn't done when the SATA PMP changes
were made - I'm sure they warranted a bump.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 15 01:15:03 2012 UTC (10 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Fix obvious copy/paste-induced error (my fault) that would clobber
the bottom 24-bits of r_lba during a LBA48 command with AT_READREG.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 12 14:17:03 2012 UTC (10 months, 1 week ago) by reinoud
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix surplus ( that was forgotten to remove in the DRIVE_ to DRIVET_ rototol.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 2 18:15:46 2012 UTC (10 months, 3 weeks ago) by bouyer
Branch: MAIN
Changes since 1.16: +17 -15 lines
Diff to previous 1.16 (colored)

Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 20 20:23:20 2012 UTC (13 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Add a bustype_async_event_xfer_mode() callback to scsipi_bustype (which can
be NULL), so that transport-specific details of transfer mode setting/printing
can be handled more easily.
Move scsipi_async_event_xfer_mode() and scsipi_print_xfer_mode() to
scsi_base.c and split in parallel scsi and FC/SAS parts.
size of struct scsipi_bustype has changed, welcome to 6.99.5

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 24 20:04:08 2012 UTC (15 months, 4 weeks ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.14: +53 -11 lines
Diff to previous 1.14 (colored)

Rework struct ata_command to support LBA28 and LBA48-protocol commands.
Implement 28- and 48-bit command issuance and parameter read-back in the
various ATA host drivers. Add LBA28-protocol support to ATAIOCCOMMAND ioctl.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 22 16:09:08 2012 UTC (16 months ago) by jakllsch
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Trailing whitespace.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 21 18:33:17 2012 UTC (16 months ago) by jakllsch
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Correct some typos in comments, as was done in wdc.c 1.266.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 9 01:01:49 2012 UTC (16 months, 2 weeks ago) by jakllsch
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Instead of assume that 'features' is 0 in wdccommandext(),
pass it as an argument, as is done for wdccommand().

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 1 14:55:58 2011 UTC (20 months, 3 weeks ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.10: +4 -6 lines
Diff to previous 1.10 (colored)

It seems mvsata_bio_ready() is actually needed, and it seems
to work better if we always poll for completion for the
duration of this function.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 15 01:04:04 2011 UTC (21 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.9: +19 -11 lines
Diff to previous 1.9 (colored)

Even if the hardware can handle concurrent transfers, ata(4) can't.
Also, completely rework mvsata_bio_ready().

Seems to make mvsata(4) usable on 5182.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 14 16:50:49 2011 UTC (21 months, 1 week ago) by jakllsch
Branch: MAIN
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored)

Spell enqueue correctly.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 10 03:35:37 2011 UTC (2 years, 2 months ago) by jakllsch
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Shorten infinite loop.  Tames atactl(8) atabus reset on mvsata(4).

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 20 01:26:22 2011 UTC (2 years, 3 months ago) by riz
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

Use PRId64 instead of lld, and PRIx64 instead of llx when compiling
with MVSATA_DEBUG.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 13 12:57:22 2010 UTC (2 years, 10 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.5: +3 -5 lines
Diff to previous 1.5 (colored)

Fix wrong ifdef.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 13 12:53:42 2010 UTC (2 years, 10 months ago) by kiyohara
Branch: MAIN
Changes since 1.4: +8 -48 lines
Diff to previous 1.4 (colored)

Move to pci/mvsata_pci.c (marvell/mvsata_mv.c) splitting mvsata_products[].
mvsata(4) uses these to match.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 28 20:46:18 2010 UTC (3 years, 1 month ago) by snj
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Spell "enough" properly.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 5 13:30:10 2010 UTC (3 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Remove extra semicolons.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 3 20:06:36 2009 UTC (3 years, 9 months ago) by snj
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: yamt-nfs-mp
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Fix a typo inside a comment.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 27 12:34:14 2009 UTC (3 years, 9 months ago) by kiyohara
Branch: MAIN

Support Marvell Hercules-I/II SATA Controllers.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>