[PATCH v4 00/18] Reconstruct loongson ipi driver

Philippe Mathieu-Daudé posted 18 patches 1 month, 3 weeks ago
There is a newer version of this series
MAINTAINERS                           |   6 +-
include/hw/intc/loongarch_ipi.h       |  25 ++
include/hw/intc/loongson_ipi.h        |  50 +---
include/hw/intc/loongson_ipi_common.h |  72 ++++++
include/hw/loongarch/virt.h           |   1 -
hw/intc/loongarch_ipi.c               |  68 +++++
hw/intc/loongson_ipi.c                | 355 +++-----------------------
hw/intc/loongson_ipi_common.c         | 344 +++++++++++++++++++++++++
hw/loongarch/virt.c                   |   4 +-
hw/intc/Kconfig                       |   8 +
hw/intc/meson.build                   |   2 +
hw/loongarch/Kconfig                  |   2 +-
12 files changed, 568 insertions(+), 369 deletions(-)
create mode 100644 include/hw/intc/loongarch_ipi.h
create mode 100644 include/hw/intc/loongson_ipi_common.h
create mode 100644 hw/intc/loongarch_ipi.c
create mode 100644 hw/intc/loongson_ipi_common.c
[PATCH v4 00/18] Reconstruct loongson ipi driver
Posted by Philippe Mathieu-Daudé 1 month, 3 weeks ago
Since v3:
- Use DEFINE_TYPES() macro (unreviewed patch #1)
- Update MAINTAINERS
- Added Bibo's tags

Song, since Bibo reviewed/tested, if you provide your
Acked-by I can queue that to my next hw-misc PR (pending
Jiaxun testing).

Thanks,

Phil.

Bibo Mao (16):
  hw/intc/loongson_ipi: Access memory in little endian
  hw/intc/loongson_ipi: Rename LoongsonIPI -> LoongsonIPIState
  hw/intc/loongson_ipi: Extract loongson_ipi_common_finalize()
  hw/intc/loongson_ipi: Extract loongson_ipi_common_realize()
  hw/intc/loongson_ipi: Add TYPE_LOONGSON_IPI_COMMON stub
  hw/intc/loongson_ipi: Move common definitions to loongson_ipi_common.h
  hw/intc/loongson_ipi: Move IPICore::mmio_mem to LoongsonIPIState
  hw/intc/loongson_ipi: Move IPICore structure to loongson_ipi_common.h
  hw/intc/loongson_ipi: Pass LoongsonIPICommonState to send_ipi_data()
  hw/intc/loongson_ipi: Add LoongsonIPICommonClass::get_iocsr_as handler
  hw/intc/loongson_ipi: Add LoongsonIPICommonClass::cpu_by_arch_id
    handler
  hw/intc/loongson_ipi: Expose loongson_ipi_core_read/write helpers
  hw/intc/loongson_ipi: Move common code to loongson_ipi_common.c
  hw/intc/loongarch_ipi: Add loongarch IPI support
  hw/loongarch/virt: Replace loongson IPI with loongarch IPI
  hw/intc/loongson_ipi: Restrict to MIPS

Philippe Mathieu-Daudé (2):
  hw/intc/loongson_ipi: Declare QOM types using DEFINE_TYPES() macro
  hw/intc/loongson_ipi: Remove unused headers

 MAINTAINERS                           |   6 +-
 include/hw/intc/loongarch_ipi.h       |  25 ++
 include/hw/intc/loongson_ipi.h        |  50 +---
 include/hw/intc/loongson_ipi_common.h |  72 ++++++
 include/hw/loongarch/virt.h           |   1 -
 hw/intc/loongarch_ipi.c               |  68 +++++
 hw/intc/loongson_ipi.c                | 355 +++-----------------------
 hw/intc/loongson_ipi_common.c         | 344 +++++++++++++++++++++++++
 hw/loongarch/virt.c                   |   4 +-
 hw/intc/Kconfig                       |   8 +
 hw/intc/meson.build                   |   2 +
 hw/loongarch/Kconfig                  |   2 +-
 12 files changed, 568 insertions(+), 369 deletions(-)
 create mode 100644 include/hw/intc/loongarch_ipi.h
 create mode 100644 include/hw/intc/loongson_ipi_common.h
 create mode 100644 hw/intc/loongarch_ipi.c
 create mode 100644 hw/intc/loongson_ipi_common.c

-- 
2.41.0


Re: [PATCH v4 00/18] Reconstruct loongson ipi driver
Posted by gaosong 1 month, 3 weeks ago
在 2024/7/18 下午4:38, Philippe Mathieu-Daudé 写道:
> Since v3:
> - Use DEFINE_TYPES() macro (unreviewed patch #1)
> - Update MAINTAINERS
> - Added Bibo's tags
>
> Song, since Bibo reviewed/tested, if you provide your
> Acked-by I can queue that to my next hw-misc PR (pending
> Jiaxun testing).
>
> Thanks,
>
> Phil.
>
> Bibo Mao (16):
>    hw/intc/loongson_ipi: Access memory in little endian
>    hw/intc/loongson_ipi: Rename LoongsonIPI -> LoongsonIPIState
>    hw/intc/loongson_ipi: Extract loongson_ipi_common_finalize()
>    hw/intc/loongson_ipi: Extract loongson_ipi_common_realize()
>    hw/intc/loongson_ipi: Add TYPE_LOONGSON_IPI_COMMON stub
>    hw/intc/loongson_ipi: Move common definitions to loongson_ipi_common.h
>    hw/intc/loongson_ipi: Move IPICore::mmio_mem to LoongsonIPIState
>    hw/intc/loongson_ipi: Move IPICore structure to loongson_ipi_common.h
>    hw/intc/loongson_ipi: Pass LoongsonIPICommonState to send_ipi_data()
>    hw/intc/loongson_ipi: Add LoongsonIPICommonClass::get_iocsr_as handler
>    hw/intc/loongson_ipi: Add LoongsonIPICommonClass::cpu_by_arch_id
>      handler
>    hw/intc/loongson_ipi: Expose loongson_ipi_core_read/write helpers
>    hw/intc/loongson_ipi: Move common code to loongson_ipi_common.c
>    hw/intc/loongarch_ipi: Add loongarch IPI support
>    hw/loongarch/virt: Replace loongson IPI with loongarch IPI
>    hw/intc/loongson_ipi: Restrict to MIPS
>
> Philippe Mathieu-Daudé (2):
>    hw/intc/loongson_ipi: Declare QOM types using DEFINE_TYPES() macro
>    hw/intc/loongson_ipi: Remove unused headers
>
>   MAINTAINERS                           |   6 +-
>   include/hw/intc/loongarch_ipi.h       |  25 ++
>   include/hw/intc/loongson_ipi.h        |  50 +---
>   include/hw/intc/loongson_ipi_common.h |  72 ++++++
>   include/hw/loongarch/virt.h           |   1 -
>   hw/intc/loongarch_ipi.c               |  68 +++++
>   hw/intc/loongson_ipi.c                | 355 +++-----------------------
>   hw/intc/loongson_ipi_common.c         | 344 +++++++++++++++++++++++++
>   hw/loongarch/virt.c                   |   4 +-
>   hw/intc/Kconfig                       |   8 +
>   hw/intc/meson.build                   |   2 +
>   hw/loongarch/Kconfig                  |   2 +-
>   12 files changed, 568 insertions(+), 369 deletions(-)
>   create mode 100644 include/hw/intc/loongarch_ipi.h
>   create mode 100644 include/hw/intc/loongson_ipi_common.h
>   create mode 100644 hw/intc/loongarch_ipi.c
>   create mode 100644 hw/intc/loongson_ipi_common.c
>
A build error occurred with patch 15.

sed -i  g/Loongarch/LoongArch/g   *.c and *.h

For this series:
Acked-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao


Re: [PATCH v4 00/18] Reconstruct loongson ipi driver
Posted by Philippe Mathieu-Daudé 1 month, 3 weeks ago
On 18/7/24 12:00, gaosong wrote:
> 在 2024/7/18 下午4:38, Philippe Mathieu-Daudé 写道:
>> Since v3:
>> - Use DEFINE_TYPES() macro (unreviewed patch #1)
>> - Update MAINTAINERS
>> - Added Bibo's tags
>>
>> Song, since Bibo reviewed/tested, if you provide your
>> Acked-by I can queue that to my next hw-misc PR (pending
>> Jiaxun testing).
>>
>> Thanks,
>>
>> Phil.
>>
>> Bibo Mao (16):
>>    hw/intc/loongson_ipi: Access memory in little endian
>>    hw/intc/loongson_ipi: Rename LoongsonIPI -> LoongsonIPIState
>>    hw/intc/loongson_ipi: Extract loongson_ipi_common_finalize()
>>    hw/intc/loongson_ipi: Extract loongson_ipi_common_realize()
>>    hw/intc/loongson_ipi: Add TYPE_LOONGSON_IPI_COMMON stub
>>    hw/intc/loongson_ipi: Move common definitions to loongson_ipi_common.h
>>    hw/intc/loongson_ipi: Move IPICore::mmio_mem to LoongsonIPIState
>>    hw/intc/loongson_ipi: Move IPICore structure to loongson_ipi_common.h
>>    hw/intc/loongson_ipi: Pass LoongsonIPICommonState to send_ipi_data()
>>    hw/intc/loongson_ipi: Add LoongsonIPICommonClass::get_iocsr_as handler
>>    hw/intc/loongson_ipi: Add LoongsonIPICommonClass::cpu_by_arch_id
>>      handler
>>    hw/intc/loongson_ipi: Expose loongson_ipi_core_read/write helpers
>>    hw/intc/loongson_ipi: Move common code to loongson_ipi_common.c
>>    hw/intc/loongarch_ipi: Add loongarch IPI support
>>    hw/loongarch/virt: Replace loongson IPI with loongarch IPI
>>    hw/intc/loongson_ipi: Restrict to MIPS
>>
>> Philippe Mathieu-Daudé (2):
>>    hw/intc/loongson_ipi: Declare QOM types using DEFINE_TYPES() macro
>>    hw/intc/loongson_ipi: Remove unused headers
>>
>>   MAINTAINERS                           |   6 +-
>>   include/hw/intc/loongarch_ipi.h       |  25 ++
>>   include/hw/intc/loongson_ipi.h        |  50 +---
>>   include/hw/intc/loongson_ipi_common.h |  72 ++++++
>>   include/hw/loongarch/virt.h           |   1 -
>>   hw/intc/loongarch_ipi.c               |  68 +++++
>>   hw/intc/loongson_ipi.c                | 355 +++-----------------------
>>   hw/intc/loongson_ipi_common.c         | 344 +++++++++++++++++++++++++
>>   hw/loongarch/virt.c                   |   4 +-
>>   hw/intc/Kconfig                       |   8 +
>>   hw/intc/meson.build                   |   2 +
>>   hw/loongarch/Kconfig                  |   2 +-
>>   12 files changed, 568 insertions(+), 369 deletions(-)
>>   create mode 100644 include/hw/intc/loongarch_ipi.h
>>   create mode 100644 include/hw/intc/loongson_ipi_common.h
>>   create mode 100644 hw/intc/loongarch_ipi.c
>>   create mode 100644 hw/intc/loongson_ipi_common.c
>>
> A build error occurred with patch 15.

Oops, introduced when adding patch 1 :/ Will fix.

> sed -i  g/Loongarch/LoongArch/g   *.c and *.h

OK.

> For this series:
> Acked-by: Song Gao <gaosong@loongson.cn>

Thanks!