[PATCH v3 2/2] ddekit: Use libirqhelp for interrupt registration

2022-09-24 Thread Damien Zammit
Using libirqhelp and recompiling netdde with new libddekit, I was able to boot and transfer a 2470MB file at an average of 2.3MB/s over scp with no visible warnings on console with matching md5sums on each end. --- libddekit/Makefile| 2 +- libddekit/interrupt.c | 231 --

[PATCH v3 0/2]: libirqhelp + libddekit

2022-09-24 Thread Damien Zammit
Hi, RE: libirqhelp Since the internal irq demuxer for the mach_msg_server has no opaque pointer passed in, there is no way to expose the demuxer function in a sane way. Thus, I have embedded it in a wrapper with a struct irqhelp* passed in, and provided hooks for the caller to override if it ne

[PATCH v3 1/2] libirqhelp: user interrupt handler helper library

2022-09-24 Thread Damien Zammit
This provides a new helper lib for registering interrupt handlers in userspace, libirqhelp. libirqhelp does not depend on libpciaccess. ( -1, bus, dev, fun, ...): will look up gsi from ACPI (gsi, -1, -1, -1, ...): will use given gsi --- Makefile | 1 + libirqhelp/Makefile | 2

Re: [PATCH] Fix when enabling APIC without SMP

2022-09-24 Thread Almudena Garcia
Ok, I understand. I agree with split apic_init and smp init. But I prefer that the apic init calls be in a separated function, instead directly in machine_init() El sáb, 24 sept 2022 a las 20:14, Etienne Brateau (< etienne.brat...@gmail.com>) escribió: > APIC is also useful for MSI/MSI-X (for PCI

Re: [PATCH] Fix when enabling APIC without SMP

2022-09-24 Thread Etienne Brateau
APIC is also useful for MSI/MSI-X (for PCI). So you might want to have APIC without SMP. Le sam. 24 sept. 2022 à 19:39, Almudena Garcia a écrit : > At first question: why do you want to enable APIC without SMP. > In my known, APIC is only useful when there are multiple processors. Even > IOAPIC

Re: [PATCH] Fix when enabling APIC without SMP

2022-09-24 Thread Almudena Garcia
At first question: why do you want to enable APIC without SMP. In my known, APIC is only useful when there are multiple processors. Even IOAPIC has the purpose of distribute IO inputs to multiple processors. +++ b/i386/i386at/model_dep.c @@ -66,6 +66,7 @@ #include #include #include +#include

[PATCH] Fix when enabling APIC without SMP

2022-09-24 Thread Etienne Brateau
When we want to enable APIC, we must initialize the structure or otherwise, it will try to access to a not initialized memory addresses. --- i386/i386/smp.c | 10 ++ i386/i386at/model_dep.c | 10 -- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/i386/i386/