From owner-freebsd-x11@freebsd.org Mon Mar 20 23:53:53 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC8E1D15C03 for ; Mon, 20 Mar 2017 23:53:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A74A21622 for ; Mon, 20 Mar 2017 23:53:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi0-x22d.google.com with SMTP id a94so30056628oic.2 for ; Mon, 20 Mar 2017 16:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=wX9t3WSSa92hyjzXPx5bxBl4YtJUWnbujREk+pbv/sI=; b=NxbUjgNYLK05nS79tThrdZaUZjmfil5L66Ds+20zfahh1Wx9lQ3hSUAIvOA7SUmlZX /J71QHkWzEiDo3h4COIBluW7zmGUj0b8NmOa2lO3QZCMo8pueni6axPdOqT60Pl2qYmQ zhuAtoqyjzFjhui+7um0SDPtMr9/fyOh+tPZjY1GM6U5zUIwhubZG1nLkBXFLJOoYrhm dWRAzUy8wxHVX2XalXdcfmj8lXXbXTS2ezKj1Fb9oAO4vLugqKvuG2QOS8KZf1j/MO1X B3Jt/MVacEaxJc7/aZsX23TOL+oYFw3Ob9OdhIc9PjN4yNmHPdLy4Q5xOeYL6E7v/hWO genA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=wX9t3WSSa92hyjzXPx5bxBl4YtJUWnbujREk+pbv/sI=; b=IeVSlRZLoIs3pgbLE5pI1TMfVbPGNkSNWoYW6zk5tjOC1ovHy4qmm0MINvo6cy3RLO BDFOzIqwVB9TSDZJUt+o6W2ZkfnIfYckkZAaF+gaNK+1o4RCg1Kgp0cd99qRCrScKynu Ziw/9sRcm/JY77pt91D1S+Pv/hzhDEAIcJWC4UgchxtEnueRb5iB9JKdeXRcg3ON38rH 28YmrmzCWwSROEAeq12k4xn9MUBLlKujN1YxCAv3JPAXzxH0wD7o3jAi/HY6GmUBjYpH KqownISnTCZrpBZn3qbf0Vn3uLeldiz+SsKtGxp9f4ii9yZUKf7vIrwnwrNmF+DskO48 OJ4g== X-Gm-Message-State: AFeK/H3qCY6GCuE/GwmSLPJkXxXm3dNZ16Mkmt9DuqnAZ4zUnouWlB2yLSyW4IGBVoJaJIQWSQrFTMh+ZZBo6w== X-Received: by 10.202.97.139 with SMTP id v133mr14850889oib.59.1490054032822; Mon, 20 Mar 2017 16:53:52 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.74.142.129 with HTTP; Mon, 20 Mar 2017 16:53:52 -0700 (PDT) In-Reply-To: References: <20170320180426.GA73014@rancor.immure.com> <216cdbb4-9280-1104-1c2f-83668beffaf0@nomadlogic.org> <20170320181535.GA73408@rancor.immure.com> <20170320185916.GB73408@rancor.immure.com> From: Kevin Oberman Date: Mon, 20 Mar 2017 16:53:52 -0700 X-Google-Sender-Auth: 2aDj_jFq4gxM1o-FOl4DvSV5sHE Message-ID: Subject: Re: Xorg fails w/scfb: Cannot run in framebuffer mode. Please specify busIDs To: Chris H Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2017 23:53:54 -0000 On Mon, Mar 20, 2017 at 2:13 PM, Chris H wrote: > OK. These suggestions may just be shots in the dark; but... > You might give Xorg -configure a try, to see if it might > provide you with some hints as to what it *thinks* you have. > > I notice in your Xorg.0.log that X barfs on AIGLX. > You might just try adding the following to the > Section "ServerLayout" block: > > Option "AIGLX" "false" > > and see if that overcomes the problem. > > > Hope this helps, and apologies for top posting. > > --Chris > On Mon, 20 Mar 2017 13:59:16 -0500 Bob Willcox wrote > > > On Mon, Mar 20, 2017 at 11:20:22AM -0700, Pete Wright wrote: > > > > > > > > > On 03/20/17 11:15, Bob Willcox wrote: > > > > On Mon, Mar 20, 2017 at 11:07:15AM -0700, Pete Wright wrote: > > > >> > > > >> On 03/20/17 11:04, Bob Willcox wrote: > > > >>> I had to reboot my system this morning (power outage over the > weekend > > > >>> forced it) and now X won't start, failing with these error msgs > from > > > >>> the Xorg.log: > >>> > > > >>> [ 143.327] (EE) open /dev/dri/card0: No such file or directory > > > >>> [ 143.327] (WW) Falling back to old probe method for modesetting > > > >>> [ 143.327] (EE) open /dev/dri/card0: No such file or directory > > > >>> [ 143.327] (WW) Falling back to old probe method for scfb > > > >>> [ 143.327] scfb trace: probe start > > > >>> [ 143.327] (II) scfb(1): using default device > > > >>> [ 143.327] scfb trace: probe done > > > >>> [ 143.327] (WW) VGA arbiter: cannot open kernel arbiter, no > > > >>> multi-card support [ 143.327] (EE) Screen 0 deleted because of no > > > >>> matching config section. [ 143.327] (II) UnloadModule: > "modesetting" > > > >>> [ 143.327] (EE) > > > >>> > > > >>> Fatal server error: > > > >>> [ 143.327] (EE) Cannot run in framebuffer mode. Please specify > busIDs > > > >>> for all framebuffer devices [ 143.328] (EE) > > > >>> [ 143.328] (EE) > > > >>> > > > >>> This is on an Intel NUC system with a i7-5557U (Broadwell) CPU. The > > > >>> uname -a output is: > > > >>> > > > >>> FreeBSD tavion.austin.ibm.com 10.3-STABLE FreeBSD 10.3-STABLE #3 > > > >>> r315638: Mon Mar 20 11:44:00 CDT 2017 > > > >>> root@tavion.austin.ibm.com:/usr/obj/usr/src/sys/TAVION amd64 > > >>> > > > >>> This system has been running with the scfb frame buffer driver for > a > > > >>> couple of years now with X running fine (if a bit slow). > > > >>> > > > >>> I just updated my ports 3/14 to revision 436172. Hadn't rebooted > till > > > >>> today. > >>> > > > >>> I updated the system this morning hoping that would help, but no > such > > > >>> luck as I still get the same failure. > > > >>> > > > >>> Note that I am loading the i915kms.ko module as instructed in the > > > >>> /usr/ports/UPDATING file (have been doing that all along) so it > would > > > >>> seem that I've run into something else. > > > >>> > > > >>> Also, reading the FreeBSD wiki for SCFB I added this file in > > > >>> /usr/local/bin/etc/xorg.conf.d/driver-scfb.conf: > > > >>> > > > >>> Section "Device" > > > >>> Identifier "Card0" > > > >>> Driver "scfb" > > > >>> EndSection > > > >>> > > > >>> Without any descernable change. > > > >> On my i7 skylake system I have inserted this like in my xorg.conf: > > > >> > > > >> BusID "PCI:0:2:0" > > > >> > > > >> This has allowed me to use modesetting, intel and scfb Xorg drivers > > > >> without issue. I am not sure why X isn't able to autodetect the > > > >> appropriate BusID though... > > > >> > > > >> hope this helps, > > > >> -pete > > > >> > > > >> -- > > > >> Pete Wright > > > >> pete@nomadlogic.org > > > >> @nomadlogicLA > > > > Thanks for the reply Pete. Would you mind sending me all of your > > > > xorg.conf file? For some reason this system had been running w/o one > all > > > > this time but I think it's time for me to create one for it. At this > > > > point the closest thing I have to one is the driver-scfb.conf file I > > > > showed above. > > > > sure thing - although to be clear i think the preferred method is to > > > *not* use a configuration file, so hopefully someone with more info > than > > > me can help determine why BusID detection is failing on your system. > > > > > > here is an example device section you can drop at > > > /usr/local/etc/xorg.conf.d/driver-scfb.conf or which ever location > suits > > > you best: > > > > > > Section "Device" > > > Identifier "Card0" > > > Driver "scfb" > > > BusID "PCI:0:2:0" > > > EndSection > > > > > > > > > also, here is my full Xorg as well - although hopefully you won't need > > > this: > > > Section "ServerLayout" > > > Identifier "X.org Configured" > > > Screen 0 "Screen0" 0 0 > > > InputDevice "Mouse0" "CorePointer" > > > InputDevice "Keyboard0" "CoreKeyboard" > > > EndSection > > > > > > Section "Files" > > > ModulePath "/usr/local/lib/xorg/modules" > > > FontPath "/usr/local/share/fonts/misc/" > > > FontPath "/usr/local/share/fonts/TTF/" > > > FontPath "/usr/local/share/fonts/OTF/" > > > FontPath "/usr/local/share/fonts/Type1/" > > > FontPath "/usr/local/share/fonts/100dpi/" > > > FontPath "/usr/local/share/fonts/75dpi/" > > > FontPath "/usr/local/share/fonts/bitstream-vera/" > > > EndSection > > > > > > Section "Module" > > > Load "glx" > > > Load "glamoregl" > > > Load "freetype" > > > EndSection > > > > > > Section "InputDevice" > > > Identifier "Keyboard0" > > > Driver "kbd" > > > EndSection > > > > > > Section "InputDevice" > > > Identifier "Mouse0" > > > Driver "mouse" > > > Option "Protocol" "auto" > > > Option "Device" "/dev/sysmouse" > > > Option "ZAxisMapping" "4 5 6 7" > > > EndSection > > > > > > Section "Monitor" > > > Identifier "Monitor0" > > > VendorName "Monitor Vendor" > > > ModelName "Monitor Model" > > > EndSection > > > > > > Section "Device" > > > ### Available Driver options are:- > > > ### Values: : integer, : float, : "True"/"False", > > > ### : "String", : " Hz/kHz/MHz", > > > ### : "%" > > > ### [arg]: arg optional > > > #Option "NoAccel" # [] > > > #Option "AccelMethod" # > > > #Option "Backlight" # > > > #Option "DRI" # > > > #Option "ColorKey" # > > > #Option "VideoKey" # > > > #Option "Tiling" # [] > > > #Option "LinearFramebuffer" # [] > > > #Option "SwapbuffersWait" # [] > > > #Option "TripleBuffer" # [] > > > #Option "XvPreferOverlay" # [] > > > #Option "HotPlug" # [] > > > #Option "ReprobeOutputs" # [] > > > #Option "XvMC" # [] > > > #Option "ZaphodHeads" # > > > #Option "TearFree" # [] > > > #Option "PerCrtcPixmaps" # [] > > > #Option "FallbackDebug" # [] > > > #Option "DebugFlushBatches" # [] > > > #Option "DebugFlushCaches" # [] > > > #Option "DebugWait" # [] > > > #Option "BufferCache" # [] > > > Identifier "Card0" > > > Driver "scfb" > > > BusID "PCI:0:2:0" > > > EndSection > > > > > > Section "Screen" > > > Identifier "Screen0" > > > Device "Card0" > > > Monitor "Monitor0" > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 1 > > > EndSubSection > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 4 > > > EndSubSection > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 8 > > > EndSubSection > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 15 > > > EndSubSection > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 16 > > > EndSubSection > > > SubSection "Display" > > > Viewport 0 0 > > > Depth 24 > > > EndSubSection > > > EndSection > > > > > > > > > Cheers, > > > -pete > > > > > > > > > -- > > > Pete Wright > > > pete@nomadlogic.org > > > @nomadlogicLA > > > > Hmm, with the BusID "PCI:0:2:0" added to my config file I now get > > sigmentation faults on startup. Below is the backtrace info from the > > Xorg.0.log. I've also attached the full Xorg.0.log and xorg.conf files in > > case that helps identify what's wrong. > > > > > > [ 7020.659] (EE) AIGLX: reverting to software rendering > > [ 7020.792] (EE) > > [ 7020.792] (EE) Backtrace: > > [ 7020.795] (EE) 0: /usr/local/bin/X (OsInit+0x38a) [0x59d61a] > > [ 7020.798] (EE) 1: /lib/libthr.so.3 (_pthread_sigmask+0x506) > [0x802b46e56] > > [ 7020.801] (EE) 2: /lib/libthr.so.3 (_pthread_getspecific+0xdfc) > > [0x802b46ddc] [ 7020.804] (EE) 3: ? (?+0xdfc) [0x7ffffffffdff] > > [ 7020.808] (EE) 4: /usr/local/llvm39/lib/libLLVM-3.9.so > > (_ZN4llvm13StringMapImpl15LookupBucketForENS_9StringRefE+0x7d) > [0x8098aee6d] > > [ 7020.811] (EE) 5: /usr/local/llvm39/lib/libLLVM-3.9.so > > (_ZNSt3__16vectorIPN4llvm2cl14OptionCategoryENS_9allocatorIS4_EEE21__ > push_bac > > k_slow_pathIS4_EEvOT_+0x22f) [0x8098823cf] [ 7020.815] (EE) 6: > > /usr/local/llvm39/lib/libLLVM-3.9.so (LLVMParseCommandLineOptions+ > 0x1c2c) > > [0x80988063c] [ 7020.819] (EE) 7: /usr/local/llvm39/lib/libLLVM-3.9.so > > (_ZN4llvm2cl6Option11addArgumentEv+0x7c) [0x80987434c] [ 7020.822] > (EE) 8: > > /usr/local/llvm36/lib/libLLVM-3.6.so > > (_ZN4llvm32createPPCTargetTransformInfoPassEPKNS_ > 16PPCTargetMachineE+0xc12) > > [0x80e7f7b64] [ 7020.826] (EE) 9: /usr/local/llvm36/lib/libLLVM-3.6.so > > (LLVMInitializeARMTargetInfo+0x112) [0x80e7fe9b4] [ 7020.830] (EE) 10: > > /usr/local/llvm36/lib/libLLVM-3.6.so (_init+0xe) [0x80d82313c] [ > 7020.832] > > (EE) 11: ? (_rtld_is_dlopened+0x1ad7) [0x800809ec7] [ 7020.835] (EE) > 12: ? > > (dlopen+0x190) [0x800805280] [ 7020.838] (EE) 13: > > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1e24b) > > [0x804849edb] [ 7020.841] (EE) 14: > > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1d6ff) > > [0x80484880f] [ 7020.844] (EE) 15: > > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1cd4e) > > [0x8048473ee] [ 7020.847] (EE) 16: /usr/local/bin/X > (InitExtensions+0x61) > > [0x4a7b91] [ 7020.850] (EE) 17: /usr/local/bin/X > (remove_fs_handlers+0x301) > > [0x439dd1] [ 7020.853] (EE) 18: /usr/local/bin/X (_start+0x16f) > [0x42501f] > > [ 7020.856] (EE) 19: ? (?+0x16f) [0x80082456f] > > [ 7020.856] (EE) > > [ 7020.856] (EE) Segmentation fault at address 0x0 > > [ 7020.856] (EE) > > Fatal server error: > > [ 7020.856] (EE) Caught signal 11 (Segmentation fault). Server aborting > > [ 7020.856] (EE) > > [ 7020.856] (EE) > > > > > > > > -- > > Bob Willcox | You're dead, Jim. > > bob@immure.com | -- McCoy, "The Tholian Web", stardate unknown > > Austin, TX | > First, I strongly suggest a minimal Xorg.conf. I have added fonts and: Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 Option "RegistryDwords" "EnableBrightnessControl=1" EndSection to support brightness control. I note that you have been running scfb for some time. If it was before Broadwell was supported by FreeBSD and you had to use it, it might be time to move back to the i915kms driver. I'm not sure why you would use both, though I am far from an expert. Have you confirmed that 0:2:0 is the correct value for PCI? While this is usually correct, I'd try 'pciconf -lv | grep -A4 vga' to confirm that. Finally, there was a bug that was just fixed to prevent both i915.ko and i915kms.ko from loading. This did trigger segmentation faults. You might check with kldstat before starting X and unload i915.ko if it is present. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683