Re: [Pixman] [BUG] SIGSEGV in sse2_fill
Le 2018-09-10 12:34, Michel Dänzer a écrit : On 2018-09-10 12:01 p.m., Frédéric Fauberteau wrote: Le 2018-09-10 09:26, Michel Dänzer a écrit : On 2018-09-10 8:22 a.m., Frédéric Fauberteau wrote: Le 2018-09-01 15:16, Michel Dänzer a écrit : On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 [ 5770.134] (EE) RADEON(0): Failed to create textured screen. This is the problem. Please try current xf86-video-ati Git master, specifically https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b could help for this. I just tested this commit and xorg server now starts without segfaulting. I am from a remote host and I don't know if the display is correct. But the log file shows an error: [688070.735] (II) Initializing extension DRI2 [688070.737] (II) RADEON(0): Setting screen physical size to 783 x 277 [688070.923] failed to add FB for modeset [688070.923] (WW) RADEON(0): Failed to set mode on CRTC 0 [688070.954] failed to add FB for modeset [688070.954] (WW) RADEON(0): Failed to set mode on CRTC 1 [688070.955] (EE) RADEON(0): Failed to enable any CRTC Please try the Git master branch, which will soon become the 18.1 release. If there's still a problem with that, please provide the corresponding full Xorg log file. Please find the Xorg.0.log produced after upgrading the driver to de88ea2755611bdcb18d91d8234d2ab5be8ff2e9: Thanks, the rest of the log file looks fine. The above warning and error messages indicate that drmModeAddFB fails. Since you got the "Failed to make prime FD for handle" error message from glamor with the 18.0.1 driver, there might still be an issue related to the GEM handle of the front buffer. I've never seen this before, so I suspect it could be an issue specific to NetBSD's KMS support. Can you poke around a bit to see why drmModeAddFB fails? E.g., what are the parameters passed to it by radeon_fb_create, and what error does it return? My wm runs but I have a blank screen. The problem seems come from drmModeAddFB () from /usr/pkg/lib/libdrm.so.2 but I have no debugging symbol. Thanks for your feedback. I'll try to follow your trail. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
On 2018-09-10 12:01 p.m., Frédéric Fauberteau wrote: > Le 2018-09-10 09:26, Michel Dänzer a écrit : >> On 2018-09-10 8:22 a.m., Frédéric Fauberteau wrote: >>> Le 2018-09-01 15:16, Michel Dänzer a écrit : On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: > > [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 > [ 5770.134] (EE) RADEON(0): Failed to create textured screen. This is the problem. Please try current xf86-video-ati Git master, specifically https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b could help for this. >>> >>> I just tested this commit and xorg server now starts without >>> segfaulting. >>> >>> I am from a remote host and I don't know if the display is correct. But >>> the log file shows an error: >>> >>> [688070.735] (II) Initializing extension DRI2 >>> [688070.737] (II) RADEON(0): Setting screen physical size to 783 x 277 >>> [688070.923] failed to add FB for modeset >>> [688070.923] (WW) RADEON(0): Failed to set mode on CRTC 0 >>> [688070.954] failed to add FB for modeset >>> [688070.954] (WW) RADEON(0): Failed to set mode on CRTC 1 >>> [688070.955] (EE) RADEON(0): Failed to enable any CRTC >> >> Please try the Git master branch, which will soon become the 18.1 >> release. If there's still a problem with that, please provide the >> corresponding full Xorg log file. > > Please find the Xorg.0.log produced after upgrading the driver to > de88ea2755611bdcb18d91d8234d2ab5be8ff2e9: Thanks, the rest of the log file looks fine. The above warning and error messages indicate that drmModeAddFB fails. Since you got the "Failed to make prime FD for handle" error message from glamor with the 18.0.1 driver, there might still be an issue related to the GEM handle of the front buffer. I've never seen this before, so I suspect it could be an issue specific to NetBSD's KMS support. Can you poke around a bit to see why drmModeAddFB fails? E.g., what are the parameters passed to it by radeon_fb_create, and what error does it return? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
Le 2018-09-10 09:26, Michel Dänzer a écrit : On 2018-09-10 8:22 a.m., Frédéric Fauberteau wrote: Le 2018-09-01 15:16, Michel Dänzer a écrit : On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 [ 5770.134] (EE) RADEON(0): Failed to create textured screen. This is the problem. Please try current xf86-video-ati Git master, specifically https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b could help for this. I just tested this commit and xorg server now starts without segfaulting. I am from a remote host and I don't know if the display is correct. But the log file shows an error: [688070.735] (II) Initializing extension DRI2 [688070.737] (II) RADEON(0): Setting screen physical size to 783 x 277 [688070.923] failed to add FB for modeset [688070.923] (WW) RADEON(0): Failed to set mode on CRTC 0 [688070.954] failed to add FB for modeset [688070.954] (WW) RADEON(0): Failed to set mode on CRTC 1 [688070.955] (EE) RADEON(0): Failed to enable any CRTC Please try the Git master branch, which will soon become the 18.1 release. If there's still a problem with that, please provide the corresponding full Xorg log file. Please find the Xorg.0.log produced after upgrading the driver to de88ea2755611bdcb18d91d8234d2ab5be8ff2e9: [701577.138] X.Org X Server 1.20.0 X Protocol Version 11, Revision 0 [701577.138] Build Operating System: NetBSD-8.0-x86_64 The NetBSD Foundation [701577.138] Current Operating System: NetBSD hydralisk 8.0 NetBSD 8.0 (HYDRALISK) #6: Sat Sep 1 17:09:53 CEST 2018 root@hydralisk:/usr/obj/sys/arch/amd64/compile/HYDRALISK amd64 [701577.138] Build Date: 30 August 2018 05:39:00AM [701577.138] [701577.138] Current version of pixman: 0.34.0 [701577.138]Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [701577.138] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [701577.138] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Sep 10 11:54:35 2018 [701577.139] (==) Using config file: "/etc/xorg.conf" [701577.139] (==) Using system config directory "/usr/pkg/share/X11/xorg.conf.d" [701577.139] (==) No Layout section. Using the first Screen section. [701577.139] (==) No screen section available. Using defaults. [701577.139] (**) |-->Screen "Default Screen Section" (0) [701577.139] (**) | |-->Monitor "" [701577.139] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [701577.139] (==) Not automatically adding devices [701577.139] (==) Not automatically enabling devices [701577.139] (==) Not automatically adding GPU devices [701577.139] (==) Max clients allowed: 256, resource mask: 0x1f [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/100dpi" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/75dpi" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/misc" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/TTF" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/Type1" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/cyrillic" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/local/pkg/share/fonts/X11/misc" does not exist. [701577.139]Entry deleted from font path. [701577.139] (WW) The directory "/usr/pkg/share/fonts/X11/OTF" does not exist. [701577.139]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/misc" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/TTF" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/OTF" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/Type1" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/100dpi" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/75dpi" does not exist. [701577.140]Entry deleted from font path. [701577.140] (WW) The directory "/usr/pkg/lib/X11/fonts/cyrillic" does not exist. [701577.140]Entry deleted from font path. [701577.140] (**) FontPath set to: /usr/pkg/share/fonts/X11/misc,
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
On 2018-09-10 8:22 a.m., Frédéric Fauberteau wrote: > Le 2018-09-01 15:16, Michel Dänzer a écrit : >> On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: >>> >>> [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 >>> [ 5770.134] (EE) RADEON(0): Failed to create textured screen. >> >> This is the problem. Please try current xf86-video-ati Git master, >> specifically >> https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b >> >> could help for this. > > I just tested this commit and xorg server now starts without segfaulting. > > I am from a remote host and I don't know if the display is correct. But > the log file shows an error: > > [688070.735] (II) Initializing extension DRI2 > [688070.737] (II) RADEON(0): Setting screen physical size to 783 x 277 > [688070.923] failed to add FB for modeset > [688070.923] (WW) RADEON(0): Failed to set mode on CRTC 0 > [688070.954] failed to add FB for modeset > [688070.954] (WW) RADEON(0): Failed to set mode on CRTC 1 > [688070.955] (EE) RADEON(0): Failed to enable any CRTC Please try the Git master branch, which will soon become the 18.1 release. If there's still a problem with that, please provide the corresponding full Xorg log file. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
Le 2018-09-01 15:16, Michel Dänzer a écrit : On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 [ 5770.134] (EE) RADEON(0): Failed to create textured screen. This is the problem. Please try current xf86-video-ati Git master, specifically https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b could help for this. I just tested this commit and xorg server now starts without segfaulting. I am from a remote host and I don't know if the display is correct. But the log file shows an error: [688070.735] (II) Initializing extension DRI2 [688070.737] (II) RADEON(0): Setting screen physical size to 783 x 277 [688070.923] failed to add FB for modeset [688070.923] (WW) RADEON(0): Failed to set mode on CRTC 0 [688070.954] failed to add FB for modeset [688070.954] (WW) RADEON(0): Failed to set mode on CRTC 1 [688070.955] (EE) RADEON(0): Failed to enable any CRTC I will give a feedback as soon as I can have a look at the screen. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
On 2018-09-01 9:22 a.m., Frédéric Fauberteau wrote: > > [ 5770.134] (EE) RADEON(0): Failed to make prime FD for handle: 22 > [ 5770.134] (EE) RADEON(0): Failed to create textured screen. This is the problem. Please try current xf86-video-ati Git master, specifically https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/commit/db28d35ce9fd07a2a4703f3df0633d4c8291ff9b could help for this. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
Le 2018-08-30 11:05, Michel Dänzer a écrit : On 2018-08-29 9:14 p.m., Adam Jackson wrote: continued from pixman@, original thread here: https://lists.freedesktop.org/archives/pixman/2018-August/004759.html Frédéric, can you attach the full corresponding Xorg log file? Hi Michel, I though the error was because I compiled the Xorg server with SSE instructions but I recompiled it without SSE and the error remains. Here is the corresponding Xorg log: [ 5769.931] X.Org X Server 1.20.0 X Protocol Version 11, Revision 0 [ 5769.931] Build Operating System: NetBSD-8.0-x86_64 The NetBSD Foundation [ 5769.931] Current Operating System: NetBSD hydralisk 8.0 NetBSD 8.0 (HYDRALISK) #2: Thu Aug 23 13:57:31 CEST 2018 root@hydralisk:/usr/obj/sys/arch/amd64/compile/HYDRALISK amd64 [ 5769.931] Build Date: 30 August 2018 05:39:00AM [ 5769.931] [ 5769.931] Current version of pixman: 0.34.0 [ 5769.931]Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 5769.932] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 5769.932] (==) Log file: "/var/log/Xorg.1.log", Time: Sat Sep 1 09:14:15 2018 [ 5769.932] (==) Using config file: "/etc/xorg.conf" [ 5769.932] (==) Using system config directory "/usr/pkg/share/X11/xorg.conf.d" [ 5769.932] (==) No Layout section. Using the first Screen section. [ 5769.932] (==) No screen section available. Using defaults. [ 5769.932] (**) |-->Screen "Default Screen Section" (0) [ 5769.933] (**) | |-->Monitor "" [ 5769.933] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 5769.933] (==) Not automatically adding devices [ 5769.933] (==) Not automatically enabling devices [ 5769.933] (==) Not automatically adding GPU devices [ 5769.933] (==) Max clients allowed: 256, resource mask: 0x1f [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/100dpi" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/75dpi" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/misc" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/TTF" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/Type1" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/cyrillic" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/local/pkg/share/fonts/X11/misc" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/share/fonts/X11/OTF" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/misc" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/TTF" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/OTF" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/Type1" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/100dpi" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/75dpi" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (WW) The directory "/usr/pkg/lib/X11/fonts/cyrillic" does not exist. [ 5769.933]Entry deleted from font path. [ 5769.933] (**) FontPath set to: /usr/pkg/share/fonts/X11/misc, /usr/pkg/share/fonts/X11/TTF, /usr/pkg/share/fonts/X11/Type1, /usr/pkg/share/fonts/X11/100dpi, /usr/pkg/share/fonts/X11/75dpi, /usr/pkg/share/fonts/X11/cyrillic [ 5769.933] (==) ModulePath set to "/usr/pkg/lib/xorg/modules" [ 5769.933] (==) |-->Input Device "mouse0" [ 5769.933] (==) |-->Input Device "keyboard0" [ 5769.933] (==) No Layout section. Using the first mouse device. [ 5769.933] (==) No Layout section. Using the first keyboard device. [ 5769.934] (II) Loader magic: 0x7f6680 [ 5769.934] (II) Module ABI versions: [ 5769.934]X.Org ANSI C Emulation: 0.4 [ 5769.934]X.Org Video Driver: 24.0 [ 5769.934]X.Org XInput driver : 24.1 [ 5769.934]X.Org Server Extension : 10.0 [ 5769.939] (--) PCI:*(1@1:5:0) 1002:9610:1043:82f1 rev 0, Mem @ 0xd000/268435456, 0xfbcf/65536, 0xfbb0/1048576, I/O @ 0xc000/256 [ 5769.939] (II)
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
On 2018-08-29 9:14 p.m., Adam Jackson wrote: > continued from pixman@, original thread here: > > https://lists.freedesktop.org/archives/pixman/2018-August/004759.html Frédéric, can you attach the full corresponding Xorg log file? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [Pixman] [BUG] SIGSEGV in sse2_fill
continued from pixman@, original thread here: https://lists.freedesktop.org/archives/pixman/2018-August/004759.html On Wed, 2018-08-29 at 18:14 +0200, Frédéric Fauberteau wrote: > Le 2018-08-29 16:33, Adam Jackson a écrit : > > This is a curious backtrace though. You're crashing while trying to > > draw the black solid fill for the initial map of the root window. Fine, > > but you're doing so in software, even though you have glamor enabled, > > and glamor surely can usually accelerate solid fills. So you're hitting > > a software fallback for some reason, and if I had to guess... > > The area to fill is 2960x1050 but actually, I have two screens: > - - > > | | | > > | | | > > 1680x1050 | | 1280x1024 | > > | | | > > | |---| > > - > > Do you think it could be a reason to write in an unmapped region...? Probably not? Typically the allocation for the root window is a rectangle big enough to bound all the outputs within it, so actually 2960x1050 in your case. The missing corner below the 1280x1024 display still has memory behind it. > It is a RS780/RS880 (Radeon HD 3200). If the bug comes from the Mesa > driver, it's a big issue since we are totally late with the update (we > are on MesaLib 11.2.2) That should be new enough to not have the problem I was describing. Unfortunately, that means I'm out of ideas. I think there are probably at least two bugs here: the fallback shouldn't crash, but neither should the fallback occur. Probably the second one is a bit easier to figure out. I'd start by rebuilding xserver with some printf-debugging in the body of glamor_poly_fill_rect_gl(), to see which 'goto bail' path is getting hit. (xserver spells printf ErrorF, which will print into both the X log and stdout.) - ajax ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel