Skip to contentSkip to conversation

RISC-V Patches for the 3.1 Soft Freeze, Part 2

RFC Palmer Dabbelt 2 participants 6 messages Oct 30, 2018 – Oct 31, 2018 RISC-V

lore
Share & tools
lore
#0 lore raw

Since this is the first time I've actually done this for QEMU, I thought I'd write up a bit of a header describing how I intend to handle RISC-V pull requests. This is modeled after how I've been doing things in Linux, where it seems to work out fairly well.

My flow is to:

* Collect reviews over the course of the week.
* Tag what I intend to submit on Tuesday
* Push the tag up and send an RFC PR
* Assuming there's no major issues, actually send out the full pull request on Thursday

I've been doing this for a while (on Monday/Wednesday) and have found it works well. So far we've never had an issue where I had to pull back a proposed PR, but I do like having the extra few days just so everyone can stay on the same page as to what is going in.

---

The following changes since commit a2e002ff7913ce93aa0f7dbedd2123dce5f1a9cd:

Merge remote-tracking branch 'remotes/vivier2/tags/qemu-trivial-for-3.1-pull-request' into staging (2018-10-30 15:49:55 +0000)

are available in the Git repository at:

git://github.com/riscv/riscv-qemu.git tags/riscv-for-master-3.1-sf1

for you to fetch changes up to a094b3544f2855c0489f5df3c938b14b9a5899e5:

Add [email protected] as the RISC-V list (2018-10-30 11:04:29 -0700)

----------------------------------------------------------------
RISC-V Patches for the 3.1 Soft Freeze, Part 2

This tag contains a few simple patches that I'd like to target for the QEMU soft freeze. There's only one code change: a fix to our PMP implementation that avoids an internal truncation while computing a partial PMP read.

I also have two updates to the MAINTAINERS file: one to add Alistair as a RISC-V maintainer, and one to add our newly created mailing list.

----------------------------------------------------------------
Dayeol Lee (1):
target/riscv/pmp.c: pmpcfg_csr_read returns bogus value on RV64

Palmer Dabbelt (2):
Add Alistair as a RISC-V Maintainer Add [email protected] as the RISC-V list

 MAINTAINERS        | 2 ++
 target/riscv/pmp.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
#1 lore raw

[Qemu-devel] [PULL 1/3] target/riscv/pmp.c: pmpcfg_csr_read returns bogus value on RV64

From: Dayeol Lee <[email protected]>

pmp_read_cfg() returns 8-bit value, which is combined together to form a single pmpcfg CSR. The default promotion rules will result in an integer here ("i*8" is integer, which flows through) resulting in a 32-bit signed value on most hosts.
That's bogus on RV64I, with the high bits of the CSR being wrong.

---
 target/riscv/pmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/pmp.c +1 -1
index f432f3b7594b..03abd8fe5eb7 100644
@@ -325,7 +325,7 @@ target_ulong pmpcfg_csr_read(CPURISCVState *env, uint32_t reg_index)
 {
     int i;
     target_ulong cfg_val = 0;
-    uint8_t val = 0;
+    target_ulong val = 0;
 
     for (i = 0; i < sizeof(target_ulong); i++) {
         val = pmp_read_cfg(env, (reg_index * sizeof(target_ulong)) + i);
Signature · 1 line
2.18.1
#2 lore raw

[Qemu-devel] [PULL 2/3] Add Alistair as a RISC-V Maintainer

In reply to Palmer Dabbelt

Alistair has been contributing to the RISC-V QEMU port for a while now so I'd like him to be officially listed as a maintainer. I've checked with the other RISC-V maintainers and there are no objections, and I've also checked with Alistair so he knows I'm volunteering him.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index d794bd7a66fe..d550fd8b809c 100644
@@ -241,6 +241,7 @@ F: disas/ppc.c
 RISC-V
 M: Michael Clark <[email protected]>
 M: Palmer Dabbelt <[email protected]>
+M: Alistair Francis <[email protected]>
 M: Sagar Karandikar <[email protected]>
 M: Bastian Koppelmann <[email protected]>
 S: Maintained
Signature · 1 line
2.18.1
#3 lore raw

Re: [Qemu-devel] [PULL 2/3] Add Alistair as a RISC-V Maintainer

Quoted 7 lines · Palmer Dabbelt

Alistair has been contributing to the RISC-V QEMU port for a while now so I'd like him to be officially listed as a maintainer. I've checked with the other RISC-V maintainers and there are no objections, and I've also checked with Alistair so he knows I'm volunteering him.

Hey Palmer,

It looks like you dropped a Reviewed by here. It's not super important in this case but for future patches it could be an issue.

If you use QEMU's patches it should apply the tags for you:
https://github.com/stefanha/patches

Alistair

Quoted 20 lines
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -1
index d794bd7a66fe..d550fd8b809c 100644
@@ -241,6 +241,7 @@ F: disas/ppc.c
 RISC-V
 M: Michael Clark <[email protected]>
 M: Palmer Dabbelt <[email protected]>
+M: Alistair Francis <[email protected]>
 M: Sagar Karandikar <[email protected]>
 M: Bastian Koppelmann <[email protected]>
 S: Maintained
--

2.18.1

#4 lore raw

Re: [Qemu-devel] [PULL 2/3] Add Alistair as a RISC-V Maintainer

Quoted 9 lines · On Tue, 30 Oct 2018 14:33:23 PDT (-0700), [email protected] wrote:
Quoted 7 lines · Palmer Dabbelt

Alistair has been contributing to the RISC-V QEMU port for a while now so I'd like him to be officially listed as a maintainer. I've checked with the other RISC-V maintainers and there are no objections, and I've also checked with Alistair so he knows I'm volunteering him.

Quoted 7 lines

Hey Palmer,

It looks like you dropped a Reviewed by here. It's not super important in this case but for future patches it could be an issue.

If you use QEMU's patches it should apply the tags for you:
https://github.com/stefanha/patches

Sorry about that. I'll take a look at patches.

Quoted 23 lines

Alistair

Quoted 20 lines
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -1
index d794bd7a66fe..d550fd8b809c 100644
@@ -241,6 +241,7 @@ F: disas/ppc.c
 RISC-V
 M: Michael Clark <[email protected]>
 M: Palmer Dabbelt <[email protected]>
+M: Alistair Francis <[email protected]>
 M: Sagar Karandikar <[email protected]>
 M: Bastian Koppelmann <[email protected]>
 S: Maintained
--

2.18.1

#5 lore raw

[Qemu-devel] [PULL 3/3] Add [email protected] as the RISC-V list

In reply to Palmer Dabbelt

We now have a RISC-V specific QEMU development list.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index d550fd8b809c..10983bd52d64 100644
@@ -244,6 +244,7 @@ M: Palmer Dabbelt <[email protected]>
 M: Alistair Francis <[email protected]>
 M: Sagar Karandikar <[email protected]>
 M: Bastian Koppelmann <[email protected]>
+L: [email protected]
 S: Maintained
 F: target/riscv/
 F: hw/riscv/
Signature · 1 line
2.18.1