Skip to contentSkip to conversation

Revert "riscv: cpu: fu740: clear feature disable CSR"

PATCH New Bin Meng 4 participants 20 messages May 10, 2021 – May 19, 2021 1 message not in the archive RISC-V

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

This reverts commit bc8bbb77f74f21582b3bfd790334397757f88575.

This commit breaks U-Boot booting on SiFive Unleashed board, as there is no such CSR on U54 core.

---

 arch/riscv/cpu/fu540/spl.c | 15 ---------------
 1 file changed, 15 deletions(-)
arch/riscv/cpu/fu540/spl.c +0 -15
index 1740ef98b6..45657b7909 100644
@@ -6,9 +6,6 @@
 
 #include <dm.h>
 #include <log.h>
-#include <asm/csr.h>
-
-#define CSR_U74_FEATURE_DISABLE	0x7c1
 
 int spl_soc_init(void)
 {
@@ -24,15 +21,3 @@ int spl_soc_init(void)
 
 	return 0;
 }
-
-void harts_early_init(void)
-{
-	/*
-	 * Feature Disable CSR
-	 *
-	 * Clear feature disable CSR to '0' to turn on all features for
-	 * each core. This operation must be in M-mode.
-	 */
-	if (CONFIG_IS_ENABLED(RISCV_MMODE))
-		csr_write(CSR_U74_FEATURE_DISABLE, 0);
-}
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 44 lines · Bin Meng

This reverts commit bc8bbb77f74f21582b3bfd790334397757f88575.

This commit breaks U-Boot booting on SiFive Unleashed board, as there is no such CSR on U54 core.

---

 arch/riscv/cpu/fu540/spl.c | 15 ---------------
 1 file changed, 15 deletions(-)
arch/riscv/cpu/fu540/spl.c +0 -15
index 1740ef98b6..45657b7909 100644
@@ -6,9 +6,6 @@
 
 #include <dm.h>
 #include <log.h>
-#include <asm/csr.h>
-
-#define CSR_U74_FEATURE_DISABLE	0x7c1
 
 int spl_soc_init(void)
 {
@@ -24,15 +21,3 @@ int spl_soc_init(void)
 
 	return 0;
 }
-
-void harts_early_init(void)
-{
-	/*
-	 * Feature Disable CSR
-	 *
-	 * Clear feature disable CSR to '0' to turn on all features for
-	 * each core. This operation must be in M-mode.
-	 */
-	if (CONFIG_IS_ENABLED(RISCV_MMODE))
-		csr_write(CSR_U74_FEATURE_DISABLE, 0);
-}
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

In reply to Bin Meng

Hi Green,

Quoted 12 lines · Bin Meng

This reverts commit bc8bbb77f74f21582b3bfd790334397757f88575.

This commit breaks U-Boot booting on SiFive Unleashed board, as there is no such CSR on U54 core.

---

 arch/riscv/cpu/fu540/spl.c | 15 ---------------
 1 file changed, 15 deletions(-)

Please note you need to add the changes in the arch/riscv/cpu/fu740 directory.

Regards,
Bin

#3 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Yes, noted. This patch should be applied based on the fu740 port. Thanks for the reminder.

- Green

Quoted 22 lines · Bin Meng

Hi Green,

Quoted 12 lines · Bin Meng

This reverts commit bc8bbb77f74f21582b3bfd790334397757f88575.

This commit breaks U-Boot booting on SiFive Unleashed board, as there is no such CSR on U54 core.

---

 arch/riscv/cpu/fu540/spl.c | 15 ---------------
 1 file changed, 15 deletions(-)

Please note you need to add the changes in the arch/riscv/cpu/fu740 directory.

Regards,
Bin

author
#4 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Green,

Quoted 3 lines · Green Wan

Yes, noted. This patch should be applied based on the fu740 port. Thanks for the reminder.

Just to clarify, the reverted patch *content* should be in your fu740 support series.

@Rick, this revert patch itself should be applied in u-boot/master now, as the mainline U-Boot does not boot on the Unleashed board.

Regards,
Bin

#5 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Quoted 17 lines · Bin Meng

Hi Green,

Quoted 2 lines · Green Wan

Yes, noted. This patch should be applied based on the fu740 port. Thanks

for the reminder.

Quoted 1 line

Just to clarify, the reverted patch *content* should be in your fu740 support series.

@Rick, this revert patch itself should be applied in u-boot/master now, as the mainline U-Boot does not boot on the Unleashed board.

Regards,
Bin

