Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2014-01-08 Thread Aleksandr Rybalko
On Mon, 09 Dec 2013 18:26:46 -0600
Nathan Whitehorn nwhiteh...@freebsd.org wrote:

 On 12/09/13 18:20, Aleksandr Rybalko wrote:
  On Sun, 8 Dec 2013 16:36:20 +0100
  Marius Strobl mar...@alchemy.franken.de wrote:
 
  On Thu, Dec 05, 2013 at 10:38:54PM +, Aleksandr Rybalko wrote:
  Author: ray
  Date: Thu Dec  5 22:38:53 2013
  New Revision: 259016
  URL: http://svnweb.freebsd.org/changeset/base/259016
 
  Log:
 Merge VT(9) project (a.k.a. newcons).
 
 Reviewed by:   nwhitehorn
 MFC_to_10_after:   re approval
  Have you addressed any of the points raised in:
  http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045887.html
  to get VT(9) at least en par with syscons(4) regarding being able to
  use a hardware cursor, allowing different low-level console drivers
  to compete for the same hardware etc. in the meantime?
 
  Marius
 
  Hello Marius!
 
  Yes and No :)
 
  Lets make it as list with short items:
  1. Making these drivers work as low-level console.
  2. Drivers priority.
  3. Using hardware acceleration.
  4. Using the 12 x 22 gallant font.
  5. Allowing Xorg to map the frame buffer.
  6. (Part of 5) Other register banks as needed.
  7. Allowing late attachment.
 
  Answers:
  1. Works, I did testing on ARM board Efika MX with vt_fb_early driver.
  (Still have to discuss several things with arm@ guys, then commit)
 
 As I mentioned in my review, this particular code is a really weird 
 bug-filled copy of ofwfb.c, which already works as a low-level console 
 early in the boot process.

TODO :)

 
  2. Works. F.e. amd64 start with vt_vga driver, then vt_kms driver
  override it as more specific.
 
 I think Marius meant having early-boot drivers bid amongst each other 
 for attachment

Early-boot drivers selected on console driver bid rules. I see early
drivers as something really special, because resource management is not
ready at this stage and many device even is not able to get all
required info to be initialized fully. So I prefer model with simple
driver like vt_fb_early which is replaced later by full functional and
allocated by kernel's resource management rules.

 
  3. Not used at all yet.
 
  4. I like that font. If you want more gallant - I will help. Thanks
  to Ed, newcons support any font dimensions.
 
  5. It works, but only for those drivers which attach dev/fb/fbd, via
  fbd devfs node (not accessible via vt(9) ioctls yet).
 
 Could you provide more detail about how this is supposed to work? X 
 doesn't map at offset 0 in general, and that means that 100% of X UMS 
 drivers are currently broken with newcons.

I already done framebuffer info export and mmap support to ttyvX
devices. Just xboxfb/ofwfb drivers is not ready yet.
Phrase 100% of X UMS drivers is totally incorrect :)
PC like systems use direct access to video drivers, but not maps fb.
Only ppc/sparc64 support mmaping of vt devices (at least before I start
to work on Efika MX, now RPi and Efika MX here too).

But found one more problem here :)
Xorg with vesa driver left video in VESA mode on exit, so I add restore
VGA mode for vt_vga driver on vt switch.

Since I made framebuffer export works for all framebuffer provider it
will be supported after small modifications to xorg-server port.
x11-drivers/xf86-video-scfb already committed to ports tree (great
thanks to Rene Ladan), but limited yet to not PC platforms, until xorg
not ready.

 
  6. IMO better to put it into some drm emulation.
 
  7. Works in many combination. (
  start w/ vga, load kms; (kms replace vga)
  start w/o driver, load kms;
  preload kms, start w/ vga; (kms replace vga)
  preload kms, start w/o driver; (kms attached after drm node initialized)
  )
 
  Have to put your list on Newcons's wiki page too.
 
  As I remember such long list of requirement you provide was based on
  expectation that I want to replace syscons right now :)
  But, for now we (me and x11 team) want to see it 10.0 as disabled by
  default (just like in HEAD now), so peoples who want to help with debug
  of new xorg and drm drivers will be able to see messages after KMS-xorg
  starts.
 
  Oh, looks like I forget what I have to say more. :)
  So it will be said later, when I will less sleepy.
 
  Anyway. Thanks a lot for your comments!!!
 
  WBW
 
 We should come up with a sunset plan for syscons, though.

TBD

 -Nathan

