fwupd/plugins/ata
Richard Hughes faa7871b08 Remove duplicate ->probe() calls to speed up startup by 150ms
Now incorporate is fixed to copy across the properties we need in the
superclass, we don't need to do the subclass ->probe().

Note, we still need to do the subclassed ->probe() when using
FU_UDEV_DEVICE_FLAG_VENDOR_FROM_PARENT or when looking at properties
on the parent device.

This also removes the spurious 'already set GType to FuVliUsbhubDevice,
ignoring FuVliUsbhubDevice' messages when running the daemon.
2022-06-14 21:01:57 +01:00
..
ata.quirk ata: Ignore the virtual M.2 device 2021-07-23 13:16:47 +01:00
fu-ata-device.c Remove duplicate ->probe() calls to speed up startup by 150ms 2022-06-14 21:01:57 +01:00
fu-ata-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-ata.c Speed up the daemon startup by ~2% by doing dlsym much less 2021-11-09 12:02:07 +00:00
fu-self-test.c trivial: Do not use g_assert() in self test code 2021-09-24 22:20:21 +01:00
meson.build Convert build system to use meson tristate features 2022-02-28 08:34:48 -06:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00

ATA

Introduction

This plugin allows updating ATA/ATAPI storage hardware. Devices are enumerated from the block devices and if ID_ATA_DOWNLOAD_MICROCODE is supported they can be updated with appropriate firmware file.

Updating ATA devices is more dangerous than other hardware such as DFU or NVMe and should be tested carefully with the help of the drive vendor.

The device GUID is read from the trimmed model string.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an unspecified binary file format.

This plugin supports the following protocol ID:

  • org.t13.ata

GUID Generation

These device use the Microsoft DeviceInstanceId values, e.g.

  • IDE\VENDOR[40]REVISION[8]
  • IDE\0VENDOR[40]

See https://docs.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-for-ide-devices for more details.

Update Behavior

The firmware is deployed when the device is in normal runtime mode, but it is only activated when the system is in the final shutdown stages. This is done to minimize the chance of data loss if the switch to the new firmware is not done correctly.

Vendor ID Security

No vendor ID is set as there is no vendor field in the IDENTIFY response.

Quirk Use

This plugin uses the following plugin-specific quirks:

AtaTransferBlocks

Blocks to transfer, or 0xffff for max

Since: 1.2.4

AtaTransferMode

The transfer mode, 0x3, 0x7 or 0xe

Since: 1.2.4

External Interface Access

This plugin requires the SG_IO ioctl interface.