Re: Debian GNU/Hurd takes forever to shut down

2022-09-12 Thread Saniya Maheshwari
Hi Damien, Post your mail, I attempted to time how long it takes after that line. I also took care to take a fresh image, i.e. freshly downloaded with no prior work done on it, and also took care to not do anything during the Hurd session, i.e. just log in as 'root' and then immediately shutdo

Re: [PATCH v2 4/4] acpi: Remove references to /dev/mem

2022-09-12 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le lun. 12 sept. 2022 10:40:08 +, a ecrit: > --- > acpi/acpi.c | 109 > 1 file changed, 34 insertions(+), 75 deletions(-) > > diff --git a/acpi/acpi.c b/acpi/acpi.c > index 9827232a..dd32d60f 100644 > --- a/

Re: [PATCH v2 3/4] acpi: Convert translator to an emulated mach device

2022-09-12 Thread Samuel Thibault
Damien Zammit, le lun. 12 sept. 2022 10:40:04 +, a ecrit: > +static void * > +netfs_server_func (void *arg) > +{ > + error_t err; > + > + do > +{ > + ports_manage_port_operations_multithread (netfs_port_bucket, > + netfs_demuxer, > +

Re: [PATCH v2 2/4] shutdown: Use new acpi RPC to halt machine, clean up

2022-09-12 Thread Samuel Thibault
Damien Zammit, le lun. 12 sept. 2022 10:39:45 +, a ecrit: > This allows clean shutdown of all modern x86 machines > (not just qemu) by using the acpi translator to call > into libacpica code. Applied, thanks! > --- > shutdown/Makefile| 2 +- > shutdown/acpi_shutdown.c | 66 -

Re: [PATCH v2 1/4] acpi: Link translator to libacpica and provide RPCs

2022-09-12 Thread Samuel Thibault
Damien Zammit, le lun. 12 sept. 2022 10:39:30 +, a ecrit: > Provides two new acpi RPCs to sleep the machine and > to get the irq of any pci device. ACPI mode is enabled > by default when the translator is started. Applied, thanks! > NB: Merging this commit means libacpica is a build dep. > -

[PATCH v2 1/4] acpi: Link translator to libacpica and provide RPCs

2022-09-12 Thread Damien Zammit
Provides two new acpi RPCs to sleep the machine and to get the irq of any pci device. ACPI mode is enabled by default when the translator is started. NB: Merging this commit means libacpica is a build dep. --- Makefile | 5 ++- acpi/Makefile | 13 -- acpi/acpi-o

[PATCH v2 4/4] acpi: Remove references to /dev/mem

2022-09-12 Thread Damien Zammit
--- acpi/acpi.c | 109 1 file changed, 34 insertions(+), 75 deletions(-) diff --git a/acpi/acpi.c b/acpi/acpi.c index 9827232a..dd32d60f 100644 --- a/acpi/acpi.c +++ b/acpi/acpi.c @@ -30,37 +30,13 @@ #include "myacpi.h" -int -mmap_phys_acpi_

[PATCH v2 3/4] acpi: Convert translator to an emulated mach device

2022-09-12 Thread Damien Zammit
This makes acpi usable as a bootstrap translator. --- acpi/Makefile | 6 +- acpi/acpifs.c | 37 +++ acpi/acpifs.h | 6 +- acpi/main.c| 172 ++--- acpi/options.c | 20 ++ acpi/options.h | 8 +++ 6 files changed, 225 insertions(+

[PATCH v2 2/4] shutdown: Use new acpi RPC to halt machine, clean up

2022-09-12 Thread Damien Zammit
This allows clean shutdown of all modern x86 machines (not just qemu) by using the acpi translator to call into libacpica code. --- shutdown/Makefile| 2 +- shutdown/acpi_shutdown.c | 66 shutdown/acpi_shutdown.h | 18 --- shutdown/shutdown

[PATCH v2 0/4] ACPI as a bootstrap translator

2022-09-12 Thread Damien Zammit
Hi, This patchset addresses all the issues raised the first time around. I tested it to boot a rump disk and shut down cleanly in qemu. I had to patch rumpkernel as before, but the rumpkernel patches can be separate to this, as we don't have to hard switch to using ACPI for irqs. I have another p