Thanks a lot!

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2014-01-08 Thread Nathan Whitehorn
On 01/08/14 10:14, Aleksandr Rybalko wrote:
 On Mon, 09 Dec 2013 18:26:46 -0600
 Nathan Whitehorn nwhiteh...@freebsd.org wrote:

 On 12/09/13 18:20, Aleksandr Rybalko wrote:
 On Sun, 8 Dec 2013 16:36:20 +0100
 Marius Strobl mar...@alchemy.franken.de wrote:

 On Thu, Dec 05, 2013 at 10:38:54PM +, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016

 Log:
Merge VT(9) project (a.k.a. newcons).

Reviewed by:   nwhitehorn
MFC_to_10_after:   re approval
 Have you addressed any of the points raised in:
 http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045887.html
 to get VT(9) at least en par with syscons(4) regarding being able to
 use a hardware cursor, allowing different low-level console drivers
 to compete for the same hardware etc. in the meantime?

 Marius

 Hello Marius!

 Yes and No :)

 Lets make it as list with short items:
 1. Making these drivers work as low-level console.
 2. Drivers priority.
 3. Using hardware acceleration.
 4. Using the 12 x 22 gallant font.
 5. Allowing Xorg to map the frame buffer.
 6. (Part of 5) Other register banks as needed.
 7. Allowing late attachment.

 Answers:
 1. Works, I did testing on ARM board Efika MX with vt_fb_early driver.
 (Still have to discuss several things with arm@ guys, then commit)
 As I mentioned in my review, this particular code is a really weird 
 bug-filled copy of ofwfb.c, which already works as a low-level console 
 early in the boot process.
 TODO :)

 2. Works. F.e. amd64 start with vt_vga driver, then vt_kms driver
 override it as more specific.
 I think Marius meant having early-boot drivers bid amongst each other 
 for attachment
 Early-boot drivers selected on console driver bid rules. I see early
 drivers as something really special, because resource management is not
 ready at this stage and many device even is not able to get all
 required info to be initialized fully. So I prefer model with simple
 driver like vt_fb_early which is replaced later by full functional and
 allocated by kernel's resource management rules.



The issue is that your vt_early is not a panacea. It's a driver for one
specific type of hardware (the Efika/RPI framebuffer, it looks like), no
different than any other. What if you have multiple options for
framebuffers? For example, on PowerPC, there are three graphics console
drivers: wiifb, ps3fb, and ofwfb. wiifb is in its own kernel, which
simplifies things, but ps3fb and ofwfb are both in GENERIC64 and have to
bid against each other to attach. They need to do it before the MMU is
even up, because otherwise there is no option for a console. sparc64
likewise has a variety of early console drivers in GENERIC. There
needs to be a way to handle this; it's why the whole early FB concept
is flawed.

There's also nothing particularly early about these drivers: on both
PPC and SPARC, they do attach in early boot, but nothing ever replaces
them. They are around for the whole life of the system.
-Nathan
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-18 Thread Niclas Zeising
On 12/18/13 01:24, Baptiste Daroussin wrote:
 On Wed, Dec 18, 2013 at 02:21:56AM +0200, Aleksandr Rybalko wrote:
 On Tue, 10 Dec 2013 23:49:38 +0100
 Andreas Tobler andre...@freebsd.org wrote:

 On 10.12.13 14:43, Tijl Coosemans wrote:
 On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
 That keyboards have no Shift key for that? :)
 I will be glad to apply your changes, but I have to know how it
 should be controlled.

 RU and UA PC keyboards have same 3 symbols '2', '', '@'
 To get '2' i have to press only '2'
 To get '@' I have to press Shift+'2'
 To get '' I have to switch to UA or RU and press Shift+'2'

 Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
 lang switch. Which commonly mapped to one of Alt. Right?
 So R-Alt+Shift+'2'?

 https://en.wikipedia.org/wiki/AltGr

 Thanks Tijl!

 To get the @ I have to press AltGr + '2'.
 There are combinations where I have to press AltGr+Shift. e.g to get
 the 'broken bar, ¦', AltGr+Shift+'7'.

 Andreas


 Hello Andreas and Tijl!

 Since I think not a whole world have AltGr key (read as not most
 keyboards on the Earth) :)
 Think it is OK to use R.Alt as an Alt by default, and enable AltGr with
 sysctl kern.vt.enable_altgr.

 I tend to disagree with you, lots of keyboards mapping are concerned here.
 

