All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
@ 2019-12-02  8:49 Yangtao Li
  2019-12-03 11:39 ` Julien Grall
  0 siblings, 1 reply; 6+ messages in thread
From: Yangtao Li @ 2019-12-02  8:49 UTC (permalink / raw)
  To: sstabellini, julien, Volodymyr_Babchuk; +Cc: Yangtao Li, xen-devel

adding compatible strings for h6 SoCs, Specifically orangepi3.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 xen/arch/arm/platforms/sunxi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/arm/platforms/sunxi.c b/xen/arch/arm/platforms/sunxi.c
index 55705b15b2..e8e4d88bef 100644
--- a/xen/arch/arm/platforms/sunxi.c
+++ b/xen/arch/arm/platforms/sunxi.c
@@ -119,6 +119,7 @@ static const char * const sunxi_v8_dt_compat[] __initconst =
 {
     "allwinner,sun50i-a64",
     "allwinner,sun50i-h5",
+    "allwinner,sun50i-h6",
     NULL
 };
 
-- 
2.17.1


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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
  2019-12-02  8:49 [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform Yangtao Li
@ 2019-12-03 11:39 ` Julien Grall
  2019-12-03 14:38   ` Andre Przywara
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Grall @ 2019-12-03 11:39 UTC (permalink / raw)
  To: Yangtao Li, sstabellini, Volodymyr_Babchuk, Andre Przywara; +Cc: xen-devel

(+Andre)

Hi,

@Andre, IIRC you originally added the support for sunxi in Xen. Could 
you have a look at this patch?

Cheers,

On 02/12/2019 08:49, Yangtao Li wrote:
> adding compatible strings for h6 SoCs, Specifically orangepi3.
> 
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
> --- >   xen/arch/arm/platforms/sunxi.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/xen/arch/arm/platforms/sunxi.c b/xen/arch/arm/platforms/sunxi.c
> index 55705b15b2..e8e4d88bef 100644
> --- a/xen/arch/arm/platforms/sunxi.c
> +++ b/xen/arch/arm/platforms/sunxi.c
> @@ -119,6 +119,7 @@ static const char * const sunxi_v8_dt_compat[] __initconst =
>   {
>       "allwinner,sun50i-a64",
>       "allwinner,sun50i-h5",
> +    "allwinner,sun50i-h6",
>       NULL
>   };
>   
> 

-- 
Julien Grall

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
  2019-12-03 11:39 ` Julien Grall
@ 2019-12-03 14:38   ` Andre Przywara
  2019-12-03 16:52     ` Julien Grall
  0 siblings, 1 reply; 6+ messages in thread
From: Andre Przywara @ 2019-12-03 14:38 UTC (permalink / raw)
  To: Julien Grall; +Cc: Yangtao Li, xen-devel, sstabellini, Volodymyr_Babchuk

On Tue, 3 Dec 2019 11:39:58 +0000
Julien Grall <julien@xen.org> wrote:

Hi,

> (+Andre)
> 
> Hi,
> 
> @Andre, IIRC you originally added the support for sunxi in Xen. Could 
> you have a look at this patch?

Looks alright, and indeed the H6 needs it. Even though Allwinner totally re-arranged the memory map, they missed the opportunity to put each device at least in their own 4K page.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>


If you can wait till this evening, I can even test it.

It's actually a shame that we need this enumeration, when all we are after is an answer to the question: Does a device used by Xen share a 4K page with a device handed off to Dom0? It sounds like a nice rainy afternoon exercise to scan the DT to find those devices automatically and mask them (on the A64 for instance UART4 is on a different page).

Cheers,
Andre

> On 02/12/2019 08:49, Yangtao Li wrote:
> > adding compatible strings for h6 SoCs, Specifically orangepi3.
> > 
> > Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>  
> > --- >   xen/arch/arm/platforms/sunxi.c | 1 +  
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/xen/arch/arm/platforms/sunxi.c b/xen/arch/arm/platforms/sunxi.c
> > index 55705b15b2..e8e4d88bef 100644
> > --- a/xen/arch/arm/platforms/sunxi.c
> > +++ b/xen/arch/arm/platforms/sunxi.c
> > @@ -119,6 +119,7 @@ static const char * const sunxi_v8_dt_compat[] __initconst =
> >   {
> >       "allwinner,sun50i-a64",
> >       "allwinner,sun50i-h5",
> > +    "allwinner,sun50i-h6",
> >       NULL
> >   };
> >   
> >   
> 


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
  2019-12-03 14:38   ` Andre Przywara
@ 2019-12-03 16:52     ` Julien Grall
  2019-12-04  9:27       ` Andre Przywara
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Grall @ 2019-12-03 16:52 UTC (permalink / raw)
  To: Andre Przywara; +Cc: Yangtao Li, xen-devel, sstabellini, Volodymyr_Babchuk



On 03/12/2019 14:38, Andre Przywara wrote:
> On Tue, 3 Dec 2019 11:39:58 +0000
> Julien Grall <julien@xen.org> wrote:
> 
> Hi,
> 
>> (+Andre)
>>
>> Hi,
>>
>> @Andre, IIRC you originally added the support for sunxi in Xen. Could
>> you have a look at this patch?
> 
> Looks alright, and indeed the H6 needs it. Even though Allwinner totally re-arranged the memory map, they missed the opportunity to put each device at least in their own 4K page.
> 
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Thank you for the review!

> 
> If you can wait till this evening, I can even test it.

I can wait until tomorrow before comitting the patch.

> 
> It's actually a shame that we need this enumeration, when all we are after is an answer to the question: Does a device used by Xen share a 4K page with a device handed off to Dom0? It sounds 
like a nice rainy afternoon exercise to scan the DT to find those 
devices automatically and mask them (on the A64 for instance UART4 is on 
a different page).

I agree and I think we discussed about it before :). I would welcome 
such improvement in Xen, this would actually allow us to drop sunxi.c 
completely.

Cheers,

-- 
Julien Grall

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
  2019-12-03 16:52     ` Julien Grall
