From nobody Sat Apr 09 05:31:09 2022 X-Original-To: dev-commits-src-main@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 F038B1A89B9D; Sat, 9 Apr 2022 05:31:22 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kb3d66H9hz4VmN; Sat, 9 Apr 2022 05:31:22 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649482282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lZONfX3FbGDzDf1um5BT/1u+WfhV3jQbEW3koIuhVoo=; b=IqTyNxcZYbOvkYdoGLDTir4IF2RKb1OMQuCMgD0NYudAZZisRWcDfG6a67DbazmUpo9/nY H3udvm758j/h+ar59O9z4HRKx1f+4B2cfEGh82VXIq0FQmDZL/IunUD7PMIMBq8gUkHkB+ TuArwVPWU6XmaChAsof1iwmx+Kx0mk1YwEPcaHavgvUgpGjgEc/lHuU9ihUCk4FfkNiLNR jFImxNj1LjY1JPqWau9pq5eRCqvtr/DT7+naVbZ3ZYSjhY64Le0hceDYQsCxZwSSvjCl6L 68hLxt4bwV2BKrftUWriGxJ4oFDTUNLrgW5msYhNA6NM7WBkyB8bJB+GiFvg4A== Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id B52133878; Sat, 9 Apr 2022 05:31:22 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lj1-f179.google.com with SMTP id q14so13831659ljc.12; Fri, 08 Apr 2022 22:31:22 -0700 (PDT) X-Gm-Message-State: AOAM532I/RNphBvfKpt2quBEq259h+7VUIp/RqK8/ZKs9wbt4gRQLqvS QwqJ5Ih07Hqsydw0YdB+9N9GVLAe1QClKmxhgl4= X-Google-Smtp-Source: ABdhPJydqgYJpvoDQRv9WJid2NTZeFm/ypPp8Paoa2h8DI2azNG5aE/UIQocN09YbDMehOQMgUIhMCIW4pNXVxFF2iE= X-Received: by 2002:a2e:bf22:0:b0:247:da0b:e091 with SMTP id c34-20020a2ebf22000000b00247da0be091mr13834514ljr.489.1649482281157; Fri, 08 Apr 2022 22:31:21 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 References: <202204061324.236DO0pe071404@gitrepo.freebsd.org> In-Reply-To: <202204061324.236DO0pe071404@gitrepo.freebsd.org> From: Kyle Evans Date: Sat, 9 Apr 2022 00:31:09 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: bcd763b642ab - main - Move the arm64 DMAP creation to C To: Andrew Turner Cc: src-committers , "" , dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649482282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lZONfX3FbGDzDf1um5BT/1u+WfhV3jQbEW3koIuhVoo=; b=X0ki9oqJfiy++mmSFmtzRcRm0vcVaaH6EIEtIZVfeEKSOvQSs5QjFjN3bLvYSk6kS/vHTh 6gXrzHDSmooAXa9kMG5I/58JjtI2unRI5q2E6fa2shS6aVhU4e7Z+SKT7hrAN438wdDhZA HH3ezDDvVLNgZ2rCOuY7OM9E8VyYK+bQuYRLfXXu3ys5pLZ6fO3AymNdHhcbG0zJfDnLET 4Wzdu9yip86SK8iS6VAKVM40RHIbIXXeHt9NNltJbS++U0Imr5atYv1otIOWlkkewa5dVy MSgidclY2K9cyWmMc63+cKu2VtZth1Q/NPxDtrEfIxiDjAhqvwrtWjZrDsWK3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649482282; a=rsa-sha256; cv=none; b=x/eDX6wsL45CX3hvpL7C05PRMB4YGfiIpbo/Fw+edVtAI6sqKW/5LaifNuc5V32aUCc51m 799JpmTlzT6nS29IPVhXM5/Au7dqwAkGCvQGUVQjCrBE/axhtf7tlv+HyqKZB50aL2sTly rsUoJAtmaIwJQJdPJG2NePaw3C6A6ej0MsU4wTIcea9pDK77g569f4nuMJIaW/T9BxoAHW lLZK2sd4NsHUtTPYHWvUlEN08rcKTb+MxHMbJBKBJ8s34fCfBKZhvWQpVX4B4eS1srtu3v +j46O1ZAaZOAY5Rp3v/eXT+DgnRI0Kokjwl89xvy7saDbw0cDjYECj0+yLkk6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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