Re: [HEADS UP] xorg version switch in CURRENT

2013-12-23 Thread John Baldwin
On Tuesday, December 17, 2013 3:15:33 pm Adrian Chadd wrote:
 I'm rapidly wondering if building this way should become unsupported. Too
 muxh unknown stuff is needed at startup and wed have to load all firmware
 bits to make it remotely work.

The Intel driver (i915kms) does not need firmware bits.  Radeon does, but
those could be statically compiled in for people who want this.  The drivers
should be fixed.  They never worked with syscons because syscons didn't work
once KMS was enabled, but they should be able to work with newcons.

-- 
John Baldwin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-23 Thread John Baldwin
On Tuesday, December 17, 2013 3:07:56 pm Steve Kargl wrote:
 On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
 
  To get VT switching when using KMS drivers (ATI, Intel) please use
  newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
  force the use of the vesa driver for xorg.
  
 
 It appears that newcons is unusable with a static kernel.
 Adding 'device drm2' and 'device i915kms' to my kernel
 config results in a quick death to 'make buldkernel'.

That isn't due to newcons AFAIK.  I don't think that setup worked
with syscons either.  I think it could probably never have worked
with syscons, but it should in theory be fixable with newcons.

-- 
John Baldwin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-19 Thread Nathan Whitehorn

On 12/17/13 17:28, Aleksandr Rybalko wrote:

On 18.12.2013 01:27, Nathan Whitehorn wrote:

On 12/17/13 15:32, Aleksandr Rybalko wrote:

On Tue, 17 Dec 2013 14:12:05 -0600
Nathan Whitehorn nwhiteh...@freebsd.org wrote:


On 12/17/13 14:07, Steve Kargl wrote:

On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:

To get VT switching when using KMS drivers (ATI, Intel) please use
newcons: https://wiki.freebsd.org/Newcons or if that is not
possible, force the use of the vesa driver for xorg.


It appears that newcons is unusable with a static kernel.
Adding 'device drm2' and 'device i915kms' to my kernel
config results in a quick death to 'make buldkernel'.


You may not want it either. The radeon KMS driver, if loaded with
newcons before X, replaces your console with snow (or at least it did
the last time I tried it).

Nathan, on which h/w you did that test? 3 different systems with Intel
graphic works fine for me.

This is on the following graphics card on amd64:

vgapci0@pci0:3:0:0: class=0x03 card=0x10022f43 chip=0x95cc1002
rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RV620 [ATI FireGL V3700]'

I'll run the test again today or tomorrow and see if it still happens.
-Nathan

Please do.

Thanks!



Still gives beautiful snow with r259418. I'll be traveling the next 3 
weeks and won't be able to test for that period.

-Nathan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-18 Thread Koop Mast

On 18-12-2013 5:22, J M wrote:

Following this list:
http://lists.freebsd.org/pipermail/freebsd-x11/2013-December/013911.html

Rebuild xorg again on FreeBSD 10.0 rc2:
WITH_NEW_XORG=
WITH_KMS=
WITH_GALLIUM=

Build es2tri.c in mesa demos
http://cgit.freedesktop.org/mesa/demos/tree/src/egl/opengles2/es2tri.c
#
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2 gl`
J@build:~ % ./es2tri
#
A window with a triangle is shown.

It is on an Intel video card.

But when I built nvidia driver and found this error again.
#
root@build:~ # cd /usr/ports/x11/nvidia-driver-304
root@build:/usr/ports/x11/nvidia-driver-304 # make install clean

J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2 gl`
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2`
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl gl`
J@build:~ % ./es2tri
Bus error (core dumped)
#

I think it is because a mismatch configure, and also because gles driver is
incomplete.


I will take a look at making the libglesv2 port to work. I think I 
already know what I need to do to make this work. Thank you for testing 
the libEGL and libglesv2 ports.