alt-gr is there on most, if not all, western european keyboard layouts,
and probably more layouts than that.  Have a look at
http://en.wikipedia.org/wiki/AltGr_key
for instance.
Regards!
-- 
Niclas
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-18 Thread Andreas Tobler
On 18.12.13 01:24, Baptiste Daroussin wrote:
 On Wed, Dec 18, 2013 at 02:21:56AM +0200, Aleksandr Rybalko wrote:
 On Tue, 10 Dec 2013 23:49:38 +0100
 Andreas Tobler andre...@freebsd.org wrote:

 On 10.12.13 14:43, Tijl Coosemans wrote:
 On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
 That keyboards have no Shift key for that? :)
 I will be glad to apply your changes, but I have to know how it
 should be controlled.

 RU and UA PC keyboards have same 3 symbols '2', '', '@'
 To get '2' i have to press only '2'
 To get '@' I have to press Shift+'2'
 To get '' I have to switch to UA or RU and press Shift+'2'

 Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
 lang switch. Which commonly mapped to one of Alt. Right?
 So R-Alt+Shift+'2'?

 https://en.wikipedia.org/wiki/AltGr

 Thanks Tijl!

 To get the @ I have to press AltGr + '2'.
 There are combinations where I have to press AltGr+Shift. e.g to get
 the 'broken bar, ¦', AltGr+Shift+'7'.

 Andreas


 Hello Andreas and Tijl!

 Since I think not a whole world have AltGr key (read as not most
 keyboards on the Earth) :)
 Think it is OK to use R.Alt as an Alt by default, and enable AltGr with
 sysctl kern.vt.enable_altgr.

 I tend to disagree with you, lots of keyboards mapping are concerned here.

Hi Aleksandr,

It is at least a step forward. But I do not like it.
Don't get me wrong, I think we have to be very careful when it comes to
keyboard mapping. A status quo should be kept, the one from syscons.

Looking back the past 20 years of Linux and FreeBSD experience I always
had to touch the keyboards section to make it fit my needs. A nasty
hurdle, in the beginning it was ok, but after the sixth time adjusting
the native language keyboard it gets boring. And I guess it is not only me.

In the meantime I would not need a swiss keyboard anymore, I more or
less know the native mapping out of my mind :)

I do not yet understand the fine keyboard details from syscons but I
think we have to keep and adapt them to vt.

My two Rp.

Thanks for your time!
Andreas
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-17 Thread Aleksandr Rybalko
On Tue, 10 Dec 2013 23:49:38 +0100
Andreas Tobler andre...@freebsd.org wrote:

 On 10.12.13 14:43, Tijl Coosemans wrote:
  On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
  That keyboards have no Shift key for that? :)
  I will be glad to apply your changes, but I have to know how it
  should be controlled.
 
  RU and UA PC keyboards have same 3 symbols '2', '', '@'
  To get '2' i have to press only '2'
  To get '@' I have to press Shift+'2'
  To get '' I have to switch to UA or RU and press Shift+'2'
 
  Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
  lang switch. Which commonly mapped to one of Alt. Right?
  So R-Alt+Shift+'2'?
  
  https://en.wikipedia.org/wiki/AltGr
 
 Thanks Tijl!
 
 To get the @ I have to press AltGr + '2'.
 There are combinations where I have to press AltGr+Shift. e.g to get
 the 'broken bar, ¦', AltGr+Shift+'7'.
 
 Andreas
 

Hello Andreas and Tijl!

Since I think not a whole world have AltGr key (read as not most
keyboards on the Earth) :)
Think it is OK to use R.Alt as an Alt by default, and enable AltGr with
sysctl kern.vt.enable_altgr.

Committed at r259532.

Any other opinions are welcomed! 

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

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-17 Thread Baptiste Daroussin
On Wed, Dec 18, 2013 at 02:21:56AM +0200, Aleksandr Rybalko wrote:
 On Tue, 10 Dec 2013 23:49:38 +0100
 Andreas Tobler andre...@freebsd.org wrote:
 
  On 10.12.13 14:43, Tijl Coosemans wrote:
   On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
   That keyboards have no Shift key for that? :)
   I will be glad to apply your changes, but I have to know how it
   should be controlled.
  
   RU and UA PC keyboards have same 3 symbols '2', '', '@'
   To get '2' i have to press only '2'
   To get '@' I have to press Shift+'2'
   To get '' I have to switch to UA or RU and press Shift+'2'
  
   Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
   lang switch. Which commonly mapped to one of Alt. Right?
   So R-Alt+Shift+'2'?
   
   https://en.wikipedia.org/wiki/AltGr
  
  Thanks Tijl!
  
  To get the @ I have to press AltGr + '2'.
  There are combinations where I have to press AltGr+Shift. e.g to get
  the 'broken bar, ¦', AltGr+Shift+'7'.
  
  Andreas
  
 
 Hello Andreas and Tijl!
 
 Since I think not a whole world have AltGr key (read as not most
 keyboards on the Earth) :)
 Think it is OK to use R.Alt as an Alt by default, and enable AltGr with
 sysctl kern.vt.enable_altgr.
 
