Linux ACPI
 help / color / mirror / Atom feed
* [PATCH 0/2] ACPI: support BGRT table on RISC-V
@ 2025-07-29 13:15 Heinrich Schuchardt
  2025-07-29 13:15 ` [PATCH 1/2] RISC-V: ACPI: enable parsing the BGRT table Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2025-07-29 13:15 UTC (permalink / raw)
  To: Palmer Dabbelt, Paul Walmsley, Albert Ou
  Cc: Alexandre Ghiti, Rafael J . Wysocki, Len Brown, Sunil V L,
	Catalin Marinas, Yunhui Cui, Andrew Morton, Ryan Roberts,
	linux-riscv, kernel, linux-acpi, Heinrich Schuchardt

The BGRT table is used to display a vendor logo in the boot process.
There is no good reason why RISC-V should not support it.

Remove the architecture constraint.

Heinrich Schuchardt (2):
  RISC-V: ACPI: enable parsing the BGRT table
  ACPI: support BGRT table on RISC-V

 arch/riscv/kernel/acpi.c | 3 +++
 drivers/acpi/Kconfig     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.50.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] RISC-V: ACPI: enable parsing the BGRT table
  2025-07-29 13:15 [PATCH 0/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
@ 2025-07-29 13:15 ` Heinrich Schuchardt
  2025-07-29 13:15 ` [PATCH 2/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2025-07-29 13:15 UTC (permalink / raw)
  To: Palmer Dabbelt, Paul Walmsley, Albert Ou
  Cc: Alexandre Ghiti, Rafael J . Wysocki, Len Brown, Sunil V L,
	Catalin Marinas, Yunhui Cui, Andrew Morton, Ryan Roberts,
	linux-riscv, kernel, linux-acpi, Heinrich Schuchardt

The BGRT table is used to display a vendor logo during the boot process.
Add the code for parsing it.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 arch/riscv/kernel/acpi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c
index 3f6d5a6789e87..71698ee11621a 100644
--- a/arch/riscv/kernel/acpi.c
+++ b/arch/riscv/kernel/acpi.c
@@ -14,6 +14,7 @@
  */
 
 #include <linux/acpi.h>
+#include <linux/efi-bgrt.h>
 #include <linux/efi.h>
 #include <linux/io.h>
 #include <linux/memblock.h>
@@ -160,6 +161,8 @@ void __init acpi_boot_table_init(void)
 			early_init_dt_scan_chosen_stdout();
 	} else {
 		acpi_parse_spcr(earlycon_acpi_spcr_enable, true);
+		if (IS_ENABLED(CONFIG_ACPI_BGRT))
+			acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt);
 	}
 }
 
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] ACPI: support BGRT table on RISC-V
  2025-07-29 13:15 [PATCH 0/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
  2025-07-29 13:15 ` [PATCH 1/2] RISC-V: ACPI: enable parsing the BGRT table Heinrich Schuchardt
@ 2025-07-29 13:15 ` Heinrich Schuchardt
  2025-07-31 13:13   ` Alexandre Ghiti
  2025-07-30  4:48 ` [PATCH 0/2] " Sunil V L
  2025-08-06 17:15 ` patchwork-bot+linux-riscv
  3 siblings, 1 reply; 8+ messages in thread
From: Heinrich Schuchardt @ 2025-07-29 13:15 UTC (permalink / raw)
  To: Palmer Dabbelt, Paul Walmsley, Albert Ou
  Cc: Alexandre Ghiti, Rafael J . Wysocki, Len Brown, Sunil V L,
	Catalin Marinas, Yunhui Cui, Andrew Morton, Ryan Roberts,
	linux-riscv, kernel, linux-acpi, Heinrich Schuchardt

The BGRT table is used to display a vendor logo in the boot process.
There is no good reason why RISC-V should not support it.

Remove the architecture constraint.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 drivers/acpi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 7bc40c2735ac0..2b83c91bb1a78 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -460,7 +460,7 @@ config ACPI_HED
 
 config ACPI_BGRT
 	bool "Boottime Graphics Resource Table support"
