UEFI Xorg (EE) no screens found on FreeBSD 11.0-RELEASE

2017-01-04 Thread Tomasz CEDRO
Hello!

I have noticed that I cannot use Xorg anymore on UEFI box with 11.0-RELEASE.
I get (EE) no screens found, before Xorg terminates.
X Server 1.17.4 (RELEASE 2015-10-28).

This happens on my new HYPERBOOK SL502VR (P650RP6-G) with nVidia
GTX1060 and INTEL and VESA does not finding any screen.

This also happens on VirtualBox when system is installed with UEFI enabled.

I had no problem starting X on a BIOS box with no UEFI.

Any hints on how to make it work? :-)

Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: UEFI Xorg (EE) no screens found on FreeBSD 11.0-RELEASE

2017-01-04 Thread Tomasz CEDRO
On Wed, Jan 4, 2017 at 3:47 PM, Tomasz CEDRO  wrote:
> I have noticed that I cannot use Xorg anymore on UEFI box with 11.0-RELEASE.
> I get (EE) no screens found, before Xorg terminates.
> X Server 1.17.4 (RELEASE 2015-10-28).

Some clue: DO NOT USE VESA DRIVER! USE SCFB ON UEFI HARDWARE :-)

https://wiki.freebsd.org/Graphics/SCFB

https://wiki.freebsd.org/Graphics

Still, would be nice to get at least Intel working, nVidia would be perfect! :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: UEFI Xorg (EE) no screens found on FreeBSD 11.0-RELEASE

2017-01-04 Thread Tomasz CEDRO
On Wed, Jan 4, 2017 at 5:08 PM, Tomasz CEDRO  wrote:
> Some clue: DO NOT USE VESA DRIVER! USE SCFB ON UEFI HARDWARE :-)

Although SCFB driver did some switch I have black screen both on
laptop and virtualbox..

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: UEFI Xorg (EE) no screens found on FreeBSD 11.0-RELEASE

2017-01-04 Thread Tomasz CEDRO
On Wed, Jan 4, 2017 at 5:25 PM, Tomasz CEDRO  wrote:
> Although SCFB driver did some switch I have black screen both on
> laptop and virtualbox..

It was some stuff loading really long in the background. After
recreating the setup it works!

You can use `Xorg -configure` then replace vesa with scfb and move cfg
to /etc/X11/xorg.conf.

USE SCFB ON UEFI HARDWARE INSTEAD VESA AS FALLBACK! :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: UEFI Xorg (EE) no screens found on FreeBSD 11.0-RELEASE

2017-01-04 Thread Tomasz CEDRO
On Wed, Jan 4, 2017 at 5:54 PM, Tomasz CEDRO  wrote:
> USE SCFB ON UEFI HARDWARE INSTEAD VESA AS FALLBACK! :-)

this also only works as root.. :\

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


coredump when loading cxgb after boot with routing daemon already running (RELENG11)

2017-01-04 Thread Mike Tancsa
I ran into a strange problem when manually loading a network driver
after RELENG_11 box starts up with a routing daemon already running.

If I have zebra running (just a few static routes) and then try and do a
kldload if_cxgb, the box panics.  If I boot the box, load the nic's
driver and then start zebra, all is fine.

At first, I thought it might be a firmware issue, but I updated the
NIC's firmware and the same behaviour.  Not sure if this is specific to
the chelsio or if any kldload of a NIC driver will do.



cxgbc0:  mem
0xf7081000-0xf7081fff,0xf680-0xf6ff,0xf708-0xf7080fff irq 16
at device 0.0 on pci5
cxgbc0: PCIe x4 Link, expect reduced performance
cxgbc0: using MSI-X interrupts (5 vectors)
cxgbc0: firmware needs to be updated to version 7.11.0
cJan  4 13:03:02 xgbc0: Firmware Version 5.0.0
cxgb0:  on cxgbc0
cxgb0: Using defaults for TSO: 65518/35/2048
cxgb0:
Ethernet address: 00:07:43:07:9e:14

offsite2 kernel:Fatal trap 12: page fault while in kernel mode
c found old FW mipuinor version(5.0)d =, driver compile 2; d for version
7.apic11
 id = 04
fault virtual address   = 0x0
fault code  = supervisor read instruction, page not present
instruction pointer = 0x20:0x0
stack pointer   = 0x28:0xfe085d2df728
frame pointer   = 0x28:0xfe085d2df750
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 420 (zebra)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0x806fe447 at kdb_backtrace+0x67
#1 0x806b4966 at vpanic+0x186
#2 0x806b47d3 at panic+0x43
#3 0x80997f82 at trap_fatal+0x322
#4 0x8099814c at trap_pfault+0x1bc
#5 0x80997800 at trap+0x280
#6 0x8097c411 at calltrap+0x8
#7 0x807b90fd at ifioctl+0x6dd
#8 0x8071c1d6 at kern_ioctl+0x346
#9 0x8071bddf at sys_ioctl+0x13f
#10 0x8099890e at amd64_syscall+0x50e
#11 0x8097c6fb at Xfast_syscall+0xfb
Uptime: 3m9s
Dumping 1635 out of 32675
MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%
-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: coredump when loading cxgb after boot with routing daemon already running (RELENG11)

2017-01-04 Thread Navdeep Parhar
What source line in releng-11 does ifioctl+0x6dd correspond to?

(kgdb) l *(ifioctl+0x6dd)

This might be race where the ifnet is being created or coming up and
zebra pokes it in some way before it's fully ready.  If that's the
case it could affect any ifnet.

Regards,
Navdeep



On Wed, Jan 4, 2017 at 11:00 AM, Mike Tancsa  wrote:
> I ran into a strange problem when manually loading a network driver
> after RELENG_11 box starts up with a routing daemon already running.
>
> If I have zebra running (just a few static routes) and then try and do a
> kldload if_cxgb, the box panics.  If I boot the box, load the nic's
> driver and then start zebra, all is fine.
>
> At first, I thought it might be a firmware issue, but I updated the
> NIC's firmware and the same behaviour.  Not sure if this is specific to
> the chelsio or if any kldload of a NIC driver will do.
>
>
>
> cxgbc0:  mem
> 0xf7081000-0xf7081fff,0xf680-0xf6ff,0xf708-0xf7080fff irq 16
> at device 0.0 on pci5
> cxgbc0: PCIe x4 Link, expect reduced performance
> cxgbc0: using MSI-X interrupts (5 vectors)
> cxgbc0: firmware needs to be updated to version 7.11.0
> cJan  4 13:03:02 xgbc0: Firmware Version 5.0.0
> cxgb0:  on cxgbc0
> cxgb0: Using defaults for TSO: 65518/35/2048
> cxgb0:
> Ethernet address: 00:07:43:07:9e:14
>
> offsite2 kernel:Fatal trap 12: page fault while in kernel mode
> c found old FW mipuinor version(5.0)d =, driver compile 2; d for version
> 7.apic11
>  id = 04
> fault virtual address   = 0x0
> fault code  = supervisor read instruction, page not present
> instruction pointer = 0x20:0x0
> stack pointer   = 0x28:0xfe085d2df728
> frame pointer   = 0x28:0xfe085d2df750
> code segment= base 0x0, limit 0xf, type 0x1b
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags= interrupt enabled, resume, IOPL = 0
> current process = 420 (zebra)
> trap number = 12
> panic: page fault
> cpuid = 0
> KDB: stack backtrace:
> #0 0x806fe447 at kdb_backtrace+0x67
> #1 0x806b4966 at vpanic+0x186
> #2 0x806b47d3 at panic+0x43
> #3 0x80997f82 at trap_fatal+0x322
> #4 0x8099814c at trap_pfault+0x1bc
> #5 0x80997800 at trap+0x280
> #6 0x8097c411 at calltrap+0x8
> #7 0x807b90fd at ifioctl+0x6dd
> #8 0x8071c1d6 at kern_ioctl+0x346
> #9 0x8071bddf at sys_ioctl+0x13f
> #10 0x8099890e at amd64_syscall+0x50e
> #11 0x8097c6fb at Xfast_syscall+0xfb
> Uptime: 3m9s
> Dumping 1635 out of 32675
> MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%
> --
> ---
> Mike Tancsa, tel +1 519 651 3400
> Sentex Communications, m...@sentex.net
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada   http://www.tancsa.com/
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: coredump when loading cxgb after boot with routing daemon already running (RELENG11)

