sysfs-ata 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. What: /sys/class/ata_...
  2. Date: August 2008
  3. Contact: Gwendal Grignou<gwendal@google.com>
  4. Description:
  5. Provide a place in sysfs for storing the ATA topology of the system. This allows
  6. retrieving various information about ATA objects.
  7. Files under /sys/class/ata_port
  8. -------------------------------
  9. For each port, a directory ataX is created where X is the ata_port_id of
  10. the port. The device parent is the ata host device.
  11. idle_irq (read)
  12. Number of IRQ received by the port while idle [some ata HBA only].
  13. nr_pmp_links (read)
  14. If a SATA Port Multiplier (PM) is connected, number of link behind it.
  15. Files under /sys/class/ata_link
  16. -------------------------------
  17. Behind each port, there is a ata_link. If there is a SATA PM in the
  18. topology, 15 ata_link objects are created.
  19. If a link is behind a port, the directory name is linkX, where X is
  20. ata_port_id of the port.
  21. If a link is behind a PM, its name is linkX.Y where X is ata_port_id
  22. of the parent port and Y the PM port.
  23. hw_sata_spd_limit
  24. Maximum speed supported by the connected SATA device.
  25. sata_spd_limit
  26. Maximum speed imposed by libata.
  27. sata_spd
  28. Current speed of the link [1.5, 3Gps,...].
  29. Files under /sys/class/ata_device
  30. ---------------------------------
  31. Behind each link, up to two ata device are created.
  32. The name of the directory is devX[.Y].Z where:
  33. - X is ata_port_id of the port where the device is connected,
  34. - Y the port of the PM if any, and
  35. - Z the device id: for PATA, there is usually 2 devices [0,1],
  36. only 1 for SATA.
  37. class
  38. Device class. Can be "ata" for disk, "atapi" for packet device,
  39. "pmp" for PM, or "none" if no device was found behind the link.
  40. dma_mode
  41. Transfer modes supported by the device when in DMA mode.
  42. Mostly used by PATA device.
  43. pio_mode
  44. Transfer modes supported by the device when in PIO mode.
  45. Mostly used by PATA device.
  46. xfer_mode
  47. Current transfer mode.
  48. id
  49. Cached result of IDENTIFY command, as described in ATA8 7.16 and 7.17.
  50. Only valid if the device is not a PM.
  51. gscr
  52. Cached result of the dump of PM GSCR register.
  53. Valid registers are:
  54. 0: SATA_PMP_GSCR_PROD_ID,
  55. 1: SATA_PMP_GSCR_REV,
  56. 2: SATA_PMP_GSCR_PORT_INFO,
  57. 32: SATA_PMP_GSCR_ERROR,
  58. 33: SATA_PMP_GSCR_ERROR_EN,
  59. 64: SATA_PMP_GSCR_FEAT,
  60. 96: SATA_PMP_GSCR_FEAT_EN,
  61. 130: SATA_PMP_GSCR_SII_GPIO
  62. Only valid if the device is a PM.
  63. trim
  64. Shows the DSM TRIM mode currently used by the device. Valid
  65. values are:
  66. unsupported: Drive does not support DSM TRIM
  67. unqueued: Drive supports unqueued DSM TRIM only
  68. queued: Drive supports queued DSM TRIM
  69. forced_unqueued: Drive's queued DSM support is known to be
  70. buggy and only unqueued TRIM commands
  71. are sent
  72. spdn_cnt
  73. Number of time libata decided to lower the speed of link due to errors.
  74. ering
  75. Formatted output of the error ring of the device.