]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: use parent device for trace events
authorTomer Tayar <ttayar@habana.ai>
Sun, 25 Feb 2024 11:54:14 +0000 (13:54 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:45:59 +0000 (09:45 +0300)
commit3d4bd5e292b57d219ee6fd798f6f207b6742e70c
treed7ba6a451cddf39a45f5f8060ac557064a9bbc05
parentecda35d461f491f7aa2a0f2060a2c36a5950c3b7
accel/habanalabs: use parent device for trace events

Trace events might still be recorded after the accel device is released,
while the device name is no longer available.
Modify the trace functions to use the parent device instead, which is
available at that point and still informative as the device name.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/mmu/mmu.c
drivers/accel/habanalabs/common/pci/pci.c