2017-01-04 Thread Mike Tancsa
On 1/4/2017 2:07 PM, Navdeep Parhar wrote:
> What source line in releng-11 does ifioctl+0x6dd correspond to?
> 
> (kgdb) l *(ifioctl+0x6dd)
> 
> This might be race where the ifnet is being created or coming up and
> zebra pokes it in some way before it's fully ready.  If that's the
> case it could affect any ifnet.

Hi Navdeep,
Thanks for looking. yes, I just tried it with igb and a similar panic.


igb0:  port
0xc000-0xc01f mem 0xf720-0xf727,0xf728-0xf7283fff irq 17 at
device 0.0 on pci4
igb0: Using MSIX interrupts with 5 vectors
igb0:
Ethernet address: 00:25:90:47:b5:d8

Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address   = 0x0
fault code  = supervisor read instruction, page not present
instruction pointer = 0x20:0x0
stack pointer   = 0x28:0xfe085d4d1728
frame pointer   = 0x28:0xfe085d4d1750
igb0: code segment  = base 0x0, limit 0xf, type 0x1b
Bound queue 0 to cpu 0
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 846 (zebra)
trap number = 12
panic: page fault
cpuid = 3
KDB: stack backtrace:
#0 0x806efae7 at kdb_backtrace+0x67
#1 0x806a6006 at vpanic+0x186
#2 0x806a5e73 at panic+0x43
#3 0x80989622 at trap_fatal+0x322
#4 0x809897ec at trap_pfault+0x1bc
#5 0x80988ea0 at trap+0x280
#6 0x8096dab1 at calltrap+0x8
#7 0x807aa79d at ifioctl+0x6dd
#8 0x8070d876 at kern_ioctl+0x346
#9 0x8070d47f at sys_ioctl+0x13f
#10 0x80989fae at amd64_syscall+0x50e
#11 0x8096dd9b at Xfast_syscall+0xfb
Uptime: 1m9s
Dumping 1267 out of 32675
MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91%
Dump complete


kgdb)  l *(ifioctl+0x6dd)
0x807b90fd is in ifioctl (/usr/src/sys/net/if.c:2655).
2650case SIOCGIFMEDIA:
2651case SIOCGIFXMEDIA:
2652case SIOCGIFGENERIC:
2653if (ifp->if_ioctl == NULL)
2654return (EOPNOTSUPP);
2655error = (*ifp->if_ioctl)(ifp, cmd, data);
2656break;
2657
2658case SIOCSIFLLADDR:
2659error = priv_check(td, PRIV_NET_SETLLADDR);
Current language:  auto; currently minimal
(kgdb)



