Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64
@ 2017-01-10 21:35 Laura Abbott
  2017-01-10 21:35 ` [PATCHv7 04/11] kexec: Switch to __pa_symbol Laura Abbott
  2017-01-12 17:33 ` [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Laura Abbott @ 2017-01-10 21:35 UTC (permalink / raw)
  To: Mark Rutland, Ard Biesheuvel, Will Deacon, Catalin Marinas,
	Florian Fainelli
  Cc: linux-mm, Alexander Potapenko, H. Peter Anvin, Thomas Gleixner,
	Marek Szyprowski, Lorenzo Pieralisi, x86, kasan-dev, Ingo Molnar,
	linux-arm-kernel, xen-devel, Laura Abbott, David Vrabel,
	Kees Cook, Marc Zyngier, Andrey Ryabinin, Boris Ostrovsky,
	Andrew Morton, Dmitry Vyukov, Juergen Gross, kexec, linux-kernel,
	Eric Biederman, Joonsoo Kim, Christoffer Dall

Hi,

This is v7 of the patches to add CONFIG_DEBUG_VIRTUAL for arm64. This is
a simple reordering of patches from v6 per request of Will Deacon for ease
of merging support for arm which depends on this series.

Laura Abbott (11):
  lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL
  mm/cma: Cleanup highmem check
  mm: Introduce lm_alias
  kexec: Switch to __pa_symbol
  mm/kasan: Switch to using __pa_symbol and lm_alias
  mm/usercopy: Switch to using lm_alias
  drivers: firmware: psci: Use __pa_symbol for kernel symbol
  arm64: Move some macros under #ifndef __ASSEMBLY__
  arm64: Add cast for virt_to_pfn
  arm64: Use __pa_symbol for kernel symbols
  arm64: Add support for CONFIG_DEBUG_VIRTUAL

 arch/arm64/Kconfig                        |  1 +
 arch/arm64/include/asm/kvm_mmu.h          |  4 +-
 arch/arm64/include/asm/memory.h           | 66 +++++++++++++++++++++----------
 arch/arm64/include/asm/mmu_context.h      |  6 +--
 arch/arm64/include/asm/pgtable.h          |  2 +-
 arch/arm64/kernel/acpi_parking_protocol.c |  3 +-
 arch/arm64/kernel/cpu-reset.h             |  2 +-
 arch/arm64/kernel/cpufeature.c            |  3 +-
 arch/arm64/kernel/hibernate.c             | 20 +++-------
 arch/arm64/kernel/insn.c                  |  2 +-
 arch/arm64/kernel/psci.c                  |  3 +-
 arch/arm64/kernel/setup.c                 |  9 +++--
 arch/arm64/kernel/smp_spin_table.c        |  3 +-
 arch/arm64/kernel/vdso.c                  |  8 +++-
 arch/arm64/mm/Makefile                    |  2 +
 arch/arm64/mm/init.c                      | 12 +++---
 arch/arm64/mm/kasan_init.c                | 22 +++++++----
 arch/arm64/mm/mmu.c                       | 33 ++++++++++------
 arch/arm64/mm/physaddr.c                  | 30 ++++++++++++++
 arch/x86/Kconfig                          |  1 +
 drivers/firmware/psci.c                   |  2 +-
 include/linux/mm.h                        |  4 ++
 kernel/kexec_core.c                       |  2 +-
 lib/Kconfig.debug                         |  5 ++-
 mm/cma.c                                  | 15 +++----
 mm/kasan/kasan_init.c                     | 15 +++----
 mm/usercopy.c                             |  4 +-
 27 files changed, 180 insertions(+), 99 deletions(-)
 create mode 100644 arch/arm64/mm/physaddr.c

-- 
2.7.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCHv7 04/11] kexec: Switch to __pa_symbol
  2017-01-10 21:35 [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott
@ 2017-01-10 21:35 ` Laura Abbott
  2017-01-12 17:33 ` [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Laura Abbott @ 2017-01-10 21:35 UTC (permalink / raw)
  To: Mark Rutland, Ard Biesheuvel, Will Deacon, Catalin Marinas,
	Eric Biederman, Florian Fainelli
  Cc: x86, kexec, linux-kernel, linux-mm, Ingo Molnar, H. Peter Anvin,
	Joonsoo Kim, Thomas Gleixner, Laura Abbott, Andrew Morton,
	linux-arm-kernel, Marek Szyprowski

__pa_symbol is the correct api to get the physical address of kernel
symbols. Switch to it to allow for better debug checking.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
---
 kernel/kexec_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c
index 5617cc4..a01974e 100644
--- a/kernel/kexec_core.c
+++ b/kernel/kexec_core.c
@@ -1399,7 +1399,7 @@ void __weak arch_crash_save_vmcoreinfo(void)
 
 phys_addr_t __weak paddr_vmcoreinfo_note(void)
 {
-	return __pa((unsigned long)(char *)&vmcoreinfo_note);
+	return __pa_symbol((unsigned long)(char *)&vmcoreinfo_note);
 }
 
 static int __init crash_save_vmcoreinfo_init(void)
-- 
2.7.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64
  2017-01-10 21:35 [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott
  2017-01-10 21:35 ` [PATCHv7 04/11] kexec: Switch to __pa_symbol Laura Abbott
@ 2017-01-12 17:33 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2017-01-12 17:33 UTC (permalink / raw)
  To: Laura Abbott
  Cc: Mark Rutland, Catalin Marinas, linux-mm, Alexander Potapenko,
	H. Peter Anvin, Thomas Gleixner, Marek Szyprowski,
	Florian Fainelli, x86, kasan-dev, Ingo Molnar, Dmitry Vyukov,
	xen-devel, David Vrabel, Kees Cook, Marc Zyngier,
	Lorenzo Pieralisi, Andrey Ryabinin, Boris Ostrovsky,
	Andrew Morton, linux-arm-kernel, Juergen Gross, Ard Biesheuvel,
	kexec, linux-kernel, Eric Biederman, Joonsoo Kim,
	Christoffer Dall

On Tue, Jan 10, 2017 at 01:35:39PM -0800, Laura Abbott wrote:
> This is v7 of the patches to add CONFIG_DEBUG_VIRTUAL for arm64. This is
> a simple reordering of patches from v6 per request of Will Deacon for ease
> of merging support for arm which depends on this series.
> 
> Laura Abbott (11):
>   lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL
>   mm/cma: Cleanup highmem check
>   mm: Introduce lm_alias
>   kexec: Switch to __pa_symbol
>   mm/kasan: Switch to using __pa_symbol and lm_alias
>   mm/usercopy: Switch to using lm_alias
>   drivers: firmware: psci: Use __pa_symbol for kernel symbol
>   arm64: Move some macros under #ifndef __ASSEMBLY__
>   arm64: Add cast for virt_to_pfn
>   arm64: Use __pa_symbol for kernel symbols
>   arm64: Add support for CONFIG_DEBUG_VIRTUAL

I've pushed this into linux-next and, assuming it survives the
autobuilders etc I'll co-ordinate with Russell to get the common parts
pulled into the ARM tree too (so he can take Florian's series). They're
currently split out on the arm64 for-next/debug-virtual branch.

Thanks!

Will

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-12 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 21:35 [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott
2017-01-10 21:35 ` [PATCHv7 04/11] kexec: Switch to __pa_symbol Laura Abbott
2017-01-12 17:33 ` [PATCHv7 00/11] CONFIG_DEBUG_VIRTUAL for arm64 Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox