summaryrefslogtreecommitdiffstats
path: root/sys/dev/siis
Commit message (Collapse)AuthorAgeFilesLines
* Fix panic, when due to some kind of congestion on FIS-based switchingmav2010-09-161-5/+8
| | | | | | | port multiplier some command triggers false positive timeout, but then completes normally. MFC after: 2 weeks
* Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers tomav2010-07-251-2/+7
| | | | | GEOM. This information needed for proper soft-RAID's on-disk metadata reading and writing.
* Plug memory leak to silent Coverity. Error is still not really handled.mav2010-06-051-0/+1
| | | | | Found with: Coverity Prevent(tm) CID: 4196
* Fix attach errors handling.mav2010-06-051-3/+5
| | | | | Found with: Coverity Prevent(tm) CID: 3477
* Fill rman range start/end values. It makes devinfo output more readable.mav2010-05-221-0/+2
|
* Report ATA/SATA channel number to NewBus at location string.mav2010-05-221-0/+11
|
* Improve suspend/resume support. Make sure controller is idle on suspendmav2010-05-211-12/+41
| | | | and reset it on resume.
* Make SATA XPT negotiate and enable some additional SATA features, such as:mav2010-05-022-0/+13
| | | | | | | - device initiated power management (some devices support only this way); - Automatic Partial to Slumber Transition (more power saving); - DMA auto-activation (expected to slightly improve performance). More features could be added later, when hardware supports.
* Add Target/LUN ID checks and deny access to targets 1-14 when PMP absent.mav2010-04-301-39/+28
|
* Explicitly enable PCI busmastering on attach.mav2010-04-151-0/+1
| | | | | | Now SiI3124 with siis(4) successfully works on sparc64 (SunBlade 100). H/W donated by: Gheorghe Ardelean
* Enable MSI by default for SiI3124.mav2010-03-201-6/+7
|
* MFp4:mav2010-02-141-2/+25
| | | | | After last running command completed, give commands in timeout state second time.
* Use new helper functions to set PCIe max read request size.mav2010-02-051-12/+2
|
* - Give ATA/SATA SIMs info about ATAPI packet size, supported by device.mav2010-02-022-0/+5
| | | | | - Make ATA XPT to reject longer SCSI CDBs then supported by device, or any SCSI CDBs, if device doesn't support ATAPI.
* Reset port on disconnect event, to abort any running requests.mav2010-01-291-8/+6
|
* MFp4: Large set of CAM inprovements.mav2010-01-281-9/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Unify bus reset/probe sequence. Whenever bus attached at boot or later, CAM will automatically reset and scan it. It allows to remove duplicate code from many drivers. - Any bus, attached before CAM completed it's boot-time initialization, will equally join to the process, delaying boot if needed. - New kern.cam.boot_delay loader tunable should help controllers that are still unable to register their buses in time (such as slow USB/ PCCard/ CardBus devices), by adding one more event to wait on boot. - To allow synchronization between different CAM levels, concept of requests priorities was extended. Priorities now split between several "run levels". Device can be freezed at specified level, allowing higher priority requests to pass. For example, no payload requests allowed, until PMP driver enable port. ATA XPT negotiate transfer parameters, periph driver configure caching and so on. - Frozen requests are no more counted by request allocation scheduler. It fixes deadlocks, when frozen low priority payload requests occupying slots, required by higher levels to manage theit execution. - Two last changes were holding proper ATA reinitialization and error recovery implementation. Now it is done: SATA controllers and Port Multipliers now implement automatic hot-plug and should correctly recover from timeouts and bus resets. - Improve SCSI error recovery for devices on buses without automatic sense reporting, such as ATAPI or USB. For example, it allows CAM to wait, while CD drive loads disk, instead of immediately return error status. - Decapitalize diagnostic messages and make them more readable and sensible. - Teach PMP driver to limit maximum speed on fan-out ports. - Make boot wait for PMP scan completes, and make rescan more reliable. - Fix pass driver, to return CCB to user level in case of error. - Increase number of retries in cd driver, as device may return several UAs.
* Usually these controllers are able to automatically decode command code tomav2009-12-292-5/+27
| | | | | | get required command protocol. But they have no idea about new commands, such as DATA SET MANAGEMENT (TRIM). As soon as this info any way provided by CAM, give controller specific instructions.
* Increase Max Read Request Size for PCIe chips from 512 to 1024 bytes.mav2009-12-091-1/+14
| | | | It gives those beasts additional 10% of write bandwidth.
* Explicitly acknowledge MSI completion, as required by SiI3124 datasheet.mav2009-12-072-3/+14
| | | | | | It makes MSI working there. Later (and cheaper) PCIe chips (3132/3531) still randomly crashing system in few seconds of high MSI rates, generating something inaporopriate, like NMI or "Fatal trap 30".
* SiI3124 has no SNotification register. Handle Asynchronous Notificationsmav2009-12-072-12/+27
| | | | there without it as good as possible.
* MFp4:mav2009-11-262-14/+16
| | | | Improve ATA mode/SATA revision control.
* MFp4:mav2009-11-242-23/+71
| | | | | | | | | | | | - Extend XPT-SIM transfer settings control API. Now it allows to report to SATA SIM number of tags supported by each device, implement ATA mode and SATA revision negotiation for both SATA and PATA SIMs. - Make ahci(4) and siis(4) to use submitted maximum tag number, when scheduling requests. It allows to support NCQ on devices with lower tags count then controller supports. - Make PMP driver to report attached devices connection speeds. - Implement ATA mode negotiation between user settings, device and controller capabilities.
* Do not require payload data to be aligned. It is not mentioned in datasheetmav2009-11-161-1/+1
| | | | and works fine in practice.
* MFp4:mav2009-11-111-1/+1
| | | | | | | | | | - Move tagged queueing control from ADA to ATA XPT. It allows to control device command queue length correctly. First step to support < 32 tags. - Limit queue for non-tagged devices by 2 slots for ahci(4) and siis(4). - Implement quirk matching for ATA devices. - Move xpt_schedule_dev_sendq() from header to source file. - Move delayed queue shrinking to the more expected place - element freeing. - Remove some SCSIsms in ATA.
* MFp4:mav2009-11-102-21/+31
| | | | Organize device IDs and add some more of them.
* Do not unarm callout on request completion and change slot selectionmav2009-11-041-10/+8
| | | | | algorithm as done in ahci(4). This saves some CPU time on high request rates.
* MFp4:mav2009-11-032-49/+104
| | | | | | | | | - Rework timeout handling, to make it more graceful for devices sharing controller port (with PMP). Wait for other commands completion/timeout before initiating recovery. - Handle timeouts and fatal errors with port hard-reset. The rest of recovery will be done by XPT on receiving async event. More gracefull per-device soft-reset recovery can be implemented later.
* Reimplement device reset sequence in more controller-specific way.mav2009-10-231-38/+34
|
* MFp4:mav2009-10-211-1/+1
| | | | | Report real max_target = 15. SIM doesn't need to know that target 15 is PMP. It is XPT business.
* MFp4:mav2009-10-211-7/+26
| | | | Freeze device queue on error to permit periph driver to do proper recovery.
* On command timeout handle frozen command first, to not run it insidemav2009-10-071-3/+4
| | | | | | XXX_end_transaction(). Submitted by: avg
* MFp4:mav2009-08-301-5/+31
| | | | | - Add SNTF support. - Do not report meaningless transport/protocol versions.
* Add `siis` CAM driver for SiliconImage SiI3124/3132/3531 SATA2 controllers.mav2009-07-212-0/+2017
Driver supports Serial ATA and ATAPI devices, Port Multipliers (including FIS-based switching), hardware command queues (31 command per port) and Native Command Queuing. This is probably the second on popularity, after AHCI, type of SATA2 controllers, that benefits from using CAM, because of hardware command queuing support. Approved by: re (kib)
OpenPOWER on IntegriCloud