Summary: | ROCm OpenCL segfaults on drm-next-5.1-wip | ||||||
---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | bmilreu | ||||
Component: | DRM/AMDgpu | Assignee: | Default DRI bug account <dri-devel> | ||||
Status: | RESOLVED NOTABUG | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | medium | ||||||
Version: | XOrg git | ||||||
Hardware: | Other | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
bmilreu
2019-03-01 21:19:15 UTC
Error code -19 means NODEV, please check if the running kernel enables the kernel config option CONFIG_ZONE_DEVICE (read kernel config from file /proc/config.gz). init_user_pages return -NODEV if userptr support is not enabled, userptr support depends on kernel option CONFIG_HMM_MIRROR/CONFIG_HMM, which depends on kernel option CONFIG_ZONE_DEVICE. CONFIG_ZONE_DEVICE, CONFIG_HMM is by default ON, but kernel config file may not select to set CONFIG_ZONE_DEVICE if the kernel config file is from old kernel. If userptr support is not enabled, then clinfo and KFD usreptr support will return error -19. Please correct kernel config file by adding CONFIG_ZONE_DEVICE=y Thanks for the answer, it was indeed a previous outdated config. Tested with CONFIG_ZONE_DEVICE=y and issue is gone, closing this. Created attachment 143518 [details] attachment-9297-0.html Hi Philip, I was wondering. Is it possible so that the message would be either more descriptive so that user is informed about this or the kernel config to be modified to automatically satisfy dependencies? On Sun, Mar 3, 2019 at 10:36 PM <bugzilla-daemon@freedesktop.org> wrote: > bmilreu@gmail.com changed bug 109808 > <https://bugs.freedesktop.org/show_bug.cgi?id=109808> > What Removed Added > Resolution --- NOTABUG > Status NEW RESOLVED > > *Comment # 2 <https://bugs.freedesktop.org/show_bug.cgi?id=109808#c2> on > bug 109808 <https://bugs.freedesktop.org/show_bug.cgi?id=109808> from > bmilreu@gmail.com <bmilreu@gmail.com> * > > Thanks for the answer, it was indeed a previous outdated config. Tested with > CONFIG_ZONE_DEVICE=y and issue is gone, closing this. > > ------------------------------ > You are receiving this mail because: > > - You are the assignee for the bug. > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel I will change the error message for this specific case to mention the missing kernel config option. I cannot add select ZONE_DEVICE in driver Kconfig file because there will be a circular dependency issue. The old or wired kernel config file may select to don't enable HMM or ZONE_DEVICE. Thanks, Philip |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.