-Koop

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Adrian Chadd
I'm rapidly wondering if building this way should become unsupported. Too
muxh unknown stuff is needed at startup and wed have to load all firmware
bits to make it remotely work.
On Dec 17, 2013 2:08 PM, Steve Kargl s...@troutmask.apl.washington.edu
wrote:

 On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
 
  To get VT switching when using KMS drivers (ATI, Intel) please use
  newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
  force the use of the vesa driver for xorg.
 

 It appears that newcons is unusable with a static kernel.
 Adding 'device drm2' and 'device i915kms' to my kernel
 config results in a quick death to 'make buldkernel'.

 --
 Steve
 ___
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Nathan Whitehorn

On 12/17/13 14:07, Steve Kargl wrote:

On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:

To get VT switching when using KMS drivers (ATI, Intel) please use
newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
force the use of the vesa driver for xorg.


It appears that newcons is unusable with a static kernel.
Adding 'device drm2' and 'device i915kms' to my kernel
config results in a quick death to 'make buldkernel'.



You may not want it either. The radeon KMS driver, if loaded with 
newcons before X, replaces your console with snow (or at least it did 
the last time I tried it).

-Nathan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Steve Kargl
On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:

 To get VT switching when using KMS drivers (ATI, Intel) please use
 newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
 force the use of the vesa driver for xorg.
 

It appears that newcons is unusable with a static kernel.
Adding 'device drm2' and 'device i915kms' to my kernel
config results in a quick death to 'make buldkernel'.

-- 
Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Steve Kargl
On Tue, Dec 17, 2013 at 12:15:33PM -0800, Adrian Chadd wrote:
 On Dec 17, 2013 2:08 PM, Steve Kargl s...@troutmask.apl.washington.edu
 wrote:
 
  On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
  
   To get VT switching when using KMS drivers (ATI, Intel) please use
   newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
   force the use of the vesa driver for xorg.
 
  It appears that newcons is unusable with a static kernel.
  Adding 'device drm2' and 'device i915kms' to my kernel
  config results in a quick death to 'make buldkernel'.

 I'm rapidly wondering if building this way should become unsupported. Too
 muxh unknown stuff is needed at startup and wed have to load all firmware
 bits to make it remotely work.

Well, in that case, it should be formally deprecated, which
means it is here for at least the FreeBSD-11 release cycle.
I suppose you can try to fast-track the deprecation by having
Release Engineering slip a note into the Release Notes of
FreeBSD-10.

-- 
Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Aleksandr Rybalko
On Tue, 17 Dec 2013 14:12:05 -0600
Nathan Whitehorn nwhiteh...@freebsd.org wrote:

 On 12/17/13 14:07, Steve Kargl wrote:
  On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
  To get VT switching when using KMS drivers (ATI, Intel) please use
  newcons: https://wiki.freebsd.org/Newcons or if that is not
  possible, force the use of the vesa driver for xorg.
 
  It appears that newcons is unusable with a static kernel.
  Adding 'device drm2' and 'device i915kms' to my kernel
  config results in a quick death to 'make buldkernel'.
 
 
 You may not want it either. The radeon KMS driver, if loaded with 
 newcons before X, replaces your console with snow (or at least it did 
 the last time I tried it).

Nathan, on which h/w you did that test? 3 different systems with Intel
graphic works fine for me.

 -Nathan
 ___
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org


-- 
Aleksandr Rybalko r...@freebsd.org
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Aleksandr Rybalko
On Tue, 17 Dec 2013 12:07:56 -0800
Steve Kargl s...@troutmask.apl.washington.edu wrote:

 On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
 
  To get VT switching when using KMS drivers (ATI, Intel) please use
  newcons: https://wiki.freebsd.org/Newcons or if that is not
  possible, force the use of the vesa driver for xorg.
  
 
 It appears that newcons is unusable with a static kernel.
 Adding 'device drm2' and 'device i915kms' to my kernel
 config results in a quick death to 'make buldkernel'.

Hi Steve!

Don't panic :)

drm2/i915kms/radeonkms can't be built as part of static kernel.
at least no definitions for that (sys/conf/files or sys/conf/files.
${ARCH} should contain instructions which modules to include).

