All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
@ 2016-11-15 11:23 ` bugzilla-daemon
  2017-03-27 15:03 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-11-15 11:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1226 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

Emil Velikov <emil.l.velikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Product|Mesa                        |DRI
         Resolution|---                         |FIXED
           Assignee|mesa-dev@lists.freedesktop. |dri-devel@lists.freedesktop
                   |org                         |.org
             Status|NEW                         |RESOLVED
          Component|Mesa core                   |libdrm
            Version|13.0                        |unspecified
         QA Contact|mesa-dev@lists.freedesktop. |
                   |org                         |

--- Comment #6 from Emil Velikov <emil.l.velikov@gmail.com> ---
Fixed with the following commit, which is part of libdrm 2.4.73.
Thanks for the report and testing !

commit f53d3542c1dfa2a1c1a5a7155d058df9a6bcce7b
Author: Emil Velikov <emil.velikov@collabora.com>
Date:   Fri Nov 11 19:04:11 2016 +0000

    xd86drm: read more than 128 bytes of uevent in drmParsePciBusInfo

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3462 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
  2016-11-15 11:23 ` [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information" bugzilla-daemon
@ 2017-03-27 15:03 ` bugzilla-daemon
  2017-03-28 12:05 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-03-27 15:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1379 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

Brian Paul <brianp@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #7 from Brian Paul <brianp@vmware.com> ---
Hi Emil,

I'm still seeing this issue "MESA-LOADER: failed to retrieve device
information" on Fedora 25 when I test our VMware driver.

It's failing for me in drmGetDevice2() at line 3791:

     if (maj != DRM_MAJOR || !S_ISCHR(sbuf.st_mode))
         return -EINVAL;

The value of maj is 245 but the expected DRM_MAJOR is 226.

$ ls -l /dev/dri*
crw-rw----+ 1 root video 245,   0 Mar 23 09:39 /dev/dri/card0
crw-------. 1 root video 245,  64 Mar 23 09:32 /dev/dri/controlD64
crw-rw----+ 1 root video 245, 128 Mar 23 09:32 /dev/dri/renderD128

I don't know where the 245 major device number is coming from.
If I disable the maj != DRM_MAJOR tests, I don't see the error msg and things
run fine.

On Ubuntu, the dri device files have major number is the expected 226
which corresponds to the value of DRM_MAJOR as defined in vmwgfx's
drmP.h file so I don't see the error msg.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2953 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
  2016-11-15 11:23 ` [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information" bugzilla-daemon
  2017-03-27 15:03 ` bugzilla-daemon
@ 2017-03-28 12:05 ` bugzilla-daemon
  2017-04-12 19:08 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-03-28 12:05 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

--- Comment #8 from Emil Velikov <emil.l.velikov@gmail.com> ---
Hi Brian,

The define is coming from the kernel's drmP.h. Perhaps we should have
explicitly made it part of the public API/ABI, but that won't help here.

In upstream the major is set in drm_core_init()'s
register_chrdev(DRM_MAJOR...).

After a couple of "???" moments I clicked that you're likely having a problem
with the standalone repo [1].

In there VMWGFX_STANDALONE is set, thus the upstream code path is not hit. You
guys are using drm_chr_dev [see vmwgfx_chrdev_reg()], and where AFAICT MAJOR is
not initialised.

Would be great if you can fix things on your end, but I won't object against a
workaround in libdrm.

[1] https://cgit.freedesktop.org/mesa/vmwgfx/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1837 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
                   ` (2 preceding siblings ...)
  2017-03-28 12:05 ` bugzilla-daemon
@ 2017-04-12 19:08 ` bugzilla-daemon
  2017-04-22  9:35 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-04-12 19:08 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 362 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

--- Comment #9 from Emil Velikov <emil.l.velikov@gmail.com> ---
Seems like I forgot to mention - drm_chr_dev() itself picks the first unused
major.
So it's not like it's uninitialised, but rather random and non-deterministic.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
                   ` (3 preceding siblings ...)
  2017-04-12 19:08 ` bugzilla-daemon
@ 2017-04-22  9:35 ` bugzilla-daemon
  2017-04-24 10:15 ` bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-04-22  9:35 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 917 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

--- Comment #10 from Joachim Frieben <jfrieben@hotmail.com> ---
For current Fedora 25 plus testing updates, I do still get this error message
when using VirGL in a virtual machine:

$ glxgears 
libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.

Installed packages include:
kernel-4.10.11-200.fc25
libdrm-2.4.79-1.fc25
mesa-13.0.4-3.fc25

Furthermore, permissions for /dev/libdri* read:

$ ls -l /dev/dri*
total 0
crw-rw----+ 1 root video 226,   0 Apr 22 11:27 card0
crw-rw----+ 1 root video 226, 128 Apr 22 11:24 renderD128

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
                   ` (4 preceding siblings ...)
  2017-04-22  9:35 ` bugzilla-daemon
@ 2017-04-24 10:15 ` bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-04-24 10:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 947 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

Emil Velikov <emil.l.velikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Emil Velikov <emil.l.velikov@gmail.com> ---
Joachim doing the "me too" trick, does not help much ;-(

Please add a few debugging printfs within drmGetDevices2 function and attach
that within a separate bug report.

Brian, please try and fix this in mesa/vmwgfx. Alternatively do send a clearly
documented patch that relaxes the DRM_MAJOR restriction.

I'm closing this as the original issue was fixed with
f53d3542c1dfa2a1c1a5a7155d058df9a6bcce7b which is part for libdrm 2.4.73.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2586 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] <bug-98629-502@http.bugs.freedesktop.org/>
                   ` (5 preceding siblings ...)
  2017-04-24 10:15 ` bugzilla-daemon
@ 2018-08-07 13:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

Mike <bugs.freedesktop.org@pm.port0.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=107516

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1201 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information"
       [not found] ` <bug-98629-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2016-11-08 15:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  0 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2016-11-08 15:44 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1198 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=98629

Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|nouveau-PD4FTy7X32lNgt0PjOBp93rCq3LdnpKM@public.gmane.org |mesa-dev-PD4FTy7X32lNgt0PjOBp9/rsn8yoX9R0@public.gmane.org
                   |rg                          |org
          Component|Drivers/DRI/nouveau         |Mesa core
         QA Contact|nouveau-PD4FTy7X32lNgt0PjOBp93rCq3LdnpKM@public.gmane.org |mesa-dev-PD4FTy7X32lNgt0PjOBp9/rsn8yoX9R0@public.gmane.org
                   |rg                          |org

--- Comment #1 from Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ---
[Moving to 'core' since it's not really nouveau specific]

Does this happen with glxinfo/glxgears as well ? If so can you attach the
output of $strace glxinfo

If glxinfo works fine, while $program does not, attach the output of
$DL_DEBUG=libs $program

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2676 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-08-07 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-98629-502@http.bugs.freedesktop.org/>
2016-11-15 11:23 ` [Bug 98629] OpenGL applications warns "MESA-LOADER: failed to retrieve device information" bugzilla-daemon
2017-03-27 15:03 ` bugzilla-daemon
2017-03-28 12:05 ` bugzilla-daemon
2017-04-12 19:08 ` bugzilla-daemon
2017-04-22  9:35 ` bugzilla-daemon
2017-04-24 10:15 ` bugzilla-daemon
2018-08-07 13:41 ` bugzilla-daemon
2016-11-07 19:36 [Bug 98629] New: " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-98629-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2016-11-08 15:44   ` [Bug 98629] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.