mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Ard Biesheuvel <ardb@kernel.org>, Huacai Chen <chenhuacai@loongson.cn>
Cc: Binbin Zhou <zhoubinbin@loongson.cn>,
	Huacai Chen <chenhuacai@kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: manual merge of the efi tree with the loongarch tree
Date: Wed, 30 Nov 2022 13:54:13 +1100	[thread overview]
Message-ID: <20221130135413.140c850b@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]

Hi all,

Today's linux-next merge of the efi tree got a conflict in:

  arch/loongarch/kernel/efi.c

between commit:

  113b340ca07a ("LoongArch: Add FDT booting support from efi system table")

from the loongarch tree and commit:

  732ea9db9d8a ("efi: libstub: Move screen_info handling to common code")

from the efi tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/loongarch/kernel/efi.c
index 47d03b133053,d75ce73e8ff8..000000000000
--- a/arch/loongarch/kernel/efi.c
+++ b/arch/loongarch/kernel/efi.c
@@@ -54,17 -52,27 +54,38 @@@ void __init efi_runtime_init(void
  	set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
  }
  
 +void __init *efi_fdt_pointer(void)
 +{
 +	if (!efi_systab)
 +		return NULL;
 +
 +	if (fdt_pointer == EFI_INVALID_TABLE_ADDR)
 +		return NULL;
 +
 +	return early_memremap_ro(fdt_pointer, SZ_64K);
 +}
 +
+ unsigned long __initdata screen_info_table = EFI_INVALID_TABLE_ADDR;
+ 
+ static void __init init_screen_info(void)
+ {
+ 	struct screen_info *si;
+ 
+ 	if (screen_info_table == EFI_INVALID_TABLE_ADDR)
+ 		return;
+ 
+ 	si = early_memremap(screen_info_table, sizeof(*si));
+ 	if (!si) {
+ 		pr_err("Could not map screen_info config table\n");
+ 		return;
+ 	}
+ 	screen_info = *si;
+ 	memset(si, 0, sizeof(*si));
+ 	early_memunmap(si, sizeof(*si));
+ 
+ 	memblock_reserve(screen_info.lfb_base, screen_info.lfb_size);
+ }
+ 
  void __init efi_init(void)
  {
  	int size;

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

                 reply	other threads:[~2022-11-30  2:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221130135413.140c850b@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=ardb@kernel.org \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=zhoubinbin@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®