and newcons is unrelated here :)

You can try it with just preload modules.
1. Build/install kernel with vt and vt_vga.
2. reboot and break in the loader.
3. do: load i915kms
4. do: boot

Have a nice day!

 
 -- 
 Steve
 ___
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org

WBW
-- 
Aleksandr Rybalko r...@freebsd.org
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Steve Kargl
On Wed, Dec 18, 2013 at 12:15:52AM +0200, Aleksandr Rybalko wrote:
 On Tue, 17 Dec 2013 12:07:56 -0800
 Steve Kargl s...@troutmask.apl.washington.edu wrote:
 
  On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
  
   To get VT switching when using KMS drivers (ATI, Intel) please use
   newcons: https://wiki.freebsd.org/Newcons or if that is not
   possible, force the use of the vesa driver for xorg.
   
  
  It appears that newcons is unusable with a static kernel.
  Adding 'device drm2' and 'device i915kms' to my kernel
  config results in a quick death to 'make buldkernel'.
 
 Don't panic :)

No panic, here.

 drm2/i915kms/radeonkms can't be built as part of static kernel.
 at least no definitions for that (sys/conf/files or sys/conf/files.
 ${ARCH} should contain instructions which modules to include).
 
 and newcons is unrelated here :)
 
 You can try it with just preload modules.
 1. Build/install kernel with vt and vt_vga.
 2. reboot and break in the loader.
 3. do: load i915kms
 4. do: boot
 

(Un)fortunately, I do not use modules.

-- 
Steve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Nathan Whitehorn

On 12/17/13 15:32, Aleksandr Rybalko wrote:

On Tue, 17 Dec 2013 14:12:05 -0600
Nathan Whitehorn nwhiteh...@freebsd.org wrote:


On 12/17/13 14:07, Steve Kargl wrote:

On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:

To get VT switching when using KMS drivers (ATI, Intel) please use
newcons: https://wiki.freebsd.org/Newcons or if that is not
possible, force the use of the vesa driver for xorg.


It appears that newcons is unusable with a static kernel.
Adding 'device drm2' and 'device i915kms' to my kernel
config results in a quick death to 'make buldkernel'.


You may not want it either. The radeon KMS driver, if loaded with
newcons before X, replaces your console with snow (or at least it did
the last time I tried it).

Nathan, on which h/w you did that test? 3 different systems with Intel
graphic works fine for me.


This is on the following graphics card on amd64:

vgapci0@pci0:3:0:0: class=0x03 card=0x10022f43 chip=0x95cc1002 
rev=0x00 hdr=0x00

vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RV620 [ATI FireGL V3700]'

I'll run the test again today or tomorrow and see if it still happens.
-Nathan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread Aleksandr Rybalko
On 18.12.2013 01:27, Nathan Whitehorn wrote:
 On 12/17/13 15:32, Aleksandr Rybalko wrote:
 On Tue, 17 Dec 2013 14:12:05 -0600
 Nathan Whitehorn nwhiteh...@freebsd.org wrote:

 On 12/17/13 14:07, Steve Kargl wrote:
 On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
 To get VT switching when using KMS drivers (ATI, Intel) please use
 newcons: https://wiki.freebsd.org/Newcons or if that is not
 possible, force the use of the vesa driver for xorg.

 It appears that newcons is unusable with a static kernel.
 Adding 'device drm2' and 'device i915kms' to my kernel
 config results in a quick death to 'make buldkernel'.

 You may not want it either. The radeon KMS driver, if loaded with
 newcons before X, replaces your console with snow (or at least it did
 the last time I tried it).
 Nathan, on which h/w you did that test? 3 different systems with Intel
 graphic works fine for me.

 This is on the following graphics card on amd64:

 vgapci0@pci0:3:0:0: class=0x03 card=0x10022f43 chip=0x95cc1002
 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RV620 [ATI FireGL V3700]'

 I'll run the test again today or tomorrow and see if it still happens.
 -Nathan
Please do.

