Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1350178 > unrolled thread
| Started by | Aleksey Makarov <aleksey.makarov@linaro.org> |
|---|---|
| First post | 2016-03-04 13:00 +0100 |
| Last post | 2016-03-11 17:30 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 0/4] ACPI: parse the SPCR table Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-04 13:00 +0100
Re: [PATCH v4 0/4] ACPI: parse the SPCR table Peter Hurley <peter@hurleysoftware.com> - 2016-03-04 16:50 +0100
Re: [PATCH v4 0/4] ACPI: parse the SPCR table Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-11 17:30 +0100
| From | Aleksey Makarov <aleksey.makarov@linaro.org> |
|---|---|
| Date | 2016-03-04 13:00 +0100 |
| Subject | Re: [PATCH v4 0/4] ACPI: parse the SPCR table |
| Message-ID | <r8WyK-69A-9@gated-at.bofh.it> |
On 03/03/2016 06:35 PM, Peter Hurley wrote: > On 03/03/2016 03:59 AM, Aleksey Makarov wrote: >> >> >> On 03/01/2016 06:31 PM, Peter Hurley wrote: >>> On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >>>> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >>>> Console Redirection Table) [2] as a mandatory ACPI table that >>>> specifies the configuration of serial console. >>>> >>>> Introduce a new function acpi_console_check(). At the uart port >>>> registration, this function checks if the ACPI SPCR table specifies >>>> its argument of type struct uart_port to be a console >>>> and if so calls add_preferred_console(). >>> >>> How will a user enable an earlycon on the same console as the SPCR >>> console if there is no DBG2 table? >> >> ... >> [ 0.000000] earlycon: pl11 at MMIO 0x0000000009000000 (options '') >> [ 0.000000] bootconsole [pl11] enabled >> ... >> [ 0.000000] Kernel command line: root=/dev/vda1 rw systemd.show_status=no acpi=force earlycon=pl011,0x9000000 >> ... >> [ 0.318248] ACPI: SPCR: adding preferred console [ttyAMA0] >> [ 0.318736] ARMH0011:00: ttyAMA0 at MMIO 0x9000000 (irq = 5, base_baud = 0) is a SBSA >> [ 0.319502] console [ttyAMA0] enabled >> [ 0.319502] console [ttyAMA0] enabled >> [ 0.319933] bootconsole [pl11] disabled >> [ 0.319933] bootconsole [pl11] disabled >> ... >> >> Why? > > That's pretty disingenuous; via command line? > > By that measure, none of your patches are required because a user > can already start both console and earlycon without them. > > With the console location specified in the SPCR, earlycon should > be opt-in on the command-line simply with "earlycon" command-line > parameter. Yes. That's why we have SPCR *and* DBG2. DBG2 specifies where we should run earlycon. >>> How will a user enable an earlycon on the same console as the SPCR >>> console if there is no DBG2 table? In no way. You need DBG2 to run earlycon. (If you don't want to specify it's address etc explicitly)
[toc] | [next] | [standalone]
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Date | 2016-03-04 16:50 +0100 |
| Message-ID | <r909j-mc-11@gated-at.bofh.it> |
| In reply to | #1350178 |
On 03/04/2016 03:53 AM, Aleksey Makarov wrote: > > > On 03/03/2016 06:35 PM, Peter Hurley wrote: >> On 03/03/2016 03:59 AM, Aleksey Makarov wrote: >>> >>> >>> On 03/01/2016 06:31 PM, Peter Hurley wrote: >>>> On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >>>>> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >>>>> Console Redirection Table) [2] as a mandatory ACPI table that >>>>> specifies the configuration of serial console. >>>>> >>>>> Introduce a new function acpi_console_check(). At the uart port >>>>> registration, this function checks if the ACPI SPCR table specifies >>>>> its argument of type struct uart_port to be a console >>>>> and if so calls add_preferred_console(). >>>> >>>> How will a user enable an earlycon on the same console as the SPCR >>>> console if there is no DBG2 table? >>> >>> ... >>> [ 0.000000] earlycon: pl11 at MMIO 0x0000000009000000 (options '') >>> [ 0.000000] bootconsole [pl11] enabled >>> ... >>> [ 0.000000] Kernel command line: root=/dev/vda1 rw systemd.show_status=no acpi=force earlycon=pl011,0x9000000 >>> ... >>> [ 0.318248] ACPI: SPCR: adding preferred console [ttyAMA0] >>> [ 0.318736] ARMH0011:00: ttyAMA0 at MMIO 0x9000000 (irq = 5, base_baud = 0) is a SBSA >>> [ 0.319502] console [ttyAMA0] enabled >>> [ 0.319502] console [ttyAMA0] enabled >>> [ 0.319933] bootconsole [pl11] disabled >>> [ 0.319933] bootconsole [pl11] disabled >>> ... >>> >>> Why? >> >> That's pretty disingenuous; via command line? >> >> By that measure, none of your patches are required because a user >> can already start both console and earlycon without them. >> >> With the console location specified in the SPCR, earlycon should >> be opt-in on the command-line simply with "earlycon" command-line >> parameter. > > Yes. That's why we have SPCR *and* DBG2. > DBG2 specifies where we should run earlycon. > >>>> How will a user enable an earlycon on the same console as the SPCR >>>> console if there is no DBG2 table? > > In no way. You need DBG2 to run earlycon. And that's an entirely arbitrary decision being made by you. Which I think is unnecessarily limited. > (If you don't want to specify it's address etc explicitly)
[toc] | [prev] | [next] | [standalone]
| From | Aleksey Makarov <aleksey.makarov@linaro.org> |
|---|---|
| Date | 2016-03-11 17:30 +0100 |
| Message-ID | <rby6S-sb-29@gated-at.bofh.it> |
| In reply to | #1350325 |
Hi Peter, You are right, SPCR console should support earlycon. I will send next version that will try to follow your recommendations in a week, after I return from vacations. As we discussed with Christopher, "serial: pl011: use SPCR to setup 32-bit access" will be dropped. Thank you Aleksey Makarov On 04.03.2016 22:47, Peter Hurley wrote: > On 03/04/2016 03:53 AM, Aleksey Makarov wrote: >> >> >> On 03/03/2016 06:35 PM, Peter Hurley wrote: >>> On 03/03/2016 03:59 AM, Aleksey Makarov wrote: >>>> >>>> >>>> On 03/01/2016 06:31 PM, Peter Hurley wrote: >>>>> On 02/29/2016 04:02 AM, Aleksey Makarov wrote: >>>>>> 'ARM Server Base Boot Requirements' [1] mentions SPCR (Serial Port >>>>>> Console Redirection Table) [2] as a mandatory ACPI table that >>>>>> specifies the configuration of serial console. >>>>>> >>>>>> Introduce a new function acpi_console_check(). At the uart port >>>>>> registration, this function checks if the ACPI SPCR table specifies >>>>>> its argument of type struct uart_port to be a console >>>>>> and if so calls add_preferred_console(). >>>>> >>>>> How will a user enable an earlycon on the same console as the SPCR >>>>> console if there is no DBG2 table? >>>> >>>> ... >>>> [ 0.000000] earlycon: pl11 at MMIO 0x0000000009000000 (options '') >>>> [ 0.000000] bootconsole [pl11] enabled >>>> ... >>>> [ 0.000000] Kernel command line: root=/dev/vda1 rw systemd.show_status=no acpi=force earlycon=pl011,0x9000000 >>>> ... >>>> [ 0.318248] ACPI: SPCR: adding preferred console [ttyAMA0] >>>> [ 0.318736] ARMH0011:00: ttyAMA0 at MMIO 0x9000000 (irq = 5, base_baud = 0) is a SBSA >>>> [ 0.319502] console [ttyAMA0] enabled >>>> [ 0.319502] console [ttyAMA0] enabled >>>> [ 0.319933] bootconsole [pl11] disabled >>>> [ 0.319933] bootconsole [pl11] disabled >>>> ... >>>> >>>> Why? >>> >>> That's pretty disingenuous; via command line? >>> >>> By that measure, none of your patches are required because a user >>> can already start both console and earlycon without them. >>> >>> With the console location specified in the SPCR, earlycon should >>> be opt-in on the command-line simply with "earlycon" command-line >>> parameter. >> >> Yes. That's why we have SPCR *and* DBG2. >> DBG2 specifies where we should run earlycon. >> >>>>> How will a user enable an earlycon on the same console as the SPCR >>>>> console if there is no DBG2 table? >> >> In no way. You need DBG2 to run earlycon. > > And that's an entirely arbitrary decision being made by you. > Which I think is unnecessarily limited. > > >> (If you don't want to specify it's address etc explicitly) > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web