Re: [PATCH v2] drm/amdkfd: disable kfd debugfs node of hang_hws on vf mode

2021-05-13 Thread Wang, Kevin(Yang)
May 14, 2021 12:01 AM To: Wang, Kevin(Yang) ; amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Min, Frank Subject: Re: [PATCH v2] drm/amdkfd: disable kfd debugfs node of hang_hws on vf mode This won't work. the kfd_debugfs directory is system-wide. So you cannot have a per-GPU criteria for cr

Re: [PATCH v2] drm/amdkfd: disable kfd debugfs node of hang_hws on vf mode

2021-05-13 Thread Felix Kuehling
This won't work. the kfd_debugfs directory is system-wide. So you cannot have a per-GPU criteria for creating it. You may have one GPU that probes successfully, another that fails. You still need the debugfs. If you have multiple GPUs probing successfully, you only want to create the debugfs node

[PATCH v2] drm/amdkfd: disable kfd debugfs node of hang_hws on vf mode

2021-05-13 Thread Kevin Wang
v1: the kfd debugfs node is rely on kgd2kfd probe success, if not, the kfd_debugfs should not be created, and the node of "hang_hws" should be disabled on vf mode. v2: also move kfd_debugfs_fini() into kgd2kfd_device_exit() function. 1. move kfd_debugfs_init() function into kgd2kfd_probe()