From patchwork Thu Nov 28 20:23:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11266559 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82CF615AB for ; Thu, 28 Nov 2019 20:24:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34AC321775 for ; Thu, 28 Nov 2019 20:24:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EgobIsNt"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QC8uPqRs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34AC321775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=XzYiSrSj95drSkyIVn/2gc7bePp28Ua00H9oYNFQH/I=; b=EgobIsNtctXOa/YPnzr1ZOU6U6 VB8pGK/Le2Sb97VyJDwyltXsql4uGybXJy0fRh44RLanY+j8x5uze8253vSwj4y+EA53QVpPYiCVG lP4vt8tNcQ19drFl4ZEzfGAQptFiECPb4cAngSWkudEwvE8nsu+LDTZ5vz4MCm9OblG/7o9B0038B 1NJvXP1TEgLKjd3cbV7XsnkoYe/pVgCtgfrt6gPcA9v0ncH2s1099pSf/8dZ7pBXZkt+Ls3uOZOa5 EF1uurR1BNgPBeKIHZUfE3TKgTFSKbgdzkQUomC3ZZLWKKVJ7dkoduemY1hrLGz59tQ8jGYG7I4Kh a9BWa/jQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQKt-0005d7-Qj; Thu, 28 Nov 2019 20:24:23 +0000 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQKb-0005Mw-W8 for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2019 20:24:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574972644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/y8p7TWJ4+9dx0qZYntYI0vqqca78jHSFlqFEn+6Y9I=; b=QC8uPqRsRsCLmvsV2ERymIaYn776KE0D3PuY4KJFlXnx7Z11zdromKo7V2MXHiy4hlKERd NT2doOhuMoQk24dEZ9vafmxub1cVGmPIckS/ZW3uCBVn77POwA+L/MKtXOkM32n6PrCbmZ fmuvfYYmBcoKq9w+6q3VqA/mvkCfEhw= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-110-HkJThyEANdG0jVnfYlRdSw-1; Thu, 28 Nov 2019 15:24:03 -0500 Received: by mail-pl1-f199.google.com with SMTP id d24so1474173pll.14 for ; Thu, 28 Nov 2019 12:24:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=D7Q1sNAJK7KGCeC1/osi4u/yd8LMbojW2DcAg7eyhwk=; b=f7DKbIIuo4CO9CNa+YL4Bf2PvjKG/GbqgiLe+pQGMR/YeGFaobrfVpR9xv3FqrfHA5 oRL8+/sfLpr4Y2zspuerjjnB7+75LGEHNxeDH+tv6YXvHY1xduSkMZxj3hDJucWdhkOn fA3zzjwsDF9o57ZFcYWwnhrG1+eqZM45x1uc5nlYxUdaIrPOPURkJwLF2lwUPKZiSPY1 kQzodp8AooRaQgc4RFqzOT3LxMS0NOMBwlrQlUI7EYfcjSF/YZ7ndLnkXio/HK5XS8ld OD23kRgFUsTSO9JsBohkP/yRumR/T5XWHgaRY3lFruHDW/+cjJNJDqdlfgwLU+2DymmU AErg== X-Gm-Message-State: APjAAAVfx7DGhDgB0/0L1v3ryGsQEL7LeUruK5a+WqUI1PKjC8yozE61 /jkdTlA1KV1vj86WTk4ptY4h2BECfLL53PqMn3L3RhBeydttU6Gi2lG+VptKapFse6+wrX+0QzM 0TAkrAFjJD1RHMuIDs1/dGMkSftEu/jmhb80= X-Received: by 2002:a17:90a:3663:: with SMTP id s90mr14556234pjb.1.1574972639196; Thu, 28 Nov 2019 12:23:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwEBnny8bOGZ2sOhQL9nLkTVF0UqIXllrctdH9WVSgwdhpBSy3J7AMOGgxRJJki+CNRMtBZ+Q== X-Received: by 2002:a17:90a:3663:: with SMTP id s90mr14556206pjb.1.1574972638976; Thu, 28 Nov 2019 12:23:58 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id s66sm22322578pfb.38.2019.11.28.12.23.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 12:23:58 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH v5 1/5] crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo Date: Fri, 29 Nov 2019 01:53:37 +0530 Message-Id: <1574972621-25750-2-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574972621-25750-1-git-send-email-bhsharma@redhat.com> References: <1574972621-25750-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: HkJThyEANdG0jVnfYlRdSw-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_122406_164015_2AEBBF11 X-CRM114-Status: GOOD ( 17.42 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [205.139.110.120 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ard Biesheuvel , Benjamin Herrenschmidt , linux-doc@vger.kernel.org, Will Deacon , bhsharma@redhat.com, x86@kernel.org, kexec@lists.infradead.org, Dave Anderson , Paul Mackerras , Kazuhito Hagio , Boris Petkov , Michael Ellerman , Catalin Marinas , James Morse , Thomas Gleixner , bhupesh.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, Ingo Molnar , linux-arm-kernel@lists.infradead.org, Steve Capper MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Right now user-space tools like 'makedumpfile' and 'crash' need to rely on a best-guess method of determining value of 'MAX_PHYSMEM_BITS' supported by underlying kernel. This value is used in user-space code to calculate the bit-space required to store a section for SPARESMEM (similar to the existing calculation method used in the kernel implementation): #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS) Now, regressions have been reported in user-space utilities like 'makedumpfile' and 'crash' on arm64, with the recently added kernel support for 52-bit physical address space, as there is no clear method of determining this value in user-space (other than reading kernel CONFIG flags). As per suggestion from makedumpfile maintainer (Kazu), it makes more sense to append 'MAX_PHYSMEM_BITS' to vmcoreinfo in the core code itself rather than in arch-specific code, so that the user-space code for other archs can also benefit from this addition to the vmcoreinfo and use it as a standard way of determining 'SECTIONS_SHIFT' value in user-land. A reference 'makedumpfile' implementation which reads the 'MAX_PHYSMEM_BITS' value from vmcoreinfo in a arch-independent fashion is available here: [0]. https://github.com/bhupesh-sharma/makedumpfile/blob/remove-max-phys-mem-bit-v1/arch/ppc64.c#L471 Cc: Boris Petkov Cc: Ingo Molnar Cc: Thomas Gleixner Cc: James Morse Cc: Mark Rutland Cc: Will Deacon Cc: Steve Capper Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: Michael Ellerman Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Dave Anderson Cc: Kazuhito Hagio Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Signed-off-by: Bhupesh Sharma --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 9f1557b98468..18175687133a 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -413,6 +413,7 @@ static int __init crash_save_vmcoreinfo_init(void) VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); VMCOREINFO_STRUCT_SIZE(mem_section); VMCOREINFO_OFFSET(mem_section, section_mem_map); + VMCOREINFO_NUMBER(MAX_PHYSMEM_BITS); #endif VMCOREINFO_STRUCT_SIZE(page); VMCOREINFO_STRUCT_SIZE(pglist_data); From patchwork Thu Nov 28 20:25:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11266561 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A60413A4 for ; Thu, 28 Nov 2019 20:25:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2A9E21787 for ; Thu, 28 Nov 2019 20:25:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ap9I/08C"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NH9o+PeI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2A9E21787 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=rQUeEhnxe/fnikXZQt1i7+hvd8Og3QYtZI9n8u2JF1A=; b=ap9 I/08CfQTHeCbuesGwfjdrsU2fSAFfD/ze3SyeiHsA/pWJEGTorse/5YaQ7frFsQqxg7TtLQDxgPkM ykCUzb+bbtssGy/TTZ0lB2E/UxUdhHfK+63+cWo4RfspolGLZht64c0N7STTe5B+IU7JH6zAdfXPC WY6Ef3jxE+vJJt2ftxPO9ZoP7Rso8HtjhG0pH6MeoCwb3nrntlIyIjvUf21mXxaG8DW8E+Le0y5v9 QPJ+ZWzq6g/IoEA9qBlVyu2x/IHvPVCj+VI1ocLbJYayrf6lInJHNYYfC/G6Q1+O1BXNH9+17IsCB WIzHs8mpw2O4UYra+Uf4uMq09f+CEfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQM5-0007Dm-64; Thu, 28 Nov 2019 20:25:37 +0000 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQM1-0007CG-Q5 for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2019 20:25:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574972732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wgbAkKrJxLS1NEOR+82/qBcYhhrIFUtkNwc9k9kwPFE=; b=NH9o+PeIGKzZokpvd+R3AsXhTkePCmIcylpQPtfxBq4rHibMzRf15DxUapMY9EHxrZHxt+ Dpu6DK5CK0DSfPSxrz3GgpF/l9ghmb8qzDbdG35y0sjqOFmcUXQT3RR7hV+ZeYN6CIGgtp 8wgdAa4pVS8HmQPZdqIC4DKTG8yx/44= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-340-Xjx99h5eNY-sjSqwq05kJg-1; Thu, 28 Nov 2019 15:25:31 -0500 Received: by mail-pj1-f70.google.com with SMTP id o4so13414169pjp.3 for ; Thu, 28 Nov 2019 12:25:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iJyjrUFfcmHAhH3JG4K3fZfDXNCj7aMMhMdC/cxhP5Q=; b=KX+zeSYNr2ujgiJijc4E7Wxnvzrce8Ftt4+ejPPw9nROM04BrzWBeeCNGHAECbO4mc 8HQsj4Xi5FkxX5evVSpeLjFr/ha+GsuioEkJH0savqSN46gbFhxZyv/6QLTDKk+E78Hj z0StGMG5LdPovRID7ilWBnYh35J3ldJzPEER+UA+xCIQYR/fPPxaxERW9ZbHptk08DaR jIxmnTayYUO/KtXFfSlJMuZ85HlmJEXfjg/IMEkde0EfiVsXoH7PevFyGp+epHLzOU73 BHDvABWPRhIxMmsbOLYEDCN0bQoJm3scwLtObtzKXTHOO0IFA92GCQ2sLEIIBllRjNe/ yYug== X-Gm-Message-State: APjAAAUigpmZSZUiUDI0t9Ej7Nb67NDUByP4SnRZMukOS1g9aPLxGuQp QVBoqCp/xpdxLKVwsMmQZWpoakchvulIykodDRqfnJjr/zSdlBn1oS866Ug81r3yQfBVDqrOdUO Fn1uZChHj0jtNkQsz5mYgA3Oq3bkNKwwYYJo= X-Received: by 2002:a62:e708:: with SMTP id s8mr55037353pfh.80.1574972730288; Thu, 28 Nov 2019 12:25:30 -0800 (PST) X-Google-Smtp-Source: APXvYqy8inKnmjJQ3jsyvDZArqOTWo5QGvdHM+KGH3wVsC6Qega0Cnv/bnbln+swwqa3RoTSLPhAdw== X-Received: by 2002:a62:e708:: with SMTP id s8mr55037330pfh.80.1574972730046; Thu, 28 Nov 2019 12:25:30 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id v14sm21402742pfe.94.2019.11.28.12.25.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 12:25:29 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH v5 2/5] arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo Date: Fri, 29 Nov 2019 01:55:13 +0530 Message-Id: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 X-MC-Unique: Xjx99h5eNY-sjSqwq05kJg-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_122533_918927_80ACBBD1 X-CRM114-Status: GOOD ( 17.50 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [205.139.110.120 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ard Biesheuvel , linux-doc@vger.kernel.org, Will Deacon , bhsharma@redhat.com, x86@kernel.org, kexec@lists.infradead.org, Kazuhito Hagio , James Morse , Catalin Marinas , Dave Anderson , bhupesh.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Steve Capper MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org vabits_actual variable on arm64 indicates the actual VA space size, and allows a single binary to support both 48-bit and 52-bit VA spaces. If the ARMv8.2-LVA optional feature is present, and we are running with a 64KB page size; then it is possible to use 52-bits of address space for both userspace and kernel addresses. However, any kernel binary that supports 52-bit must also be able to fall back to 48-bit at early boot time if the hardware feature is not present. Since TCR_EL1.T1SZ indicates the size offset of the memory region addressed by TTBR1_EL1 (and hence can be used for determining the vabits_actual value) it makes more sense to export the same in vmcoreinfo rather than vabits_actual variable, as the name of the variable can change in future kernel versions, but the architectural constructs like TCR_EL1.T1SZ can be used better to indicate intended specific fields to user-space. User-space utilities like makedumpfile and crash-utility, need to read/write this value from/to vmcoreinfo for determining if a virtual address lies in the linear map range. The user-space computation for determining whether an address lies in the linear map range is the same as we have in kernel-space: #define __is_lm_address(addr) (!(((u64)addr) & BIT(vabits_actual - 1))) I have sent out user-space patches for makedumpfile and crash-utility to add features for obtaining vabits_actual value from TCR_EL1.T1SZ (see [0] and [1]). Akashi reported that he was able to use this patchset and the user-space changes to get user-space working fine with the 52-bit kernel VA changes (see [2]). [0]. http://lists.infradead.org/pipermail/kexec/2019-November/023966.html [1]. http://lists.infradead.org/pipermail/kexec/2019-November/024006.html [2]. http://lists.infradead.org/pipermail/kexec/2019-November/023992.html Cc: James Morse Cc: Mark Rutland Cc: Will Deacon Cc: Steve Capper Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: Dave Anderson Cc: Kazuhito Hagio Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Signed-off-by: Bhupesh Sharma --- arch/arm64/include/asm/pgtable-hwdef.h | 1 + arch/arm64/kernel/crash_core.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index d9fbd433cc17..d2e7aff5821e 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -215,6 +215,7 @@ #define TCR_TxSZ(x) (TCR_T0SZ(x) | TCR_T1SZ(x)) #define TCR_TxSZ_WIDTH 6 #define TCR_T0SZ_MASK (((UL(1) << TCR_TxSZ_WIDTH) - 1) << TCR_T0SZ_OFFSET) +#define TCR_T1SZ_MASK (((UL(1) << TCR_TxSZ_WIDTH) - 1) << TCR_T1SZ_OFFSET) #define TCR_EPD0_SHIFT 7 #define TCR_EPD0_MASK (UL(1) << TCR_EPD0_SHIFT) diff --git a/arch/arm64/kernel/crash_core.c b/arch/arm64/kernel/crash_core.c index ca4c3e12d8c5..f78310ba65ea 100644 --- a/arch/arm64/kernel/crash_core.c +++ b/arch/arm64/kernel/crash_core.c @@ -7,6 +7,13 @@ #include #include +static inline u64 get_tcr_el1_t1sz(void); + +static inline u64 get_tcr_el1_t1sz(void) +{ + return (read_sysreg(tcr_el1) & TCR_T1SZ_MASK) >> TCR_T1SZ_OFFSET; +} + void arch_crash_save_vmcoreinfo(void) { VMCOREINFO_NUMBER(VA_BITS); @@ -15,5 +22,7 @@ void arch_crash_save_vmcoreinfo(void) kimage_voffset); vmcoreinfo_append_str("NUMBER(PHYS_OFFSET)=0x%llx\n", PHYS_OFFSET); + vmcoreinfo_append_str("NUMBER(tcr_el1_t1sz)=0x%llx\n", + get_tcr_el1_t1sz()); vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset()); } From patchwork Thu Nov 28 20:25:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11266565 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5187413A4 for ; Thu, 28 Nov 2019 20:26:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E2A9216F4 for ; Thu, 28 Nov 2019 20:26:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GJMeUoFl"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EnHZ9kGc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E2A9216F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=3czr7DZ6cD9WlPeQYvyMOsGAb9ivMfNdkbT+3/2p2ZU=; b=GJMeUoFl6UKHe58lJEBQ6RiLaF 9v4eO+PyavraisNRlWE9lEHkdqaEJNp2eN040B3Q32IuCgT/2Ef+hT7BgCWrxGHBlFCPwF2wHdpbz Zs8sgg/cuItFXRjpj5/cXoceh7kUMTr56CpurhSP/nEROzr3nTtup4ZHkJRJxN7UbvYCKQG1Pe5eR A4JVgQ+xI1VmgUZv8y37P0TNTqKK6U7SQ3AYQIYYhwSJlf+kHJ1tdt0FPdhZRFw9lKB3lWb65a+f8 0KumywJS2CtO8w+axtnxVtvkO7xNeryEuVO926cgKn6Gk0ppxg2KEga0tLcmXJ9x9On9YEsQNJR1G HobuLY6g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQMz-0007qF-Tq; Thu, 28 Nov 2019 20:26:33 +0000 Received: from us-smtp-1.mimecast.com ([207.211.31.81] helo=us-smtp-delivery-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQMC-0007IG-3A for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2019 20:25:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574972741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2FRKI5+6EDUKwn2QzAstv2u6dW0Q8/ilQLcz5atGxuE=; b=EnHZ9kGcT3NHxUkQkHcMTAMLzeX6okGamS3V4WHshHXkvfTbHSLWR8a4mahVVpdhcNmbfd ky5Bnna0+YiafkGyAfbVhYBGty+l0liHOqRkySqE8NugAqQt07HuQCb4Cl0R8h2AbVE0G+ KifiOy8JVJHLsKnozNFZDGvrrWoOXoA= Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-Vi8PQsNSObypEns9FuOdBw-1; Thu, 28 Nov 2019 15:25:35 -0500 Received: by mail-pj1-f71.google.com with SMTP id bx2so3082459pjb.17 for ; Thu, 28 Nov 2019 12:25:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BgAr5VVOQXh1yien5qVgdgmIL5RHbScoYGF2ala0/ak=; b=La6CH7/REzLyQQVqSyTmT1PKd1qy1NUYmN96LDVLrj0RtjulRU9GK9y0kbmk/Mcc78 xcwuO9D7U23XPA12qQhtIcdi1SGG4HTjHPEt121Bgoyxn9qMp84nFtGTClZrGtBf4Dz1 CBp5M+7hGdd+Q8sJog+gTzGUiHxUag/Wn+3ABjicfkyhD656n7KgoDLRbjWkM20n5CgP jm0HKSZf5T2bnex/Lc9ea18Mmpbt8s48bnjCLVEuczGhuUjiH5JAyg1ZLg/7F1LP4qM/ 3Vz+6pvVVnBmgdvMo86JrqB+x1PMPa93STuclIGINlV/LaO+VHc628LBK+l1ACWOnqA+ B+7w== X-Gm-Message-State: APjAAAXhD0uCA6IcWEbifJ30pPCeNo1+bSGT+j8BuyXTv4ZPRqd9XTqS wv8zy8NQUX4KujWygDAoCz6VZlPxkD+jL6Pr747yX4Bsg2uRLXgkd1DnXjwv5Xhg9/LtaWh+l99 1g5jvMNhTEtjpAd27jtNhilqSXfCDV8lTpbQ= X-Received: by 2002:a17:90a:9bc7:: with SMTP id b7mr2779316pjw.72.1574972734227; Thu, 28 Nov 2019 12:25:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzGw9W2BseetWuCKGjOOk2X1gZmHcotzHkh3qc0nDt9y8frA3vEMk0c5zDGq7c6I7jA3cnCbg== X-Received: by 2002:a17:90a:9bc7:: with SMTP id b7mr2779308pjw.72.1574972734045; Thu, 28 Nov 2019 12:25:34 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id hi2sm11225511pjb.22.2019.11.28.12.25.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 12:25:33 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH v5 3/5] Documentation/arm64: Fix a simple typo in memory.rst Date: Fri, 29 Nov 2019 01:55:14 +0530 Message-Id: <1574972716-25858-2-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> References: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: Vi8PQsNSObypEns9FuOdBw-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_122544_263897_B08AF1B8 X-CRM114-Status: GOOD ( 15.37 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [207.211.31.81 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Jonathan Corbet , Ard Biesheuvel , linux-doc@vger.kernel.org, Will Deacon , bhsharma@redhat.com, x86@kernel.org, kexec@lists.infradead.org, James Morse , Catalin Marinas , bhupesh.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Steve Capper MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix a simple typo in arm64/memory.rst Cc: Jonathan Corbet Cc: James Morse Cc: Mark Rutland Cc: Will Deacon Cc: Steve Capper Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Bhupesh Sharma --- Documentation/arm64/memory.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/arm64/memory.rst b/Documentation/arm64/memory.rst index 02e02175e6f5..cf03b3290800 100644 --- a/Documentation/arm64/memory.rst +++ b/Documentation/arm64/memory.rst @@ -129,7 +129,7 @@ this logic. As a single binary will need to support both 48-bit and 52-bit VA spaces, the VMEMMAP must be sized large enough for 52-bit VAs and -also must be sized large enought to accommodate a fixed PAGE_OFFSET. +also must be sized large enough to accommodate a fixed PAGE_OFFSET. Most code in the kernel should not need to consider the VA_BITS, for code that does need to know the VA size the variables are From patchwork Thu Nov 28 20:25:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11266563 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18EB8138C for ; Thu, 28 Nov 2019 20:26:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E281521775 for ; Thu, 28 Nov 2019 20:26:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ncith3Cv"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iGfa3lcM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E281521775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=att41G/rUH7NXpXw8S+1LetIpcj+ItNGhzrNdL3UFUA=; b=ncith3CvsYB/eCnDrTQ9e+bS3R r08gD4a2CAIn8hdqnpi0dZ2qD3Zvq0J6hZiOlSNG414aqduXfQnETqyuDp36uDpFfFQwxQTPTlJAp piVOLRKn/92b67KHyLPgsuv5TB7I28DudEv0jPLTsHsRviSCQSXlJhg93bAXgnOJqM2ae5S4qmUZU ZHkeoQ9cVDVieWWfclqAv2lzJNU+yDE+cQwr+CxkDdJUNnCNA+UwTRULHHJ+26WnNgaFLPWU5XgjJ SVlYtCCEzqVQKMNbg68M7nB/tzMx/ETHSDb5mq19NBuawjA7+/AZnuyb/EAKo/TJNvWaoCPPv0m/x XnVyPo5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQMi-0007dH-6V; Thu, 28 Nov 2019 20:26:16 +0000 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQMA-0007Gl-HW for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2019 20:25:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574972740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yNq9Cl1u8a4Res9gMqZVglO/lwiENzme0qL73M9MY10=; b=iGfa3lcM+x4ZdaCCNlh9J0QKx8CfIQaMWmsreOv1wzDUPyQvJIROUzQZngJy8YJ4lLIbQU +K3kAwICKk8CPxWeTSvZ2dc9oaHWS3h8ohFVVJ3twZ+d2ZDKaiN6N2Lowt0sD1sfTbBO01 1mlrqy7NpVb+FSHX7w+c4j27dMcSJvo= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-25-OKwI6C2fPRuCbPRYeHDI6Q-1; Thu, 28 Nov 2019 15:25:38 -0500 Received: by mail-pg1-f197.google.com with SMTP id t28so15209278pgl.21 for ; Thu, 28 Nov 2019 12:25:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EGXp9xk2iujKm5hWzUI7x5fii/ZV0bMMwslmLu+YaOk=; b=iKxsH7Dn1lVIOohdrdtwVlj4vq32jnZNqvr4pfSlqhvbvTSJ1i1QmiocIF5hAhEDUj JWX6Qbq2KQ3A0h5pp8FpSHOK8bP8ySjHpn3jyijKjnCoRFIALJ3hF6mULGMu1ct7d03G rYP0/sphBys2Gch0Sw09wvzd7JlVbzEbRZjwNOX7TExZLEPFCo33or63wuqtPLq9Ly4g UL1tMMJ4uqDKAwOxTBd1IdYx6Q2dYmrvgtbN/vtvlslMYIHbdePiebhTnMFlHBzmLvfY ftvoo34/nhQefhjAo0JBlzO82M4hadiLcU80FfOQiCfX5+XmUhmCDrjc1+4WSqHKchnu 3glQ== X-Gm-Message-State: APjAAAWnMiRREYVkpbVj2Vc+vw+fbiqIfbCXvc/fRJ0M2pWtHTt9R8J9 vP4IMqO7ZVzdAHSAZHHSKmwGkKFByxv5bjwOAn/dr13vt7FRcYut2CL0F1Q75b2YHwfUF46YoUD fTlIxbdHP6TQ8NJWS8bpAO+BWa332dfaIGyc= X-Received: by 2002:aa7:9f08:: with SMTP id g8mr55602053pfr.59.1574972737769; Thu, 28 Nov 2019 12:25:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxZd0aFye0vSy1NxsGtsRRJBkuncMDWAD+zRH7F+esJn7Za4gqNzi7+zhDEogE6OWw66etLDg== X-Received: by 2002:aa7:9f08:: with SMTP id g8mr55602046pfr.59.1574972737583; Thu, 28 Nov 2019 12:25:37 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id 21sm22106551pfy.67.2019.11.28.12.25.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 12:25:36 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH v5 4/5] Documentation/vmcoreinfo: Add documentation for 'MAX_PHYSMEM_BITS' Date: Fri, 29 Nov 2019 01:55:15 +0530 Message-Id: <1574972716-25858-3-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> References: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: OKwI6C2fPRuCbPRYeHDI6Q-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_122542_718110_45D924B1 X-CRM114-Status: GOOD ( 12.55 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [207.211.31.120 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kazuhito Hagio , Benjamin Herrenschmidt , linux-doc@vger.kernel.org, Will Deacon , bhsharma@redhat.com, x86@kernel.org, kexec@lists.infradead.org, Paul Mackerras , Boris Petkov , Michael Ellerman , James Morse , Thomas Gleixner , bhupesh.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, Ingo Molnar , linux-arm-kernel@lists.infradead.org, Dave Anderson MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add documentation for 'MAX_PHYSMEM_BITS' variable being added to vmcoreinfo. 'MAX_PHYSMEM_BITS' defines the maximum supported physical address space memory. Cc: Boris Petkov Cc: Ingo Molnar Cc: Thomas Gleixner Cc: James Morse Cc: Will Deacon Cc: Michael Ellerman Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Dave Anderson Cc: Kazuhito Hagio Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Signed-off-by: Bhupesh Sharma --- Documentation/admin-guide/kdump/vmcoreinfo.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index 007a6b86e0ee..447b64314f56 100644 --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst @@ -93,6 +93,11 @@ It exists in the sparse memory mapping model, and it is also somewhat similar to the mem_map variable, both of them are used to translate an address. +MAX_PHYSMEM_BITS +---------------- + +Defines the maximum supported physical address space memory. + page ---- From patchwork Thu Nov 28 20:25:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11266567 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7261114B7 for ; Thu, 28 Nov 2019 20:26:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 393F221775 for ; Thu, 28 Nov 2019 20:26:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qw2V03ws"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XCaVDvtT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 393F221775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8riVko8HPB2ImxftN4P0sGqyQe28Ezh+jDJ5hvXNDK4=; b=qw2V03wss5Mweus/fNFAKdg6xw jd5DR9FPUrSt/7zplqujvHCjJe6s1NoanO7PP7L4P5JR21K9cRi8Tn7aauJAPH8mUthMnHCeN6xzN kS1iWtk7oyO3cVWxkkkwNjX+kS1AzqJtCelcgnPiclCQ1VSJXdMT9jfUORlwNiF+cjyM7wKOnT1FR v8t7Tyuozs+YQEHgxzmzrivIp/VSvcr5yPgCKcotIQvr6kjSgL6qFmT1jGta4bXgHIjZm8yvsCObF pDHGPnC/R74j9zrvoI+sr+k/d7ZqCYS57VVH7gbyKcFqSqgr25ent6g5F8JLEcXwBLwfE+dz1w0+v 5lsFdHGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQNG-00088X-0n; Thu, 28 Nov 2019 20:26:50 +0000 Received: from us-smtp-1.mimecast.com ([207.211.31.81] helo=us-smtp-delivery-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaQMD-0007Jz-Es for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2019 20:25:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574972743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=41xNMejmkDpiENDKO7RxAxz9cPSeln8z2A1ifqUYAvQ=; b=XCaVDvtTGiCvnPXWT2UArwCUG5gfP7YNdiRewsTFOqHwObREjvf3u7dvEMxg+gf/79JdLx 43rqrYbO7ObyYzdQdTsD13S2NMd9OfLxOlrxzI5Bk7A3jfLW9IhhM39FMFe7hQTIOMeC33 XuaFq+TTYP3+aVLIsWeW5qZIbVLr7Vo= Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-Wasvybk8Nm68GUtuL8p3IA-1; Thu, 28 Nov 2019 15:25:42 -0500 Received: by mail-pf1-f200.google.com with SMTP id h2so16701926pfr.20 for ; Thu, 28 Nov 2019 12:25:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TnU1CF4ydXp0Re/7xQPqByhi17OoIqWu96aUm7ilAL8=; b=dvWgE+fFGK3muounHgbovE2BNSdIW+WJ2P6tPu/iurvJbDCupvhZthIldwQ1CTYeA8 CIXtSAhHxZk8GgIRmJlw7xulScdcblC8W3XPhjHM8mV8BQYm5X02CNlP9V0GW6QAz1w2 1tJqcd+twG3/ROKLbmyHjo8yRWiFc1L7yK71jXRpaK7ENt1+AwRwLcVUg0WRwyxy7EYu 0+OsONoF/d3kSk7Q37vXUCcyKgqQ0OpuCLB8NzzAzIGq+lWBCj9TraAJjpKlQ3Mu+D+9 pxUTSBOcGybFWJCUhw2ukcHgiKYOU6QaWMPmbxL/TKbjqFBr0C/EOGJDIwpSz3hbat+3 lP0Q== X-Gm-Message-State: APjAAAXTzpDYoI84goc2OexJHFYbJl/2GM9YOMHZBurh9javTKBT/Tf0 KqPXD8iKQXJqmgSWWSHA5gtVQC7hNJ2crjPoNYYBjoOZMsSKVXylXFuRyUCZfWofVKjgTnRsfcF B5sM9DleZh81GzFVFN/Mvgni5wqeJ/bAyg1o= X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr14440647pjb.4.1574972741096; Thu, 28 Nov 2019 12:25:41 -0800 (PST) X-Google-Smtp-Source: APXvYqw1994kyjpL8nA7jbNA2MDbvleaYMa6ZgrsQMiMtjPLDmyjZ21lIhTP8RXhXz67xc7yDAqxlg== X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr14440628pjb.4.1574972740900; Thu, 28 Nov 2019 12:25:40 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id c184sm22569924pfc.159.2019.11.28.12.25.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 12:25:40 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH v5 5/5] Documentation/vmcoreinfo: Add documentation for 'TCR_EL1.T1SZ' Date: Fri, 29 Nov 2019 01:55:16 +0530 Message-Id: <1574972716-25858-4-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> References: <1574972716-25858-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: Wasvybk8Nm68GUtuL8p3IA-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191128_122545_590893_56EDD682 X-CRM114-Status: GOOD ( 12.25 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [207.211.31.81 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ard Biesheuvel , linux-doc@vger.kernel.org, Will Deacon , bhsharma@redhat.com, x86@kernel.org, kexec@lists.infradead.org, Kazuhito Hagio , James Morse , Catalin Marinas , Dave Anderson , bhupesh.linux@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Steve Capper MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add documentation for TCR_EL1.T1SZ variable being added to vmcoreinfo. It indicates the size offset of the memory region addressed by TTBR1_EL1 and hence can be used for determining the vabits_actual value. Cc: James Morse Cc: Mark Rutland Cc: Will Deacon Cc: Steve Capper Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: Dave Anderson Cc: Kazuhito Hagio Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Signed-off-by: Bhupesh Sharma --- Documentation/admin-guide/kdump/vmcoreinfo.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index 447b64314f56..f9349f9d3345 100644 --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst @@ -398,6 +398,12 @@ KERNELOFFSET The kernel randomization offset. Used to compute the page offset. If KASLR is disabled, this value is zero. +TCR_EL1.T1SZ +------------ + +Indicates the size offset of the memory region addressed by TTBR1_EL1 +and hence can be used for determining the vabits_actual value. + arm ===