I tend to disagree with you, lots of keyboards mapping are concerned here.

Bapt


pgpzuJ4S7wHDP.pgp
Description: PGP signature


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Ed Schouten
2013/12/10 Aleksandr Rybalko r...@freebsd.org:
 Thanks to Ed, [...]

No, thanks to you! Thanks a lot for pushing forward something that I
should have done years ago. Can't wait to buy you a beer.

-- 
Ed Schouten e...@80386.nl
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Luiz Otavio O Souza
On Dec 10, 2013, at 9:30 AM, Ed Schouten e...@80386.nl wrote:
 2013/12/10 Aleksandr Rybalko r...@freebsd.org:
 Thanks to Ed, [...]
 
 No, thanks to you! […]
 Can't wait to buy you a beer.

+1
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Aleksandr Rybalko
On Sun, 08 Dec 2013 22:45:09 +0100
Andreas Tobler andre...@freebsd.org wrote:

 Hi Aleksandr,
 
 On 08.12.13 00:59, Aleksandr Rybalko wrote:
  Andreas Tobler andre...@freebsd.org написав(ла):
  On 05.12.13 23:38, Aleksandr Rybalko wrote:
  Author: ray
  Date: Thu Dec  5 22:38:53 2013
  New Revision: 259016
  URL: http://svnweb.freebsd.org/changeset/base/259016
 
  Log:
Merge VT(9) project (a.k.a. newcons).

Reviewed by:nwhitehorn
MFC_to_10_after:re approval

Sponsored by:   The FreeBSD Foundation
 
  Great! Thanks, gives a new look  feel on the console :)
  Have it running on amd64/i386 and PowerMac(32/64-bit).
  The only thing I need to figure is the mapping of the AltGr or in Mac
  world, the alt key mapping. Iow, the third level mapping of the keys.
  e.g. the @ here is on altgr-2...
 
  Again, thanks!
  Andreas
  
 
  I'm glad to fix that, but I've to understand how it is should work :-)
 
 Hehe :)
 
 So do I. I was playing a bit while comparing to syscons.c
 
 And with the below diff I'm able to get what I want. At least when I
 press RALT (Altgr) key I get the third symbol printed on my keyboard.
 I have a couple of Thinkpads here where I play with. (The PowerMac's are
 currently to loud)
 
 For example, on the '2' I have the '' as the second symbol and the '@'
 as third symbol. Yeah, these are european keyboards
 
 Now I do not prepend the 0x1b and then my RALT behaves as used to, at
 least for me.
 
 I do not know the fine details but LALT and RALT are different.
 
 What do you think, others?
 
 For me this is a really important thing since all the 'special' keys are
 not accesible w/o the 'hack' below. If I want the pipe (|), or writing
 code ({}, [], ...) I have to remote login to get the characters I need.
 But I guess I do not need to explain that ;)
 
 TIA,
 Andreas

Hi Andreas!

That keyboards have no Shift key for that? :)
I will be glad to apply your changes, but I have to know how it should
be controlled.

RU and UA PC keyboards have same 3 symbols '2', '', '@'
To get '2' i have to press only '2'
To get '@' I have to press Shift+'2'
To get '' I have to switch to UA or RU and press Shift+'2'

Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
lang switch. Which commonly mapped to one of Alt. Right?
So R-Alt+Shift+'2'?

 
 Index: vt_core.c
 ===
 --- vt_core.c (revision 259095)
 +++ vt_core.c (working copy)
 @@ -408,6 +408,7 @@
   } else {
   switch (c  ~RELKEY) {
   case (SPCLKEY | RALT):
 + break;
   case (SPCLKEY | LALT):
   vd-vd_kbstate |= ALKED;
   }


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

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Tijl Coosemans
On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
 That keyboards have no Shift key for that? :)
 I will be glad to apply your changes, but I have to know how it should
 be controlled.
 
 RU and UA PC keyboards have same 3 symbols '2', '', '@'
 To get '2' i have to press only '2'
 To get '@' I have to press Shift+'2'
 To get '' I have to switch to UA or RU and press Shift+'2'
 
 Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
 lang switch. Which commonly mapped to one of Alt. Right?
 So R-Alt+Shift+'2'?

