[PATCH v3 0/2] Fix IPI device emulation for LoongArch machine

Xiaojuan Yang posted 2 patches 1 year, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220705064901.2353349-1-yangxiaojuan@loongson.cn
Maintainers: Xiaojuan Yang <yangxiaojuan@loongson.cn>, Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_ipi.c         | 92 ++++++++++++++++++++++-----------
hw/loongarch/loongson3.c        |  5 +-
include/hw/intc/loongarch_ipi.h |  7 +--
3 files changed, 70 insertions(+), 34 deletions(-)
[PATCH v3 0/2] Fix IPI device emulation for LoongArch machine
Posted by Xiaojuan Yang 1 year, 10 months ago
Fix LoongArch IPI device emulation follwing Richard's advice based on v2 version:
1. Change ipi64_ops' valid.min_access_size to 8, as it only support 8 bytes writing.
2. Remove 'UL' prefix in send_ipi_data().
3. Add a condition to skip the method of geting write mask in send_ipi_data(), as the mask is 0 at most time.

Xiaojuan Yang (2):
  hw/intc/loongarch_ipi: Fix ipi device access of 64bits
  hw/intc/loongarch_ipi: Fix mail send and any send function

 hw/intc/loongarch_ipi.c         | 92 ++++++++++++++++++++++-----------
 hw/loongarch/loongson3.c        |  5 +-
 include/hw/intc/loongarch_ipi.h |  7 +--
 3 files changed, 70 insertions(+), 34 deletions(-)

-- 
2.31.1
Re: [PATCH v3 0/2] Fix IPI device emulation for LoongArch machine
Posted by Richard Henderson 1 year, 10 months ago
On 7/5/22 12:18, Xiaojuan Yang wrote:
> Fix LoongArch IPI device emulation follwing Richard's advice based on v2 version:
> 1. Change ipi64_ops' valid.min_access_size to 8, as it only support 8 bytes writing.
> 2. Remove 'UL' prefix in send_ipi_data().
> 3. Add a condition to skip the method of geting write mask in send_ipi_data(), as the mask is 0 at most time.
> 
> Xiaojuan Yang (2):
>    hw/intc/loongarch_ipi: Fix ipi device access of 64bits
>    hw/intc/loongarch_ipi: Fix mail send and any send function
> 
>   hw/intc/loongarch_ipi.c         | 92 ++++++++++++++++++++++-----------
>   hw/loongarch/loongson3.c        |  5 +-
>   include/hw/intc/loongarch_ipi.h |  7 +--
>   3 files changed, 70 insertions(+), 34 deletions(-)
> 

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Applied.


r~