[PATCH] build: Add soft-float handling for SuperH (sh4)

2020-03-04 Thread John Paul Adrian Glaubitz
While GRUB has no platform support for SuperH (sh4) yet, this change adds the target-specific handling of soft-floats such that the GRUB utilities can be built on this target. Signed-off-by: John Paul Adrian Glaubitz --- configure.ac | 5 + 1 file changed, 5 insertions(+) diff --git a/confi

[PATCH v2 11/12] efi/gop: Add debug output on GOP probing

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones Add debug information to EFI GOP video driver probing function. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/video/efi_gop.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grub-core/video/efi_gop.c b/grub-core/

[PATCH v2 12/12] efi: Fix the type of grub_efi_status_t

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones Currently, in some builds with some checkers, we see: 1. grub-core/disk/efi/efidisk.c:601: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour This is because grub_efi_status_t is defined as grub_efi_intn_t, which is signed, and shift

[PATCH v2 09/12] efi: Print error messages to grub_efi_allocate_pages_real()

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones No messages were printed in this function, add some to ease debugging. Also, the function returns a void * pointer so return NULL instead of 0 to make the code more readable. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/kern/efi/mm.c | 1

[PATCH v2 07/12] efi/uga: Use 64 bit for fb_base

2020-03-04 Thread Javier Martinez Canillas
From: Andrei Borzenkov We get 64 bit from PCI BAR but then truncate by assigning to 32 bit. Make sure to check that pointer does not overflow on 32 bit platform. Closes: 50931 Signed-off-by: Andrei Borzenkov Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Kiper --- grub-core/vi

[PATCH v2 08/12] kern: Make grub_error() more verbose

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones Add file and line to grub_error() output to make troubleshooting easier. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/kern/err.c | 13 +++-- include/grub/err.h | 5 - 2 files changed, 15 insertions(+), 3 deletions(-) diff

[PATCH v2 06/12] efi/gop: Add support for BLT_ONLY adapters

2020-03-04 Thread Javier Martinez Canillas
From: Alexander Graf EFI GOP has support for multiple different bitness types of frame buffers and for a special "BLT only" type which is always defined to be RGBx. Because grub2 doesn't ever directly access the frame buffer but instead only renders graphics via the BLT interface anyway, we can

[PATCH v2 05/12] normal/completion: Fix possible NULL pointer dereference

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones Coverity Scan reports that the grub_strrchr() function can return NULL if the character is not found. Check if that's the case for dirfile pointer. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Kiper --- grub-core/normal/completion.

[PATCH v2 04/12] kern: Add grub_debug_enabled()

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones Add a grub_debug_enabled() helper function instead of open coding it. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Kiper --- grub-core/kern/misc.c | 21 - include/grub/misc.h | 1 + 2 files changed, 17 insert

[PATCH v2 01/12] linux/getroot: Handle rssd storage device names

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones The Micron PCIe SSDs Linux driver (mtip32xx) exposes block devices as /dev/rssd[a-z]+[0-9]*. Add support for these rssd device names. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Kiper --- grub-core/osdep/linux/getroot.c | 13 +

[PATCH v2 03/12] Makefile: Make libgrub.pp depend on config-util.h

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones If you build with "make -j48" a lot, sometimes you see: gcc -E -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64 -I./include -DGRUB_FILE=\"grub_script.tab.h\" -I. -I.. -I. -I.. -I../include -I./include -I../grub-core/lib/libgcrypt-grub/src/ -I../grub-co

[PATCH v2 00/12] A set of trivial patches from the Fedora package

2020-03-04 Thread Javier Martinez Canillas
Hello, This is a v2 a of patch-set consisting of mostly trivial patches that we are carrying in the Fedora package for some time. This version addresses some issues pointed out by Daniel Kiper. Best regards, Javier Changes since v1: - Split patches #8 and #9 since were doing more than one change

[PATCH v2 02/12] efi: Print more debug info in our module loader

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones The function that searches the mods section base address does not have any debug information. Add some debugging outputs that could be useful. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas Reviewed-by: Daniel Kiper --- grub-core/kern/efi/efi.c | 16 +++

[PATCH v2 10/12] efi/uga: Use video instead of fb as debug condition

2020-03-04 Thread Javier Martinez Canillas
From: Peter Jones All other video drivers use "video" as the debug condition instead of "fb" so change this in the efi/uga driver to make it consistent with the others. Signed-off-by: Peter Jones Signed-off-by: Javier Martinez Canillas --- grub-core/video/efi_uga.c | 4 ++-- 1 file changed,

Re: [PATCH] btrfs: disable zstd support for i386-pc

2020-03-04 Thread Michael Chang
On Tue, Mar 03, 2020 at 05:59:12PM +0100, Daniel Kiper wrote: > On Tue, Nov 19, 2019 at 08:34:12AM +, Michael Chang wrote: > > On Fri, Nov 15, 2019 at 12:42:52PM +0100, Daniel Kiper wrote: > > > On Thu, Nov 14, 2019 at 09:53:54AM +, Michael Chang wrote: > > > > On Wed, Nov 13, 2019 at 12:00