[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 01/16] arm/vpl011: rename virtual PL011 Kconfig option


  • To: <dmkhn@xxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Fri, 18 Jul 2025 13:10:20 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=proton.me smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eJTBfWEaGiX3y0rhqEGGFJVXoA7WL02sQF8h+W9b5o4=; b=VnI1JT3T/AtlDFq0F/vKbSeV04zikbFZLxh6fkxvCubsD+DF4Hq9nsI3zebTfgDeNDQ6DZNawgZ+vBBz17A5M9Mu8kLmnAPvFVYznK7Mo46OTj27tt906jymKWPXuVEy1kFKXuyNHA1eW8whFpV4RIx+72C1WTaH9Hjdq0iZRxMyzECttN+UXRTUl/wRos3uErCz5tmr2ghkZZ94X3CLsVrhkS6+rrbDDIPRU4vqJmQ4gdjSw/px118A4syMsdwqVyn1cgTBUayUVr57+t4V1paoJiBSazaxLbGcGhm3QnrsyV+hl/y8RukwdTqsy30qi2pAB3ramRq0V7cN8OCQaw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UdDWz08//BXrD1v4gGWkX5WYdLZ4Me8pk67IkQ4oXvF4iq8GmQfPBAIJYg4hc1gaYMuV4oTwYAHJrk76sJlnLldZxsEq5ktIy14HkVn/7XxM2gRc8bHZgLz0GZ0Xj9SSCfRA1FI/iD96OsTFF4xP8l3S+sA2PQqUtj/u4EwVAERCkZpZPWTQixuEGN1zRbR94Yb5fhVq8Zudr/66irs5+zECHSiTky3hc+SEIfW1QeZXPsb+WRD23KxMLzSDtxpjDtUr3BWS9AOdLNuIhtog3MJqWaKylIZdwgbpidueHZAg0gmb54D/rj4dQCnSIFNXnzDNkRYC0WIoLeF5zKMEYg==
  • Cc: "Orzel, Michal" <michal.orzel@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <anthony.perard@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <julien@xxxxxxx>, <oleksii.kurochko@xxxxxxxxx>, <roger.pau@xxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <dmukhin@xxxxxxxx>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 18 Jul 2025 11:10:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu Jul 17, 2025 at 9:58 PM CEST, dmkhn wrote:
> On Thu, Jul 17, 2025 at 05:43:22PM +0200, Alejandro Vallejo wrote:
>> On Tue Jun 24, 2025 at 9:24 AM CEST, dmkhn wrote:
>> > On Tue, Jun 24, 2025 at 08:13:08AM +0200, Orzel, Michal wrote:
>> >>
>> >>
>> >> On 24/06/2025 05:55, dmkhn@xxxxxxxxx wrote:
>> >> > From: Denis Mukhin <dmukhin@xxxxxxxx>
>> >> >
>> >> > Rename CONFIG_SBSA_VUART_CONSOLE to CONFIG_HAS_VUART_PL011.
>> >> Why? We emulate SBSA UART and not PL011. Despite the similarities (the 
>> >> former is
>> >> a subset of the latter) they are not the same. I find it confusing and 
>> >> drivers
>> >> for PL011 might not work with SBSA UART. Also, in the future we may want 
>> >> to
>> >> emulate full PL011 in which case it will be even more confusing.
>> >
>> > That's because the emulator is called vpl011, but yes, it is SBSA UART.
>> > I will adjust to SBSA, thanks!
>> >
>> >>
>> >> Also, why HAS_?
>> >
>> > My understanding is that HAS_ is the desired naming convention throughout 
>> > the
>> > code (not documented, though), e.g. all Arm UART drivers are gated by 
>> > HAS_XXX
>> > (e.g. arch/arm/platforms/Kconfig).
>> 
>> HAS_ is a non-selectable property dependent on the arch. Think HAS_PCI, or
>> HAS_EHCI, etc. IOW: HAS_X means "you may implement feature X on this arch",
>> which is why some options have X and HAS_X variants, where X is selectable
>> while HAS_X is not.
>
> Thanks; I will fix that.
>
> Jan explained the difference here [1] and [2]:
> [1] 
> https://lore.kernel.org/xen-devel/6d33355c-477f-4ef3-8f17-b7f1dd1164ce@xxxxxxxx/
> [2] 
> https://lore.kernel.org/xen-devel/a63ac9d5-152e-47b0-8169-bf470611c059@xxxxxxxx/
>
> It's just there's a lot of drivers (UARTs) which are selectable by the user 
> via
> HAS_ symbols (drivers/char/Kconfig)

IMO, HAS_IMX_LPUART should be selected by ARM_64, then IMX_LPUART would depend
on HAS_IMX_LPUART. I don't know how those (and you're right, there's lots) got
there. Same with NS16550, etc.

That allows to decouple the device from the architectures where it might be
found.

Cheers,
Alejandro



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.