Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp776906lqz; Sat, 30 Mar 2024 20:56:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXayaxIujmAbIqKVFYgc9aUXvBNlaij43HDV4hEsp4BXjKepIoTnNxWlmbWd6RatipQBa+R4KPHz5qfpGEoBbuMUnVwYqIg7zqsq2ZOJA== X-Google-Smtp-Source: AGHT+IFox7JSdRvps9s10UyiJvJpBfzAiOf7Tixh5gb+rlt/3BE81xn2N1mlnpb6A9ZB7yefBVzq X-Received: by 2002:a05:6358:6f0a:b0:17b:85ff:8fe6 with SMTP id r10-20020a0563586f0a00b0017b85ff8fe6mr7699982rwn.25.1711857372425; Sat, 30 Mar 2024 20:56:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711857372; cv=pass; d=google.com; s=arc-20160816; b=kyMb7OrKEiLkTsz5L3Yv1nzkOjfEwP4xRZYU3sy4yxROTyrA26maJ/ksG0TJo0wJTE bnSswOGaqNr91ICcbRmfhXmm3BX1nBcKc9u22HDtZI0jMkLY0snsXrNPeUqZBlVSpugW TFo9LV1GyrQMGkN57cPEMz1SO4N5HroMlmvOqnKS3sg5wj7oOdZmPnOpjBZa7wFFmVu7 wJzLSFjTDCgv6B+/WcKBAwl8IeHny00ProMaoWSFRG6nyBqyrtWaMsV5lL6zNITShDVd A0vt/vzZXSn/fPE/8S5h27gSUIdBnc65UL4iUS3eE05UGcYkCCABkranSGanlyBx6gbJ 2Okg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:user-agent:message-id:in-reply-to:date:references:cc:to :from; bh=k7sR9mrrFb4D7tIPcUIhyWr4sakECW1AmhwokvmRPJI=; fh=H2UU9Dvhue4d7DsAOkHOw+bjkWDTM2ffWbJ0eOo3aVk=; b=ZaF55Yl320aCwdOo91ZyayfH6sjJpjjrx+BUgaMau7/HlyN/WHDtIPk/fABSt9aaQs KTCGQMMGbtObmGAeU8TJ4hcXBBrrqGyOyFJneEF5M6Iwiyv069ajyydviQBLRsANSnSM BaEphsYmppy3k2GjQwPpTnWc8/ljeFOd0uY00ZpSckJsMEGucZ3kkdmFkFMDO3yCpYdb LwqS2AEAJGN6of5FLlxb9X7o1kJLLpyY5qW1F5BK38RzSYI1MPKHNspOgQy7CXjW6vdY 3PPMr+7bpH38VqX47aFxZdeJImAJxPETLbt+4g+H7OD4MFv3mZqaZeMX8WaP6+u0HvVy bzTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-125948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x38-20020a634a26000000b005db918c79b2si6624669pga.326.2024.03.30.20.56.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 20:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-125948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DD3728247D for ; Sun, 31 Mar 2024 03:56:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BFB823A6; Sun, 31 Mar 2024 03:56:06 +0000 (UTC) Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6196F15A5; Sun, 31 Mar 2024 03:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.70.13.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711857365; cv=none; b=tg8nFyJ8+UqSwx9CyFXpiYGaDg4kLdcOhO/BYn877nBddORpytJmOSREnDGpO1jIuNYPgSJ+EIZmIvUI3p3Q/alMHUTl7axRENiYRjgG8URGr7hxWv7zTBgDZ0CyuImoL+aPd8Yu5+BiNjY9aeL4Cwqjil0eY7O+eLqykL6vRUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711857365; c=relaxed/simple; bh=AAkRuLGOG4uqK+pVFGRIXj1u90Wm2JoqrdOoOkvsh88=; h=From:To:Cc:References:Date:In-Reply-To:Message-ID:MIME-Version: Content-Type:Subject; b=N1wA9usPrCwIUEKgiXK9aTjVxeYAS2Yj+Ti1SPq4eSFp/4eG1J6YeRw6b1s6Pqh9y6WkjnOgK4EIQpTUBvSwV67tGBtrHn6rGRYl0V/6gQMFj1hkhPVGTpWsfx/MX71Rkn9bfaQcn+brY9Zovoow5ZEg6HQbv613GVLQjVGjAzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; arc=none smtp.client-ip=166.70.13.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Received: from in01.mta.xmission.com ([166.70.13.51]:37872) by out01.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1rqmIc-006R2Q-0g; Sat, 30 Mar 2024 21:56:02 -0600 Received: from ip68-227-168-167.om.om.cox.net ([68.227.168.167]:42414 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1rqmIa-00BOOY-SP; Sat, 30 Mar 2024 21:56:01 -0600 From: "Eric W. Biederman" To: Ingo Molnar Cc: Pavin Joseph , Steve Wahl , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Linux regressions mailing list , stable@vger.kernel.org, Eric Hagberg , Simon Horman , Dave Young , Sarah Brofeldt , Russ Anderson , Dimitri Sivanich , Hou Wenlong , Andrew Morton , Baoquan He , Yuntao Wang , Bjorn Helgaas References: <20240328160614.1838496-1-steve.wahl@hpe.com> <47302624-6466-41a7-85db-f6872d58a4d2@pavinjoseph.com> Date: Sat, 30 Mar 2024 22:55:53 -0500 In-Reply-To: (Ingo Molnar's message of "Fri, 29 Mar 2024 14:30:37 +0100") Message-ID: <871q7r12d2.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1rqmIa-00BOOY-SP;;;mid=<871q7r12d2.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.168.167;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX1/kWo8wjQwNMWG010uyvizqLJN0L8iVgO0= X-SA-Exim-Connect-IP: 68.227.168.167 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4922] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * -0.0 T_SCC_BODY_TEXT_LINE No description available. * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Ingo Molnar X-Spam-Relay-Country: X-Spam-Timing: total 518 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 13 (2.5%), b_tie_ro: 11 (2.2%), parse: 1.72 (0.3%), extract_message_metadata: 19 (3.6%), get_uri_detail_list: 2.4 (0.5%), tests_pri_-2000: 7 (1.4%), tests_pri_-1000: 6 (1.2%), tests_pri_-950: 1.84 (0.4%), tests_pri_-900: 1.47 (0.3%), tests_pri_-90: 100 (19.3%), check_bayes: 84 (16.2%), b_tokenize: 13 (2.4%), b_tok_get_all: 9 (1.8%), b_comp_prob: 3.1 (0.6%), b_tok_touch_all: 54 (10.5%), b_finish: 1.18 (0.2%), tests_pri_0: 334 (64.4%), check_dkim_signature: 0.69 (0.1%), check_dkim_adsp: 3.1 (0.6%), poll_dns_idle: 0.93 (0.2%), tests_pri_10: 5 (1.0%), tests_pri_500: 24 (4.7%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v4] x86/mm/ident_map: On UV systems, use gbpages only where full GB page should be mapped. X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Ingo Molnar writes: > * Pavin Joseph wrote: > >> On 3/29/24 13:45, Ingo Molnar wrote: >> > Just to clarify, we have the following 3 upstream (and soon to be upstream) versions: >> > >> > v1: pre-d794734c9bbf kernels >> > v2: d794734c9bbf x86/mm/ident_map: Use gbpages only where full GB page should be mapped. >> > v3: c567f2948f57 Revert "x86/mm/ident_map: Use gbpages only where full GB page should be mapped." >> > >> > Where v1 and v3 ought to be the same in behavior. >> > >> > So how does the failure matrix look like on your systems? Is my >> > understanding accurate: > >> Slight correction: >> >> regular boot | regular kexec | nogbpages boot | nogbpages kexec boot >> -----------------|---------------|----------------|------------------ >> v1: OK | OK | OK | FAIL >> v2: OK | FAIL | OK | FAIL > > Thanks! > > So the question is now: does anyone have a theory about in what fashion > the kexec nogbpages bootup differs from the regular nogbpages bootup to > break on your system? > > I'd have expected the described root cause of the firmware not properly > enumerating all memory areas that need to be mapped to cause trouble on > regular, non-kexec nogbpages bootups too. What makes the kexec bootup > special to trigger this crash? My blind hunch would be something in the first 1MiB being different. The first 1MiB is where all of the historical stuff is and where I have seen historical memory maps be less than perfectly accurate. Changing what is mapped being the difference between success and failure sounds like some place that is dark and hard to debug a page fault is being triggered and that in turn becoming a triple fault. Paving Joseph is there any chance you can provide your memory map? Perhaps just cat /proc/iomem? If I have something to go one other than works/doesn't work I can probably say something intelligent. Eric