From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v3, 1/5] efi_loader: Initial HII database protocols
Date: Tue, 12 Feb 2019 10:41:01 +0900 [thread overview]
Message-ID: <20190212014100.GF20286@linaro.org> (raw)
In-Reply-To: <a805b62c-9707-312c-d21e-ecb557c05a2c@suse.de>
Alex, Heinrich,
On Mon, Feb 11, 2019 at 03:28:58PM +0100, Alexander Graf wrote:
> On 02/09/2019 05:19 PM, Heinrich Schuchardt wrote:
> >On 1/23/19 2:01 PM, Alexander Graf wrote:
> >>>From: Leif Lindholm <leif.lindholm@linaro.org>
> >>>
> >>>This patch provides enough implementation of the following protocols to
> >>>run EDKII's Shell.efi and UEFI SCT:
> >>>
> >>> * EfiHiiDatabaseProtocol
> >>> * EfiHiiStringProtocol
> >>>
> >>>Not implemented are:
> >>> * ExportPackageLists()
> >>> * RegisterPackageNotify()/UnregisterPackageNotify()
> >>> * SetKeyboardLayout() (i.e. *current* keyboard layout)
> >>>
> >>>HII database protocol in this patch series can handle only:
> >>> * GUID package
> >>> * string package
> >>> * keyboard layout package
> >>> (The other packages, except Device path package, will be necessary
> >>> for interactive and graphical UI.)
> >>>
> >>>Cc: Leif Lindholm <leif.lindholm@linaro.org>
> >>>Signed-off-by: Rob Clark <robdclark@gmail.com>
> >>>Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> >>Thanks, applied to efi-next
> >>
> >>Alex
> >>
> >>
> >I have rebased the efi-next tree upon U-Boot master. My Odroid C2
> >crashes when booting via U-Boot -> iPXE -> GRUB -> Linux. Bisection
> >points to this patch. The HII protocols are referenced by iPXE if available.
> >
> >An interesting comment in
> >https://www.spinics.net/lists/arm-kernel/msg704238.html for a similar
> >U-Boot related error is:
> >
> >"Looks like you're taking the SError as soon as we unmask them, so it
> >could've been pending for ages. It would be interesting to see if it's
> >actually caused by the kernel, or if the firmware triggers it beforehand."
> >
> >Booting via iPXE is described in doc/README.iscsi
> >
> >This patch and some follow up patches are included in the pull request
> >for the EFI tree.
> >
> >I would prefer if we could remove the HII protocols from the pull
> >request until the patches are thoroughly tested.
>
> I've posted a patch to remove only the protocol exposure. That way we can
> leave most bits in.
>
> The #SError sounds like something is trying to write to a memory location
> that is not backed by a device. That is usually an indicator for a NULL
> dereference. Maybe by looking at the respective iPXE code, you will be able
> to find the spot that does the invalid access?
Taking a quick look at iPXE code (src/interface/efi/*),
it uses
* HII_PACKAGE_FORMS
* HII_PACKAGE_STRINGS
* HII_CONFIG_ROUTING_PROTOCOL
* HII_CONFIG_ACCESS_PROTOCOL
but my current patch doesn't support neither PACKAGE_FORMS nor
CONFIG_*_PROTOCOL. One of those might be a root cause.
(I don't know when and how SError was triggered though.)
-Takahiro Akashi
>
> Alex
>
next prev parent reply other threads:[~2019-02-12 1:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-21 3:12 [U-Boot] [PATCH v3 0/5] subject: efi_loader: add HII database protocol AKASHI Takahiro
2019-01-21 3:12 ` [U-Boot] [PATCH v3 1/5] efi_loader: Initial HII database protocols AKASHI Takahiro
[not found] ` <154824847481.44817.15540110415651237647@achrid.arch.suse.de>
2019-02-09 16:19 ` [U-Boot] [U-Boot, v3, " Heinrich Schuchardt
2019-02-11 14:28 ` Alexander Graf
2019-02-12 1:41 ` AKASHI Takahiro [this message]
2019-01-21 3:12 ` [U-Boot] [PATCH v3 2/5] efi: hii: add guid package support AKASHI Takahiro
2019-01-21 3:12 ` [U-Boot] [PATCH v3 3/5] efi: hii: add keyboard layout " AKASHI Takahiro
2019-01-21 3:13 ` [U-Boot] [PATCH v3 4/5] efi: hii: add HII config routing/access protocols AKASHI Takahiro
2019-01-21 3:13 ` [U-Boot] [PATCH v3 5/5] efi_selftest: add HII database protocols test AKASHI Takahiro
2019-01-22 9:48 ` [U-Boot] [PATCH v3 0/5] subject: efi_loader: add HII database protocol Alexander Graf
2019-01-22 21:13 ` Heinrich Schuchardt
2019-01-23 5:11 ` AKASHI Takahiro
2019-01-23 6:35 ` Alexander Graf
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-all 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=20190212014100.GF20286@linaro.org \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
/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