mbox series

[PULL,0/7] riscv-pull queue

Message ID 20180627174435.31800-1-alistair.francis@wdc.com
Headers show
Series riscv-pull queue | expand

Message

Alistair Francis June 27, 2018, 5:44 p.m. UTC
The following changes since commit 00928a421d47f49691cace1207481b7aad31b1f1:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180626' into staging (2018-06-26 18:23:49 +0100)

are available in the Git repository at:

  git@github.com:alistair23/qemu.git tags/pull-riscv-pull-20180627

for you to fetch changes up to e5f5e16b67dc8a342f937bc00ebb2a6475e35050:

  hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device (2018-06-27 10:35:19 -0700)

----------------------------------------------------------------
RISC-V: SoCify SiFive boards and connect GEM

This series has three tasks:
 1. To convert the SiFive U and E machines into SoCs and boards
 2. To connect the Cadence GEM device to the SiFive U board
 3. Fix some device tree problems with the SiFive U board

After this series the SiFive E and U boards have their SoCs split into
seperate QEMU objects, which can be used on future boards if desired.

The RISC-V Virt and Spike boards have not been converted. They haven't
been converted as they aren't physical boards, so it doesn't make a
whole lot of sense to split them into an SoC and board. The only
disadvantage with this is that they now differ to the SiFive boards.

This series also connect the Cadence GEM device to the SiFive U board.
There are some interrupt line changes requried before this is possible.

----------------------------------------------------------------
Alistair Francis (7):
      hw/riscv/sifive_u: Create a SiFive U SoC object
      hw/riscv/sifive_e: Create a SiFive E SoC object
      hw/riscv/sifive_plic: Use gpios instead of irqs
      hw/riscv/sifive_u: Set the soc device tree node as a simple-bus
      hw/riscv/sifive_u: Set the interrupt controler number of interrupts
      hw/riscv/sifive_u: Move the uart device tree node under /soc/
      hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device

 default-configs/riscv32-softmmu.mak |   3 +-
 default-configs/riscv64-softmmu.mak |   3 +-
 hw/riscv/sifive_e.c                 | 102 +++++++++++++++++-------
 hw/riscv/sifive_plic.c              |   6 +-
 hw/riscv/sifive_u.c                 | 151 +++++++++++++++++++++++++++++-------
 hw/riscv/virt.c                     |   4 +-
 include/hw/riscv/sifive_e.h         |  16 +++-
 include/hw/riscv/sifive_plic.h      |   1 -
 include/hw/riscv/sifive_u.h         |  25 +++++-
 9 files changed, 241 insertions(+), 70 deletions(-)

Comments

Peter Maydell June 28, 2018, 4:52 p.m. UTC | #1
On 27 June 2018 at 18:44, Alistair Francis <alistair.francis@wdc.com> wrote:
> The following changes since commit 00928a421d47f49691cace1207481b7aad31b1f1:
>
>   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180626' into staging (2018-06-26 18:23:49 +0100)
>
> are available in the Git repository at:
>
>   git@github.com:alistair23/qemu.git tags/pull-riscv-pull-20180627
>
> for you to fetch changes up to e5f5e16b67dc8a342f937bc00ebb2a6475e35050:
>
>   hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device (2018-06-27 10:35:19 -0700)
>

Something strange is up with the key used to sign this:

$ gpg --recv-keys 7048B74B4C1B39E4
gpg: requesting key 0x7048B74B4C1B39E4 from hkp server keys.gnupg.net
gpg: key 0xE48E3BC2C123ED93: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: Total number processed: 1
gpg:           w/o user IDs: 1

thanks
-- PMM
Philippe Mathieu-Daudé June 28, 2018, 9:35 p.m. UTC | #2
On 06/28/2018 01:52 PM, Peter Maydell wrote:
> On 27 June 2018 at 18:44, Alistair Francis <alistair.francis@wdc.com> wrote:
>> The following changes since commit 00928a421d47f49691cace1207481b7aad31b1f1:
>>
>>   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180626' into staging (2018-06-26 18:23:49 +0100)
>>
>> are available in the Git repository at:
>>
>>   git@github.com:alistair23/qemu.git tags/pull-riscv-pull-20180627
>>
>> for you to fetch changes up to e5f5e16b67dc8a342f937bc00ebb2a6475e35050:
>>
>>   hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device (2018-06-27 10:35:19 -0700)
>>
> 
> Something strange is up with the key used to sign this:
> 
> $ gpg --recv-keys 7048B74B4C1B39E4
> gpg: requesting key 0x7048B74B4C1B39E4 from hkp server keys.gnupg.net
> gpg: key 0xE48E3BC2C123ED93: no valid user IDs
> gpg: this may be caused by a missing self-signature
> gpg: Total number processed: 1
> gpg:           w/o user IDs: 1

It seems the SKS keyserver pool is having some problem:
https://sks-keyservers.net/status/

$ host keys.gnupg.net
keys.gnupg.net is an alias for hkps.pool.sks-keyservers.net.
...
hkps.pool.sks-keyservers.net has address 18.191.65.131
hkps.pool.sks-keyservers.net has address 37.191.226.104
...

Except these 2 IP, all other failed via hkp or http (as of tod:

The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

Also:

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /pks/lookup.
Reason: Error reading from remote server

$ gpg --keyserver hkp://18.191.65.131 --recv-keys 7048B74B4C1B39E4
gpg: key E48E3BC2C123ED93: public key "Alistair Francis
<alistair@alistair23.me>" imported
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   4  signed:   3  trust: 0-, 0q, 0n, 0m, 0f, 4u
gpg: depth: 1  valid:   3  signed:  18  trust: 0-, 0q, 0n, 0m, 3f, 0u
gpg: depth: 2  valid:  16  signed:   6  trust: 10-, 6q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2018-09-03
gpg: Total number processed: 1

$ git tag -v pull-riscv-pull-20180627
object e5f5e16b67dc8a342f937bc00ebb2a6475e35050
type commit
tag pull-riscv-pull-20180627
tagger Alistair Francis <alistair.francis@wdc.com> 1530121274 -0700
gpg: Signature made Wed 27 Jun 2018 02:41:26 PM -03
gpg:                using RSA key 100E2F7FE47ABA5024FF1B5B7048B74B4C1B39E4
gpg: Good signature from "Alistair Francis <alistair@alistair23.me>"
gpg:                 aka "Alistair Francis <alistair23@gmail.com>"
Primary key fingerprint: 29E0 5927 63B1 DA8C 8399  75FE E48E 3BC2 C123 ED93
     Subkey fingerprint: 100E 2F7F E47A BA50 24FF  1B5B 7048 B74B 4C1B 39E4
Peter Maydell June 29, 2018, 9:41 a.m. UTC | #3
On 28 June 2018 at 22:35, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> On 06/28/2018 01:52 PM, Peter Maydell wrote:
>> On 27 June 2018 at 18:44, Alistair Francis <alistair.francis@wdc.com> wrote:
>>> The following changes since commit 00928a421d47f49691cace1207481b7aad31b1f1:
>>>
>>>   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180626' into staging (2018-06-26 18:23:49 +0100)
>>>
>>> are available in the Git repository at:
>>>
>>>   git@github.com:alistair23/qemu.git tags/pull-riscv-pull-20180627
>>>
>>> for you to fetch changes up to e5f5e16b67dc8a342f937bc00ebb2a6475e35050:
>>>
>>>   hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device (2018-06-27 10:35:19 -0700)
>>>
>>
>> Something strange is up with the key used to sign this:
>>
>> $ gpg --recv-keys 7048B74B4C1B39E4
>> gpg: requesting key 0x7048B74B4C1B39E4 from hkp server keys.gnupg.net
>> gpg: key 0xE48E3BC2C123ED93: no valid user IDs
>> gpg: this may be caused by a missing self-signature
>> gpg: Total number processed: 1
>> gpg:           w/o user IDs: 1
>
> It seems the SKS keyserver pool is having some problem:
> https://sks-keyservers.net/status/

> The server is temporarily unable to service your request due to
> maintenance downtime or capacity problems. Please try again later.

Hmm, there does seem to be something up with the pool. On
the other hand:

> $ gpg --keyserver hkp://18.191.65.131 --recv-keys 7048B74B4C1B39E4

This command with this specific server doesn't work for me
(fails the same way with the "no valid user IDs" message),
and using keyserver.ubuntu.com (which seems otherwise fine)
also fails that way...

thanks
-- PMM
Alistair Francis June 29, 2018, 2:13 p.m. UTC | #4
On Fri, Jun 29, 2018 at 2:41 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 28 June 2018 at 22:35, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>> On 06/28/2018 01:52 PM, Peter Maydell wrote:
>>> On 27 June 2018 at 18:44, Alistair Francis <alistair.francis@wdc.com> wrote:
>>>> The following changes since commit 00928a421d47f49691cace1207481b7aad31b1f1:
>>>>
>>>>   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180626' into staging (2018-06-26 18:23:49 +0100)
>>>>
>>>> are available in the Git repository at:
>>>>
>>>>   git@github.com:alistair23/qemu.git tags/pull-riscv-pull-20180627
>>>>
>>>> for you to fetch changes up to e5f5e16b67dc8a342f937bc00ebb2a6475e35050:
>>>>
>>>>   hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device (2018-06-27 10:35:19 -0700)
>>>>
>>>
>>> Something strange is up with the key used to sign this:
>>>
>>> $ gpg --recv-keys 7048B74B4C1B39E4
>>> gpg: requesting key 0x7048B74B4C1B39E4 from hkp server keys.gnupg.net
>>> gpg: key 0xE48E3BC2C123ED93: no valid user IDs
>>> gpg: this may be caused by a missing self-signature
>>> gpg: Total number processed: 1
>>> gpg:           w/o user IDs: 1
>>
>> It seems the SKS keyserver pool is having some problem:
>> https://sks-keyservers.net/status/
>
>> The server is temporarily unable to service your request due to
>> maintenance downtime or capacity problems. Please try again later.
>
> Hmm, there does seem to be something up with the pool. On
> the other hand:
>
>> $ gpg --keyserver hkp://18.191.65.131 --recv-keys 7048B74B4C1B39E4
>
> This command with this specific server doesn't work for me
> (fails the same way with the "no valid user IDs" message),
> and using keyserver.ubuntu.com (which seems otherwise fine)
> also fails that way...

I'm not sure what else to do. I have submitted it to all of those key
servers through GPG and through the web interface. I never see an
error, but it doesn't show up under the web search.

Can you import it manually? The armour export is below:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mJMEWjNEzBMFK4EEACMEIwQAqL2RYVgUJ4UWEJbRAONWJmYGDBfl659Y5FRWfjYu
fBMZrj9DQarDC/P+QLOrBuwTmrBxXfg+/erVQKwYWDdnJG8AJ2m8Rli3wpYrxl/i
XqvEfKJmh6a1ZUiBZ7Ldnr0eNGzhVUWSyrAU+ImGSOutHUS8ytH3ZOeDOz2lj2kA
j6XYC+W0KUFsaXN0YWlyIEZyYW5jaXMgPGFsaX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QK5cC6FO6CQdh7HhMJMLvT7QLerZ5FQnCfh1OG6wsMgQJbVYdr7La3tap4vNkhe6
jIPDko/ps0k6AhK8mYnP5bXumpzLHAzs3xYYHYmQ3GWDSQxX0ajbgAOSdLJF8vNM
NZBzm3AjPokX2/r0L8bMRSJ5a2QGXuy2ThrimLeojbYlTw6zajyFSLhHwkmiUCIh
uqRxe9UjLeVTq4Ejmm4NwvTA6cwRnpyndv05rkM5sDyNd9b4K5Y3eSZ2Yk8FBPPA
pWhPa0Oq8vjOu4oqacOBgY5cwvTCpNwMKYBFOmYhrZ8b6swk0fa/xK/C9zXvF69r
O+EmfRjJr6mk9nO5ABEBAAGIuwQYEwoAIBYhBCngWSdjsdqMg5l1/uSOO8LBI+2T
BQJaM0XsAhsgAAoJEOSOO8LBI+2TanQCCKi9gcTCpHtgtJOimUuTsthuH/K7f/M2
ZFeNgIm0k6HfKjgDCZMbK6evpuLuTrdeekyT1W0MLJIWmh0j3eJz31kZAgkBDOBs
Ezo6jhKug5aPbQ71GAy8tcKK783Ye2Ei0UCgTXGNdNZoPiYdhO7IX/QmNdMCtQ9R
zafpeVkcoSpABQrI2UQ=
=xMq1
-----END PGP PUBLIC KEY BLOCK-----

Alistair

>
> thanks
> -- PMM
Peter Maydell June 29, 2018, 2:21 p.m. UTC | #5
On 29 June 2018 at 15:13, Alistair Francis <alistair23@gmail.com> wrote:
> Can you import it manually? The armour export is below:

Aha. I tried that, which didn't work either, which prompted
me to try --verbose, which says:

e104462:xenial:qemu-for-merges$ gpg --verbose --import /tmp/alistair.gpg
gpg: armour header: Version: GnuPG v2
gpg: can't handle public key algorithm 19
gpg: pub     0E/0xE48E3BC2C123ED93 2017-12-15  Alistair Francis
<alistair@alistair23.me>
gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
ID "Alistair Francis <alistair@alistair23.me>"
gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
ID "Alistair Francis <alistair23@gmail.com>"
gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
<alistair@alistair23.me>"
gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
<alistair23@gmail.com>"
gpg: key 0xE48E3BC2C123ED93: skipped subkey
gpg: key 0xE48E3BC2C123ED93: skipped subkey
gpg: key 0xE48E3BC2C123ED93: skipped subkey
gpg: key 0xE48E3BC2C123ED93: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: Total number processed: 1
gpg:           w/o user IDs: 1

So the problem is that your key is using some algorithm
that's too newfangled for my gpg to cope with...

thanks
-- PMM
Alistair Francis June 29, 2018, 2:27 p.m. UTC | #6
On Fri, Jun 29, 2018 at 7:21 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 29 June 2018 at 15:13, Alistair Francis <alistair23@gmail.com> wrote:
>> Can you import it manually? The armour export is below:
>
> Aha. I tried that, which didn't work either, which prompted
> me to try --verbose, which says:
>
> e104462:xenial:qemu-for-merges$ gpg --verbose --import /tmp/alistair.gpg
> gpg: armour header: Version: GnuPG v2
> gpg: can't handle public key algorithm 19
> gpg: pub     0E/0xE48E3BC2C123ED93 2017-12-15  Alistair Francis
> <alistair@alistair23.me>
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
> ID "Alistair Francis <alistair@alistair23.me>"
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
> ID "Alistair Francis <alistair23@gmail.com>"
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
> <alistair@alistair23.me>"
> gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
> <alistair23@gmail.com>"
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: no valid user IDs
> gpg: this may be caused by a missing self-signature
> gpg: Total number processed: 1
> gpg:           w/o user IDs: 1
>
> So the problem is that your key is using some algorithm
> that's too newfangled for my gpg to cope with...

Hmm... I do use gpg2, but it's just an RSA2048 key.

Is it possible to update your GPG?

Otherwise I can try generating a new key just for QEMU PRs.

Alistair

>
> thanks
> -- PMM
Philippe Mathieu-Daudé June 29, 2018, 2:31 p.m. UTC | #7
On 06/29/2018 11:21 AM, Peter Maydell wrote:
> On 29 June 2018 at 15:13, Alistair Francis <alistair23@gmail.com> wrote:
>> Can you import it manually? The armour export is below:
> 
> Aha. I tried that, which didn't work either, which prompted
> me to try --verbose, which says:
> 
> e104462:xenial:qemu-for-merges$ gpg --verbose --import /tmp/alistair.gpg
> gpg: armour header: Version: GnuPG v2
> gpg: can't handle public key algorithm 19
> gpg: pub     0E/0xE48E3BC2C123ED93 2017-12-15  Alistair Francis
> <alistair@alistair23.me>
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
> ID "Alistair Francis <alistair@alistair23.me>"
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm on user
> ID "Alistair Francis <alistair23@gmail.com>"
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: unsupported public key algorithm
> gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
> <alistair@alistair23.me>"
> gpg: key 0xE48E3BC2C123ED93: skipped user ID "Alistair Francis
> <alistair23@gmail.com>"
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: skipped subkey
> gpg: key 0xE48E3BC2C123ED93: no valid user IDs
> gpg: this may be caused by a missing self-signature
> gpg: Total number processed: 1
> gpg:           w/o user IDs: 1
> 
> So the problem is that your key is using some algorithm
> that's too newfangled for my gpg to cope with...

Oh indeed, this is a ECDH NISTP-521 public key!
Daniel P. Berrangé June 29, 2018, 2:49 p.m. UTC | #8
On Fri, Jun 29, 2018 at 03:21:08PM +0100, Peter Maydell wrote:
> On 29 June 2018 at 15:13, Alistair Francis <alistair23@gmail.com> wrote:
> > Can you import it manually? The armour export is below:
> 
> Aha. I tried that, which didn't work either, which prompted
> me to try --verbose, which says:
> 
> e104462:xenial:qemu-for-merges$ gpg --verbose --import /tmp/alistair.gpg
> gpg: armour header: Version: GnuPG v2
> gpg: can't handle public key algorithm 19


This is an ECC algorithm, and only supported by gpg2 tool not gpg AFAICT.


Regards,
Daniel
Peter Maydell June 29, 2018, 2:49 p.m. UTC | #9
On 29 June 2018 at 15:27, Alistair Francis <alistair23@gmail.com> wrote:
> On Fri, Jun 29, 2018 at 7:21 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
>> So the problem is that your key is using some algorithm
>> that's too newfangled for my gpg to cope with...
>
> Hmm... I do use gpg2, but it's just an RSA2048 key.

Philippe says it's ECDH NISTP-521...

> Is it possible to update your GPG?

I don't believe any gpg(1) supports that algorithm.
I'm not really keen on moving to gpg2 because I hear bad
things about it...

thanks
-- PMM
Alistair Francis June 29, 2018, 2:52 p.m. UTC | #10
On Fri, Jun 29, 2018 at 7:49 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 29 June 2018 at 15:27, Alistair Francis <alistair23@gmail.com> wrote:
>> On Fri, Jun 29, 2018 at 7:21 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
>>> So the problem is that your key is using some algorithm
>>> that's too newfangled for my gpg to cope with...
>>
>> Hmm... I do use gpg2, but it's just an RSA2048 key.
>
> Philippe says it's ECDH NISTP-521...
>
>> Is it possible to update your GPG?
>
> I don't believe any gpg(1) supports that algorithm.
> I'm not really keen on moving to gpg2 because I hear bad
> things about it...

Ok, I'll generate a new non-ECC key today and send a new PR.

Alistair

>
> thanks
> -- PMM