@ 2019-12-04  9:27       ` Andre Przywara
  2019-12-17 16:31         ` Julien Grall
  0 siblings, 1 reply; 6+ messages in thread
From: Andre Przywara @ 2019-12-04  9:27 UTC (permalink / raw)
  To: Julien Grall; +Cc: Yangtao Li, xen-devel, sstabellini, Volodymyr_Babchuk

On Tue, 3 Dec 2019 16:52:45 +0000
Julien Grall <julien@xen.org> wrote:

Hi,

> On 03/12/2019 14:38, Andre Przywara wrote:
> > On Tue, 3 Dec 2019 11:39:58 +0000
> > Julien Grall <julien@xen.org> wrote:
> > 
> > Hi,
> >   
> >> (+Andre)
> >>
> >> Hi,
> >>
> >> @Andre, IIRC you originally added the support for sunxi in Xen. Could
> >> you have a look at this patch?  
> > 
> > Looks alright, and indeed the H6 needs it. Even though Allwinner totally re-arranged the memory map, they missed the opportunity to put each device at least in their own 4K page.
> > 
> > Reviewed-by: Andre Przywara <andre.przywara@arm.com>  
> 
> Thank you for the review!
> 
> > 
> > If you can wait till this evening, I can even test it.  
> 
> I can wait until tomorrow before comitting the patch.

I booted Xen 4.12.1 to the Dom0 prompt on the Pine H64, and saw all the serial devices in /sys/firmware/devicetree/base/soc. Then I applied the patch, and the serial devices were gone. And yes, all the four main serial ports share one 4K page on the H6.

Tested-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre.

> > It's actually a shame that we need this enumeration, when all we are after is an answer to the question: Does a device used by Xen share a 4K page with a device handed off to Dom0? It sounds   
> like a nice rainy afternoon exercise to scan the DT to find those 
> devices automatically and mask them (on the A64 for instance UART4 is on 
> a different page).
> 
> I agree and I think we discussed about it before :). I would welcome 
> such improvement in Xen, this would actually allow us to drop sunxi.c 
> completely.
> 
> Cheers,
> 


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform.
  2019-12-04  9:27       ` Andre Przywara
@ 2019-12-17 16:31         ` Julien Grall
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Grall @ 2019-12-17 16:31 UTC (permalink / raw)
  To: Andre Przywara; +Cc: Yangtao Li, xen-devel, sstabellini, Volodymyr_Babchuk

Hi,

On 04/12/2019 09:27, Andre Przywara wrote:
> On Tue, 3 Dec 2019 16:52:45 +0000
> Julien Grall <julien@xen.org> wrote:
> 
> Hi,
> 
>> On 03/12/2019 14:38, Andre Przywara wrote:
>>> On Tue, 3 Dec 2019 11:39:58 +0000
>>> Julien Grall <julien@xen.org> wrote:
>>>
>>> Hi,
>>>    
>>>> (+Andre)
>>>>
>>>> Hi,
>>>>
>>>> @Andre, IIRC you originally added the support for sunxi in Xen. Could
>>>> you have a look at this patch?
>>>
>>> Looks alright, and indeed the H6 needs it. Even though Allwinner totally re-arranged the memory map, they missed the opportunity to put each device at least in their own 4K page.
>>>
>>> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
>>
>> Thank you for the review!
>>
>>>
>>> If you can wait till this evening, I can even test it.
>>
>> I can wait until tomorrow before comitting the patch.
> 
> I booted Xen 4.12.1 to the Dom0 prompt on the Pine H64, and saw all the serial devices in /sys/firmware/devicetree/base/soc. Then I applied the patch, and the serial devices were gone. And yes, all the four main serial ports share one 4K page on the H6.
> 
> Tested-by: Andre Przywara <andre.przywara@arm.com>

Thank you for the testing!

Acked-by: Julien Grall <julien@xen.org>

I have also committed it.

Cheers,

-- 
Julien Grall

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-17 16:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02  8:49 [Xen-devel] [PATCH] xen/arm: Basic support for sunxi/sun50i h6 platform Yangtao Li
2019-12-03 11:39 ` Julien Grall
2019-12-03 14:38   ` Andre Przywara
2019-12-03 16:52     ` Julien Grall
2019-12-04  9:27       ` Andre Przywara
2019-12-17 16:31         ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.