Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1514132

[PATCHv2 0/6] CONFIG_DEBUG_VIRTUAL for arm64

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Laura Abbott <labbott@redhat.com>
Newsgroups linux.kernel
Subject [PATCHv2 0/6] CONFIG_DEBUG_VIRTUAL for arm64
Date Wed, 02 Nov 2016 22:10:02 +0100
Message-ID <szaXf-34T-23@gated-at.bofh.it> (permalink)
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ya88WasSPgcZIGaoBcQcorn3gYUrlZjVPDZQr/Wx/bw=; b=VXKYeh7QSgk0DrwDYGia30p2HAvc03NwXYY3XCLwx18RX0GLeGMiMRIvg+ngCveruo zTsd10P73+LGzARwpEM/oiZDNGsY9QlifrYwbB0JHCbzYGcgJpmcymdSUNoNhjK1CY7z KGhGOPIAWRR5Zq3kk6LK46hcATGyp19QjDqWcYDydNU9/oZg9S0jkvsXzxcidV5liVPp dYbwHc6qiVazWs3hJ6cUv6gyVNj08tzJVScdN/F3gw7gTLTjH8TfYVpVMV6ViRqYD7Iy e/GCtxqbR1mp5wsLecV467/KMnYIimPHz2mMD8WSTGGgldl7/+/m9Hvcpb3n0yFdHx+W GL4A==
X-Gm-Message-State ABUngvcgFEkj0qiflNIqUGl7PeAiKvnUBuRXXcOMV7mJ1PbeP8B4XJ0kxjR0sm34rcx+U3Xs
X-Received by 10.55.24.132 with SMTP id 4mr4721265qky.218.1478120458437; Wed, 02 Nov 2016 14:00:58 -0700 (PDT)
X-Mailer git-send-email 2.10.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 56
Organization linux.* mail to news gateway
X-Original-Cc Laura Abbott <labbott@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, linux-arm-kernel@lists.infradead.org
X-Original-Date Wed, 2 Nov 2016 15:00:48 -0600
X-Original-Message-ID <20161102210054.16621-1-labbott@redhat.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1514132

Show key headers only | View raw


Hi,

This is v2 of the series to add CONFIG_DEBUG_VIRTUAL support from arm64. This
has been split out into a number of patches:

Patch #1 Adds ARCH_HAS_DEBUG_VIRTUAL to avoid the need for adding arch
dependencies for DEBUG_VIRTUAL. This touches arch/x86/Kconfig

Patch #2 Cleans up cma to not rely on __pa_nodebug and have an #ifdef inline
in the function.

Patch #3 Adjust some macros in arm64 memory.h to be under __ASSEMBLY__
protection

Patch #4 Adds a cast for virt_to_pfn since __virt_to_phys for DEBUG_VIRTUAL no
longer has a cast.

Patch #5 Switches to using __pa_symbol for _end to avoid erroneously triggering
a bounds error with the debugging.

Patch #6 is the actual implementation of DEBUG_VIRTUAL. The biggest change from
the RFCv1 is the addition of __phys_addr_symbol. This is to handle several
places where the physical address of _end is needed. x86 avoids this problem by
doing its bounds check based on the entire possible image space which is well
beyond where _end would end up.

There are a few dependencies outside of arm64, so I don't know if
it will be easier for this to eventually go through arm64 or the mm tree.

Thanks,
Laura




Laura Abbott (6):
  lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL
  mm/cma: Cleanup highmem check
  arm64: Move some macros under #ifndef __ASSEMBLY__
  arm64: Add cast for virt_to_pfn
  arm64: Use __pa_symbol for _end
  arm64: Add support for CONFIG_DEBUG_VIRTUAL

 arch/arm64/Kconfig              |  1 +
 arch/arm64/include/asm/memory.h | 50 ++++++++++++++++++++++++-----------------
 arch/arm64/mm/Makefile          |  2 ++
 arch/arm64/mm/init.c            |  4 ++--
 arch/arm64/mm/physaddr.c        | 34 ++++++++++++++++++++++++++++
 arch/x86/Kconfig                |  1 +
 lib/Kconfig.debug               |  5 ++++-
 mm/cma.c                        | 15 +++++--------
 8 files changed, 79 insertions(+), 33 deletions(-)
 create mode 100644 arch/arm64/mm/physaddr.c

-- 
2.10.1

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCHv2 0/6] CONFIG_DEBUG_VIRTUAL for arm64 Laura Abbott <labbott@redhat.com> - 2016-11-02 22:10 +0100
  [PATCHv2 4/6] arm64: Add cast for virt_to_pfn Laura Abbott <labbott@redhat.com> - 2016-11-02 22:10 +0100
  Re: [PATCHv2 0/6] CONFIG_DEBUG_VIRTUAL for arm64 Mark Rutland <mark.rutland@arm.com> - 2016-11-03 00:10 +0100

csiph-web