public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Udit Kumar <udit.kumar@nxp.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Laszlo Ersek <lersek@redhat.com>
Cc: Andrew Fish <afish@apple.com>,
	Leif Lindholm <leif.lindholm@linaro.org>,
	Ruiyu Ni <ruiyu.ni@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Zeng, Star" <star.zeng@intel.com>
Subject: Re: Help on boot manager 'Boot Manager Menu' and direct boot
Date: Mon, 3 Dec 2018 14:54:31 +0000	[thread overview]
Message-ID: <VI1PR04MB4640ED24CAF5E2BE2AFE43FF91AE0@VI1PR04MB4640.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CAKv+Gu_yFk0U=2yXETpp8sqQQsqG0aTi6u-QosUKQ56pogrHEw@mail.gmail.com>

Hi Ard 

> -----Original Message-----
> From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Sent: Monday, December 3, 2018 7:35 PM
> To: Laszlo Ersek <lersek@redhat.com>
> Cc: Udit Kumar <udit.kumar@nxp.com>; Andrew Fish <afish@apple.com>; Leif
> Lindholm <leif.lindholm@linaro.org>; Ruiyu Ni <ruiyu.ni@intel.com>; edk2-
> devel@lists.01.org; Zeng, Star <star.zeng@intel.com>
> Subject: Re: [edk2] Help on boot manager 'Boot Manager Menu' and direct boot
> 
> On Mon, 3 Dec 2018 at 14:45, Laszlo Ersek <lersek@redhat.com> wrote:
> >
> > On 12/03/18 11:03, Udit Kumar wrote:
> > > Hi Laszlo
> > >
> > >> Are you using the latest edk2?
> > > Yes, when I hit the bug, first step was to move to latest edk2. But this didn't
> helped.
> > >
> > > I am not sure, why we are keeping PL011 Fifo mode off in default
> configuration.
> >
> > Sorry, I don't know: although the subject logic has gone through
> > several updates over time, the default that you point out seems to go
> > back to commit 051e63bb551a ("ArmPlatformPkg/PL011Uart: Allowed to
> > change UART settings in its initialization function", 2012-02-29). And
> > that commit doesn't explain the default.
> >
> 
> The default setting for
> gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth is 1 not 0, and so
> you will end up with a 1 character FIFO setting. I wonder if we could improve

Setting this Pcd to zero will fix problem for me, 
With  PcdUartDefaultReceiveFifoDepth as 1, we are disabling the Fifo at IP level whereas for 0 we are enabling IP fifo.

> PL011UartInitializePort () in PL011UartLib to deal with this better.

Suggest, if IP level Fifo can be kept enabled, always ?

> Note that this also affects platforms that can switch between DT and ACPI boot:
> the same PL011 is described as a 'dumb' SBSA uart in the latter case, and so it is
> up to the firmware to configure the UART FIFO correctly, or you will not be able
> to use the UART under the ACPI OS.

For my ACPI boot (without SPCR table), I hit the same issue.

OS  (Linux, not sure of other OSes) except FIFO to be enabled by firmware/boot-loader. 

Regards
Udit 

      reply	other threads:[~2018-12-03 14:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-29  1:42 Help on boot manager 'Boot Manager Menu' and direct boot Udit Kumar
2018-11-29  1:52 ` Andrew Fish
2018-11-29  3:09   ` Udit Kumar
2018-11-29 10:21     ` Laszlo Ersek
2018-11-29 13:12       ` Udit Kumar
2018-11-29 18:01         ` Laszlo Ersek
2018-11-30  9:13           ` Udit Kumar
2018-12-03  9:56             ` Laszlo Ersek
2018-12-03 10:03               ` Udit Kumar
2018-12-03 13:45                 ` Laszlo Ersek
2018-12-03 14:04                   ` Ard Biesheuvel
2018-12-03 14:54                     ` Udit Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR04MB4640ED24CAF5E2BE2AFE43FF91AE0@VI1PR04MB4640.eurprd04.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox