trivial patches for 2023-10-21
-----BEGIN PGP SIGNATURE----- iQFDBAABCAAtFiEEe3O61ovnosKJMUsicBtPaxppPlkFAmUzviQPHG1qdEB0bHMu bXNrLnJ1AAoJEHAbT2saaT5ZasYH/2ex+XBdvMGU9wghGXAqPCy6NEwzSQaaPkai xuoly0Z3vahOgJK05lXH2bQmGPP1DG8la4fv8owysteIjSncBiq8Nk9+pHylgJJj 7eZ6BPZu+xoJRTGrBhQC5F6cCAi2YQlgGwfH+bDB4YJPm2BdYbfMuw7Wm88gVDEh nqbU6mtV1wGaDQJtHlpJNSACxWeN6Buq5Jcj27rpeCWAGlqeJBh8qEbPgN8nDnSm mBb3DMAWtKAZPjQLnri1MRyyXnfBavBPmeTYHz4nQQHYmeHaGw4Cez5EswnZRlau zyMMKwYK9eo7f5mFeTr3+I6XMbiIfuICGhFwLXnNqqlgB79R9w0= =/gNQ -----END PGP SIGNATURE----- Merge tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu into staging trivial patches for 2023-10-21 # -----BEGIN PGP SIGNATURE----- # # iQFDBAABCAAtFiEEe3O61ovnosKJMUsicBtPaxppPlkFAmUzviQPHG1qdEB0bHMu # bXNrLnJ1AAoJEHAbT2saaT5ZasYH/2ex+XBdvMGU9wghGXAqPCy6NEwzSQaaPkai # xuoly0Z3vahOgJK05lXH2bQmGPP1DG8la4fv8owysteIjSncBiq8Nk9+pHylgJJj # 7eZ6BPZu+xoJRTGrBhQC5F6cCAi2YQlgGwfH+bDB4YJPm2BdYbfMuw7Wm88gVDEh # nqbU6mtV1wGaDQJtHlpJNSACxWeN6Buq5Jcj27rpeCWAGlqeJBh8qEbPgN8nDnSm # mBb3DMAWtKAZPjQLnri1MRyyXnfBavBPmeTYHz4nQQHYmeHaGw4Cez5EswnZRlau # zyMMKwYK9eo7f5mFeTr3+I6XMbiIfuICGhFwLXnNqqlgB79R9w0= # =/gNQ # -----END PGP SIGNATURE----- # gpg: Signature made Sat 21 Oct 2023 05:03:48 PDT # gpg: using RSA key 7B73BAD68BE7A2C289314B22701B4F6B1A693E59 # gpg: issuer "mjt@tls.msk.ru" # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>" [full] # gpg: aka "Michael Tokarev <mjt@corpit.ru>" [full] # gpg: aka "Michael Tokarev <mjt@debian.org>" [full] # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D 4324 457C E0A0 8044 65C5 # Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931 4B22 701B 4F6B 1A69 3E59 * tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu: MAINTAINERS: Add the ompic.c file to the or1k-sim section MAINTAINERS: Fix typo in openpic_kvm.c entry MAINTAINERS: Add unvalued folders in tests/tcg/ to the right sections MAINTAINERS: Add PPC common files to PowerPC TCG CPUs MAINTAINERS: Add fw_cfg.c to PPC mac99 machine MAINTAINERS: Adjust file list for PPC pseries machine MAINTAINERS: Adjust file list for PPC e500 machines MAINTAINERS: Adjust file list for PPC 4xx CPUs MAINTAINERS: Adjust file list for PPC ref405ep machine ppc/{bamboo, virtex_ml507}: Remove useless dependency on ppc405.h header MAINTAINERS: Fix a couple s390 paths MAINTAINERS: Add docs/devel/ebpf_rss.rst to the EBPF section MAINTAINERS: Add include/hw/intc/i8259.h to the PC chip section MAINTAINERS: Add the nios2 interrupt controller to the nios2 section MAINTAINERS: Cover hw/ppc/ppc440_uc.c with Sam460ex board hw/ppc/ppc440_uc: Remove dead l2sram_update_mappings() hw/rdma/vmw/pvrdma_cmd: Use correct struct in query_port() Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
b093277edc
37
MAINTAINERS
37
MAINTAINERS
@ -245,6 +245,7 @@ M: Richard Henderson <richard.henderson@linaro.org>
|
||||
S: Maintained
|
||||
F: target/hppa/
|
||||
F: disas/hppa.c
|
||||
F: tests/tcg/hppa/
|
||||
|
||||
LoongArch TCG CPUs
|
||||
M: Song Gao <gaosong@loongson.cn>
|
||||
@ -258,6 +259,7 @@ M: Laurent Vivier <laurent@vivier.eu>
|
||||
S: Maintained
|
||||
F: target/m68k/
|
||||
F: disas/m68k.c
|
||||
F: tests/tcg/m68k/
|
||||
|
||||
MicroBlaze TCG CPUs
|
||||
M: Edgar E. Iglesias <edgar.iglesias@gmail.com>
|
||||
@ -284,7 +286,9 @@ R: Marek Vasut <marex@denx.de>
|
||||
S: Orphan
|
||||
F: target/nios2/
|
||||
F: hw/nios2/
|
||||
F: hw/intc/nios2_vic.c
|
||||
F: disas/nios2.c
|
||||
F: include/hw/intc/nios2_vic.h
|
||||
F: configs/devices/nios2-softmmu/default.mak
|
||||
F: tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh
|
||||
F: tests/tcg/nios2/
|
||||
@ -308,6 +312,12 @@ F: target/ppc/
|
||||
F: hw/ppc/ppc.c
|
||||
F: hw/ppc/ppc_booke.c
|
||||
F: include/hw/ppc/ppc.h
|
||||
F: hw/ppc/meson.build
|
||||
F: hw/ppc/trace*
|
||||
F: configs/devices/ppc*
|
||||
F: docs/system/ppc/embedded.rst
|
||||
F: docs/system/target-ppc.rst
|
||||
F: tests/tcg/ppc*/*
|
||||
|
||||
RISC-V TCG CPUs
|
||||
M: Palmer Dabbelt <palmer@dabbelt.com>
|
||||
@ -326,6 +336,7 @@ F: hw/intc/riscv*
|
||||
F: include/hw/riscv/
|
||||
F: linux-user/host/riscv32/
|
||||
F: linux-user/host/riscv64/
|
||||
F: tests/tcg/riscv64/
|
||||
|
||||
RISC-V XThead* extensions
|
||||
M: Christoph Muellner <christoph.muellner@vrull.eu>
|
||||
@ -367,6 +378,7 @@ F: target/sh4/
|
||||
F: hw/sh4/
|
||||
F: disas/sh4.c
|
||||
F: include/hw/sh4/
|
||||
F: tests/tcg/sh4/
|
||||
|
||||
SPARC TCG CPUs
|
||||
M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
|
||||
@ -377,6 +389,7 @@ F: hw/sparc/
|
||||
F: hw/sparc64/
|
||||
F: include/hw/sparc/sparc64.h
|
||||
F: disas/sparc.c
|
||||
F: tests/tcg/sparc64/
|
||||
|
||||
X86 TCG CPUs
|
||||
M: Paolo Bonzini <pbonzini@redhat.com>
|
||||
@ -1358,6 +1371,7 @@ or1k-sim
|
||||
M: Jia Liu <proljc@gmail.com>
|
||||
S: Maintained
|
||||
F: docs/system/openrisc/or1k-sim.rst
|
||||
F: hw/intc/ompic.c
|
||||
F: hw/openrisc/openrisc_sim.c
|
||||
|
||||
PowerPC Machines
|
||||
@ -1365,7 +1379,8 @@ PowerPC Machines
|
||||
405 (ref405ep)
|
||||
L: qemu-ppc@nongnu.org
|
||||
S: Orphan
|
||||
F: hw/ppc/ppc405_boards.c
|
||||
F: hw/ppc/ppc405*
|
||||
F: tests/avocado/ppc_405.py
|
||||
|
||||
Bamboo
|
||||
L: qemu-ppc@nongnu.org
|
||||
@ -1377,6 +1392,7 @@ e500
|
||||
L: qemu-ppc@nongnu.org
|
||||
S: Orphan
|
||||
F: hw/ppc/e500*
|
||||
F: hw/ppc/ppce500_spin.c
|
||||
F: hw/gpio/mpc8xxx.c
|
||||
F: hw/i2c/mpc_i2c.c
|
||||
F: hw/net/fsl_etsec/
|
||||
@ -1384,8 +1400,9 @@ F: hw/pci-host/ppce500.c
|
||||
F: include/hw/ppc/ppc_e500.h
|
||||
F: include/hw/pci-host/ppce500.h
|
||||
F: pc-bios/u-boot.e500
|
||||
F: hw/intc/openpic_kvm.h
|
||||
F: hw/intc/openpic_kvm.c
|
||||
F: include/hw/ppc/openpic_kvm.h
|
||||
F: docs/system/ppc/ppce500.rst
|
||||
|
||||
mpc8544ds
|
||||
L: qemu-ppc@nongnu.org
|
||||
@ -1405,6 +1422,7 @@ F: hw/pci-bridge/dec.[hc]
|
||||
F: hw/misc/macio/
|
||||
F: hw/misc/mos6522.c
|
||||
F: hw/nvram/mac_nvram.c
|
||||
F: hw/ppc/fw_cfg.c
|
||||
F: hw/input/adb*
|
||||
F: include/hw/misc/macio/
|
||||
F: include/hw/misc/mos6522.h
|
||||
@ -1458,6 +1476,10 @@ F: hw/*/spapr*
|
||||
F: include/hw/*/spapr*
|
||||
F: hw/*/xics*
|
||||
F: include/hw/*/xics*
|
||||
F: include/hw/ppc/fdt.h
|
||||
F: hw/ppc/fdt.c
|
||||
F: include/hw/ppc/pef.h
|
||||
F: hw/ppc/pef.c
|
||||
F: pc-bios/slof.bin
|
||||
F: docs/system/ppc/pseries.rst
|
||||
F: docs/specs/ppc-spapr-*
|
||||
@ -1495,6 +1517,7 @@ M: BALATON Zoltan <balaton@eik.bme.hu>
|
||||
L: qemu-ppc@nongnu.org
|
||||
S: Maintained
|
||||
F: hw/ppc/sam460ex.c
|
||||
F: hw/ppc/ppc440_uc.c
|
||||
F: hw/ppc/ppc440_pcix.c
|
||||
F: hw/display/sm501*
|
||||
F: hw/ide/sii3112.c
|
||||
@ -1778,6 +1801,7 @@ F: include/hw/dma/i8257.h
|
||||
F: include/hw/i2c/pm_smbus.h
|
||||
F: include/hw/input/i8042.h
|
||||
F: include/hw/intc/ioapic*
|
||||
F: include/hw/intc/i8259.h
|
||||
F: include/hw/isa/i8259_internal.h
|
||||
F: include/hw/isa/superio.h
|
||||
F: include/hw/timer/hpet.h
|
||||
@ -1993,7 +2017,9 @@ F: docs/specs/acpi_hest_ghes.rst
|
||||
ppc4xx
|
||||
L: qemu-ppc@nongnu.org
|
||||
S: Orphan
|
||||
F: hw/ppc/ppc4*.c
|
||||
F: hw/ppc/ppc4xx*.c
|
||||
F: hw/ppc/ppc440_uc.c
|
||||
F: hw/ppc/ppc440.h
|
||||
F: hw/i2c/ppc4xx_i2c.c
|
||||
F: include/hw/ppc/ppc4xx.h
|
||||
F: include/hw/i2c/ppc4xx_i2c.h
|
||||
@ -2598,7 +2624,7 @@ M: Halil Pasic <pasic@linux.ibm.com>
|
||||
M: Christian Borntraeger <borntraeger@linux.ibm.com>
|
||||
S: Supported
|
||||
F: hw/s390x/storage-keys.h
|
||||
F: hw/390x/s390-skeys*.c
|
||||
F: hw/s390x/s390-skeys*.c
|
||||
L: qemu-s390x@nongnu.org
|
||||
|
||||
S390 storage attribute device
|
||||
@ -2606,7 +2632,7 @@ M: Halil Pasic <pasic@linux.ibm.com>
|
||||
M: Christian Borntraeger <borntraeger@linux.ibm.com>
|
||||
S: Supported
|
||||
F: hw/s390x/storage-attributes.h
|
||||
F: hw/s390/s390-stattrib*.c
|
||||
F: hw/s390x/s390-stattrib*.c
|
||||
L: qemu-s390x@nongnu.org
|
||||
|
||||
S390 floating interrupt controller
|
||||
@ -3936,6 +3962,7 @@ M: Jason Wang <jasowang@redhat.com>
|
||||
R: Andrew Melnychenko <andrew@daynix.com>
|
||||
R: Yuri Benditovich <yuri.benditovich@daynix.com>
|
||||
S: Maintained
|
||||
F: docs/devel/ebpf_rss.rst
|
||||
F: ebpf/*
|
||||
F: tools/ebpf/*
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "elf.h"
|
||||
#include "hw/char/serial.h"
|
||||
#include "hw/ppc/ppc.h"
|
||||
#include "ppc405.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysemu/reset.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
@ -73,46 +73,6 @@ typedef struct ppc4xx_l2sram_t {
|
||||
uint32_t isram0[11];
|
||||
} ppc4xx_l2sram_t;
|
||||
|
||||
#ifdef MAP_L2SRAM
|
||||
static void l2sram_update_mappings(ppc4xx_l2sram_t *l2sram,
|
||||
uint32_t isarc, uint32_t isacntl,
|
||||
uint32_t dsarc, uint32_t dsacntl)
|
||||
{
|
||||
if (l2sram->isarc != isarc ||
|
||||
(l2sram->isacntl & 0x80000000) != (isacntl & 0x80000000)) {
|
||||
if (l2sram->isacntl & 0x80000000) {
|
||||
/* Unmap previously assigned memory region */
|
||||
memory_region_del_subregion(get_system_memory(),
|
||||
&l2sram->isarc_ram);
|
||||
}
|
||||
if (isacntl & 0x80000000) {
|
||||
/* Map new instruction memory region */
|
||||
memory_region_add_subregion(get_system_memory(), isarc,
|
||||
&l2sram->isarc_ram);
|
||||
}
|
||||
}
|
||||
if (l2sram->dsarc != dsarc ||
|
||||
(l2sram->dsacntl & 0x80000000) != (dsacntl & 0x80000000)) {
|
||||
if (l2sram->dsacntl & 0x80000000) {
|
||||
/* Beware not to unmap the region we just mapped */
|
||||
if (!(isacntl & 0x80000000) || l2sram->dsarc != isarc) {
|
||||
/* Unmap previously assigned memory region */
|
||||
memory_region_del_subregion(get_system_memory(),
|
||||
&l2sram->dsarc_ram);
|
||||
}
|
||||
}
|
||||
if (dsacntl & 0x80000000) {
|
||||
/* Beware not to remap the region we just mapped */
|
||||
if (!(isacntl & 0x80000000) || dsarc != isarc) {
|
||||
/* Map new data memory region */
|
||||
memory_region_add_subregion(get_system_memory(), dsarc,
|
||||
&l2sram->dsarc_ram);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static uint32_t dcr_read_l2sram(void *opaque, int dcrn)
|
||||
{
|
||||
ppc4xx_l2sram_t *l2sram = opaque;
|
||||
@ -193,7 +153,6 @@ static void dcr_write_l2sram(void *opaque, int dcrn, uint32_t val)
|
||||
/*l2sram->isram1[dcrn - DCR_L2CACHE_BASE] = val;*/
|
||||
break;
|
||||
}
|
||||
/*l2sram_update_mappings(l2sram, isarc, isacntl, dsarc, dsacntl);*/
|
||||
}
|
||||
|
||||
static void l2sram_reset(void *opaque)
|
||||
@ -203,7 +162,6 @@ static void l2sram_reset(void *opaque)
|
||||
memset(l2sram->l2cache, 0, sizeof(l2sram->l2cache));
|
||||
l2sram->l2cache[DCR_L2CACHE_STAT - DCR_L2CACHE_BASE] = 0x80000000;
|
||||
memset(l2sram->isram0, 0, sizeof(l2sram->isram0));
|
||||
/*l2sram_update_mappings(l2sram, isarc, isacntl, dsarc, dsacntl);*/
|
||||
}
|
||||
|
||||
void ppc4xx_l2sram_init(CPUPPCState *env)
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include "hw/ppc/ppc.h"
|
||||
#include "hw/ppc/ppc4xx.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "ppc405.h"
|
||||
|
||||
#include <libfdt.h>
|
||||
|
||||
|
@ -129,23 +129,27 @@ static int query_port(PVRDMADev *dev, union pvrdma_cmd_req *req,
|
||||
{
|
||||
struct pvrdma_cmd_query_port *cmd = &req->query_port;
|
||||
struct pvrdma_cmd_query_port_resp *resp = &rsp->query_port_resp;
|
||||
struct pvrdma_port_attr attrs = {};
|
||||
struct ibv_port_attr attrs = {};
|
||||
|
||||
if (cmd->port_num > MAX_PORTS) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (rdma_backend_query_port(&dev->backend_dev,
|
||||
(struct ibv_port_attr *)&attrs)) {
|
||||
if (rdma_backend_query_port(&dev->backend_dev, &attrs)) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
memset(resp, 0, sizeof(*resp));
|
||||
|
||||
resp->attrs.state = dev->func0->device_active ? attrs.state :
|
||||
PVRDMA_PORT_DOWN;
|
||||
resp->attrs.max_mtu = attrs.max_mtu;
|
||||
resp->attrs.active_mtu = attrs.active_mtu;
|
||||
/*
|
||||
* The state, max_mtu and active_mtu fields are enums; the values
|
||||
* for pvrdma_port_state and pvrdma_mtu match those for
|
||||
* ibv_port_state and ibv_mtu, so we can cast them safely.
|
||||
*/
|
||||
resp->attrs.state = dev->func0->device_active ?
|
||||
(enum pvrdma_port_state)attrs.state : PVRDMA_PORT_DOWN;
|
||||
resp->attrs.max_mtu = (enum pvrdma_mtu)attrs.max_mtu;
|
||||
resp->attrs.active_mtu = (enum pvrdma_mtu)attrs.active_mtu;
|
||||
resp->attrs.phys_state = attrs.phys_state;
|
||||
resp->attrs.gid_tbl_len = MIN(MAX_PORT_GIDS, attrs.gid_tbl_len);
|
||||
resp->attrs.max_msg_sz = 1024;
|
||||
|
Loading…
Reference in New Issue
Block a user