xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Julien Grall <julien@xen.org>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
	"Wei Liu" <wl@xen.org>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Ian Jackson" <ian.jackson@eu.citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Julien Grall" <julien.grall@arm.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Anthony PERARD" <anthony.perard@citrix.com>,
	xen-devel@lists.xenproject.org,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [XEN PATCH v3 2/2] xen/arm: Configure early printk via Kconfig
Date: Tue, 17 Mar 2020 10:51:34 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.21.2003171051280.1846@sstabellini-ThinkPad-T480s> (raw)
In-Reply-To: <72604419-b3a1-3c14-c937-07d9ec7fd62b@xen.org>

On Tue, 17 Mar 2020, Julien Grall wrote:
> Hi,
> 
> On 13/03/2020 23:14, Stefano Stabellini wrote:
> > On Fri, 13 Mar 2020, Stefano Stabellini wrote:
> > > On Mon, 9 Mar 2020, Anthony PERARD wrote:
> > > > At the moment, early printk can only be configured on the make command
> > > > line. It is not very handy because a user has to remove the option
> > > > everytime it is using another command other than compiling the
> > > > hypervisor.
> > > > 
> > > > Furthermore, early printk is one of the few odds one that are not
> > > > using Kconfig.
> > > > 
> > > > So this is about time to move it to Kconfig.
> > > > 
> > > > The new kconfigs options allow a user to eather select a UART driver
> > > > to use at boot time, and set the parameters, or it is still possible
> > > > to select a platform which will set the parameters.
> > > > 
> > > > If CONFIG_EARLY_PRINTK is present in the environment or on the make
> > > > command line, make will return an error.
> > > > 
> > > > Signed-off-by: Julien Grall <julien.grall@arm.com>
> > > > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> > > > 
> > > > ---
> > > > 
> > > > Original patch:
> > > >      [PATCH for-4.13] xen/arm: Add Skeleton for using configuring early
> > > > printk using Kconfig
> > > >      <20190913103953.8182-1-julien.grall@arm.com>
> > > > ---
> > > > 
> > > > Notes:
> > > >      v3:
> > > >      - rename EARLY_PRINK to CONFIG_EARLY_PRINTK in makefile here (which
> > > >        select which object to build).
> > > >      - rename EARLY_UART_BAUD_RATE to EARLY_UART_PL011_BAUD_RATE
> > > >      - typos
> > > >      - drop the list of aliases in early-printk.txt. Kconfig choice menu
> > > >        should be enough.
> > > >      - reword early-printk.txt.
> > > >      - rework how EARLY_PRINTK is set to Y
> > > >        and use that instead of a list of all EARLY_UART_*
> > > >      - Add a check to ask user to use Kconfig to set early printk.
> > > >      - rework the possible choice to have all uart driver and platform
> > > >        specific option together.
> > > >      - have added or reword prompt and help messages of the different
> > > >        options. The platform specific option don't have extended help,
> > > > the
> > > >        prompt is probably enough.
> > > >        (The non-platform specific options have the help message that
> > > > Julien
> > > >        have written in the first version.)
> > > >      - have made EARLY_UART_INIT dependent on the value of
> > > >        EARLY_UART_PL011_BAUD_RATE so that there is no need to expose
> > > > _INIT to
> > > >        users.
> > > > 
> > > 
> > > The patch is fine by me. I only have one very minor comment below.
> > 
> > I forgot to add
> > 
> > Tested-by: Stefano Stabellini <sstabellini@kernel.org>
> 
> Thank you for the testing. This patch contains a question for you (see [1]).
> Can you please take a look?
> 
> Cheers,
> 
> [1] <7720f54e-7ef7-9dae-dfdb-38b89a0892a6@xen.org>

So the question is:

> I noticed below you added "depends on ARM_64" on the Xilinx SoC. In 
> general, platform specific options are tied to either arm32 or arm64, 
> even if the UART "driver" is arch agnostic.
> 
> You could technically boot Xen on Arm 32-bit on Armv8 HW provided they 
> support 32-bit at the hypervisor level, but we never supported this 
> case. So I am wondering whether we should add depends on each 
> earlyprintk. Stefano, any opinions?

Well spotted.

Xilinx doesn't support 32-bit Xen on their boards, "support" as in test,
run or validate. So it would not be a problem from Xilinx point of view
to add a "depends on ARM_64".

I take that you are suggesting adding "depends on ARM_64/32" under the
legacy platform earlyprintk options, from EARLY_PRINTK_BRCM to
EARLY_PRINTK_ZYNQMP right? If so, I am fine with it, and it seems like a
good idea.

The other new generic earlyprintk options, the ones that only depend on
the uart driver, from EARLY_UART_CHOICE_8250 to EARLY_UART_CHOICE_SCIF,
it feels more natural to leave them without a specific arch dependency.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2020-03-17 17:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 17:45 [Xen-devel] [XEN PATCH v3 0/2] xen/arm: Configure early printk via Kconfig Anthony PERARD
2020-03-09 17:45 ` [Xen-devel] [XEN PATCH v3 1/2] xen/arm: Rename all early printk macro Anthony PERARD
2020-03-11 13:57   ` Julien Grall
2020-03-11 14:46     ` Anthony PERARD
2020-03-12 20:18       ` Julien Grall
2020-03-13 23:01         ` Stefano Stabellini
2020-03-09 17:45 ` [Xen-devel] [XEN PATCH v3 2/2] xen/arm: Configure early printk via Kconfig Anthony PERARD
2020-03-11 14:18   ` Julien Grall
     [not found]     ` <20200311152613.GJ2152@perard.uk.xensource.com>
2020-03-11 17:21       ` Julien Grall
2020-03-11 17:38         ` Anthony PERARD
2020-03-12 20:16           ` Julien Grall
2020-03-13 23:12   ` Stefano Stabellini
2020-03-13 23:14     ` Stefano Stabellini
2020-03-17  9:36       ` Julien Grall
2020-03-17 17:51         ` Stefano Stabellini [this message]
2020-03-24 14:48           ` Anthony PERARD
2020-03-13 23:19     ` Julien Grall
2020-03-13 23:37       ` Julien Grall

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=alpine.DEB.2.21.2003171051280.1846@sstabellini-ThinkPad-T480s \
    --to=sstabellini@kernel.org \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@arm.com \
    --cc=julien@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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;
as well as URLs for NNTP newsgroup(s).