diff options
| author | Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com> | 2025-10-31 10:41:00 -0700 |
|---|---|---|
| committer | Jeff Hugo <jeff.hugo@oss.qualcomm.com> | 2025-11-07 10:55:39 -0700 |
| commit | f286066ed9df38637eb6c12fb2856f1e0b9731d4 (patch) | |
| tree | bd91962502b7bf52f91a66de1185621156d23799 /Documentation | |
| parent | 1750e652a996382a8608ec70167c3719d0556bda (diff) | |
| download | linux-next-f286066ed9df38637eb6c12fb2856f1e0b9731d4.tar.gz linux-next-f286066ed9df38637eb6c12fb2856f1e0b9731d4.zip | |
accel/qaic: Add DMA Bridge Channel(DBC) sysfs and uevents
Expose sysfs files for each DBC representing the current state of that DBC.
For example, sysfs for DBC ID 0 and accel minor number 0 looks like this,
/sys/class/accel/accel0/dbc0_state
Following are the states and their corresponding values,
DBC_STATE_IDLE (0)
DBC_STATE_ASSIGNED (1)
DBC_STATE_BEFORE_SHUTDOWN (2)
DBC_STATE_AFTER_SHUTDOWN (3)
DBC_STATE_BEFORE_POWER_UP (4)
DBC_STATE_AFTER_POWER_UP (5)
Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Signed-off-by: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20251031174059.2814445-2-zachary.mckevitt@oss.qualcomm.com
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/ABI/stable/sysfs-driver-qaic | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/ABI/stable/sysfs-driver-qaic b/Documentation/ABI/stable/sysfs-driver-qaic new file mode 100644 index 000000000000..e5876935e62b --- /dev/null +++ b/Documentation/ABI/stable/sysfs-driver-qaic @@ -0,0 +1,16 @@ +What: /sys/bus/pci/drivers/qaic/XXXX:XX:XX.X/accel/accel<minor_nr>/dbc<N>_state +Date: October 2025 +KernelVersion: 6.19 +Contact: Jeff Hugo <jeff.hugo@oss.qualcomm.com> +Description: Represents the current state of DMA Bridge channel (DBC). Below are the possible + states, + IDLE (0) - DBC is free and can be activated + ASSIGNED (1) - DBC is activated and a workload is running on device + BEFORE_SHUTDOWN (2) - Sub-system associated with this workload has crashed and + it will shutdown soon + AFTER_SHUTDOWN (3) - Sub-system associated with this workload has crashed and + it has shutdown + BEFORE_POWER_UP (4) - Sub-system associated with this workload is shutdown and + it will be powered up soon + AFTER_POWER_UP (5) - Sub-system associated with this workload is now powered up +Users: Any userspace application or clients interested in DBC state. |
