From: Brian King <brking@linux.vnet.ibm.com>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: klebers@linux.vnet.ibm.com, linux-pci@vger.kernel.org,
bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org,
lucaskt@linux.vnet.ibm.com
Subject: Re: [PATCH 3/3] powerpc: Set default VGA device
Date: Fri, 05 Apr 2013 10:38:38 -0500 [thread overview]
Message-ID: <515EEFFE.6050206@linux.vnet.ibm.com> (raw)
In-Reply-To: <20130405065238.GC5082@concordia>
On 04/05/2013 01:52 AM, Michael Ellerman wrote:
> Hi Brian,
>
>
> On Thu, Apr 04, 2013 at 04:58:17PM -0500, Brian King wrote:
>>
>> Add a PCI quirk for VGA devices on Power to set the default VGA device.
>> Ensures a default VGA is always set if a graphics adapter is present,
>> even if firmware did not initialize it. If more than one graphics
>> adapter is present, ensure the one initialized by firmware is set
>> as the default VGA device. This ensures that X autoconfiguration
>> will work.
>
> So a few things:
>
> - You are doing this on all power systems, not just pseries which is I
> assume what you're testing on - that seems OK to me, but just
> checking.
Correct. I've only tested on pseries, but figured it would make sense for
this to be more generic. I'm happy to make this pseries specific if that
is preferred.
> - What is the "initialized by firmware" test? Just that IO & MEM are
> enabled?
Correct. This is what the x86 code does. Alternatively, its possible
there is a chosen attribute in the device tree we could look at.
> - You potentially override an existing default, is that a problem? Can
> the user set the default? (no AFAICS).
I couldn't find anywhere that this could be set by the user and wanted to
be able to handle both the case of a single adapter that wasn't initialized
by firmware as well as the multi adapter case where only one of the adapters was
initialized by firmware. I could have made this smarter so that we only
override the default if the previous default was not initialized by firmware,
but opted for the simpler patch.
> - The x86 code is slightly different, they don't override an existing
> default, why do we?
I wanted to be able to handle the case of a single graphics adapter installed in a system
that has not been initialized by firmware, since I have a system like this. This generally
isn't something that x86 would need to do since all graphics adapters should have x86 boot
code in them, but very few current graphics adapters have fcode in them today.
Thanks,
Brian
--
Brian King
Power Linux I/O
IBM Linux Technology Center
next prev parent reply other threads:[~2013-04-05 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 21:58 [PATCH 3/3] powerpc: Set default VGA device Brian King
2013-04-05 6:52 ` Michael Ellerman
2013-04-05 15:38 ` Brian King [this message]
2013-04-05 20:24 ` Bjorn Helgaas
2013-04-08 5:21 ` Michael Ellerman
2013-04-08 6:39 ` Benjamin Herrenschmidt
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=515EEFFE.6050206@linux.vnet.ibm.com \
--to=brking@linux.vnet.ibm.com \
--cc=bhelgaas@google.com \
--cc=klebers@linux.vnet.ibm.com \
--cc=linux-pci@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=lucaskt@linux.vnet.ibm.com \
--cc=michael@ellerman.id.au \
/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).