> 
> Regards,
> Navdeep
> 
> 
> 
> On Wed, Jan 4, 2017 at 11:00 AM, Mike Tancsa  wrote:
>> I ran into a strange problem when manually loading a network driver
>> after RELENG_11 box starts up with a routing daemon already running.
>>
>> If I have zebra running (just a few static routes) and then try and do a
>> kldload if_cxgb, the box panics.  If I boot the box, load the nic's
>> driver and then start zebra, all is fine.
>>
>> At first, I thought it might be a firmware issue, but I updated the
>> NIC's firmware and the same behaviour.  Not sure if this is specific to
>> the chelsio or if any kldload of a NIC driver will do.
>>
>>
>>
>> cxgbc0:  mem
>> 0xf7081000-0xf7081fff,0xf680-0xf6ff,0xf708-0xf7080fff irq 16
>> at device 0.0 on pci5
>> cxgbc0: PCIe x4 Link, expect reduced performance
>> cxgbc0: using MSI-X interrupts (5 vectors)
>> cxgbc0: firmware needs to be updated to version 7.11.0
>> cJan  4 13:03:02 xgbc0: Firmware Version 5.0.0
>> cxgb0:  on cxgbc0
>> cxgb0: Using defaults for TSO: 65518/35/2048
>> cxgb0:
>> Ethernet address: 00:07:43:07:9e:14
>>
>> offsite2 kernel:Fatal trap 12: page fault while in kernel mode
>> c found old FW mipuinor version(5.0)d =, driver compile 2; d for version
>> 7.apic11
>>  id = 04
>> fault virtual address   = 0x0
>> fault code  = supervisor read instruction, page not present
>> instruction pointer = 0x20:0x0
>> stack pointer   = 0x28:0xfe085d2df728
>> frame pointer   = 0x28:0xfe085d2df750
>> code segment= base 0x0, limit 0xf, type 0x1b
>> = DPL 0, pres 1, long 1, def32 0, gran 1
>> processor eflags= interrupt enabled, resume, IOPL = 0
>> current process = 420 (zebra)
>> trap number = 12
>> panic: page fault
>> cpuid = 0
>> KDB: stack backtrace:
>> #0 0x806fe447 at kdb_backtrace+0x67
>> #1 0x806b4966 at vpanic+0x186
>> #2 0x806b47d3 at panic+0x43
>> #3 0x80997f82 at trap_fatal+0x322
>> #4 0x8099814c at trap_pfault+0x1bc
>> #5 0x80997800 at trap+0x280
>> #6 0x8097c411 at calltrap+0x8
>> #7 0x807b90fd at ifioctl+0x6dd
>> #8 0x8071c1d6 at kern_ioctl+0x346
>> #9 0x8071bddf at sys_ioctl+0x13f
>> #10 0x8099890e at amd64_syscall+0x50e
>> #11 0x8097c6fb at Xfast_syscall+0xfb
>> Uptime: 3m9s
>> Dumping 1635 out of 32675
>> MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%
>> --
>> ---
>> Mike Tancsa, tel +1 519 651 3400
>> Sentex Communications, m...@sentex.net
>> Providing Internet services

Re: coredump when loading cxgb after boot with routing daemon already running (RELENG11)

2017-01-04 Thread Navdeep Parhar
Please file a bug against the network stack.

Is zebra easy to install/configure?  Send me details of your
configuration offline and I can try it on head if it's something
straightforward.

Regards,
Navdeep