author
#6 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 5 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Quoted 8 lines

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

There are multiple breakages in current u-boot/master for SiFive Unleashed board.

We'd better apply them as soon as possible.

Regards,
Bin

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 16 lines

From: Bin Meng <[email protected]>
Sent: Friday, May 14, 2021 11:50 AM
To: Green Wan <[email protected]>
Cc: Rick Jian-Zhi Chen(???) <[email protected]>; Sean Anderson <[email protected]>; U-Boot Mailing List <[email protected]>
Subject: Re: [PATCH] Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 9 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Quoted 8 lines
Quoted 4 lines

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

There are multiple breakages in current u-boot/master for SiFive Unleashed board.

We'd better apply them as soon as possible.

OK

Leo will help to apply it ASAP.

Thanks,
Rick

Quoted 3 lines

Regards,
Bin

#9 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

In reply to Green Wan
Quoted 13 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Quoted 9 lines

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

Best regards,
Leo

Quoted 19 lines · Bin Meng
Quoted 18 lines

Hi Green,

Quoted 2 lines · Green Wan

Yes, noted. This patch should be applied based on the fu740 port. Thanks

for the reminder.

Quoted 1 line

Just to clarify, the reverted patch *content* should be in your fu740 support series.

@Rick, this revert patch itself should be applied in u-boot/master now, as the mainline U-Boot does not boot on the Unleashed board.

Regards,
Bin

author
#10 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Green,

Quoted 21 lines · Leo Liang
Quoted 19 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Quoted 9 lines
Quoted 3 lines

Regards,
- Green

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:
http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Hi Leo,

What's your plan for the binman patch series?

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Regards,
Bin

#11 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 37 lines · Bin Meng

Hi Green,

Quoted 5 lines · Leo Liang
Quoted 3 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My

original

Quoted 1 line
Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since fu740

series

Quoted 5 lines
Quoted 5 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need

more

Quoted 1 line
Quoted 1 line

revisement. Do you prefer that I append both this revert and "disable

CSR"

Quoted 1 line
Quoted 1 line

patch to fu740&unmatched patch series? If so, I will create v9 patch

and

Quoted 3 lines
Quoted 3 lines

include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait

for

Quoted 1 line
Quoted 1 line

fu740&unmatche patch merge and I'll create a separate patch for this

revert

Quoted 10 lines
Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Quoted 7 lines
Quoted 3 lines

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 9 lines

Hi Leo,

What's your plan for the binman patch series?

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to
https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?
I'd prefer to have a separated patch work to track binman changes. Thanks,

Regards,
- Green

Quoted 4 lines

Regards,
Bin

author
#12 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Green,

Quoted 53 lines · Green Wan
Quoted 29 lines · Bin Meng

Hi Green,

Quoted 25 lines · Leo Liang
Quoted 22 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Quoted 8 lines
Quoted 5 lines

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:
http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

This one: http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 1 line

I'd prefer to have a separated patch work to track binman changes. Thanks,

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Regards,
Bin

#13 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 68 lines · Bin Meng

Hi Green,

Quoted 53 lines · Green Wan
Quoted 29 lines · Bin Meng

Hi Green,

Quoted 25 lines · Leo Liang
Quoted 22 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable CSR" patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Quoted 8 lines
Quoted 5 lines

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:
http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

This one: http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 1 line

I'd prefer to have a separated patch work to track binman changes. Thanks,

Quoted 9 lines

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

#14 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

As I mentioned before, pcie_dw_common.c is not part of fu740 patch. The error is actually nothing to do with fu740 patchset. Even I fix those warning message. It will not be in same patch series.

- Green

Leo Liang <[email protected]>? 2021?5?18? ?????8:00???

Quoted 111 lines · Bin Meng
Quoted 11 lines

Hi Green,

Quoted 8 lines · Green Wan
Quoted 4 lines · Bin Meng

Hi Green,

On Tue, May 18, 2021 at 3:38 PM Leo Liang <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Green Wan
Quoted 3 lines

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log.

My original

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since

fu740 series

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts

need more

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

revisement. Do you prefer that I append both this revert and

"disable CSR"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch to fu740&unmatched patch series? If so, I will create v9

patch and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can

wait for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

fu740&unmatche patch merge and I'll create a separate patch for

this revert

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched

patch

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Quoted 12 lines
Quoted 12 lines

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to

https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

Quoted 4 lines

This one: http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 1 line

I'd prefer to have a separated patch work to track binman changes.

Thanks,

Quoted 10 lines

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

#15 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Leo,

I just posted the patch for pcie_dw_common.c compilation error. Please check and see if it works. Thanks.

Hi Bin and Leo,

And I'll check the 'binman' patch series soon. See if we can have both binman and fu740 patchset ready.

Regards,
Green

Quoted 120 lines · Green Wan

As I mentioned before, pcie_dw_common.c is not part of fu740 patch. The error is actually nothing to do with fu740 patchset. Even I fix those warning message. It will not be in same patch series.

- Green

Leo Liang <[email protected]>? 2021?5?18? ?????8:00???

Quoted 111 lines · Bin Meng
Quoted 11 lines

Hi Green,

Quoted 8 lines · Green Wan
Quoted 4 lines · Bin Meng

Hi Green,

On Tue, May 18, 2021 at 3:38 PM Leo Liang <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Green Wan
Quoted 3 lines

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log.

My original

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since

fu740 series

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts

need more

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

revisement. Do you prefer that I append both this revert and

"disable CSR"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch to fu740&unmatched patch series? If so, I will create v9

patch and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can

wait for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

fu740&unmatche patch merge and I'll create a separate patch for

this revert

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched

patch

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Quoted 12 lines
Quoted 12 lines

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to

https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

Quoted 4 lines

This one: http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 1 line

I'd prefer to have a separated patch work to track binman changes.

Thanks,

Quoted 10 lines

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

#16 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Hi Leo and Bin,

I have the 'binman' patch for unmatched ready. So, we can pick up the 'binman' series first.

I plan to create a v10 patchset that includes the fu740 series on top of 'binman' patch and 'split CLINT' patchset and appends 'clear feature disable CSRs' and 'binman change for unmatched'. But I keep the pcie_dw_common.c compilation fixes in the separated patch. (already posted)

What do you think of it? If there is no further revisement needed, I can do the patch.

Many thanks,
- Green

Quoted 137 lines · Green Wan

Hi Leo,

I just posted the patch for pcie_dw_common.c compilation error. Please check and see if it works. Thanks.

Hi Bin and Leo,

And I'll check the 'binman' patch series soon. See if we can have both binman and fu740 patchset ready.

Regards,
Green

Quoted 122 lines · Green Wan

As I mentioned before, pcie_dw_common.c is not part of fu740 patch. The error is actually nothing to do with fu740 patchset. Even I fix those warning message. It will not be in same patch series.

- Green

Leo Liang <[email protected]>? 2021?5?18? ?????8:00???

Quoted 113 lines · Bin Meng
Quoted 3 lines

Hi Green,

On Tue, May 18, 2021 at 5:43 PM Green Wan <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines · Bin Meng
Quoted 4 lines

Hi Green,

On Tue, May 18, 2021 at 3:38 PM Leo Liang <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Green Wan
Quoted 3 lines

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log.

My original

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since

fu740 series

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts

need more

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

revisement. Do you prefer that I append both this revert and

"disable CSR"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch to fu740&unmatched patch series? If so, I will create v9

patch and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we

can wait for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

fu740&unmatche patch merge and I'll create a separate patch for

this revert

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Could you please append the "disable CSR" patch to fu740

unmatched patch

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Quoted 12 lines
Quoted 12 lines

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to

https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

Quoted 2 lines

This one:

http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 2 lines
Quoted 2 lines

I'd prefer to have a separated patch work to track binman changes.

Thanks,

Quoted 10 lines

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

#17 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

On Wed, May 19, 2021 at 03:52:39PM +0800, Green Wan wrote:

Hi Green,

Quoted 4 lines

Hi Leo and Bin,

I have the 'binman' patch for unmatched ready. So, we can pick up the 'binman' series first.

Quoted 8 lines

I plan to create a v10 patchset that includes the fu740 series on top of 'binman' patch and 'split CLINT' patchset and appends 'clear feature disable CSRs' and 'binman change for unmatched'. But I keep the pcie_dw_common.c compilation fixes in the separated
patch. (already posted)

What do you think of it? If there is no&nbsp;further revisement needed, I can do the patch.

Many thanks,
- Green

Hi Green,

Unfortunately, the patch for compilation fixes still does not work. CI result: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/7580

But other than that, sounds good to me. Thanks!

Best regards,
Leo

Quoted 130 lines · On Tue, May 18, 2021 at 10:35 PM Green Wan &lt;green.wan at sifive.com> wrote:

Hi Leo,

