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

RE: [PATCH 8/9] xen/arm: Allow the user to build Xen with USBAN


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Thu, 29 Jun 2023 01:36:15 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=gML+nZhSG5f4qvfAwSeQSpHK5dq849Is9ioXCMo4AxY=; b=AScJShIyntSLigHQDFcdb0/+rd1ddvO6fMK3turmI7jvozAAH47jh2xbyJLZHUU77Yj2SJsDOOskOmOw7joT10DRZ9S2+crk273n+lgkHzH458mZwaaNyaMIJ9pkzOj5/ZDZlytcSEaMkY1Lc0n3hwYBPJ5bsQin0HZseq3JS/20pbZlKcP/PoTxn/6NPFNLQ4VJM/kRk9FPK5/bFoeBV0iGWzAOf4Us1uLoJBAZf6fHEPVDkXbpSw22jpVnv9YSIeXHSsWBk1qzbFLxhH3Ef6OQt98+nhYOyTFqTm4zh6pu/wEJSwtheSFdrO9DazpIoc7mCzm7UGa+fFMcCU4n4g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QEB4AXeL4ji5E/fNS0v6hyIVCgCLNOFwYiNTmhNEajJuYC5Maczi0RdaDsqMfW1KI1X5hwdVTjluuq0g+lAg7HnG25ZmR8IKfuE+A81SgA/vYMSb13NoKt3eqW33osMwlL7GMm8iBpTjUpXOGkcB+bQhDhR23rx+g6DABcXRLO4ez7lLcHbXLyhgWTsVdiZeqysmQU9IDw25J7k5ir1zRCR4KvNcrJvr5ZbW35J6FaKXIQRnrxlHw/6kaobl0cXkFmAbCMg+O9447nB1AGgB6Z+Vca9QkwHR3OPu+9Ke/IY3Fsmzi0UThFuTMCFg0sgmaiGNKvMgaccNwDbXh//jCg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Luca Fancellu <Luca.Fancellu@xxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 29 Jun 2023 01:36:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZp6aSsRUjsp5X0kuhcvqBjbjyw6+crs2wgAQCCQCAAFHGkA==
  • Thread-topic: [PATCH 8/9] xen/arm: Allow the user to build Xen with USBAN

Hi Julien,

> -----Original Message-----
> Subject: Re: [PATCH 8/9] xen/arm: Allow the user to build Xen with USBAN
> 
> On 26/06/2023 08:29, Henry Wang wrote:
> > Hi Julien,
> Hi Henry,
> 
> > Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
> 
> Thanks, I will fix both typos.

Great, thanks!

> 
> >
> > Just want to make sure you also noticed this, otherwise maybe you
> > can include another patch in the series to fix this?
> 
> I haven't seen this one. Probably because you would need a setup where
> interrupts are around ID 1022.

I took a closer look today, I think the reason is from this device tree node
for the FVP:

ethernet@202000000 {
    compatible = "smsc,lan91c111";
    reg = <0x2 0x2000000 0x10000>;
    interrupts = <0xf>;
};

The value 0xf is  passed to vgic_get_virq_type() as "index" then "intr" in
VGIC_ICFG_MASK. Hence the 31 in
"(XEN) left shift of 1 by 31 places cannot be represented in type 'int'".

> 
> Or I can do that
> > in case you don't have enough bandwidth.
> 
> You have the setup to exercise the problem. So it would be best if you
> do it.

I've prepared below on top of your series:
-#define VGIC_ICFG_MASK(intr) (1 << ((2 * ((intr) % 16)) + 1))
+#define VGIC_ICFG_MASK(intr) (1U << ((2 * ((intr) % 16)) + 1))

If you think it is ok, I will send it out to the list after I double check our
CI will not complain about it. Thanks!

Kind regards,
Henry

> 
> Cheers,
> 
> --
> Julien Grall

 


Rackspace

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