On Wed, Jan 4, 2017 at 11:15 AM, Mike Tancsa  wrote:
> On 1/4/2017 2:07 PM, Navdeep Parhar wrote:
>> What source line in releng-11 does ifioctl+0x6dd correspond to?
>>
>> (kgdb) l *(ifioctl+0x6dd)
>>
>> This might be race where the ifnet is being created or coming up and
>> zebra pokes it in some way before it's fully ready.  If that's the
>> case it could affect any ifnet.
>
> Hi Navdeep,
> Thanks for looking. yes, I just tried it with igb and a similar panic.
>
>
> igb0:  port
> 0xc000-0xc01f mem 0xf720-0xf727,0xf728-0xf7283fff irq 17 at
> device 0.0 on pci4
> igb0: Using MSIX interrupts with 5 vectors
> igb0:
> Ethernet address: 00:25:90:47:b5:d8
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 3; apic id = 06
> fault virtual address   = 0x0
> fault code  = supervisor read instruction, page not present
> instruction pointer = 0x20:0x0
> stack pointer   = 0x28:0xfe085d4d1728
> frame pointer   = 0x28:0xfe085d4d1750
> igb0: code segment  = base 0x0, limit 0xf, type 0x1b
> Bound queue 0 to cpu 0
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags= interrupt enabled, resume, IOPL = 0
> current process = 846 (zebra)
> trap number = 12
> panic: page fault
> cpuid = 3
> KDB: stack backtrace:
> #0 0x806efae7 at kdb_backtrace+0x67
> #1 0x806a6006 at vpanic+0x186
> #2 0x806a5e73 at panic+0x43
> #3 0x80989622 at trap_fatal+0x322
> #4 0x809897ec at trap_pfault+0x1bc
> #5 0x80988ea0 at trap+0x280
> #6 0x8096dab1 at calltrap+0x8
> #7 0x807aa79d at ifioctl+0x6dd
> #8 0x8070d876 at kern_ioctl+0x346
> #9 0x8070d47f at sys_ioctl+0x13f
> #10 0x80989fae at amd64_syscall+0x50e
> #11 0x8096dd9b at Xfast_syscall+0xfb
> Uptime: 1m9s
> Dumping 1267 out of 32675
> MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91%
> Dump complete
>
>
> kgdb)  l *(ifioctl+0x6dd)
> 0x807b90fd is in ifioctl (/usr/src/sys/net/if.c:2655).
> 2650case SIOCGIFMEDIA:
> 2651case SIOCGIFXMEDIA:
> 2652case SIOCGIFGENERIC:
> 2653if (ifp->if_ioctl == NULL)
> 2654return (EOPNOTSUPP);
> 2655error = (*ifp->if_ioctl)(ifp, cmd, data);
> 2656break;
> 2657
> 2658case SIOCSIFLLADDR:
> 2659error = priv_check(td, PRIV_NET_SETLLADDR);
> Current language:  auto; currently minimal
> (kgdb)
>
>
>
>>
>> Regards,
>> Navdeep
>>
>>
>>
>> On Wed, Jan 4, 2017 at 11:00 AM, Mike Tancsa  wrote:
>>> I ran into a strange problem when manually loading a network driver
>>> after RELENG_11 box starts up with a routing daemon already running.
>>>
>>> If I have zebra running (just a few static routes) and then try and do a
>>> kldload if_cxgb, the box panics.  If I boot the box, load the nic's
>>> driver and then start zebra, all is fine.
>>>
>>> At first, I thought it might be a firmware issue, but I updated the
>>> NIC's firmware and the same behaviour.  Not sure if this is specific to
>>> the chelsio or if any kldload of a NIC driver will do.
>>>
>>>
>>>
>>> cxgbc0:  mem
>>> 0xf7081000-0xf7081fff,0xf680-0xf6ff,0xf708-0xf7080fff irq 16
>>> at device 0.0 on pci5
>>> cxgbc0: PCIe x4 Link, expect reduced performance
>>> cxgbc0: using MSI-X interrupts (5 vectors)
>>> cxgbc0: firmware needs to be updated to version 7.11.0
>>> cJan  4 13:03:02 xgbc0: Firmware Version 5.0.0
>>> cxgb0:  on cxgbc0
>>> cxgb0: Using defaults for TSO: 65518/35/2048
>>> cxgb0:
>>> Ethernet address: 00:07:43:07:9e:14
>>>
>>> offsite2 kernel:Fatal trap 12: page fault while in kernel mode
>>> c found old FW mipuinor version(5.0)d =, driver compile 2; d for version
>>> 7.apic11
>>>  id = 04
>>> fault virtual address   = 0x0
>>> fault code  = supervisor read instruction, page not present
>>> instruction pointer = 0x20:0x0
>>> stack pointer   = 0x28:0xfe085d2df728
>>> frame pointer   = 0x28:0xfe085d2df750
>>> code segment= base 0x0, limit 0xf, type 0x1b
>>> = DPL 0, pres 1, long 1, def32 0, gran 1
>>> processor eflags= interrupt enabled, resume, IOPL = 0
>>> current process = 420 (zebra)
>>> trap number = 12
>>> panic: page fault
>>> cpuid = 0
>>> KDB: stack backtrace:
>>> #0 0x806fe447 at kdb_backtrace+0x67
>>> #1 0x806b4966 at vpanic+0x186
>>> #2 0x806b47d3 at panic+0x43
>>> #3 0x80997f82 at trap_fatal+0x322
>>> #4 0x8099814c at trap_pfault+0x1bc
>>> #5 0x80997800 at trap+0x280
>>> #6 0x8097c411 at calltrap+0x8
>>> #7 0x807b90fd at

Re: coredump when loading cxgb after boot with routing daemon already running (RELENG11)

2017-01-04 Thread Mike Tancsa
On 1/4/2017 2:26 PM, Navdeep Parhar wrote:
> Please file a bug against the network stack.

Created

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215778

---Mike
-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"