^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/platform/devices/.../driver_override
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: April 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: Kim Phillips <kim.phillips@freescale.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) This file allows the driver for a device to be specified which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) will override standard OF, ACPI, ID table, and name matching.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) When specified, only a driver with a name matching the value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) written to driver_override will have an opportunity to bind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) to the device. The override is specified by writing a string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) to the driver_override file (echo vfio-platform > \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) driver_override) and may be cleared with an empty string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) (echo > driver_override). This returns the device to standard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) matching rules binding. Writing to driver_override does not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) automatically unbind the device from its current driver or make
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) any attempt to automatically load the specified driver. If no
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) driver with a matching name is currently loaded in the kernel,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) the device will not bind to any driver. This also allows
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) devices to opt-out of driver binding using a driver_override
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) name such as "none". Only a single driver may be specified in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) the override, there is no support for parsing delimiters.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) What: /sys/bus/platform/devices/.../numa_node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Date: June 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Contact: Barry Song <song.bao.hua@hisilicon.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) This file contains the NUMA node to which the platform device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) is attached. It won't be visible if the node is unknown. The
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) value comes from an ACPI _PXM method or a similar firmware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) source. Initial users for this file would be devices like
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) arm smmu which are populated by arm64 acpi_iort.