From: Thomas Zimmermann <tzimmermann@suse.de>
To: Tianrui Zhao <zhaotianrui@loongson.cn>,
David Airlie <airlied@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Simona Vetter <simona@ffwll.ch>,
chenhuacai@loongson.cn
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
wuqianhai@loongson.cn
Subject: Re: [PATCH] vga-switcheroo: Allow VGA_SWITCHEROO to be enabled on LoongArch
Date: Thu, 29 Oct 2026 09:16:55 +0100 [thread overview]
Message-ID: <5e547172-ac10-4a28-a584-9a385dbe2b80@suse.de> (raw)
In-Reply-To: <20261029013618.3558115-1-zhaotianrui@loongson.cn>
Hi
Am 29.10.26 um 02:36 schrieb Tianrui Zhao:
> LoongArch systems with hybrid graphics (integrated +
> discrete GPU) can benefit from the same GPU switching
> mechanism that x86 laptops use. Relax the dependency
> to allow VGA_SWITCHEROO to be built on LoongArch,
> consistent with the existing dependencies on ACPI,
> PCI, and FB=y.
>
> Change-Id: I84d38fdfe5e1591495fb3681474a7f1f64281fa8
Internal change ids should be remove before submitting patches.
> Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
> ---
> drivers/gpu/vga/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/vga/Kconfig b/drivers/gpu/vga/Kconfig
> index bad4bcee313..89edd1211aa 100644
> --- a/drivers/gpu/vga/Kconfig
> +++ b/drivers/gpu/vga/Kconfig
> @@ -1,7 +1,7 @@
> # SPDX-License-Identifier: GPL-2.0-only
> config VGA_SWITCHEROO
> bool "Laptop Hybrid Graphics - GPU switching support"
> - depends on X86
> + depends on X86 || LOONGARCH
I'm a bit skeptical if that's all there is to do. Does loongarch really
work with the existing handlers in the graphics drivers as-is? See [1]
for the interface that implements the actual switching.
[1]
https://elixir.bootlin.com/linux/v7.3/source/include/linux/vga_switcheroo.h#L93
Best regards
Thomas
> depends on ACPI
> depends on PCI
> depends on FB=y
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Stefan Gaiser, Jochen Jaser, Abhinav Puri, (HRB 36809, AG Nürnberg)
prev parent reply other threads:[~2026-10-29 8:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 1:36 Tianrui Zhao
2026-10-29 8:16 ` Thomas Zimmermann [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-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=5e547172-ac10-4a28-a584-9a385dbe2b80@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=chenhuacai@loongson.cn \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=wuqianhai@loongson.cn \
--cc=zhaotianrui@loongson.cn \
/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
all inboxes | Powered by JetHome®