Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 781E5C7EE2E for ; Tue, 28 Feb 2023 09:45:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbjB1Jps (ORCPT ); Tue, 28 Feb 2023 04:45:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbjB1Jpp (ORCPT ); Tue, 28 Feb 2023 04:45:45 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1952E81B for ; Tue, 28 Feb 2023 01:45:20 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7C4AC5C00D6; Tue, 28 Feb 2023 04:45:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 28 Feb 2023 04:45:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1677577514; x=1677663914; bh=LAIFPVQ3b3V1CGIuqJYt4SeAhAdB WyvM0W3e0hHUVfc=; b=fYJ7im/erM2dC90CAEtP0n0qFTRTGamkc73/6zDlvVxs bHx+Hoh1joHqNxhfE9PnwglDuh0CwrePBxOY7FOZVM1fpzq1PeWiv802n3PQ5K0I 8R42FOqzWhjnMf7DTUgwLHcK0n52cdnwAEVW1/n4IigGatGdL/ysnaIcOfzqE5hV TO4Ge5WbjLtW2XE9ncF0vkLn7adRk1ZPf3OzwE38h4tAbxvKo3dvkU1Rmhb6hUmd JjRFTHbm9OOXdEImCkVMs9ojcs7sB5Exjt1gnv6fMs/fbwLLGplk0lse4PC+T4VG qp9nMpTvPqT7rmtYSlv2U7ZqRdiKN4auIoBuvZZSCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelvddgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevufgjkfhfgggtsehttdertddttddvnecuhfhrohhmpefhihhnnhcu vfhhrghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrg htthgvrhhnpeelueehleehkefgueevtdevteejkefhffekfeffffdtgfejveekgeefvdeu heeuleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hfthhhrghinheslhhinhhugidqmheikehkrdhorhhg X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Feb 2023 04:45:11 -0500 (EST) Date: Tue, 28 Feb 2023 20:47:43 +1100 (AEDT) From: Finn Thain To: Geert Uytterhoeven cc: Mike Rapoport , Stephen Walsh , John Paul Adrian Glaubitz , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] m68k: mm: Move initrd phys_to_virt handling after paging_init() In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Feb 2023, Geert Uytterhoeven wrote: > On Mon, Feb 27, 2023 at 11:46 PM Finn Thain wrote: > > On Mon, 27 Feb 2023, Geert Uytterhoeven wrote: > > > When booting with an initial ramdisk on platforms where physical memory > > > does not start at address zero (e.g. on Amiga): > > > > > > initrd: 0ef0602c - 0f800000 > > > Zone ranges: > > > DMA [mem 0x0000000008000000-0x000000f7ffffffff] > > > Normal empty > > > Movable zone start for each node > > > Early memory node ranges > > > node 0: [mem 0x0000000008000000-0x000000000f7fffff] > > > Initmem setup node 0 [mem 0x0000000008000000-0x000000000f7fffff] > > > Unable to handle kernel access at virtual address (ptrval) > > > Oops: 00000000 > > > Modules linked in: > > > PC: [<00201d3c>] memcmp+0x28/0x56 > > > > > > As phys_to_virt() relies on m68k_memoffset and module_fixup(), it must > > > not be called before paging_init(). Hence postpone the phys_to_virt > > > handling for the initial ramdisk until after calling paging_init(). > > > > Thanks for debugging this issue. > > Np, you're welcome. > > > > While at it, reduce #ifdef clutter by using IS_ENABLED() instead. > > > > > > Fixes: 376e3fdecb0dcae2 ("m68k: Enable memtest functionality") > > > > I apologise for the trouble caused by that patch. > > Does that count as an Acked-by? ;-) > Well, git log | grep suggested Mea-culpa-by and some others... Acked-by: Finn Thain