[PATCH 1/4 gnumach] ioapic: Detect version of IOAPIC for correct EOI handling

2023-09-29 Thread Damien Zammit
--- i386/i386at/ioapic.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c index 218f9a51..57d18789 100644 --- a/i386/i386at/ioapic.c +++ b/i386/i386at/ioapic.c @@ -33,7 +33,7 @@ #include #include -static int has_i

[PATCH 2/4 gnumach] ioapic: Add simple locking for non-atomic accesses

2023-09-29 Thread Damien Zammit
--- i386/i386at/ioapic.c | 9 + 1 file changed, 9 insertions(+) diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c index 57d18789..dcc91eff 100644 --- a/i386/i386at/ioapic.c +++ b/i386/i386at/ioapic.c @@ -32,6 +32,7 @@ #include #include #include +#include static int has_ir

[PATCH 4/4 gnumach] kern/sched_prim: Simplify by not dispatching to idle cpu directly

2023-09-29 Thread Damien Zammit
This speeds up smp to approximately full speed of uniprocessor! --- kern/sched_prim.c | 82 ++- 1 file changed, 2 insertions(+), 80 deletions(-) diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 5ee0521a..cdb2ba27 100644 --- a/kern/sched_prim.c

[PATCH 3/4 gnumach] Allow disabling of MACH_PCSAMPLE and disable by default

2023-09-29 Thread Damien Zammit
This fixes a page fault when the sampling occurs in MP. Perhaps it is not MP safe yet. --- configfrag.ac| 2 +- kern/pc_sample.c | 32 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/configfrag.ac b/configfrag.ac index 3c3ba3aa..290a1596 10064

[PATCH 0/4 gnumach] smp - getting closer

2023-09-29 Thread Damien Zammit
With this patchset, your chances of getting a shell with smp is about 1/3. Unfortunately, there is occasionally kernel traps when either booting, or using the system, depending if you reach a login shell or not. I was able to boot with -smp 3 and run "stress -c 3" for about 1 minute. Then I ran "

Re: [PATCH gnumach] kern/sched_prim: Simplify by not dispatching to idle cpu directly

2023-09-29 Thread Samuel Thibault
Damien Zammit, le ven. 29 sept. 2023 05:00:53 +, a ecrit: > This speeds up smp to approximately full speed of uniprocessor! Ok, but I don't think we want this. > diff --git a/kern/sched_prim.c b/kern/sched_prim.c > index 5ee0521a..cdb2ba27 100644 > --- a/kern/sched_prim.c > +++ b/kern/sched_p

Recording of conversation with Kent Overstreet

2023-09-29 Thread Nathan Dehnel
https://youtu.be/bcWsrYvc5Fg https://yewtu.be/watch?v=bcWsrYvc5Fg lmk if you need this uploaded somewhere else in particular

Re: [PATCH gnumach] kdb: Add "show all runqs" debug command

2023-09-29 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le ven. 29 sept. 2023 04:59:44 +, a ecrit: > --- > ddb/db_command.c | 1 + > ddb/db_print.c| 27 +++ > ddb/db_print.h| 6 ++ > kern/sched_prim.h | 1 + > 4 files changed, 35 insertions(+) > > diff --git a/ddb/db_command.