From patchwork Fri Nov 29 19:59: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: 11267577 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 60E866C1 for ; Fri, 29 Nov 2019 20:00:24 +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 354C52158A for ; Fri, 29 Nov 2019 20:00:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rpv/AFuh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="L7Ez9i92" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 354C52158A 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=rpv/AFuhZlLUdW4TZNGmipFX9n d5P7uJZ6LSz6xQKN+jFTzV+9TxG0WsqP9Zoz3mSnKO7hoDl+4JFWCx7u6WZLvlQjfADAdJVT5+n/L f45AlFsEaULl6GEUWThx258IiEW8MnDoSkz/nFvnQfnUNkjCiEED4cz/rmkfB3CeMsjAH9He2YRKk KSVSDKB6HyMqzeHlaFJxTDWeTLkjwnhgxXjJ6UP5eOI46LCotRAZL7Zp6xY23peOCeALXbvYr44Cs 4hs39WmgnA39tVuMp32JCE443kQ1L3WM02b1RrT1Cg4Nx1U3Egil/bz0zfOwrfAwAP/km3P120K80 JM5TqYCA==; 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 1iamR1-00081x-On; Fri, 29 Nov 2019 20:00:12 +0000 Received: from us-smtp-2.mimecast.com ([205.139.110.61] helo=us-smtp-delivery-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iamQZ-00076w-6b for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 19:59:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575057581; 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=L7Ez9i926Ex76stT6mqO2GokJXK2MVpiiZmlb5VwTfwbefJHxy0wdqhxRDKpGCt6phArhv VM15vugSMw87s+UnGL7xq3kR2H2sl9vLMOlD2QFjhqqa1LJRGp6nb/kuwjB2oIROrDuSml wuq7oCQptsDZX83OqOYWhma1HAxrTRQ= Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-136-j6cAnfqxN-i9sl7R1MkLrg-1; Fri, 29 Nov 2019 14:59:40 -0500 Received: by mail-pf1-f199.google.com with SMTP id x21so7413294pfp.12 for ; Fri, 29 Nov 2019 11:59:39 -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=bWYY5o4sga6POyCkfJ6dT/a42gCNLhYE3R+qINKgBag+tr09AtwDca4G0yRbR4enSB kUi9y2+NWLS3XQOEHaBEUVs3GgZ+NQbmI7CP0xMuLRqkHnoWlbovUNURVhkOrIXbBgvO tnUNEBakY2s2W6XnO/GIR0L6q+ZXl3xhTEwGajGxPJsIMLvs2JxJ95pS7MQPr7V7HOLG g6Kg96CgNoE6tjbO0qoK3V5mWO6L7l7aQnSdBNco0W/bJAAXV68Mv0ogzyoPeXV0dYLU ZWMkuXhOP/MpGnzsEMCSsYv5LqFybgwal4uY/P1wVQO3oiQxmz/2Wvq47ggL6DOUickb YEZw== X-Gm-Message-State: APjAAAX9eN/WBMNcbouPrETj5h8Y+6YkKUV+ge0zv3XonTbQvhJIxCYE UYgFiTKLou4U1TpZANvUJulVIfVM7SdRIbgiHq//LY/AH/jVc1lbsrkuw2wol7Qh/a+7YH26Vf5 LtZlKzw4qBEIMHlmNWmSpcCnLHJv4mjoU0/k= X-Received: by 2002:a63:6f4c:: with SMTP id k73mr15574193pgc.374.1575057575542; Fri, 29 Nov 2019 11:59:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxxfC5l5m0YoqdbJOwab9vDMWknIRaUJM6sjnSau+oJsA046vHWiBYg3wYv5hDxMjiI/P8T+w== X-Received: by 2002:a63:6f4c:: with SMTP id k73mr15574178pgc.374.1575057575265; Fri, 29 Nov 2019 11:59:35 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id r28sm23294033pgk.75.2019.11.29.11.59.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:59:34 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 1/5] crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo Date: Sat, 30 Nov 2019 01:29:15 +0530 Message-Id: <1575057559-25496-2-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: j6cAnfqxN-i9sl7R1MkLrg-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_115943_334686_90164072 X-CRM114-Status: GOOD ( 17.10 ) 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.61 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 Fri Nov 29 19:59: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: 11267579 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 74204139A for ; Fri, 29 Nov 2019 20:00:43 +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 380412158A for ; Fri, 29 Nov 2019 20:00:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nItL+Dns"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ptf/TCYZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 380412158A 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=rQUeEhnxe/fnikXZQt1i7+hvd8Og3QYtZI9n8u2JF1A=; b=nItL+DnsyXAmrDRFM630+BI7GB QQyxU4xlNawPxkkfbpGf5yB4xUstQxwebRBkhoelFkUgaFc3izlUoSPLZfLzjI9ZBiSU7XH3Mettd hzM1GbttrTmwDpNA3NFL9LbwuJ4WefOgvNMj34lg4LdOXmaOSRHUwokLewu7yM/Dhm2g+fffFe3+Z xzCKvNB8CotbzViPZmZC+iyOhV4KVqgQNxMJbeBqr00YMOKtAdoj4Fy3qP3qEu03HQ5VTsS7jI1Ml ji4L083vbUSwRN06tEZoX0SYUlNG4mIHB52nFAFaf2P1q6H9UqUDAtkbRGeSMDdnTm9DpPBeWRvQ+ 11+oZ/cQ==; 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 1iamRR-0000cW-2z; Fri, 29 Nov 2019 20:00:37 +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 1iamQc-00079e-7O for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 19:59:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575057584; 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=wgbAkKrJxLS1NEOR+82/qBcYhhrIFUtkNwc9k9kwPFE=; b=Ptf/TCYZpNUNBaJhgOdr4X7qUTDzH/XvQfUWPLBa/z/RuVThOqvtXr32eiyH4t1qDRLuzz U/nb6MDzKc9D4pxkmgnsGPcxUMkNN2WhYlYs9jkGxQ1QsL/MiK4yfOVIzvUGnaB8fIb2A3 JWNsUiXKfOY7NcS1POS88HN1HBZfsLo= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-43-7QbnBYmzP2W_XcwRNvTJqA-1; Fri, 29 Nov 2019 14:59:41 -0500 Received: by mail-pg1-f200.google.com with SMTP id o21so1659911pgm.11 for ; Fri, 29 Nov 2019 11:59: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=iJyjrUFfcmHAhH3JG4K3fZfDXNCj7aMMhMdC/cxhP5Q=; b=ap8/vnF6lY49WE19fhzYrbMORqAuyFmzQOXe7IJ+ATGpHf387A9S3yD3ebJ9jEy2KM nmhynqelQ4RYNNTbtNd2ZkYOltJoLL+ulFdUYcHj+hT7C4/4eSZ9Xnehvrvee8SJtJKC 4muZf/AVOOo/qROMkfr0FpNF9RJyNKwhvfER18rGwirFGOlfp75rPD/WoUNr/IwOKjpq JbQLNT3GTuA7T8sNY+30vZy6I6PRCf5yq39UaC0/9tl0RAciUnSrk/xm5HE3dOZqb+js E/Yd7MYzTUm1gTcIvE+BcVcvTqWgIVoypbaBV+JLdZTJYpW0ofj6H8pFK79Zp0yjQerd /M2Q== X-Gm-Message-State: APjAAAUWar88ZNDSoRR0jGFpCRO9aeKi5I+YpM6KOyWonSWXYvJFV3LT PpYtlnRp739UpKUpPtgey+7x1jgnN7hsoUStDLQBjjZtIfYeDTDS75LT27zhoZUEuYVcO45BTw4 ZfFj/KwaxS7PcGfUo4taFuLLaL7fxDahkUk8= X-Received: by 2002:a63:fb03:: with SMTP id o3mr18525468pgh.378.1575057580572; Fri, 29 Nov 2019 11:59:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxSS9+ZN7GKT/MIwc8aGAoCV6a/ldIDRYJOYbBvx5BLhqOQbU8FUr1Poz3Dix0kBpRLDW39Sw== X-Received: by 2002:a63:fb03:: with SMTP id o3mr18525441pgh.378.1575057580274; Fri, 29 Nov 2019 11:59:40 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id jx12sm6300003pjb.26.2019.11.29.11.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:59:39 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 2/5] arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo Date: Sat, 30 Nov 2019 01:29:16 +0530 Message-Id: <1575057559-25496-3-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: 7QbnBYmzP2W_XcwRNvTJqA-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_115946_390595_9C65B5EF X-CRM114-Status: GOOD ( 18.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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 Fri Nov 29 19:59:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11267581 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 E091C6C1 for ; Fri, 29 Nov 2019 20:01:06 +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 A53FB2158A for ; Fri, 29 Nov 2019 20:01:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OTqM9ri2"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="B8Qyy3Zw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A53FB2158A 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=OTqM9ri2qHmlHsG7oUnDjhIORr kdlguMWnYf17M6gijLg1qSDoZUw+tRbYTyCgzzEi9mbb2REtEGgIZcSb5BBVBig2IDHtNlGY7LGZb FjTbxjSdf6tdVwaX4iDuPtrl1pGRrhUg336VrVlTFFMBc8wthhVZy4aD+MrmhH4FQ0dCwMfUwv5AN oGM3Ly6MmVAELuEaoRzKMh4mOpPWw6c1M+swy+OmwOBv3wRLWxBhQqBnkmBNk5FBt712TumFXqkI/ lpOaFrhTRjcfgjeOoUYbXf9fPcV1+MwYvBufVkj/giU9bkrqvgnfT88b1S1lQlORb8XQRjjR2gMea 5dRW0cMQ==; 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 1iamRr-0000xh-D8; Fri, 29 Nov 2019 20:01:03 +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 1iamQf-0007CX-Lm for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 19:59:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575057587; 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=B8Qyy3ZwqX1aKoo9QY+0r/F4xriA8glP+aBdWc4fGEKWl7zFQP9mtmf1bQ1TCkZaKATqgF UG3gBc0yRgdaoXAYJy9C2UigbTFr0MlMjndq11X/gZW+wFDvV0LJoqJqOpidQ23+niT2fZ pyed1rdA0fF4UCSBEop9ba9XcK0Qf7A= Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-218-vhQf1mC6MeqiuxWS9o6w0Q-1; Fri, 29 Nov 2019 14:59:45 -0500 Received: by mail-pf1-f198.google.com with SMTP id b15so2876106pfo.16 for ; Fri, 29 Nov 2019 11:59:45 -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=JmeOYGjg7K2ZPxa6BLT/ijpywGM+HnIkWfTEo1htOEflkVYf4JmlSOP6sNp5bwkQpS G0uqmXvveREBzgWY34+6mIzxmFi//VbtNaKIXkWGfiV/idOce8dM8Yues752nQj8ZHEI 9op+vk2czwovJHol7eA/fwmr/F9Xf0xfb2I2kafDTg4dDtJ5+uMoAnz1//aZ5xZ/0tu6 y6Sit8Z/T6q0JDeiL0HkVEYDIzCfshTdVTkAa7Ny0TMkg+Y9xdsJKugQ6dzc1F/81yMH r4nv3ozhoMwLIdJzEJPTQuNwpK1kOlt9r5BZOcq83gB2HxuFfSqPhUNAAafzTd+0BZsO OTkQ== X-Gm-Message-State: APjAAAUDw7cbEpxmcG+mNmmbLUDssCuqSDJs3n1nfurQywe06bdamX9V ZQlXoBsZRwbfb8jsYPS0WNazMTLLRurNa0FRTak5rO3EQcoW3uLT+N+cYnWmGVzyQd36QANdlC9 X4S+LA3sT/QhWPtml1/EAlklt6f2MUX7UYbg= X-Received: by 2002:a17:90a:fb53:: with SMTP id iq19mr20314620pjb.138.1575057584293; Fri, 29 Nov 2019 11:59:44 -0800 (PST) X-Google-Smtp-Source: APXvYqz4gnI9c2bYrtjkLwMhPYvWHvZw+YasEX6lAkryf7HpqeVi2n8s5GR/Ai2re8lnbcSS3E4aLw== X-Received: by 2002:a17:90a:fb53:: with SMTP id iq19mr20314608pjb.138.1575057584113; Fri, 29 Nov 2019 11:59:44 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id 67sm15725427pfw.82.2019.11.29.11.59.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:59:43 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 3/5] Documentation/arm64: Fix a simple typo in memory.rst Date: Sat, 30 Nov 2019 01:29:17 +0530 Message-Id: <1575057559-25496-4-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: vhQf1mC6MeqiuxWS9o6w0Q-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_115949_871322_4574C5C0 X-CRM114-Status: GOOD ( 15.05 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 Fri Nov 29 19:59:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11267583 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 50786139A for ; Fri, 29 Nov 2019 20:01: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 27E852158A for ; Fri, 29 Nov 2019 20:01: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="fSgzYRjk"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Nuz9PtJB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27E852158A 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=fSgzYRjkySMGE2QTv8mVoorJw7 5s1Y+zXFBFAqA96TCVrziD8yrKqzUwMuyGjnHE0SZbaQUxya1dpTSNmVVnyc+EUQB9SndYf4yANzG FkVHrc9360ZWwfVh3LZqPe3qkL/d9PwIZS+kagVnlTk0IVSLxGwqpWRNFUtYqr0+Qym909OaLc+ii UqdeBrzG9Uhfgi9pSxbrFK0AQU22bBIs+4JFh+R1GlhMpi1ilMtmtfCjD7vhbZRQImuk4TKY1xKzk X+7v+/U+1vnqf57sWrdlEJgR+OD1GvSPruIW8cK7Wn3H86LEna9KNWXlKtpxRvdpiZE+Hocrk/Q17 Pfutumzg==; 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 1iamSC-0001EZ-VQ; Fri, 29 Nov 2019 20:01:24 +0000 Received: from us-smtp-1.mimecast.com ([205.139.110.61] helo=us-smtp-delivery-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iamQi-0007Fo-9P for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 19:59:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575057591; 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=Nuz9PtJBk8cMdRpdLhT5f54Svl2GW3tb2FeXS4CLEbVmXoIZP/kimp4C/RJe8VP/OVyz4j lSmjrYcTmTVEJlJtgZJZFVWJitOhDOIWEjgPt6CZYXmzfasL1ku+l62AflXt8kerQ0VGhO JqdV58Gfvp2lECw9VASy60R96W9Y5W8= 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-154-n1mAx7ksNs-Qy_PUGz5x0A-1; Fri, 29 Nov 2019 14:59:49 -0500 Received: by mail-pg1-f197.google.com with SMTP id o21so1660030pgm.11 for ; Fri, 29 Nov 2019 11:59:48 -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=gGDCXplVXsJYV7M6dFGgR9So+KvbLadlkBR3ksQ24OTvfjxS+mWl9gn4y4bfexqGw/ nV7l5vx/zLBwTCmCwoGQcWHFznqMFiivIJ20kSAfOsiJ0b6AADVICq1oVWgBO1zdH0Kk nJPynyx//odQDn5F0OS3qUQ6/pXQjf2NmkB/QEehgQnBd5DHOBzBeJ9VRBvFgIQoghqi iBWs3Vl2LVQvxM+W7R2AN0zvg+f3cDDXfKBxDXEVbifWrVr3pGqBIezOPr9z/mdY1Ol8 FuSugzwU2wUD8nH9BcTIYfHPNCar2g40XWNf5cIEaWd0nIh1MLXO4azF2VMe+MFNJ0iM P8QA== X-Gm-Message-State: APjAAAUafnjZE3QVy+0aauZJMzJ1bNAjdWXP4EHoVh7BZ4Tf6rQ9uWvm dIU0HgVh/1xYCdWDJRxfZTIdif5kfdc0aL5b5QlKQJji0Mf0XY4K3DtlsuvsTU9szB1w2S6d1yr 6hyzdvcLVJ0V6KZddFsCm7CoMZyBUgCPcZxc= X-Received: by 2002:a17:90a:dc81:: with SMTP id j1mr3729517pjv.29.1575057588119; Fri, 29 Nov 2019 11:59:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxPVcE/XW8sUFbfhtiOj/O3Z62tRbLgdRo5GLkRP1HykyImTD8scVfMGcKn/WmLBQBtuJQ40Q== X-Received: by 2002:a17:90a:dc81:: with SMTP id j1mr3729508pjv.29.1575057587944; Fri, 29 Nov 2019 11:59:47 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id 67sm15725516pfw.82.2019.11.29.11.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:59:47 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 4/5] Documentation/vmcoreinfo: Add documentation for 'MAX_PHYSMEM_BITS' Date: Sat, 30 Nov 2019 01:29:18 +0530 Message-Id: <1575057559-25496-5-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: n1mAx7ksNs-Qy_PUGz5x0A-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_115952_452528_68E23D94 X-CRM114-Status: GOOD ( 12.11 ) 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.61 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 Fri Nov 29 19:59:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 11267585 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 D35EE6C1 for ; Fri, 29 Nov 2019 20:02:02 +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 A8F012158A for ; Fri, 29 Nov 2019 20:02:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tqDrdCHs"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TLwAYx7+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8F012158A 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=tqDrdCHs2+NPK0z8A0S5Omhdvc OH4tYfLrULeNAMKt56QMz5MgoWUR6PeIJMTXeIM76dUYzcOzBDMThR34r8OK550DtCQ1lHbUWld6q zC0VQb4yXQWOiZNS3Zpkw19efBHtfKVVNhJqdUJYLFFEEjGSwu4h/pyAkVflnC4NPEUExKE0p2GMI 9iF8nlQCypCD0uyawSl72FdZEFOx0V8wexzb6eG1hqcqBX0/exTSGSVr0KpR4NX/BBaq41MEqTYVG XPRx3I9/dvK8AvBjAs8vrtNTke8piPjQbrXLxKZhCip7EIcXv5ekl76fgSIfHcUnfV7EDUPMeGWmC SsvjZduw==; 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 1iamSj-0001ek-Hv; Fri, 29 Nov 2019 20:01:57 +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 1iamQl-0007Ic-O0 for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 19:59:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575057594; 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=TLwAYx7+GwsQy5Nsbfp3upNO524Vr513dsISkCP5sFAIpOjVX3xYGVJx8DlEg3wHBbRJ2i VSviOXx2OioZt8KY7Bg/ieyxg82CXLqhHiDzKbZfUJjtegssz7ojtVfCV5yOszy2Rh97/U 0JRO05Qjbdfvmept4lM37ZvfPvwktHA= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-339-VKG8sCIcO6O1vnDiwqdKUA-1; Fri, 29 Nov 2019 14:59:53 -0500 Received: by mail-pg1-f198.google.com with SMTP id r2so6593539pgl.4 for ; Fri, 29 Nov 2019 11:59:53 -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=UxKb09DFp00gV/npGLl/wwpZgqRjiDbW7JZSZbypuVWDTLYCRCjb+LV7WqVXzOF2Uy sC1IwpSy54qZlFNv+NCpJNFkGu6R3GOTmNJIBLBxJ42WmQ1/yaFj24xZbArkZJyW1Lhs R3zaL9Mip1Xx14CvWuLQ89wIbN7ymg+gmv4r7C9a1qZPNjpqdf7xinegNVUbZML02np4 rAUV+UN+YBTNhQBJCf+x0zWOFZ287KJydu2h9bm/0lWwK4b1IvuTHHtH7GybCjZOe+nW iYI8586SPNJxBvxJqgwiD2ghJ4y7Wy7fXO0+IFMZew7Xo1NF489uUOtD4potmbA8SO16 Ju4w== X-Gm-Message-State: APjAAAWjquXdMjXV9mYjrp4gUNghU1HB3x24Hr4ZpX2aXcR8u0mxRzH+ +90pd6E/v5bx2jlrNTJ7xpNU3h46KBsjBUqpvHs/axCkQjVkpLYeISVWhwDR6wnyGx2/6VyekbS U0qbOAPmyG+prPSllX6Gi4F/Y9Q2yIWR1RsY= X-Received: by 2002:a17:90a:1a8a:: with SMTP id p10mr19841460pjp.6.1575057592018; Fri, 29 Nov 2019 11:59:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxSY3AQtQ2n98lr5W53/GVJZRJxpVnInAVeYWNmyeuMXseeTDPCBIIN9JR01+Ft/5q0+acg9Q== X-Received: by 2002:a17:90a:1a8a:: with SMTP id p10mr19841443pjp.6.1575057591861; Fri, 29 Nov 2019 11:59:51 -0800 (PST) Received: from localhost ([122.177.85.74]) by smtp.gmail.com with ESMTPSA id v10sm23928968pgr.37.2019.11.29.11.59.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:59:51 -0800 (PST) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 5/5] Documentation/vmcoreinfo: Add documentation for 'TCR_EL1.T1SZ' Date: Sat, 30 Nov 2019 01:29:19 +0530 Message-Id: <1575057559-25496-6-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> References: <1575057559-25496-1-git-send-email-bhsharma@redhat.com> X-MC-Unique: VKG8sCIcO6O1vnDiwqdKUA-1 X-Mimecast-Spam-Score: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_115955_882508_DAED7CAA X-CRM114-Status: GOOD ( 11.81 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 ===