RE: [PATCH v1 8/8] aspeed: Add an AST2700 eval board

2024-03-04 Thread Jamin Lin
> -Original Message-
> From: Cédric Le Goater 
> Sent: Thursday, February 29, 2024 4:32 PM
> To: Jamin Lin ; peter.mayd...@linaro.org;
> and...@codeconstruct.com.au; j...@jms.id.au; qemu-...@nongnu.org;
> qemu-devel@nongnu.org
> Cc: Troy Lee ; Yunlin Tang
> 
> Subject: Re: [PATCH v1 8/8] aspeed: Add an AST2700 eval board
> 
> Hello Jamin,
> 
> > I tried to send the patch series to support AST2700 but I encountered
> > some patches were rejected by server IP 211.20.114.70.
> >
> > Error Log:
> > qemu-devel@nongnu.org
> > eggs.gnu.org
> > Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail
> from aspeedtech.com. 550 Please see
> http://www.openspf.org/Why?scope=mfrom;identity=jamin_lin@aspeedtech.c
> om;ip=211.20.114.70'
> > qemu-...@nongnu.org
> > eggs.gnu.org
> > Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send
> > mail from aspeedtech.com. 550 Please see
> >
> http://www.openspf.org/Why?scope=mfrom;identity=jamin_lin@aspeedtech.c
> > om;ip=211.20.114.70
> 
> $ host -t txt aspeedtech.com
> aspeedtech.com descriptive text
> "google-site-verification=77FsedIzGqFvs3bFfy5L2lT_AGEWVecyoJwZN7KDVnM"
> aspeedtech.com descriptive text "v=spf1 ip4:211.20.114.72
> include:spf.protection.outlook.com -all"
> aspeedtech.com descriptive text
> "google-site-verification=sBPPFeYyix6oWeC3GRJ64zQNFLJpN6SFBMT8RX8ZuM
> E"
> 
> May be try using 211.20.114.72 (mail.aspeedtech.com) as an SMTP server ?
> 
Thanks for your help. We are checking our smtp server now and sorry for your 
inconvenient.
Jamin
> > Did you encounter the same errors before?
> 
> I received the full series 4 times.
> 
> But the mailing lists only have 4 :
> 
> 
> https://lore.kernel.org/qemu-devel/20240229080014.1235018-1-jamin_lin@as
> peedtech.com/
> 
> https://lore.kernel.org/qemu-devel/20240229072315.743963-1-jamin_lin@asp
> eedtech.com/
> 
> or
> 
> 
> https://patchew.org/QEMU/20240229080014.1235018-1-jamin._5Flin@aspeed
> tech.com/
> 
> https://patchew.org/QEMU/20240229072315.743963-1-jamin._5Flin@aspeedt
> ech.com/
> 
> 
> > My send email command as following.
> > git send-email
> > --cc troy_...@aspeedtech.com
> > --cc jamin_...@aspeedtech.com
> > --cc yunlin.t...@aspeedtech.com
> > --to-cmd "./scripts/get_maintainer.pl ../v1-patch/*.patch"
> > ../v1-patch/*.patch
> 
> The command line above is sending twice the same series, you should remove
> one of the  "../v1-patch/*.patch" command arguments. the rest looks correct.
> 
> Thanks,
> 
> C.
> 



Re: [PATCH v1 8/8] aspeed: Add an AST2700 eval board

2024-02-29 Thread Cédric Le Goater

Hello Jamin,


I tried to send the patch series to support AST2700 but I encountered some 
patches
were rejected by server IP 211.20.114.70.

Error Log:
qemu-devel@nongnu.org
eggs.gnu.org
Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail 
from aspeedtech.com. 550 Please see 
http://www.openspf.org/Why?scope=mfrom;identity=jamin_...@aspeedtech.com;ip=211.20.114.70'
qemu-...@nongnu.org
eggs.gnu.org
Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail 
from aspeedtech.com. 550 Please see 
http://www.openspf.org/Why?scope=mfrom;identity=jamin_...@aspeedtech.com;ip=211.20.114.70


$ host -t txt aspeedtech.com
aspeedtech.com descriptive text 
"google-site-verification=77FsedIzGqFvs3bFfy5L2lT_AGEWVecyoJwZN7KDVnM"
aspeedtech.com descriptive text "v=spf1 ip4:211.20.114.72 
include:spf.protection.outlook.com -all"
aspeedtech.com descriptive text 
"google-site-verification=sBPPFeYyix6oWeC3GRJ64zQNFLJpN6SFBMT8RX8ZuME"

May be try using 211.20.114.72 (mail.aspeedtech.com) as an SMTP server ?


Did you encounter the same errors before?


I received the full series 4 times.

But the mailing lists only have 4 :

  
https://lore.kernel.org/qemu-devel/20240229080014.1235018-1-jamin_...@aspeedtech.com/
  
https://lore.kernel.org/qemu-devel/20240229072315.743963-1-jamin_...@aspeedtech.com/

or

  https://patchew.org/QEMU/20240229080014.1235018-1-jamin._5f...@aspeedtech.com/
  https://patchew.org/QEMU/20240229072315.743963-1-jamin._5f...@aspeedtech.com/



My send email command as following.
git send-email
--cc troy_...@aspeedtech.com
--cc jamin_...@aspeedtech.com
--cc yunlin.t...@aspeedtech.com
--to-cmd "./scripts/get_maintainer.pl ../v1-patch/*.patch" ../v1-patch/*.patch


The command line above is sending twice the same series, you should remove
one of the  "../v1-patch/*.patch" command arguments. the rest looks correct.

Thanks,

C.





[PATCH v1 8/8] aspeed: Add an AST2700 eval board

2024-02-29 Thread Jamin Lin via
AST2700 CPU is ARM Cortex-A35 which is 64 bits.
Add TARGET_AARCH64 to build this machine.

According to the design of ast2700, it has a bootmcu(riscv-32) which
is used for executing SPL.
Then, CPUs(cortex-a35) execute u-boot, kernel and rofs.

Currently, qemu not support emulate two CPU architectures
at the same machine. Therefore, qemu will only support
to emulate CPU(cortex-a35) side for ast2700

Signed-off-by: Troy Lee 
Signed-off-by: Jamin Lin 
---
 hw/arm/aspeed.c | 32 
 1 file changed, 32 insertions(+)

diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 8854581ca8..4544026d14 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -178,6 +178,12 @@ struct AspeedMachineState {
 #define AST2600_EVB_HW_STRAP1 0x00C0
 #define AST2600_EVB_HW_STRAP2 0x0003
 
+#ifdef TARGET_AARCH64
+/* AST2700 evb hardware value */
+#define AST2700_EVB_HW_STRAP1 0x00C0
+#define AST2700_EVB_HW_STRAP2 0x0003
+#endif
+
 /* Tacoma hardware value */
 #define TACOMA_BMC_HW_STRAP1  0x
 #define TACOMA_BMC_HW_STRAP2  0x0040
@@ -1588,6 +1594,26 @@ static void 
aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
 aspeed_machine_class_init_cpus_defaults(mc);
 }
 
+#ifdef TARGET_AARCH64
+static void aspeed_machine_ast2700_evb_class_init(ObjectClass *oc, void *data)
+{
+MachineClass *mc = MACHINE_CLASS(oc);
+AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+mc->desc = "Aspeed AST2700 EVB (Cortex-A35)";
+amc->soc_name  = "ast2700-a0";
+amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
+amc->hw_strap2 = AST2700_EVB_HW_STRAP2;
+amc->fmc_model = "w25q01jvq";
+amc->spi_model = "w25q512jv";
+amc->num_cs= 2;
+amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON | ASPEED_MAC2_ON;
+amc->uart_default = ASPEED_DEV_UART12;
+mc->default_ram_size = 1 * GiB;
+aspeed_machine_class_init_cpus_defaults(mc);
+}
+#endif
+
 static void aspeed_machine_qcom_dc_scm_v1_class_init(ObjectClass *oc,
  void *data)
 {
@@ -1711,6 +1737,12 @@ static const TypeInfo aspeed_machine_types[] = {
 .name   = MACHINE_TYPE_NAME("ast1030-evb"),
 .parent = TYPE_ASPEED_MACHINE,
 .class_init = aspeed_minibmc_machine_ast1030_evb_class_init,
+#ifdef TARGET_AARCH64
+}, {
+.name  = MACHINE_TYPE_NAME("ast2700-evb"),
+.parent= TYPE_ASPEED_MACHINE,
+.class_init= aspeed_machine_ast2700_evb_class_init,
+#endif
 }, {
 .name  = TYPE_ASPEED_MACHINE,
 .parent= TYPE_MACHINE,
-- 
2.25.1




RE: [PATCH v1 8/8] aspeed: Add an AST2700 eval board

2024-02-28 Thread Jamin Lin
> -Original Message-
> From: Jamin Lin 
> Sent: Thursday, February 29, 2024 3:53 PM
> To: Jamin Lin ; c...@kaod.org;
> peter.mayd...@linaro.org; and...@codeconstruct.com.au; j...@jms.id.au;
> qemu-...@nongnu.org; qemu-devel@nongnu.org
> Cc: Troy Lee ; Yunlin Tang
> 
> Subject: RE: [PATCH v1 8/8] aspeed: Add an AST2700 eval board
> 
> > -Original Message-
> > From: Jamin Lin 
> > Sent: Thursday, February 29, 2024 3:43 PM
> > To: c...@kaod.org; peter.mayd...@linaro.org;
> > and...@codeconstruct.com.au; j...@jms.id.au; qemu-...@nongnu.org;
> > qemu-devel@nongnu.org
> > Cc: Troy Lee ; Jamin Lin
> > ; Yunlin Tang 
> > Subject: [PATCH v1 8/8] aspeed: Add an AST2700 eval board
> >
> Hi all,
> 
> I tried to send the patch series to support AST2700 but I encountered some
> patches were rejected by server IP 211.20.114.70.
> 
> Error Log:
> qemu-devel@nongnu.org
> eggs.gnu.org
> Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail
> from aspeedtech.com. 550 Please see
> http://www.openspf.org/Why?scope=mfrom;identity=jamin_lin@aspeedtech.c
> om;ip=211.20.114.70'
> qemu-...@nongnu.org
> eggs.gnu.org
> Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail
> from aspeedtech.com. 550 Please see
> http://www.openspf.org/Why?scope=mfrom;identity=jamin_lin@aspeedtech.c
> om;ip=211.20.114.70
> 
> Did you encounter the same errors before?
> My send email command as following.
> git send-email
> --cc troy_...@aspeedtech.com
> --cc jamin_...@aspeedtech.com
> --cc yunlin.t...@aspeedtech.com
> --to-cmd "./scripts/get_maintainer.pl ../v1-patch/*.patch" ../v1-patch/*.patch
> 
> Thanks-Jamin
> 
It seems our mail server issue. We are checking this issue.
Thanks

> > AST2700 CPU is ARM Cortex-A35 which is 64 bits.
> > Add TARGET_AARCH64 to build this machine.
> >
> > According to the design of ast2700, it has a bootmcu(riscv-32) which
> > is used for executing SPL.
> > Then, CPUs(cortex-a35) execute u-boot, kernel and rofs.
> >
> > Currently, qemu not support emulate two CPU architectures at the same
> > machine. Therefore, qemu will only support to emulate CPU(cortex-a35)
> > side for ast2700
> >
> > Signed-off-by: Troy Lee 
> > Signed-off-by: Jamin Lin 
> > ---
> >  hw/arm/aspeed.c | 32 
> >  1 file changed, 32 insertions(+)
> >
> > diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index
> > 8854581ca8..4544026d14 100644
> > --- a/hw/arm/aspeed.c
> > +++ b/hw/arm/aspeed.c
> > @@ -178,6 +178,12 @@ struct AspeedMachineState {  #define
> > AST2600_EVB_HW_STRAP1 0x00C0  #define
> AST2600_EVB_HW_STRAP2
> > 0x0003
> >
> > +#ifdef TARGET_AARCH64
> > +/* AST2700 evb hardware value */
> > +#define AST2700_EVB_HW_STRAP1 0x00C0 #define
> > AST2700_EVB_HW_STRAP2
> > +0x0003 #endif
> > +
> >  /* Tacoma hardware value */
> >  #define TACOMA_BMC_HW_STRAP1  0x  #define
> > TACOMA_BMC_HW_STRAP2  0x0040 @@ -1588,6 +1594,26 @@
> static void
> > aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
> >  aspeed_machine_class_init_cpus_defaults(mc);
> >  }
> >
> > +#ifdef TARGET_AARCH64
> > +static void aspeed_machine_ast2700_evb_class_init(ObjectClass *oc,
> > +void
> > +*data) {
> > +MachineClass *mc = MACHINE_CLASS(oc);
> > +AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
> > +
> > +mc->desc = "Aspeed AST2700 EVB (Cortex-A35)";
> > +amc->soc_name  = "ast2700-a0";
> > +amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
> > +amc->hw_strap2 = AST2700_EVB_HW_STRAP2;
> > +amc->fmc_model = "w25q01jvq";
> > +amc->spi_model = "w25q512jv";
> > +amc->num_cs= 2;
> > +amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON |
> > ASPEED_MAC2_ON;
> > +amc->uart_default = ASPEED_DEV_UART12;
> > +mc->default_ram_size = 1 * GiB;
> > +aspeed_machine_class_init_cpus_defaults(mc);
> > +}
> > +#endif
> > +
> >  static void aspeed_machine_qcom_dc_scm_v1_class_init(ObjectClass *oc,
> >   void
> *data) { @@
> > -1711,6 +1737,12 @@ static const TypeInfo aspeed_machine_types[] = {
> >  .name   = MACHINE_TYPE_NAME("ast1030-evb"),
> >  .parent = TYPE_ASPEED_MACHINE,
> >  .class_init =
> > aspeed_minibmc_machine_ast1030_evb_class_init,
> > +#ifdef TARGET_AARCH64
> > +}, {
> > +.name  = MACHINE_TYPE_NAME("ast2700-evb"),
> > +.parent= TYPE_ASPEED_MACHINE,
> > +.class_init= aspeed_machine_ast2700_evb_class_init,
> > +#endif
> >  }, {
> >  .name  = TYPE_ASPEED_MACHINE,
> >  .parent= TYPE_MACHINE,
> > --
> > 2.25.1




RE: [PATCH v1 8/8] aspeed: Add an AST2700 eval board

2024-02-28 Thread Jamin Lin
> -Original Message-
> From: Jamin Lin 
> Sent: Thursday, February 29, 2024 3:43 PM
> To: c...@kaod.org; peter.mayd...@linaro.org; and...@codeconstruct.com.au;
> j...@jms.id.au; qemu-...@nongnu.org; qemu-devel@nongnu.org
> Cc: Troy Lee ; Jamin Lin
> ; Yunlin Tang 
> Subject: [PATCH v1 8/8] aspeed: Add an AST2700 eval board
> 
Hi all,

I tried to send the patch series to support AST2700 but I encountered some 
patches
were rejected by server IP 211.20.114.70.

Error Log:
qemu-devel@nongnu.org
eggs.gnu.org
Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail 
from aspeedtech.com. 550 Please see 
http://www.openspf.org/Why?scope=mfrom;identity=jamin_...@aspeedtech.com;ip=211.20.114.70'
qemu-...@nongnu.org
eggs.gnu.org
Remote Server returned '550-[SPF] 211.20.114.70 is not allowed to send mail 
from aspeedtech.com. 550 Please see 
http://www.openspf.org/Why?scope=mfrom;identity=jamin_...@aspeedtech.com;ip=211.20.114.70

Did you encounter the same errors before?
My send email command as following.
git send-email 
--cc troy_...@aspeedtech.com 
--cc jamin_...@aspeedtech.com 
--cc yunlin.t...@aspeedtech.com 
--to-cmd "./scripts/get_maintainer.pl ../v1-patch/*.patch" ../v1-patch/*.patch

Thanks-Jamin

> AST2700 CPU is ARM Cortex-A35 which is 64 bits.
> Add TARGET_AARCH64 to build this machine.
> 
> According to the design of ast2700, it has a bootmcu(riscv-32) which is used
> for executing SPL.
> Then, CPUs(cortex-a35) execute u-boot, kernel and rofs.
> 
> Currently, qemu not support emulate two CPU architectures at the same
> machine. Therefore, qemu will only support to emulate CPU(cortex-a35) side
> for ast2700
> 
> Signed-off-by: Troy Lee 
> Signed-off-by: Jamin Lin 
> ---
>  hw/arm/aspeed.c | 32 
>  1 file changed, 32 insertions(+)
> 
> diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index
> 8854581ca8..4544026d14 100644
> --- a/hw/arm/aspeed.c
> +++ b/hw/arm/aspeed.c
> @@ -178,6 +178,12 @@ struct AspeedMachineState {  #define
> AST2600_EVB_HW_STRAP1 0x00C0  #define AST2600_EVB_HW_STRAP2
> 0x0003
> 
> +#ifdef TARGET_AARCH64
> +/* AST2700 evb hardware value */
> +#define AST2700_EVB_HW_STRAP1 0x00C0 #define
> AST2700_EVB_HW_STRAP2
> +0x0003 #endif
> +
>  /* Tacoma hardware value */
>  #define TACOMA_BMC_HW_STRAP1  0x  #define
> TACOMA_BMC_HW_STRAP2  0x0040 @@ -1588,6 +1594,26 @@ static
> void aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
>  aspeed_machine_class_init_cpus_defaults(mc);
>  }
> 
> +#ifdef TARGET_AARCH64
> +static void aspeed_machine_ast2700_evb_class_init(ObjectClass *oc, void
> +*data) {
> +MachineClass *mc = MACHINE_CLASS(oc);
> +AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
> +
> +mc->desc = "Aspeed AST2700 EVB (Cortex-A35)";
> +amc->soc_name  = "ast2700-a0";
> +amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
> +amc->hw_strap2 = AST2700_EVB_HW_STRAP2;
> +amc->fmc_model = "w25q01jvq";
> +amc->spi_model = "w25q512jv";
> +amc->num_cs= 2;
> +amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON |
> ASPEED_MAC2_ON;
> +amc->uart_default = ASPEED_DEV_UART12;
> +mc->default_ram_size = 1 * GiB;
> +aspeed_machine_class_init_cpus_defaults(mc);
> +}
> +#endif
> +
>  static void aspeed_machine_qcom_dc_scm_v1_class_init(ObjectClass *oc,
>   void *data)
> { @@ -1711,6 +1737,12 @@ static const TypeInfo aspeed_machine_types[] = {
>  .name   = MACHINE_TYPE_NAME("ast1030-evb"),
>  .parent = TYPE_ASPEED_MACHINE,
>  .class_init =
> aspeed_minibmc_machine_ast1030_evb_class_init,
> +#ifdef TARGET_AARCH64
> +}, {
> +.name  = MACHINE_TYPE_NAME("ast2700-evb"),
> +.parent= TYPE_ASPEED_MACHINE,
> +.class_init= aspeed_machine_ast2700_evb_class_init,
> +#endif
>  }, {
>  .name  = TYPE_ASPEED_MACHINE,
>  .parent= TYPE_MACHINE,
> --
> 2.25.1