https://en.wikipedia.org/wiki/AltGr
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Andreas Tobler
On 10.12.13 14:43, Tijl Coosemans wrote:
 On Tue, 10 Dec 2013 15:31:44 +0200 Aleksandr Rybalko wrote:
 That keyboards have no Shift key for that? :)
 I will be glad to apply your changes, but I have to know how it should
 be controlled.

 RU and UA PC keyboards have same 3 symbols '2', '', '@'
 To get '2' i have to press only '2'
 To get '@' I have to press Shift+'2'
 To get '' I have to switch to UA or RU and press Shift+'2'

 Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary
 lang switch. Which commonly mapped to one of Alt. Right?
 So R-Alt+Shift+'2'?
 
 https://en.wikipedia.org/wiki/AltGr

Thanks Tijl!

To get the @ I have to press AltGr + '2'.
There are combinations where I have to press AltGr+Shift. e.g to get the
'broken bar, ¦', AltGr+Shift+'7'.

Andreas

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-09 Thread Aleksandr Rybalko
On Sun, 8 Dec 2013 16:36:20 +0100
Marius Strobl mar...@alchemy.franken.de wrote:

 On Thu, Dec 05, 2013 at 10:38:54PM +, Aleksandr Rybalko wrote:
  Author: ray
  Date: Thu Dec  5 22:38:53 2013
  New Revision: 259016
  URL: http://svnweb.freebsd.org/changeset/base/259016
  
  Log:
Merge VT(9) project (a.k.a. newcons).

Reviewed by:  nwhitehorn
MFC_to_10_after:  re approval
 
 Have you addressed any of the points raised in:
 http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045887.html
 to get VT(9) at least en par with syscons(4) regarding being able to
 use a hardware cursor, allowing different low-level console drivers
 to compete for the same hardware etc. in the meantime?
 
 Marius
 

Hello Marius!

Yes and No :)

Lets make it as list with short items:
1. Making these drivers work as low-level console.
2. Drivers priority.
3. Using hardware acceleration.
4. Using the 12 x 22 gallant font.
5. Allowing Xorg to map the frame buffer.
6. (Part of 5) Other register banks as needed.
7. Allowing late attachment.

Answers:
1. Works, I did testing on ARM board Efika MX with vt_fb_early driver.
(Still have to discuss several things with arm@ guys, then commit)

2. Works. F.e. amd64 start with vt_vga driver, then vt_kms driver
override it as more specific.

3. Not used at all yet.

4. I like that font. If you want more gallant - I will help. Thanks
to Ed, newcons support any font dimensions. 

5. It works, but only for those drivers which attach dev/fb/fbd, via
fbd devfs node (not accessible via vt(9) ioctls yet).

6. IMO better to put it into some drm emulation.

7. Works in many combination. (
start w/ vga, load kms; (kms replace vga)
start w/o driver, load kms;
preload kms, start w/ vga; (kms replace vga)
preload kms, start w/o driver; (kms attached after drm node initialized)
)

Have to put your list on Newcons's wiki page too.

As I remember such long list of requirement you provide was based on
expectation that I want to replace syscons right now :)
But, for now we (me and x11 team) want to see it 10.0 as disabled by
default (just like in HEAD now), so peoples who want to help with debug
of new xorg and drm drivers will be able to see messages after KMS-xorg
starts.

Oh, looks like I forget what I have to say more. :)
So it will be said later, when I will less sleepy. 

Anyway. Thanks a lot for your comments!!!

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-09 Thread Nathan Whitehorn

On 12/09/13 18:20, Aleksandr Rybalko wrote:

On Sun, 8 Dec 2013 16:36:20 +0100
Marius Strobl mar...@alchemy.franken.de wrote:


On Thu, Dec 05, 2013 at 10:38:54PM +, Aleksandr Rybalko wrote:

Author: ray
Date: Thu Dec  5 22:38:53 2013
New Revision: 259016
URL: http://svnweb.freebsd.org/changeset/base/259016

Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:	nwhitehorn

   MFC_to_10_after: re approval

Have you addressed any of the points raised in:
http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045887.html
to get VT(9) at least en par with syscons(4) regarding being able to
use a hardware cursor, allowing different low-level console drivers
to compete for the same hardware etc. in the meantime?

Marius


Hello Marius!

Yes and No :)

Lets make it as list with short items:
1. Making these drivers work as low-level console.
2. Drivers priority.
3. Using hardware acceleration.
4. Using the 12 x 22 gallant font.
5. Allowing Xorg to map the frame buffer.
6. (Part of 5) Other register banks as needed.
7. Allowing late attachment.

Answers:
1. Works, I did testing on ARM board Efika MX with vt_fb_early driver.
(Still have to discuss several things with arm@ guys, then commit)


As I mentioned in my review, this particular code is a really weird 
bug-filled copy of ofwfb.c, which already works as a low-level console 
early in the boot process.



2. Works. F.e. amd64 start with vt_vga driver, then vt_kms driver
override it as more specific.


I think Marius meant having early-boot drivers bid amongst each other 
for attachment



3. Not used at all yet.

4. I like that font. If you want more gallant - I will help. Thanks
to Ed, newcons support any font dimensions.

5. It works, but only for those drivers which attach dev/fb/fbd, via
fbd devfs node (not accessible via vt(9) ioctls yet).


Could you provide more detail about how this is supposed to work? X 
doesn't map at offset 0 in general, and that means that 100% of X UMS 
drivers are currently broken with newcons.



6. IMO better to put it into some drm emulation.

7. Works in many combination. (
start w/ vga, load kms; (kms replace vga)
start w/o driver, load kms;
preload kms, start w/ vga; (kms replace vga)
preload kms, start w/o driver; (kms attached after drm node initialized)
)

Have to put your list on Newcons's wiki page too.

As I remember such long list of requirement you provide was based on
expectation that I want to replace syscons right now :)
But, for now we (me and x11 team) want to see it 10.0 as disabled by
default (just like in HEAD now), so peoples who want to help with debug
of new xorg and drm drivers will be able to see messages after KMS-xorg
starts.

Oh, looks like I forget what I have to say more. :)
So it will be said later, when I will less sleepy.

Anyway. Thanks a lot for your comments!!!

WBW


We should come up with a sunset plan for syscons, though.
-Nathan
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-08 Thread Marius Strobl
On Thu, Dec 05, 2013 at 10:38:54PM +, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016
 
 Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:nwhitehorn
   MFC_to_10_after:re approval

Have you addressed any of the points raised in:
http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045887.html
to get VT(9) at least en par with syscons(4) regarding being able to use a
hardware cursor, allowing different low-level console drivers to compete
for the same hardware etc. in the meantime?

Marius

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-08 Thread Andreas Tobler
Hi Aleksandr,

On 08.12.13 00:59, Aleksandr Rybalko wrote:
 Andreas Tobler andre...@freebsd.org написав(ла):
 On 05.12.13 23:38, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016

 Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:  nwhitehorn
   MFC_to_10_after:  re approval
   
   Sponsored by: The FreeBSD Foundation

 Great! Thanks, gives a new look  feel on the console :)
 Have it running on amd64/i386 and PowerMac(32/64-bit).
 The only thing I need to figure is the mapping of the AltGr or in Mac
 world, the alt key mapping. Iow, the third level mapping of the keys.
 e.g. the @ here is on altgr-2...

 Again, thanks!
 Andreas
 

 I'm glad to fix that, but I've to understand how it is should work :-)

Hehe :)

So do I. I was playing a bit while comparing to syscons.c

And with the below diff I'm able to get what I want. At least when I
press RALT (Altgr) key I get the third symbol printed on my keyboard.
I have a couple of Thinkpads here where I play with. (The PowerMac's are
currently to loud)

For example, on the '2' I have the '' as the second symbol and the '@'
as third symbol. Yeah, these are european keyboards

Now I do not prepend the 0x1b and then my RALT behaves as used to, at
least for me.

I do not know the fine details but LALT and RALT are different.

What do you think, others?

For me this is a really important thing since all the 'special' keys are
not accesible w/o the 'hack' below. If I want the pipe (|), or writing
code ({}, [], ...) I have to remote login to get the characters I need.
But I guess I do not need to explain that ;)

TIA,
Andreas

