Skip to content
  • Bibo Mao's avatar
    2948c1fb
    hw/intc/loongarch_pch: fix edge triggered irq handling · 2948c1fb
    Bibo Mao authored
    
    
    For edge triggered irq, qemu_irq_pulse is used to inject irq. It will
    set irq with high level and low level soon to simluate pulse irq.
    
    For edge triggered irq, irq is injected and set as pending at rising
    level, do not clear irq at lowering level. LoongArch pch interrupt will
    clear irq for lowering level irq, there will be problem. ACPI ged deivce
    is edge-triggered irq, it is used for cpu/memory hotplug.
    
    This patch fixes memory hotplug issue on LoongArch virt machine.
    
    Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
    Reviewed-by: default avatarSong Gao <gaosong@loongson.cn>
    Message-Id: <20230707091557.1474790-1-maobibo@loongson.cn>
    Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
    2948c1fb
    hw/intc/loongarch_pch: fix edge triggered irq handling
    Bibo Mao authored
    
    
    For edge triggered irq, qemu_irq_pulse is used to inject irq. It will
    set irq with high level and low level soon to simluate pulse irq.
    
    For edge triggered irq, irq is injected and set as pending at rising
    level, do not clear irq at lowering level. LoongArch pch interrupt will
    clear irq for lowering level irq, there will be problem. ACPI ged deivce
    is edge-triggered irq, it is used for cpu/memory hotplug.
    
    This patch fixes memory hotplug issue on LoongArch virt machine.
    
    Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
    Reviewed-by: default avatarSong Gao <gaosong@loongson.cn>
    Message-Id: <20230707091557.1474790-1-maobibo@loongson.cn>
    Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
Loading