-	depends on EFI && (X86 || ARM64 || LOONGARCH)
+	depends on EFI
 	help
 	  This driver adds support for exposing the ACPI Boottime Graphics
 	  Resource Table, which allows the operating system to obtain
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] ACPI: support BGRT table on RISC-V
  2025-07-29 13:15 [PATCH 0/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
  2025-07-29 13:15 ` [PATCH 1/2] RISC-V: ACPI: enable parsing the BGRT table Heinrich Schuchardt
  2025-07-29 13:15 ` [PATCH 2/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
@ 2025-07-30  4:48 ` Sunil V L
  2025-08-06 17:15 ` patchwork-bot+linux-riscv
  3 siblings, 0 replies; 8+ messages in thread
From: Sunil V L @ 2025-07-30  4:48 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Palmer Dabbelt, Paul Walmsley, Albert Ou, Alexandre Ghiti,
	Rafael J . Wysocki, Len Brown, Catalin Marinas, Yunhui Cui,
	Andrew Morton, Ryan Roberts, linux-riscv, kernel, linux-acpi

On Tue, Jul 29, 2025 at 03:15:33PM +0200, Heinrich Schuchardt wrote:
> The BGRT table is used to display a vendor logo in the boot process.
> There is no good reason why RISC-V should not support it.
> 
> Remove the architecture constraint.
> 
Thanks!

For the series:
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] ACPI: support BGRT table on RISC-V
  2025-07-29 13:15 ` [PATCH 2/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
@ 2025-07-31 13:13   ` Alexandre Ghiti
  2025-07-31 18:17     ` Rafael J. Wysocki
  0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Ghiti @ 2025-07-31 13:13 UTC (permalink / raw)
  To: Heinrich Schuchardt, Palmer Dabbelt, Paul Walmsley, Albert Ou
  Cc: Ryan Roberts, Rafael J . Wysocki, Catalin Marinas, kernel,
	Yunhui Cui, linux-acpi, Andrew Morton, linux-riscv, Len Brown

Hi Heinrich,

On 7/29/25 15:15, Heinrich Schuchardt wrote:
> The BGRT table is used to display a vendor logo in the boot process.
> There is no good reason why RISC-V should not support it.
>
> Remove the architecture constraint.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>   drivers/acpi/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index 7bc40c2735ac0..2b83c91bb1a78 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -460,7 +460,7 @@ config ACPI_HED
>   
>   config ACPI_BGRT
>   	bool "Boottime Graphics Resource Table support"
> -	depends on EFI && (X86 || ARM64 || LOONGARCH)
> +	depends on EFI
>   	help
>   	  This driver adds support for exposing the ACPI Boottime Graphics
>   	  Resource Table, which allows the operating system to obtain


@Rafael: If you ack this patch, I can merge that for 6.17 as I haven't 
sent my PR yet, just let me know!

Thanks,

Alex


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] ACPI: support BGRT table on RISC-V
  2025-07-31 13:13   ` Alexandre Ghiti
@ 2025-07-31 18:17     ` Rafael J. Wysocki
  2025-07-31 19:51       ` Alexandre Ghiti
  0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2025-07-31 18:17 UTC (permalink / raw)
  To: Alexandre Ghiti
  Cc: Heinrich Schuchardt, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	Ryan Roberts, Rafael J . Wysocki, Catalin Marinas, kernel,
	Yunhui Cui, linux-acpi, Andrew Morton, linux-riscv, Len Brown

On Thu, Jul 31, 2025 at 3:13 PM Alexandre Ghiti <alex@ghiti.fr> wrote:
>
> Hi Heinrich,
>
> On 7/29/25 15:15, Heinrich Schuchardt wrote:
> > The BGRT table is used to display a vendor logo in the boot process.
> > There is no good reason why RISC-V should not support it.
> >
> > Remove the architecture constraint.
> >
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > ---
> >   drivers/acpi/Kconfig | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> > index 7bc40c2735ac0..2b83c91bb1a78 100644
> > --- a/drivers/acpi/Kconfig
> > +++ b/drivers/acpi/Kconfig
> > @@ -460,7 +460,7 @@ config ACPI_HED
> >
> >   config ACPI_BGRT
> >       bool "Boottime Graphics Resource Table support"
> > -     depends on EFI && (X86 || ARM64 || LOONGARCH)
> > +     depends on EFI
> >       help
> >         This driver adds support for exposing the ACPI Boottime Graphics
> >         Resource Table, which allows the operating system to obtain
>
>
> @Rafael: If you ack this patch, I can merge that for 6.17 as I haven't
> sent my PR yet, just let me know!

There you go:

Acked-by: Rafael J. Wysocki <rafael@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] ACPI: support BGRT table on RISC-V
  2025-07-31 18:17     ` Rafael J. Wysocki
@ 2025-07-31 19:51       ` Alexandre Ghiti
  0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Ghiti @ 2025-07-31 19:51 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Heinrich Schuchardt, Palmer Dabbelt, Paul Walmsley, Albert Ou,
	Ryan Roberts, Catalin Marinas, kernel, Yunhui Cui, linux-acpi,
	Andrew Morton, linux-riscv, Len Brown