I just posted the patch for pcie_dw_common.c compilation error. Please check and see if it works. Thanks.

Hi Bin and Leo,

And I'll check the 'binman' patch series soon. See if we can have both binman and fu740 patchset ready.

Regards,
Green

On Tue, May 18, 2021 at 9:12 PM Green Wan &lt;green.wan at sifive.com> wrote:

As I mentioned before, pcie_dw_common.c is not part of fu740 patch. The error is actually nothing to do with fu740 patchset. Even I fix those warning message. It will not be in same patch series.

- Green

Leo Liang &lt;ycliang at andestech.com>? 2021?5?18? ?????8:00???

Quoted 44 lines · Bin Meng

Hi Green,

Quoted 41 lines · On Tue, May 18, 2021 at 5:43 PM Green Wan &lt;green.wan at sifive.com> wrote:
Quoted 37 lines · On Tue, May 18, 2021 at 3:45 PM Bin Meng &lt;bmeng.cn at gmail.com> wrote:

Hi Green,

Quoted 21 lines · On Tue, May 18, 2021 at 3:38 PM Leo Liang &lt;ycliang at andestech.com> wrote:
Quoted 19 lines · Green Wan

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My original patch is based on fu740. I guess it was merged to fu540 since fu740 series wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and &quot;disable CSR&quot; patch to fu740&amp;unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&amp;unmatche patch merge and I'll create a separate patch for this revert and CSR disable.

What do you think? Many thanks.

Quoted 9 lines
Quoted 3 lines

Regards,
- Green

Hi Green,

Could you please append the &quot;disable CSR&quot; patch to fu740 unmatched patch and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Quoted 12 lines
Quoted 12 lines

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 7 lines

Hi Leo,

What's your plan for the binman patch series?

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Hi Leo/Bin,

Are we referring to

https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

Quoted 2 lines

This one:

http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 12 lines
Quoted 2 lines

I'd prefer to have a separated patch work to track binman changes. Thanks,

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

#18 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

Quoted 22 lines · Leo Liang

On Wed, May 19, 2021 at 03:52:39PM +0800, Green Wan wrote:

Hi Green,

Quoted 3 lines

Hi Leo and Bin,

I have the 'binman' patch for unmatched ready. So, we can pick up the

'binman' series first.

Quoted 2 lines

I plan to create a v10 patchset that includes the fu740 series on top of

'binman' patch and 'split CLINT' patchset and appends 'clear feature disable CSRs' and 'binman change for unmatched'. But I keep the pcie_dw_common.c compilation fixes in the separated

Quoted 3 lines

patch. (already posted)

What do you think of it? If there is no&nbsp;further revisement needed,

I can do the patch.

Quoted 4 lines

Many thanks,
- Green

Quoted 7 lines

Hi Green,

Unfortunately, the patch for compilation fixes still does not work. CI result:
https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/7580

I might know what causes the difference. Some platforms in the CI use

'u64' as "pci_addr_t" and "pci_size_t" and others use 'unsigned long'. (check include/pci.h)

I will simply cast all variables to the bigger length to avoid compilation warning. will post the patch later.

Quoted 2 lines

But other than that, sounds good to me. Thanks!

will create the patchset. Thanks.

Quoted 154 lines

Best regards,
Leo

Quoted 2 lines

On Tue, May 18, 2021 at 10:35 PM Green Wan &lt;green.wan at sifive.com>

Quoted 5 lines · wrote:

Hi Leo,

I just posted the patch for pcie_dw_common.c compilation error. Please

check and see if it works. Thanks.

Quoted 4 lines

Hi Bin and Leo,

And I'll check the 'binman' patch series soon. See if we can have both

binman and fu740 patchset ready.

Quoted 6 lines

Regards,
Green

On Tue, May 18, 2021 at 9:12 PM Green Wan &lt;green.wan at sifive.com>

Quoted 3 lines · wrote:

As I mentioned before, pcie_dw_common.c is not part of fu740 patch. The

error is actually nothing to do with fu740 patchset. Even I fix those warning message. It will not be in same patch series.

Quoted 12 lines

- Green

Leo Liang &lt;ycliang at andestech.com>? 2021?5?18? ?????8:00???

Quoted 3 lines · Bin Meng

Hi Green,

On Tue, May 18, 2021 at 5:43 PM Green Wan &lt;green.wan at sifive.com>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

On Tue, May 18, 2021 at 3:45 PM Bin Meng &lt;bmeng.cn at gmail.com>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Green,

On Tue, May 18, 2021 at 3:38 PM Leo Liang &lt;ycliang at andestech.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Green Wan
Quoted 3 lines

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log.

My original

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since

fu740 series

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts

need more

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

revisement. Do you prefer that I append both this revert and

&quot;disable CSR&quot;

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

patch to fu740&amp;unmatched patch series? If so, I will create

v9 patch and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we

can wait for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

fu740&amp;unmatche patch merge and I'll create a separate patch

for this revert

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Hi Green,

Could you please append the &quot;disable CSR&quot; patch to

fu740 unmatched patch

Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

and send a v9 patch ? Thanks!

I think you will need some update per this patch as well:

http://patchwork.ozlabs.org/project/uboot/patch/20210511120412.25065-1-bmeng.cn at gmail.com/

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

Hi Bin
I updated the change to [patch v9 1/8]. Thanks,

Quoted 9 lines

Hi Leo,

What's your plan for the binman patch series?

If the binman patch series go first, Green needs to update Unmatched to use binman as well.

Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

Hi Leo/Bin,

Are we referring to

https://lists.denx.de/pipermail/u-boot/2021-May/448885.html?

Quoted 2 lines

This one:

http://patchwork.ozlabs.org/project/uboot/list/?series=242992

Quoted 2 lines
Quoted 2 lines

I'd prefer to have a separated patch work to track binman changes.

Thanks,

Quoted 31 lines
Quoted 10 lines

Actually that's why I asked Leo the plan. If your patch go before my patch, then I will need to do an additional patch to convert unmatched.

But if mine go first before yours, you will have to respin another version to do the convert in the first place.

Leo, please let us know your plan.

Hi Bin/Green,

I was thinking picking Bin's patch first, because Green's patch could not pass CI. (Due to some format warning being treated as error when compiling drivers/pci/pcie_dw_common.c)

At the meantime, we should come up with some fixes to pass CI. Then Green could send his patch with binman,
or a seperate patch to track binman utility.

What do you guys think?

Best regards,
Leo

Quoted 2 lines

Regards,
Bin

author
#19 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

In reply to Green Wan

Hi Green,

Quoted 7 lines · Green Wan

Hi Leo and Bin,

I have the 'binman' patch for unmatched ready. So, we can pick up the 'binman' series first.

I plan to create a v10 patchset that includes the fu740 series on top of 'binman' patch and 'split CLINT' patchset and appends 'clear feature disable CSRs' and 'binman change for unmatched'. But I keep the pcie_dw_common.c compilation fixes in the separated patch. (already posted)

Sounds good to me. Thanks!

Quoted 1 line

What do you think of it? If there is no further revisement needed, I can do the patch.

Regards,
Bin

#20 lore raw

PATCH 1/1 Revert "riscv: cpu: fu740: clear feature disable CSR"

In reply to Leo Liang

Leo Liang <[email protected]>? 2021?5?18? ?????3:38???

Quoted 28 lines · Green Wan
Quoted 3 lines

Hi Bin,

Thanks, I'll include that revert. Just traced back the git log. My

original

Quoted 1 line

patch is based on fu740. I guess it was merged to fu540 since fu740

series

Quoted 6 lines

wasn't present yet.

Hi Rick,

Not sure whether you'll pick fu740 series soon or if any parts need more revisement. Do you prefer that I append both this revert and "disable

CSR"

Quoted 5 lines

patch to fu740&unmatched patch series? If so, I will create v9 patch and include these 2 patches.

Or if you prefer to keep them separate from fu740 series, we can wait for fu740&unmatche patch merge and I'll create a separate patch for this

revert

Quoted 7 lines

and CSR disable.

What do you think? Many thanks.

Regards,
- Green

Quoted 8 lines

Hi Green,

Could you please append the "disable CSR" patch to fu740 unmatched patch and send a v9 patch ? Thanks!

Best regards,
Leo

Sure, I think I can do it by today.

Quoted 22 lines
Quoted 5 lines · Bin Meng
Quoted 4 lines

Hi Green,

On Wed, May 12, 2021 at 11:13 PM Green Wan <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines

Yes, noted. This patch should be applied based on the fu740 port.

Thanks

Quoted 12 lines
Quoted 12 lines

for the reminder.

Quoted 1 line

Just to clarify, the reverted patch *content* should be in your fu740 support series.

@Rick, this revert patch itself should be applied in u-boot/master now, as the mainline U-Boot does not boot on the Unleashed board.

Regards,
Bin