From: Daniel Axtens <dja@axtens.net>
To: linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
linux-arm-kernel@lists.infradead.org
Cc: gabriele.paoloni@huawei.com, airlied@linux.ie,
benh@kernel.crashing.org, will.deacon@arm.com,
z.liuxinliang@hisilicon.com, bhelgaas@google.com,
alex.williamson@redhat.com, catalin.marinas@arm.com,
zourongrong@gmail.com, daniel.vetter@intel.com,
Daniel Axtens <dja@axtens.net>
Subject: [PATCH 0/3] Split VGA default selection from VGA arbiter
Date: Fri, 4 Aug 2017 20:20:30 +1000 [thread overview]
Message-ID: <20170804102033.27731-1-dja@axtens.net> (raw)
This is approach 3 of my patch series to sort out Xorg
autoconfiguration for the Hibmc card beind a Hisilicon bridge on
arm64.
Approach 1 was a simple quirk for the card+bridge to mark it as
default. This higlighted the fact that the default card was picked by
the arbiter, which assumed legacy resources. The lack of legacy
resources leads to quirks in ppc and concerns in arm land, so a more
generic approach was desired.
Approach 2 allowed platforms to opt in to a class enable hook that
added a card as default if there was no default. This:
- was possibly racy as ACPI PCI init and vgaarb are both subsys
initcalls.
- didn't check to see if a card had a driver.
- meant that platforms for which the vga arbiter didn't make sense
still needed it.
This is approach 3. It pulls the default handling out of the arbiter,
into its own file and behind its own Kconfig option. It adds the extra
detection as a late initcall and an enable hook that only operates
after the initcall, so it's not racy. It checks for drivers. It means
people can turn off the vga arbiter. It works sensibly for modules
too.
Patch 1 cleans up the powerpc fixup, as with approach 2.
Patch 2 is the big split.
Patch 3 moves ppc over, as with approach 2.
There is no need for an arm-specific patch this time as the Kconfig option
is on by default.
Regards,
Daniel
Daniel Axtens (3):
powerpc: simplify and fix VGA default device behaviour
Split VGA default device handler out of VGA arbiter
powerpc: replace vga_fixup() with generic code
arch/ia64/pci/fixup.c | 2 +-
arch/powerpc/kernel/pci-common.c | 13 ----
arch/x86/pci/fixup.c | 2 +-
arch/x86/video/fbdev.c | 2 +-
drivers/gpu/vga/Kconfig | 12 +++
drivers/gpu/vga/Makefile | 1 +
drivers/gpu/vga/vga_default.c | 159 +++++++++++++++++++++++++++++++++++++++
drivers/gpu/vga/vga_switcheroo.c | 2 +-
drivers/gpu/vga/vgaarb.c | 41 +---------
drivers/pci/pci-sysfs.c | 2 +-
include/linux/vga_default.h | 44 +++++++++++
include/linux/vgaarb.h | 14 ----
12 files changed, 224 insertions(+), 70 deletions(-)
create mode 100644 drivers/gpu/vga/vga_default.c
create mode 100644 include/linux/vga_default.h
--
2.11.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Daniel Axtens <dja@axtens.net>
To: linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
linux-arm-kernel@lists.infradead.org
Cc: benh@kernel.crashing.org, z.liuxinliang@hisilicon.com,
zourongrong@gmail.com, catalin.marinas@arm.com,
will.deacon@arm.com, gabriele.paoloni@huawei.com,
bhelgaas@google.com, airlied@linux.ie, daniel.vetter@intel.com,
alex.williamson@redhat.com, Daniel Axtens <dja@axtens.net>
Subject: [PATCH 0/3] Split VGA default selection from VGA arbiter
Date: Fri, 4 Aug 2017 20:20:30 +1000 [thread overview]
Message-ID: <20170804102033.27731-1-dja@axtens.net> (raw)
This is approach 3 of my patch series to sort out Xorg
autoconfiguration for the Hibmc card beind a Hisilicon bridge on
arm64.
Approach 1 was a simple quirk for the card+bridge to mark it as
default. This higlighted the fact that the default card was picked by
the arbiter, which assumed legacy resources. The lack of legacy
resources leads to quirks in ppc and concerns in arm land, so a more
generic approach was desired.
Approach 2 allowed platforms to opt in to a class enable hook that
added a card as default if there was no default. This:
- was possibly racy as ACPI PCI init and vgaarb are both subsys
initcalls.
- didn't check to see if a card had a driver.
- meant that platforms for which the vga arbiter didn't make sense
still needed it.
This is approach 3. It pulls the default handling out of the arbiter,
into its own file and behind its own Kconfig option. It adds the extra
detection as a late initcall and an enable hook that only operates
after the initcall, so it's not racy. It checks for drivers. It means
people can turn off the vga arbiter. It works sensibly for modules
too.
Patch 1 cleans up the powerpc fixup, as with approach 2.
Patch 2 is the big split.
Patch 3 moves ppc over, as with approach 2.
There is no need for an arm-specific patch this time as the Kconfig option
is on by default.
Regards,
Daniel
Daniel Axtens (3):
powerpc: simplify and fix VGA default device behaviour
Split VGA default device handler out of VGA arbiter
powerpc: replace vga_fixup() with generic code
arch/ia64/pci/fixup.c | 2 +-
arch/powerpc/kernel/pci-common.c | 13 ----
arch/x86/pci/fixup.c | 2 +-
arch/x86/video/fbdev.c | 2 +-
drivers/gpu/vga/Kconfig | 12 +++
drivers/gpu/vga/Makefile | 1 +
drivers/gpu/vga/vga_default.c | 159 +++++++++++++++++++++++++++++++++++++++
drivers/gpu/vga/vga_switcheroo.c | 2 +-
drivers/gpu/vga/vgaarb.c | 41 +---------
drivers/pci/pci-sysfs.c | 2 +-
include/linux/vga_default.h | 44 +++++++++++
include/linux/vgaarb.h | 14 ----
12 files changed, 224 insertions(+), 70 deletions(-)
create mode 100644 drivers/gpu/vga/vga_default.c
create mode 100644 include/linux/vga_default.h
--
2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: dja@axtens.net (Daniel Axtens)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] Split VGA default selection from VGA arbiter
Date: Fri, 4 Aug 2017 20:20:30 +1000 [thread overview]
Message-ID: <20170804102033.27731-1-dja@axtens.net> (raw)
This is approach 3 of my patch series to sort out Xorg
autoconfiguration for the Hibmc card beind a Hisilicon bridge on
arm64.
Approach 1 was a simple quirk for the card+bridge to mark it as
default. This higlighted the fact that the default card was picked by
the arbiter, which assumed legacy resources. The lack of legacy
resources leads to quirks in ppc and concerns in arm land, so a more
generic approach was desired.
Approach 2 allowed platforms to opt in to a class enable hook that
added a card as default if there was no default. This:
- was possibly racy as ACPI PCI init and vgaarb are both subsys
initcalls.
- didn't check to see if a card had a driver.
- meant that platforms for which the vga arbiter didn't make sense
still needed it.
This is approach 3. It pulls the default handling out of the arbiter,
into its own file and behind its own Kconfig option. It adds the extra
detection as a late initcall and an enable hook that only operates
after the initcall, so it's not racy. It checks for drivers. It means
people can turn off the vga arbiter. It works sensibly for modules
too.
Patch 1 cleans up the powerpc fixup, as with approach 2.
Patch 2 is the big split.
Patch 3 moves ppc over, as with approach 2.
There is no need for an arm-specific patch this time as the Kconfig option
is on by default.
Regards,
Daniel
Daniel Axtens (3):
powerpc: simplify and fix VGA default device behaviour
Split VGA default device handler out of VGA arbiter
powerpc: replace vga_fixup() with generic code
arch/ia64/pci/fixup.c | 2 +-
arch/powerpc/kernel/pci-common.c | 13 ----
arch/x86/pci/fixup.c | 2 +-
arch/x86/video/fbdev.c | 2 +-
drivers/gpu/vga/Kconfig | 12 +++
drivers/gpu/vga/Makefile | 1 +
drivers/gpu/vga/vga_default.c | 159 +++++++++++++++++++++++++++++++++++++++
drivers/gpu/vga/vga_switcheroo.c | 2 +-
drivers/gpu/vga/vgaarb.c | 41 +---------
drivers/pci/pci-sysfs.c | 2 +-
include/linux/vga_default.h | 44 +++++++++++
include/linux/vgaarb.h | 14 ----
12 files changed, 224 insertions(+), 70 deletions(-)
create mode 100644 drivers/gpu/vga/vga_default.c
create mode 100644 include/linux/vga_default.h
--
2.11.0
next reply other threads:[~2017-08-04 10:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 10:20 Daniel Axtens [this message]
2017-08-04 10:20 ` [PATCH 0/3] Split VGA default selection from VGA arbiter Daniel Axtens
2017-08-04 10:20 ` Daniel Axtens
2017-08-04 10:20 ` [PATCH 1/3] powerpc: simplify and fix VGA default device behaviour Daniel Axtens
2017-08-04 10:20 ` Daniel Axtens
2017-08-11 21:44 ` Bjorn Helgaas
2017-08-11 21:44 ` Bjorn Helgaas
2017-08-11 21:44 ` Bjorn Helgaas
2017-08-13 22:34 ` Daniel Axtens
2017-08-13 22:34 ` Daniel Axtens
2017-08-04 10:20 ` [PATCH 2/3] Split VGA default device handler out of VGA arbiter Daniel Axtens
2017-08-04 10:20 ` Daniel Axtens
2017-08-04 10:20 ` Daniel Axtens
2017-08-05 6:57 ` Lukas Wunner
2017-08-05 6:57 ` Lukas Wunner
2017-08-06 23:49 ` Daniel Axtens
2017-08-06 23:49 ` Daniel Axtens
2017-08-06 23:49 ` Daniel Axtens
2017-08-04 10:20 ` [PATCH 3/3] powerpc: replace vga_fixup() with generic code Daniel Axtens
2017-08-04 10:20 ` Daniel Axtens
2017-08-07 7:18 ` Michael Ellerman
2017-08-07 7:18 ` Michael Ellerman
2017-08-07 7:18 ` Michael Ellerman
2017-08-07 23:01 ` Daniel Axtens
2017-08-07 23:01 ` Daniel Axtens
2017-08-07 23:01 ` Daniel Axtens
2017-08-08 10:12 ` Michael Ellerman
2017-08-08 10:12 ` Michael Ellerman
2017-08-08 10:12 ` Michael Ellerman
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=20170804102033.27731-1-dja@axtens.net \
--to=dja@axtens.net \
--cc=airlied@linux.ie \
--cc=alex.williamson@redhat.com \
--cc=benh@kernel.crashing.org \
--cc=bhelgaas@google.com \
--cc=catalin.marinas@arm.com \
--cc=daniel.vetter@intel.com \
--cc=gabriele.paoloni@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pci@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=will.deacon@arm.com \
--cc=z.liuxinliang@hisilicon.com \
--cc=zourongrong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.