HSAFoundation / HSA-Drivers-Linux-AMD

These drivers have been superseded by ROCm Platform now hosted at Radeon Open Compute GitHub Repo
https://github.com/RadeonOpenCompute
Other
61 stars 15 forks source link

perf tool will cause kernel panic at drm_kms_helper when used radeon_kfd module is enabled #7

Closed zpodlovics closed 9 years ago

zpodlovics commented 10 years ago

I have an ubuntu 14.04 x86_64 with the recent v0.9 kfd kernel (from the git repo). I have built the perf tool from source with the following steps:

1) clone the mainline git repo and force checkout v3.14 sources 2) patch the source with the following files http://people.freedesktop.org/~gabbayo/kfd-v0.9/0001-base-packaging.patch , http://people.freedesktop.org/~gabbayo/kfd-v0.9/0002-debian-changelog.patch , http://people.freedesktop.org/~gabbayo/kfd-v0.9/0003-configs-based-on-Ubuntu-3.13.0-8.27.patch , http://people.freedesktop.org/~gabbayo/kfd-v0.9/0004-kfd-changelog.patch

3) cd tools/perf && make 4) perf record /path/to/console_benchmark 5) kernel panic

drm_kms_helper_crash_1024x768

When perf record is interrupted, it will result will be a bit different kernel panic:

drm_kms_helper_crash_interrupted_1024x768

When the machine is booted with modprobe.blacklist=radeon_kfd the perf tool, including the perf record command are works fine.

ogabbay commented 9 years ago

Could you please try it with the new v1.0 ?

zpodlovics commented 9 years ago

After a BIOS update to to 2102, 01/21/2015 and and kernel update to 3.19.0-031950-generic (kfd-1.2) the system works as expected. No kernel crash even with all day profiling. Thanks for your help, and keep up the good work!