fault.h 596 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __NVKM_FAULT_H__
  2. #define __NVKM_FAULT_H__
  3. #include <core/subdev.h>
  4. #include <core/notify.h>
  5. struct nvkm_fault {
  6. const struct nvkm_fault_func *func;
  7. struct nvkm_subdev subdev;
  8. struct nvkm_fault_buffer *buffer[2];
  9. int buffer_nr;
  10. struct nvkm_event event;
  11. struct nvkm_notify nrpfb;
  12. };
  13. struct nvkm_fault_data {
  14. u64 addr;
  15. u64 inst;
  16. u64 time;
  17. u8 engine;
  18. u8 valid;
  19. u8 gpc;
  20. u8 hub;
  21. u8 access;
  22. u8 client;
  23. u8 reason;
  24. };
  25. int gp100_fault_new(struct nvkm_device *, int, struct nvkm_fault **);
  26. int gv100_fault_new(struct nvkm_device *, int, struct nvkm_fault **);
  27. #endif