Re: dev/i2c: nxptda(4)

2016-08-18 Thread Matthieu Herrb
On Fri, Aug 19, 2016 at 02:38:32PM +1000, Jonathan Gray wrote: > > Perhaps even handle the modesetting ioctls and use the modesetting > driver with xorg? BTW, to add a kms drm driver for a simple framebuffer based graphics output, the code written duing GSoC 2015 by leo grange may be a good start

Re: dev/i2c: nxptda(4)

2016-08-18 Thread Ian Sutton
On Fri, Aug 19, 2016 at 02:38:32PM +1000, Jonathan Gray wrote: > Have you considered directly attaching the i2c bus to your other > driver without creating a new driver and using drm_edid.c ? > > Perhaps even handle the modesetting ioctls and use the modesetting > driver with xorg? I had consider

Re: dev/i2c: nxptda(4)

2016-08-18 Thread Jonathan Gray
On Fri, Aug 19, 2016 at 02:38:32PM +1000, Jonathan Gray wrote: > On Thu, Aug 18, 2016 at 04:34:38PM -0400, Ian Sutton wrote: > > On Sat, Aug 06, 2016 at 04:26:27AM -0400, Ian Sutton wrote: > > > Interestingly, the am335x SoC does not have a HDMI/DP/etc transmitter on > > > silicon -- the BBB has it

Re: dev/i2c: nxptda(4)

2016-08-18 Thread Jonathan Gray
On Thu, Aug 18, 2016 at 04:34:38PM -0400, Ian Sutton wrote: > On Sat, Aug 06, 2016 at 04:26:27AM -0400, Ian Sutton wrote: > > Interestingly, the am335x SoC does not have a HDMI/DP/etc transmitter on > > silicon -- the BBB has its LCDC pins wired to a TDA19988 HDMI > > transmitter which is additiona

Re: ld.so initarray support

2016-08-18 Thread Philip Guenther
On Thursday, August 18, 2016, Mark Kettenis wrote: ... > > > > There is a functional change here. Our current ld.so doesn't run > > > DT_INIT and DT_FINI for the main executable. The ELF standard is a bit > > > ambiguous about this, but Linux does run tose for the main executable. > > > And Sola

Adjust HISTORY for src/bin/stty/stty.1

2016-08-18 Thread Sevan Janiyan
Hello, The 2nd Edition UNIX source is incomplete over at TUHS[1] however there is a scan of a printed draft copy of the 2nd Edition manual[2], stty appears to be listed in the table of contents (page 7). Attached patch amends the HISTORY section of stty(1) to say v2 rather than v3 and bumps date.

dev/i2c: nxptda(4)

2016-08-18 Thread Ian Sutton
On Sat, Aug 06, 2016 at 04:26:27AM -0400, Ian Sutton wrote: > Interestingly, the am335x SoC does not have a HDMI/DP/etc transmitter on > silicon -- the BBB has its LCDC pins wired to a TDA19988 HDMI > transmitter which is additionally backwired to one of the am335x's i2c > ports: > > "nxp,tda998x"

com(4) mcr games

2016-08-18 Thread Miod Vallat
While everyone is looking at com(4)... Some systems use reserved (and sometimes not) bits of the MCR register for extra features. In particular, on some systems, clearing the DCS bit in the MCR is not a good idea (kudos if you can guess what historical machine I am thinking of). It makes sense fo

Use Access Flag to do page reference emulation on armv7

2016-08-18 Thread Mark Kettenis
Currently we mark page table entries as invalid to do reference emulation. This is a bit complicated as the XN bit for "small" (normal 4K) pages has been stuffed into the two-bit type field. That's why all those /* XXX use of L2_V7_S_XN */ comments were in the code for. But ARMv7 define

connect(2): add example

2016-08-18 Thread Todd C. Miller
Handling EINTR with connect(2) is tricky enough that I think it deserves an example that people can copy & paste into their own code. Is it worth expanding the part before connect_wait()? - todd Index: lib/libc/sys/connect.2 === RC

Re: Add / Amend history info for some utilities in /bin

2016-08-18 Thread Sevan Janiyan
On 18/08/2016 06:07, Theo de Raadt wrote: > It appears the goal here is to be accurate regarding minor amusing > documentation details. That's good, the same detailing will reflects > in code as well. > > Well, then don't send a diff alone. Provide all the proof. History > is complicated and

Re: small patch for relayd.conf.5

2016-08-18 Thread Jason McIntyre
On Wed, Aug 17, 2016 at 11:47:40PM +0200, Remi Locherer wrote: > Hi > > I think there is a small mistake in relayd.conf.5. > > Remi > fixed, as per reyk's ok. thanks, jmc > > Index: relayd.conf.5 > === > RCS file: /cvs/src/usr.s

Re: ksh.1: $() quirk note

2016-08-18 Thread Dmitrij D. Czarkoff
Christian Weisgerber wrote: >I guess. There _are_ problems in this area, though. > >$ case x in x);; *);; esac >$ echo $(case x in x);; *);; esac) >ksh: syntax error: `;;' unexpected This should probably be in BUGS section, not as a note in the middle of the manual. Eg.: Index: ksh.1

Re: ksh.1: $() quirk note

2016-08-18 Thread Jason McIntyre
On Thu, Aug 18, 2016 at 10:08:32AM +0200, Martin Natano wrote: > ksh.1 states: > > Note: $(command) expressions are currently parsed by finding the > matching > parenthesis, regardless of quoting. This should be fixed soon. > > Seems like the "soon" mentioned here is already past. >

Re: ksh.1: $() quirk note

2016-08-18 Thread Christian Weisgerber
On 2016-08-18, Martin Natano wrote: > ksh.1 states: > > Note: $(command) expressions are currently parsed by finding the > matching > parenthesis, regardless of quoting. This should be fixed soon. > > Seems like the "soon" mentioned here is already past. > > $ echo $(echo "clo

Re: small patch for relayd.conf.5

2016-08-18 Thread Reyk Floeter
On Thu, Aug 18, 2016 at 12:49:42PM +0100, Jason McIntyre wrote: > On Wed, Aug 17, 2016 at 11:47:40PM +0200, Remi Locherer wrote: > > Hi > > > > I think there is a small mistake in relayd.conf.5. > > > > Remi > > > > > > Index: relayd.conf.5 > > ==

Re: small patch for relayd.conf.5

2016-08-18 Thread Jason McIntyre
On Wed, Aug 17, 2016 at 11:47:40PM +0200, Remi Locherer wrote: > Hi > > I think there is a small mistake in relayd.conf.5. > > Remi > > > Index: relayd.conf.5 > === > RCS file: /cvs/src/usr.sbin/relayd/relayd.conf.5,v > retrieving

Re: Enable FIFO Synopsis DesignWare APB UART

2016-08-18 Thread Marcus Glocker
On Thu, Aug 18, 2016 at 11:57:29AM +0200, Mark Kettenis wrote: > > Date: Thu, 18 Aug 2016 11:41:52 +0200 > > From: Marcus Glocker > > > > On Wed, Aug 17, 2016 at 04:05:05PM +0200, Mark Kettenis wrote: > > > > > > Date: Wed, 17 Aug 2016 15:36:21 +0200 > > > > From: Marcus Glocker > > > > > > >

Re: Enable FIFO Synopsis DesignWare APB UART

2016-08-18 Thread Mark Kettenis
> Date: Thu, 18 Aug 2016 11:41:52 +0200 > From: Marcus Glocker > > On Wed, Aug 17, 2016 at 04:05:05PM +0200, Mark Kettenis wrote: > > > > Date: Wed, 17 Aug 2016 15:36:21 +0200 > > > From: Marcus Glocker > > > > > > Enables FIFO for Synopsis DesignWare APB UART. > > > > > > ok? > > > > Appare

Re: Enable FIFO Synopsis DesignWare APB UART

2016-08-18 Thread Marcus Glocker
On Wed, Aug 17, 2016 at 04:05:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 17 Aug 2016 15:36:21 +0200 > > From: Marcus Glocker > > > > Enables FIFO for Synopsis DesignWare APB UART. > > > > ok? > > Apparently the FIFO is optional. There is a register that tells you > whether it is enabled

Re: ld.so initarray support

2016-08-18 Thread Mark Kettenis
> Date: Wed, 17 Aug 2016 12:50:54 -0700 > From: Philip Guenther > > On Wed, 17 Aug 2016, Mark Kettenis wrote: > ... > > Functions listed by DT_PREINIT_ARRAY get run immediately after ld.so has > > finished loading and relocating all shared objects. This happens only > > for the main executable.

fusefs: remove update_vattr() helper function

2016-08-18 Thread Martin Natano
There are three callers of update_vattr(). Two of them don't use the updated struct vattr afterwards, so the call can be removed. Following diff removes both calls and the function itself, inlining the last remaining call. While there I removed this gem: #if (S_BLKSIZE == 512)

ksh.1: $() quirk note

2016-08-18 Thread Martin Natano
ksh.1 states: Note: $(command) expressions are currently parsed by finding the matching parenthesis, regardless of quoting. This should be fixed soon. Seems like the "soon" mentioned here is already past. $ echo $(echo "closing: )") closing: ) $ Ok? Am