On 7/31/25 20:17, Rafael J. Wysocki wrote:
> On Thu, Jul 31, 2025 at 3:13 PM Alexandre Ghiti <alex@ghiti.fr> wrote:
>> Hi Heinrich,
>>
>> On 7/29/25 15:15, Heinrich Schuchardt wrote:
>>> The BGRT table is used to display a vendor logo in the boot process.
>>> There is no good reason why RISC-V should not support it.
>>>
>>> Remove the architecture constraint.
>>>
>>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
>>> ---
>>>    drivers/acpi/Kconfig | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
>>> index 7bc40c2735ac0..2b83c91bb1a78 100644
>>> --- a/drivers/acpi/Kconfig
>>> +++ b/drivers/acpi/Kconfig
>>> @@ -460,7 +460,7 @@ config ACPI_HED
>>>
>>>    config ACPI_BGRT
>>>        bool "Boottime Graphics Resource Table support"
>>> -     depends on EFI && (X86 || ARM64 || LOONGARCH)
>>> +     depends on EFI
>>>        help
>>>          This driver adds support for exposing the ACPI Boottime Graphics
>>>          Resource Table, which allows the operating system to obtain
>>
>> @Rafael: If you ack this patch, I can merge that for 6.17 as I haven't
>> sent my PR yet, just let me know!
> There you go:
>
> Acked-by: Rafael J. Wysocki <rafael@kernel.org>


Great, thanks!


>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] ACPI: support BGRT table on RISC-V
  2025-07-29 13:15 [PATCH 0/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
                   ` (2 preceding siblings ...)
  2025-07-30  4:48 ` [PATCH 0/2] " Sunil V L
@ 2025-08-06 17:15 ` patchwork-bot+linux-riscv
  3 siblings, 0 replies; 8+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-08-06 17:15 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: linux-riscv, palmer, paul.walmsley, aou, ryan.roberts, alex,
	rafael, catalin.marinas, kernel, cuiyunhui, linux-acpi, akpm,
	lenb

Hello:

This series was applied to riscv/linux.git (for-next)
by Alexandre Ghiti <alexghiti@rivosinc.com>:

On Tue, 29 Jul 2025 15:15:33 +0200 you wrote:
> The BGRT table is used to display a vendor logo in the boot process.
> There is no good reason why RISC-V should not support it.
> 
> Remove the architecture constraint.
> 
> Heinrich Schuchardt (2):
>   RISC-V: ACPI: enable parsing the BGRT table
>   ACPI: support BGRT table on RISC-V
> 
> [...]

Here is the summary with links:
  - [1/2] RISC-V: ACPI: enable parsing the BGRT table
    https://git.kernel.org/riscv/c/1f768661a03e
  - [2/2] ACPI: support BGRT table on RISC-V
    https://git.kernel.org/riscv/c/bf2825bf00ad

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-06 17:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29 13:15 [PATCH 0/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
2025-07-29 13:15 ` [PATCH 1/2] RISC-V: ACPI: enable parsing the BGRT table Heinrich Schuchardt
2025-07-29 13:15 ` [PATCH 2/2] ACPI: support BGRT table on RISC-V Heinrich Schuchardt
2025-07-31 13:13   ` Alexandre Ghiti
2025-07-31 18:17     ` Rafael J. Wysocki
2025-07-31 19:51       ` Alexandre Ghiti
2025-07-30  4:48 ` [PATCH 0/2] " Sunil V L
2025-08-06 17:15 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox