From nobody Sat Apr 09 11:02:15 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B3C2D1AAE8F4 for ; Sat, 9 Apr 2022 11:02:15 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KbByv1sN6z3Q0Y for ; Sat, 9 Apr 2022 11:02:15 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References: To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dO7pSwn1yWnYMfNwnBVdWpb2BmhqtmheQoOm/qYXHUE=; b=E63AfhkfwlJ6TybpNktM3axG8+ wiAfgvoJxohLqhgqS3JT7K1sVNuwl0mVshNIFlcsVdI/ofaoxEzkgNQ7GMwcC8XRTVAFSJXpuqXQz YiXse35+/PhUOpmS6Jo2MRzO9/Eho+y+2OWc+qacpuvZjvNUMWi33t2atywoKt1rB2K8=; Message-ID: <97efe292-62cf-bb4c-b702-25f62c66c3cb@klop.ws> Date: Sat, 9 Apr 2022 13:02:15 +0200 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: git: bcd763b642ab - main - Move the arm64 DMAP creation to C Content-Language: en-US To: dev-commits-src-all@freebsd.org References: <202204061324.236DO0pe071404@gitrepo.freebsd.org> From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: ----- X-Spam-Score: -5.9 X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: 4b8baa00aa45d625c6ee6c23f4cb0de1 X-Rspamd-Queue-Id: 4KbByv1sN6z3Q0Y X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=E63Afhkf; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; RWL_MAILSPIKE_EXCELLENT(0.00)[195.190.28.88:from]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-0.94)[-0.945]; MLMMJ_DEST(0.00)[dev-commits-src-all]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 4/9/22 07:31, Kyle Evans wrote: > On Wed, Apr 6, 2022 at 8:24 AM Andrew Turner wrote: >> >> The branch main has been updated by andrew: >> >> URL: https://cgit.FreeBSD.org/src/commit/?id=bcd763b642abb4b236902e84184c579225265fb7 >> >> commit bcd763b642abb4b236902e84184c579225265fb7 >> Author: Andrew Turner >> AuthorDate: 2022-03-15 17:05:48 +0000 >> Commit: Andrew Turner >> CommitDate: 2022-04-06 13:09:49 +0000 >> >> Move the arm64 DMAP creation to C >> >> To simplify the creation of the direct map (DMAP) region on arm64 move >> it from the pre-C code into pmap. This simplifies the DMAP creation >> as we can use the notmal index macros, and should reduce the number >> of pages needed to hold the level 1 tables to just those needed. >> >> Reviewed by: alc, dch >> Tested by: dch, kevans >> Sponsored by: The FreeBSD Foundation >> Differential Revision: https://reviews.freebsd.org/D34568 > > Our Ampere boxes were fine with this, but this seems to tickle > something on this M1 mini that I have. Specifically, we end up dying > while probing UEFI stuff, here: > > https://cgit.freebsd.org/src/tree/sys/dev/efidev/efirt.c#n183 > > efi_systbl_phys == 0x9e0979f30, efi_systbl == 0xffffa001e0979f30 > Fatal data abort: > ... > sp: ffff000000fb79b0 > lr: ffff000000157ae0 (efirt_modevents + 94) > elr: ffff000000157ae8 (efirt_modevents + 9c) > spsr: 604000c5 > far: ffffa001e0979f30 > esr: 96000007 > panic: vm_fault failed: ffff000000157ae8 error 1 > cpuid = 0 > time = 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > vpanic() at vpanic+0x174 > panic() at panic+0x44 > data_abort() at data_abort+0x2f0 > handle_el1h_sync() at handle_el1h_sync+0x10 > --- exception, esr 0x96000007 > efirt_modevents() at efirt_modevents+0x9c > module_register_init() at module_register_init+0xc4 > mi_startup() at mi_startup+0x284 > virtdone() at virtdone+0x7c > Is this similar to this? https://lists.freebsd.org/archives/freebsd-arm/2022-April/001222.html Regards, Ronald.