Summary: | Semi-repeatable SIGBUS in R600UploadToScreenCS's memcpy | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Dave Gilbert <freedesktop> | ||||||
Component: | DRM/Radeon | Assignee: | Default DRI bug account <dri-devel> | ||||||
Status: | RESOLVED DUPLICATE | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | medium | CC: | scoobydoo | ||||||
Version: | XOrg git | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Dave Gilbert
2013-12-27 20:22:06 UTC
Created attachment 91242 [details] [review] possible fix Does this fix the issue? The issue is that that buffer is larger than the pci bar window into vram. The patch forces a scratch copy for all uploads. It would also probably be good to fix the kernel to check the offset in radeon_mode_dumb_mmap() if the domain is vram to see if it's larger than the pci window and return an error if so. Thanks, that does seem to have survived a test session; but as I say it's only partially repeatable so I'll keep trying tomorrow, if it survives a couple of days I'd say it's good. Hi Alex, I think this is surviving for me OK, but if I understand you correctly this is a workaround rather than a fix, since it's now doing copies that are unnecessary for small images that do fit? Also, Francois Guerraz posted a backtrace that looks very similar on his HD6750M in the evergreen code, but it reads to me as the same problem in the Evergreen matching code: https://bugzilla.redhat.com/show_bug.cgi?id=955617#c31 Created attachment 91287 [details] [review] Workaround for the evergreen driver A similar patch for the evergreen family. The bug was reproducible 100% of the time in my case (by uploading a bunch of pictures using the image uploader on photobox.com using Firefox 26) and that fixes / work around the problem. It's hard to tell if there is any performance impact because it used to be crashing. But using the aforementioned uploader now trigger high (>50%) CPU usage for Xorg. *** Bug 73128 has been marked as a duplicate of this bug. *** |
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.