Index: vt_core.c
===
--- vt_core.c   (revision 259095)
+++ vt_core.c   (working copy)
@@ -408,6 +408,7 @@
} else {
switch (c  ~RELKEY) {
case (SPCLKEY | RALT):
+   break;
case (SPCLKEY | LALT):
vd-vd_kbstate |= ALKED;
}
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-07 Thread Andreas Tobler
On 05.12.13 23:38, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016
 
 Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:nwhitehorn
   MFC_to_10_after:re approval
   
   Sponsored by:   The FreeBSD Foundation

Great! Thanks, gives a new look  feel on the console :)
Have it running on amd64/i386 and PowerMac(32/64-bit).
The only thing I need to figure is the mapping of the AltGr or in Mac
world, the alt key mapping. Iow, the third level mapping of the keys.
e.g. the @ here is on altgr-2...

Again, thanks!
Andreas

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-07 Thread Aleksandr Rybalko
Andreas Tobler andre...@freebsd.org написав(ла):
On 05.12.13 23:38, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016
 
 Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:   nwhitehorn
   MFC_to_10_after:   re approval
   
   Sponsored by:  The FreeBSD Foundation

Great! Thanks, gives a new look  feel on the console :)
Have it running on amd64/i386 and PowerMac(32/64-bit).
The only thing I need to figure is the mapping of the AltGr or in Mac
world, the alt key mapping. Iow, the third level mapping of the keys.
e.g. the @ here is on altgr-2...

Again, thanks!
Andreas

Hello Andreas,

I'm glad to fix that, but I've to understand how it is should work :-)

Thanks!
WBW
--
Aleksandr Rybalko r...@ddteam.net


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

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-06 Thread Nathan Whitehorn

On 12/05/13 16:38, Aleksandr Rybalko wrote:

Author: ray
Date: Thu Dec  5 22:38:53 2013
New Revision: 259016
URL: http://svnweb.freebsd.org/changeset/base/259016

Log:
   Merge VT(9) project (a.k.a. newcons).
   
   Reviewed by:	nwhitehorn

   MFC_to_10_after: re approval
   
   Sponsored by:	The FreeBSD Foundation





Good to see this! Some significant things still seem to be broken, 
though. For example, X doesn't work with non-KMS drivers due to missing 
mmap(). Scrolling in the terminal is also really really really slow on 
my hardware.

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


Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-06 Thread Eitan Adler
On Thu, Dec 5, 2013 at 5:38 PM, Aleksandr Rybalko r...@freebsd.org wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016

 Log:
   Merge VT(9) project (a.k.a. newcons).

   Reviewed by:  nwhitehorn
   MFC_to_10_after:  re approval

Thanks! I updated soon after this was committed and it works great.


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-05 Thread Aleksandr Rybalko
Author: ray
Date: Thu Dec  5 22:38:53 2013
New Revision: 259016
URL: http://svnweb.freebsd.org/changeset/base/259016

Log:
  Merge VT(9) project (a.k.a. newcons).
  
  Reviewed by:  nwhitehorn
  MFC_to_10_after:  re approval
  
  Sponsored by: The FreeBSD Foundation

Added:
  head/sys/dev/fb/fb_if.m
 - copied unchanged from r259015, user/ed/newcons/sys/dev/fb/fb_if.m
  head/sys/dev/fb/fbd.c
 - copied unchanged from r259015, user/ed/newcons/sys/dev/fb/fbd.c
  head/sys/dev/vt/
 - copied from r259015, user/ed/newcons/sys/dev/vt/
  head/sys/kern/subr_terminal.c
 - copied unchanged from r259015, user/ed/newcons/sys/kern/subr_terminal.c
  head/sys/sys/terminal.h
 - copied unchanged from r259015, user/ed/newcons/sys/sys/terminal.h
Modified:
  head/sys/conf/files
  head/sys/conf/files.amd64
  head/sys/conf/files.arm
  head/sys/conf/files.i386
  head/sys/conf/files.powerpc
  head/sys/conf/files.sparc64
  head/sys/conf/kmod.mk
  head/sys/conf/options
  head/sys/dev/drm2/drm_fb_helper.c
  head/sys/dev/drm2/drm_os_freebsd.h
  head/sys/dev/drm2/i915/i915_drv.c
  head/sys/dev/drm2/i915/intel_fb.c
  head/sys/dev/drm2/radeon/radeon.h
  head/sys/dev/drm2/radeon/radeon_drv.c
  head/sys/dev/drm2/radeon/radeon_fb.c
  head/sys/dev/drm2/radeon/radeon_pm.c
  head/sys/modules/drm2/i915kms/Makefile
  head/sys/modules/drm2/radeonkms/Makefile
  head/sys/sparc64/sparc64/machdep.c
  head/sys/sys/consio.h
  head/sys/sys/eventhandler.h
  head/sys/sys/fbio.h
  head/sys/sys/tty.h
  head/sys/teken/teken.c
  head/sys/teken/teken.h
  head/sys/teken/teken_subr.h
Directory Properties:
  head/sys/   (props changed)
  head/sys/conf/   (props changed)

Modified: head/sys/conf/files
==
--- head/sys/conf/files Thu Dec  5 21:58:02 2013(r259015)
+++ head/sys/conf/files Thu Dec  5 22:38:53 2013(r259016)
@@ -82,7 +82,7 @@ pccarddevs.h  standard
   \
compile-with${AWK} -f $S/tools/pccarddevs2h.awk 
$S/dev/pccard/pccarddevs \
no-obj no-implicit-rule before-depend  \
clean   pccarddevs.h
-teken_state.h  optional sc\
+teken_state.h  optional sc | vt   \
dependency  $S/teken/gensequences $S/teken/sequences \
compile-with${AWK} -f $S/teken/gensequences $S/teken/sequences  
teken_state.h \
no-obj no-implicit-rule before-depend  \
@@ -1396,6 +1396,8 @@ dev/ex/if_ex_isa.coptional ex isa
 dev/ex/if_ex_pccard.c  optional ex pccard
 dev/exca/exca.coptional cbb
 dev/fatm/if_fatm.c optional fatm pci
+dev/fb/fbd.c   optional fbd | vt
+dev/fb/fb_if.m optional fbd | vt
 dev/fb/splash.coptional splash
 dev/fdt/fdt_common.c   optional fdt
 dev/fdt/fdt_ic_if.moptional fdt
@@ -2461,6 +2463,17 @@ dev/vge/if_vge.c optional vge
 
 dev/vkbd/vkbd.coptional vkbd
 dev/vr/if_vr.c optional vr pci
+dev/vt/colors/vt_termcolors.c  optional vt
+dev/vt/font/vt_font_default.c  optional vt
+dev/vt/font/vt_mouse_cursor.c  optional vt
+dev/vt/hw/fb/vt_fb.c   optional vt
+dev/vt/hw/vga/vga.coptional vt vt_vga
+dev/vt/logo/logo_freebsd.c optional vt
+dev/vt/vt_buf.coptional vt
+dev/vt/vt_consolectl.c optional vt
+dev/vt/vt_core.c   optional vt
+dev/vt/vt_font.c   optional vt
+dev/vt/vt_sysmouse.c   optional vt
 dev/vte/if_vte.c   optional vte pci
 dev/vx/if_vx.c optional vx
 dev/vx/if_vx_eisa.coptional vx eisa
@@ -2897,6 +2910,7 @@ kern/subr_sleepqueue.cstandard
 kern/subr_smp.cstandard
 kern/subr_stack.c  optional ddb | stack | ktr
 kern/subr_taskqueue.c  standard
+kern/subr_terminal.c   optional vt
 kern/subr_trap.c   standard
 kern/subr_turnstile.c  standard
 kern/subr_uio.cstandard
@@ -3796,7 +3810,7 @@ security/mac_portacl/mac_portacl.c optio
 security/mac_seeotheruids/mac_seeotheruids.c optional mac_seeotheruids
 security/mac_stub/mac_stub.c   optional mac_stub
 security/mac_test/mac_test.c   optional mac_test
-teken/teken.c  optional sc
+teken/teken.c  optional sc | vt
 ufs/ffs/ffs_alloc.coptional ffs
 ufs/ffs/ffs_balloc.c   optional ffs
 ufs/ffs/ffs_inode.coptional ffs

Modified: head/sys/conf/files.amd64
==
--- head/sys/conf/files.amd64   Thu Dec  5 21:58:02 2013(r259015)
+++ head/sys/conf/files.amd64   Thu Dec  5 22:38:53 2013(r259016)
@@ -241,7 

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-05 Thread Niclas Zeising
On 2013-12-05 23:38, Aleksandr Rybalko wrote:
 Author: ray
 Date: Thu Dec  5 22:38:53 2013
 New Revision: 259016
 URL: http://svnweb.freebsd.org/changeset/base/259016
 
 Log:
   Merge VT(9) project (a.k.a. newcons).

WOHO!
Congratulations!
Don't forget to update kernel configurations, and if/when you enable it
by default (or now, maybe) please bump osversion.
Regards!
-- 
Niclas
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org