From: Matt Fleming <matt@codeblueprint.co.uk>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Alexander Graf <agraf@suse.de>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
linux-pci@vger.kernel.org,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Peter Jones <pjones@redhat.com>,
Matthew Garrett <mjg59@srcf.ucam.org>
Subject: Re: [PATCH] arm64: Relocate screen_info.lfb_base on PCI BAR allocation
Date: Sat, 30 Apr 2016 22:17:38 +0100 [thread overview]
Message-ID: <20160430211738.GN2839@codeblueprint.co.uk> (raw)
In-Reply-To: <20160429233119.GA10197@localhost>
(Pulling in efifb maintainer, Peter)
On Fri, 29 Apr, at 06:31:19PM, Bjorn Helgaas wrote:
>
> The efifb.c driver doesn't do anything at all with PCI (it includes
> linux/pci.h, but probably doesn't need it). That's part of what I'm
> suggesting -- if it *did* register as a PCI device driver, then it
> would look at pci_dev->resource[n], which is populated by the PCI
> core based on the BAR values.
This discussion came up recently here,
https://lkml.kernel.org/r/20160216151859.GB11373@redhat.com
There's nothing PCI-specific about the EFI framebuffer per se, but in
practice it's always a PCI device.
> Is ConOut what you're after? I.e., is the whole point of this
> exercise to get a framebuffer driver attached to the device that was
> the firmware console? I would think the ConOut path should be
> decodable -- it has to tell you how to navigate the interconnect from
> the CPU to the device. But I don't know how to do it.
>
> It looks like on x86, at least, setup_gop32()/setup_gop64() might be
> extracting the framebuffer address from the ConOut device and stuffing
> it into screen_info, which is what efifb.c later looks at (maybe this
> is what Ard was referring to).
Matthew Garrett wrote the x86 code for guessing where the console is.
We look for the ConOut protocol with a fallback to first GOP device if
we can't find it. I think the heuristic was based on reading the
implementation in EDK2. See commit 38cb5ef4473c ("X86: Improve GOP
detection in the EFI boot stub").
next prev parent reply other threads:[~2016-04-30 21:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-27 22:22 [PATCH] arm64: Relocate screen_info.lfb_base on PCI BAR allocation Alexander Graf
2016-04-28 16:20 ` Bjorn Helgaas
2016-04-28 16:41 ` Alexander Graf
2016-04-28 18:06 ` Bjorn Helgaas
2016-04-28 21:39 ` Alexander Graf
2016-04-29 10:03 ` Lorenzo Pieralisi
2016-04-29 13:41 ` Bjorn Helgaas
2016-04-29 13:51 ` Ard Biesheuvel
2016-04-29 20:06 ` Bjorn Helgaas
2016-04-29 20:25 ` Ard Biesheuvel
2016-04-29 20:51 ` Alexander Graf
2016-04-29 21:37 ` Bjorn Helgaas
2016-04-29 21:52 ` Alexander Graf
2016-04-29 22:03 ` Alexander Graf
2016-04-29 23:31 ` Bjorn Helgaas
2016-04-30 21:17 ` Matt Fleming [this message]
2016-04-29 21:20 ` Bjorn Helgaas
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=20160430211738.GN2839@codeblueprint.co.uk \
--to=matt@codeblueprint.co.uk \
--cc=agraf@suse.de \
--cc=ard.biesheuvel@linaro.org \
--cc=helgaas@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=mjg59@srcf.ucam.org \
--cc=pjones@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).