Thanks!

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: [HEADS UP] xorg version switch in CURRENT

2013-12-17 Thread J M
Following this list:
http://lists.freebsd.org/pipermail/freebsd-x11/2013-December/013911.html

Rebuild xorg again on FreeBSD 10.0 rc2:
WITH_NEW_XORG=
WITH_KMS=
WITH_GALLIUM=

Build es2tri.c in mesa demos
http://cgit.freedesktop.org/mesa/demos/tree/src/egl/opengles2/es2tri.c
#
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2 gl`
J@build:~ % ./es2tri
#
A window with a triangle is shown.

It is on an Intel video card.

But when I built nvidia driver and found this error again.
#
root@build:~ # cd /usr/ports/x11/nvidia-driver-304
root@build:/usr/ports/x11/nvidia-driver-304 # make install clean

J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2 gl`
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl
glesv2`
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_get_dispatch'
/usr/local/lib/libGLESv2.so: undefined reference to `_glapi_Dispatch'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
J@build:~ % clang es2tri.c -o es2tri `pkgconf --cflags --libs x11 egl gl`
J@build:~ % ./es2tri
Bus error (core dumped)
#

I think it is because a mismatch configure, and also because gles driver is
incomplete.


On Wed, Dec 18, 2013 at 7:28 AM, Aleksandr Rybalko r...@ddteam.net wrote:

 On 18.12.2013 01:27, Nathan Whitehorn wrote:
  On 12/17/13 15:32, Aleksandr Rybalko wrote:
  On Tue, 17 Dec 2013 14:12:05 -0600
  Nathan Whitehorn nwhiteh...@freebsd.org wrote:
 
  On 12/17/13 14:07, Steve Kargl wrote:
  On Mon, Dec 16, 2013 at 12:20:53PM +0100, Niclas Zeising wrote:
  To get VT switching when using KMS drivers (ATI, Intel) please use
  newcons: https://wiki.freebsd.org/Newcons or if that is not
  possible, force the use of the vesa driver for xorg.
 
  It appears that newcons is unusable with a static kernel.
  Adding 'device drm2' and 'device i915kms' to my kernel
  config results in a quick death to 'make buldkernel'.
 
  You may not want it either. The radeon KMS driver, if loaded with
  newcons before X, replaces your console with snow (or at least it did
  the last time I tried it).
  Nathan, on which h/w you did that test? 3 different systems with Intel
  graphic works fine for me.
 
  This is on the following graphics card on amd64:
 
  vgapci0@pci0:3:0:0: class=0x03 card=0x10022f43 chip=0x95cc1002
  rev=0x00 hdr=0x00
  vendor = 'Advanced Micro Devices [AMD] nee ATI'
  device = 'RV620 [ATI FireGL V3700]'
 
  I'll run the test again today or tomorrow and see if it still happens.
  -Nathan
 Please do.

 Thanks!

 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-x11
 To unsubscribe, send any mail to freebsd-x11-unsubscr...@freebsd.org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


[HEADS UP] xorg version switch in CURRENT

2013-12-16 Thread Niclas Zeising
[ This message is cross-posted between x11@, current@ and ports@ for
maximum coverage.  Please please PLEASE respect reply-to: ]

The xorg stack has been switched to use what has been dubbed new xorg in
CURRENT.  This means new xserver, new MESA (dri/libGL) stack and in some
cases new versions.
If you want to remain with the old stack, add WITHOUT_NEW_XORG= to
/etc/make.conf.
UPDATING contains instructions for updating.
To get VT switching when using KMS drivers (ATI, Intel) please use
newcons: https://wiki.freebsd.org/Newcons or if that is not possible,
force the use of the vesa driver for xorg.

Please send reports of successes, failures and/or comments to
x...@freebsd.org.  Remember to include any relevant information, such as
xorg logs (Xorg.log.0), dmesg, graphics card model and ports versions
with your report.

Please test this as much as possible!
Regards!
-- 
Niclas Zeising



signature.asc
Description: OpenPGP digital signature