[PATCH] acpi: Add machine option to disable SPCR table

2025-04-22 Thread Li Chen
From: Li Chen The ACPI SPCR (Serial Port Console Redirection) table allows firmware to specify a preferred serial console device to the operating system. On ARM64 systems, Linux by default respects this table: even if the kernel command line does not include a hardware serial console (e.g

[PATCH V2 3/3] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-04-22 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index d2a1aa7fb3

[PATCH V2 0/3] acpi: Add machine option to disable SPCR table

2025-04-22 Thread Li Chen
- Add Reviewed-by from Bibo Mao for the first patch Li Chen (3): acpi: Add machine option to disable SPCR table as suggested by Philippe Mathieu-Daudé tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64 tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V h

[PATCH V2 1/3] acpi: Add machine option to disable SPCR table

2025-04-22 Thread Li Chen
From: Li Chen The ACPI SPCR (Serial Port Console Redirection) table allows firmware to specify a preferred serial console device to the operating system. On ARM64 systems, Linux by default respects this table: even if the kernel command line does not include a hardware serial console (e.g

Re: [PATCH] acpi: Add machine option to disable SPCR table

2025-04-22 Thread Li Chen
Hi Philippe, Thanks for your review! On Tue, 22 Apr 2025 16:00:19 +0800 Philippe Mathieu-Daudé wrote --- > Hi, > > On 22/4/25 09:47, Li Chen wrote: > > From: Li Chen > > > > The ACPI SPCR (Serial Port Console Redirection) table allows firmware

[PATCH V2 2/3] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-04-22 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 0a333ec435

Re: [PATCH V2 1/3] acpi: Add machine option to disable SPCR table

2025-04-22 Thread Li Chen
Hi Philippe Mathieu-Daudé, Thanks for your review! On Tue, 22 Apr 2025 21:18:46 +0800 Philippe Mathieu-Daudé wrote --- > Hi, > > On 22/4/25 14:05, Li Chen wrote: > > diff --git a/include/hw/boards.h b/include/hw/boards.h > > index f22b2e7fc7..cdf2791a50 1006

Re: [PATCH V2 1/3] acpi: Add machine option to disable SPCR table

2025-04-23 Thread Li Chen
Hi Gavin, On Wed, 23 Apr 2025 08:11:24 +0800 Gavin Shan wrote --- > On 4/22/25 10:05 PM, Li Chen wrote: > > From: Li Chen > > > > The ACPI SPCR (Serial Port Console Redirection) table allows firmware > > to specify a preferred serial console dev

Re: [PATCH V2 0/3] acpi: Add machine option to disable SPCR table

2025-04-23 Thread Li Chen
Hi Bibo, On Wed, 23 Apr 2025 16:49:09 +0800 bibo mao wrote --- > > > On 2025/4/23 下午4:36, Li Chen wrote: > > Hi Bibo, > > > > On Wed, 23 Apr 2025 14:27:36 +0800 bibo mao > > wrote --- > > > > > > > >

Re: [PATCH V2 0/3] acpi: Add machine option to disable SPCR table

2025-04-23 Thread Li Chen
Hi Bibo, On Wed, 23 Apr 2025 14:27:36 +0800 bibo mao wrote --- > > > On 2025/4/22 下午8:03, Li Chen wrote: > > This series introduces a new machine option, spcr=on|off, allowing users > > to disable the ACPI SPCR (Serial Port Console Redirection) table. &g

[PATCH REPOST v4 0/4] acpi: Add machine option to disable SPCR table

2025-05-28 Thread Li Chen
From: Li Chen (REPOST because the previous post failed to send to qemu-devel/qemu-riscv/qemu-arm, see https://lore.kernel.org/qemu-devel/1971648603b.dce1f5d22901195.6702025346547333607@linux.beauty/T/#u) This series introduces a new machine option, spcr=on|off, allowing users to disable the

[PATCH REPOST v4 3/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-05-28 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen Reviewed-by: Sunil V L --- Notes: Changes since v3: Add Reviewed-by from Sunil V L tests/qtest/bios-tables-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH REPOST v4 1/4] acpi: Add machine option to disable SPCR table

2025-05-28 Thread Li Chen
From: Li Chen The ACPI SPCR (Serial Port Console Redirection) table allows firmware to specify a preferred serial console device to the operating system. On ARM64 systems, Linux by default respects this table: even if the kernel command line does not include a hardware serial console (e.g

[PATCH REPOST v4 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-05-28 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 0a333ec435

Re: Get "Message headers fail syntax check" error when using git-send-email

2025-05-28 Thread Li Chen
Hi Thomos, On Wed, 28 May 2025 17:52:50 +0800 Thomas Huth wrote --- > On 28/05/2025 11.45, Li Chen wrote: > > Hi, > > > > My emails to the qemu-devel, qemu-riscv, and qemu-arm mailing lists > > regarding the > > "[PATCH v4 0/4] acpi: Ad

[PATCH REPOST v4 4/4] acpi/virt: suppress UART device & SPCR when guest has no serial hardware

2025-05-28 Thread Li Chen
From: Li Chen The virt machines always instantiate a PL011/16550 at UART0 and describe it in ACPI (DSDT device node plus optional SPCR table). When the command line contains “-serial none” there is no backend attached to that UART, yet the guest still discovers it via ACPI and may try to use it

Re: [PATCH V3 1/4] acpi: Add machine option to disable SPCR table

2025-05-28 Thread Li Chen
Hi Philippe, On Mon, 26 May 2025 18:07:16 +0800 Philippe Mathieu-Daudé wrote --- > Hi Li, > > On 15/5/25 14:41, Li Chen wrote: > > From: Li Chen > > > > The ACPI SPCR (Serial Port Console Redirection) table allows firmware > > to specify a p

Re: [PATCH v4 0/4] acpi: Add machine option to disable SPCR table

2025-05-28 Thread Li Chen
This series failed to send to qemu-devel/qemu-arm/qemu-riscv. I have requested assistance via this thread: https://lore.kernel.org/qemu-devel/1971648603b.dce1f5d22901195.6702025346547333607@linux.beauty/T/#u On Wed, 28 May 2025 16:09:36 +0800 Li Chen wrote --- > From: Li C

Get "Message headers fail syntax check" error when using git-send-email

2025-05-28 Thread Li Chen
te: 28 May 2025 08:11:19 GMT Diagnostic-Code: Message headers fail syntax check Remote-MTA: dns; eggs.gnu.org (... qemu-riscv/qemu-arm ...) ``` And below is the email header: ``` Received: by mx.zohomail.com with SMTPS id 1748419823397138.51964085412385; Wed, 28 May 2025 01:10:23 -0700 (PDT

[PATCH V3 0/4] acpi: Add machine option to disable SPCR table

2025-05-15 Thread Li Chen
thieu-Daudé. - Add Reviewed-by from Gavin Shan for the first patch and fix style issue. Changes since v1: - Add bios-tables-test for RISC-V and ARM as suggested by - Add Acked-by from Michael S. Tsirkin for the first patch - Add Reviewed-by from Bibo Mao for the first patch Li Chen (4): acpi

[PATCH V3 1/4] acpi: Add machine option to disable SPCR table

2025-05-15 Thread Li Chen
From: Li Chen The ACPI SPCR (Serial Port Console Redirection) table allows firmware to specify a preferred serial console device to the operating system. On ARM64 systems, Linux by default respects this table: even if the kernel command line does not include a hardware serial console (e.g

[PATCH V3 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-05-15 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 0a333ec435

[PATCH V3 3/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-05-15 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index d2a1aa7fb3

[PATCH V3 4/4] acpi/virt: suppress UART device & SPCR when guest has no serial hardware

2025-05-15 Thread Li Chen
From: Li Chen The virt machines always instantiate a PL011/16550 at UART0 and describe it in ACPI (DSDT device node plus optional SPCR table). When the command line contains “-serial none” there is no backend attached to that UART, yet the guest still discovers it via ACPI and may try to use it

Re: [PATCH REPOST v4 0/4] acpi: Add machine option to disable SPCR table

2025-06-19 Thread Li Chen
Gentle ping incase of forgotten. On Wed, 28 May 2025 18:53:34 +0800 Li Chen wrote --- > From: Li Chen > > (REPOST because the previous post failed to send to > qemu-devel/qemu-riscv/qemu-arm, > see > https://lore.ker

Re: [PATCH REPOST v4 0/4] acpi: Add machine option to disable SPCR table

2025-06-11 Thread Li Chen
Hi Michael, On Fri, 30 May 2025 20:10:52 +0800 Michael S. Tsirkin wrote --- > On Wed, May 28, 2025 at 06:53:34PM +0800, Li Chen wrote: > > From: Li Chen > > > > (REPOST because the previous post failed to send to > > qemu-devel/qemu-riscv/qemu

Re: [PATCH REPOST v4 4/4] acpi/virt: suppress UART device & SPCR when guest has no serial hardware

2025-07-16 Thread Li Chen
28, 2025 at 06:53:38PM +0800, Li Chen wrote: > > From: Li Chen > > > > The virt machines always instantiate a PL011/16550 at UART0 and > > describe it in ACPI (DSDT device node plus optional SPCR table). When > > the command line contains “-serial none” there is

Re: [PATCH REPOST v4 4/4] acpi/virt: suppress UART device & SPCR when guest has no serial hardware

2025-07-16 Thread Li Chen
Hi Michael, On Wed, 16 Jul 2025 19:42:42 +0800 Michael S. Tsirkin wrote --- > On Wed, Jul 16, 2025 at 07:41:11PM +0800, Li Chen wrote: > > Hi Michael, > > > > Thanks for your kind review! All issues below have been fixed in v5: > > https:/

[PATCH v5 0/4] acpi: Add machine option to disable SPCR table

2025-07-16 Thread Li Chen
From: Li Chen This series introduces a new machine option, spcr=on|off, allowing users to disable the ACPI SPCR (Serial Port Console Redirection) table. By default, SPCR is enabled. Disabling it can help ensure that the guest's console behavior is determined solely by kernel command

[PATCH v5 1/4] acpi: Add machine option to disable SPCR table

2025-07-16 Thread Li Chen
From: Li Chen The ACPI SPCR (Serial Port Console Redirection) table allows firmware to specify a preferred serial console device to the operating system. On ARM64 systems, Linux by default respects this table: even if the kernel command line does not include a hardware serial console (e.g

[PATCH v5 3/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on RISC-V

2025-07-16 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for RISC-V when SPCR was off. Signed-off-by: Li Chen Reviewed-by: Sunil V L --- Notes: Changes since v3: Add Reviewed-by from Sunil V L tests/qtest/bios-tables-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v5 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64

2025-07-16 Thread Li Chen
From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 4dbc07ec5e

[PATCH v5 4/4] acpi/virt: suppress UART device & SPCR when guest has no serial hardware

2025-07-16 Thread Li Chen
From: Li Chen The virt machines always instantiate a PL011/16550 at UART0 and describe it in ACPI (DSDT device node plus optional SPCR table). When the command line contains “-serial none” there is no backend attached to that UART, yet the guest still discovers it via ACPI and may try to use it