Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2016 19:54:27 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        Rick Macklem <rmacklem@uoguelph.ca>, Edward Tomasz Napierala <trasz@freebsd.org>,  src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r297190 - head/sys/kern
Message-ID:  <CANCZdfq8M7LuLiYrc51bt-MoEDqfniOnopoT5S%2BBL_THNLzAWQ@mail.gmail.com>
In-Reply-To: <1458697825.1091.28.camel@freebsd.org>
References:  <201603221346.u2MDk1XH029623@repo.freebsd.org> <1458662141.1091.16.camel@freebsd.org> <1614105839.27686393.1458695637184.JavaMail.zimbra@uoguelph.ca> <CANCZdfpqokV%2Brx3Z=2Obwh8THj3UbhBUGrG4G8v96NCVOvqRRw@mail.gmail.com> <1458697825.1091.28.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 22, 2016 at 7:50 PM, Ian Lepore <ian@freebsd.org> wrote:

> On Tue, 2016-03-22 at 19:28 -0600, Warner Losh wrote:
> > On Tue, Mar 22, 2016 at 7:13 PM, Rick Macklem <rmacklem@uoguelph.ca>
> > wrote:
> >
> > > Ian Lepore wrote:
> > > > On Tue, 2016-03-22 at 13:46 +0000, Edward Tomasz Napierala wrote:
> > > > > Author: trasz
> > > > > Date: Tue Mar 22 13:46:01 2016
> > > > > New Revision: 297190
> > > > > URL: https://svnweb.freebsd.org/changeset/base/297190
> > > > >
> > > > > Log:
> > > > >   Wait for root mount tokens before showing the root mount
> > > > > prompt.
> > > > >   This restores the pre-r290196 behaviour, eliminating the need
> > > > > to
> > > manually
> > > > >   press '.' a couple of times to get USB to finish probing.
> > > > >
> > > > >   Note that there's still something wrong with the console
> > > > > (character
> > > > >   echoing doesn't quite work), and there's also a reported
> > > > > problem with
> > > > >   BHyVe, but those two don't seem related to the problem above.
> > > >
> > > > Just a datapoint on the echoing... it works fine on a serial
> > > > console,
> > > > it's been years since I've seen glitches at the mountroot prompt.
> > > >   So
> > > > the problem may be in vt or kbdmux.
> > > >
> > > When I had a console character echo problem (not serial), changing
> > > the
> > > clock source to RTC fixed it.
> > >
> >
> > I fixed this for the UART code a while ago in r260890. Maybe a
> > similar fix
> > is needed here? Basically, is the data being consumed by the
> > interrupt
> > handler before we can poll-read it...
> >
> > Warner
>
> Your cngrab fixes were only for uart?  Or was it some other fix?
>

Yes, I only fixed uart. But the cngrab interface is generic. I didn't have
issues with the console code at the time, but there's been two
elephants of change in that code since then, including a rewrite.
Perhaps some of that change broke what was working at the time
and needs to be fixed. Perhaps it was working only by accident, like
the UARTs were for years before I made the fix (well, working on and
off... something broke them a bit before I made the change). mountroot>
is so little used that things can break there and be broken for years
before people notice.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq8M7LuLiYrc51bt-MoEDqfniOnopoT5S%2BBL_THNLzAWQ>