Re: [PATCH 3/3] ieee1275: request memory with ibm, client-architecture-support

2021-04-19 Thread Daniel Axtens
> diff --git a/grub-core/kern/ieee1275/cmain.c b/grub-core/kern/ieee1275/cmain.c > index 20cbbd761ec3..35f2c573730f 100644 > --- a/grub-core/kern/ieee1275/cmain.c > +++ b/grub-core/kern/ieee1275/cmain.c > @@ -90,7 +90,10 @@ grub_ieee1275_find_options (void) >} > >if (rc >= 0 && grub_strnc

Re: [PATCH v2] i386-pc: build verifiers API as module

2021-04-19 Thread Michael Chang via Grub-devel
On Wed, Apr 14, 2021 at 03:22:35PM +0200, Daniel Kiper wrote: > On Tue, Apr 13, 2021 at 12:13:02PM +0800, Michael Chang via Grub-devel wrote: > > On Mon, Apr 12, 2021 at 03:15:53PM +0200, Daniel Kiper wrote: > > > On Fri, Mar 26, 2021 at 06:01:01PM +0100, Daniel Kiper wrote: > > > > On Wed, Mar 24,

Re: GRUB error: unknown filesystem on ia64

2021-04-19 Thread Javier Martinez Canillas
On 4/19/21 5:33 PM, John Paul Adrian Glaubitz wrote: > Hi Javier1 > > On 4/16/21 11:32 PM, Javier Martinez Canillas wrote: >>> I can confirm that this fixes the issue and makes GRUB work again on ia64. >>> >>> Tested-by: John Paul Adrian Glaubitz >>> >> >> Great, thanks a lot for the quick testin

[PATCH 3/3] ieee1275: request memory with ibm, client-architecture-support

2021-04-19 Thread Daniel Axtens
On PowerVM, the first time we boot a Linux partition, we may only get 256MB of real memory area, even if the partition has more memory. This isn't really enough. Fortunately, the Power Architecture Platform Reference (PAPR) defines a method we can call to ask for more memory. This is part of the b

[PATCH 0/3] ieee1275: find and claim more memory

2021-04-19 Thread Daniel Axtens
I've posted a couple of RFC patches that attempted to claim some more memory on ieee1275 platforms, which is necessary for the verifiers to do their work. The RFCs were a bit unsatisfactory and also it turns out they broke in some corner cases. This, I believe, is a proper, upstream-worthy solutio

[PATCH 2/3] ieee1275: claim more memory

2021-04-19 Thread Daniel Axtens
On powerpc-ieee1275, we are running out of memory trying to verify anything. This is because: - we have to load an entire file into memory to verify it. This is extremely difficult to change with appended signatures. - We only have 32MB of heap. - Distro kernels are now often around 30MB. S

[PATCH 1/3] ieee1275: drop HEAP_MAX_ADDR, HEAP_MIN_SIZE

2021-04-19 Thread Daniel Axtens
HEAP_MAX_ADDR is confusing. Currently it is set to 32MB, except on ieee1275 on x86, where it is 64MB. There is a comment which purports to explain it: /* If possible, we will avoid claiming heap above this address, because it seems to cause relocation problems with OSes that link at 4 MiB */

Re: GRUB error: unknown filesystem on ia64

2021-04-19 Thread John Paul Adrian Glaubitz
Hi Javier1 On 4/16/21 11:32 PM, Javier Martinez Canillas wrote: >> I can confirm that this fixes the issue and makes GRUB work again on ia64. >> >> Tested-by: John Paul Adrian Glaubitz >> > > Great, thanks a lot for the quick testing! Could you send the patch to the mailing list separately with

[PATCH] xfs: Print a warning if the filesystem needs to be repaired

2021-04-19 Thread Javier Martinez Canillas
XFS now has an incompat feature flag to indicate that the filesystem needs to be repaired. The Linux kernel refuses to mount a filesystem that has it set and only the xfs_repair tool is able to clear that flag. One option is to make the GRUB behaviour consistent with the Linux kernel, and don't al