Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp102881rdd; Wed, 22 Nov 2023 10:26:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiS/y7XAj+nvqknLxs+RNOOoyCK55ybWl7/fNrcYhrZHS2SKXxn9VX3GpqIgbY/vqYorH2 X-Received: by 2002:a17:902:8c96:b0:1bb:598a:14e5 with SMTP id t22-20020a1709028c9600b001bb598a14e5mr2745659plo.43.1700677586394; Wed, 22 Nov 2023 10:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700677586; cv=none; d=google.com; s=arc-20160816; b=IpnCCvS7jM2OAM1N/bxNOhV0bWcPUsmOVfoVBMf4yftakF6+fcfRnaN6/OOsUItOuP nDwK4U8fyxXpntqA+nCaMr2cvHs2h2O7XoXtvactgB7zNtIUYCxRzEs8a3wsh749VScq 66CMkBBcjh+nuC8Kd6KnTYhd+tXvh6U+K8WndVrc53z3W8b0Cq3/rdzKJZUhgXRWC0+o 4aZuYh3cRD5OuqrDoeL0dRaMfUcVF6Iy5mMCsc5vyHPpSevs/Bl79t1O/gclOKIh1Hiv sY6pzTzGfa6ozZvot6GtEPcLP++g551Q3da0nO/nyNlLWXHc2w5k8VH0yA8rrObgEdF1 QG0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yjHlY+dwgtlGLlPuvunFHNqCcfV7AAmhZsbau9o57nI=; fh=EZQ3JNRqqxAoGR8v2wSeb3EOY5elbDCg3rr8aSnQyXA=; b=kYFfWkH5VAKo20M8Z+1403s6k7p1wYEIGiLnGQB/BIozC2pZEG/hrMgdOMeZ/UMq1D AlXa3glpAewbbIp9xEtywsun9jEE1HzAy0JSZlfKQXKFyGD+nSmgN+RrOdT0siIKXIVC 2dK7hZfAmDguLRXJgFsaPa0RIstWw18EvnYhKNdB6VzooJtxt7P2MGRam861f3jY/+rz SxiLW0Scf6CVrEP5WAXOtxm+uacuf3buzP85bVweGQjNv7aQGeBWURb7pMWVTF+RJJqb Bcahj/zioZ0MY2jKFzUEhrjn+xljP0NnD2gf/mC4KRL4DrXShbDX+SpKA2hlFION/0Bn +RFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TFneLshP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t3-20020a1709028c8300b001cc3527145bsi12499833plo.29.2023.11.22.10.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:26:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TFneLshP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4B4A6808EE66; Wed, 22 Nov 2023 10:25:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235238AbjKVSYm (ORCPT + 99 others); Wed, 22 Nov 2023 13:24:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344178AbjKVSYb (ORCPT ); Wed, 22 Nov 2023 13:24:31 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B423E101; Wed, 22 Nov 2023 10:24:26 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c88b7e69dfso1049621fa.0; Wed, 22 Nov 2023 10:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700677465; x=1701282265; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yjHlY+dwgtlGLlPuvunFHNqCcfV7AAmhZsbau9o57nI=; b=TFneLshPOYhMYydbFoqoDC0+aUnlWtda4nBQBx89mhakocuYN98Wsh0gTgCf2IbxMA CRKoVW1kLaJOQeL6nD/nmRb1MEbJonmA5c14vFrAbJ1si60oFkum8MDFZna+irO0dG02 d9Os6/Wkj/p/Lrvdc+v2s5W9zhifiKuVT3JuU6PDzvjZPdy8oospaGV7XZVN/kBs0Wz/ Vk5VAEGN7nTY9RyEA//o81DDtyUdDd5lliM0J2K6BZJdYqQV+teT6AiL1aGkmQONJgA5 QEt0Qr1LJKATM+B3GyOV1lsWQXLWz1wzRUUmQaYHHByY5SYG1v9ZfDDz+p+Fx7qpLXbI lAnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700677465; x=1701282265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yjHlY+dwgtlGLlPuvunFHNqCcfV7AAmhZsbau9o57nI=; b=c4p8OUYoHCGolknF9Qiy9QC39xabTSZsDJNcz5f6IXy8h+V7bunF/ak0sHLt+scNWq wkzhQBLVhK08B9kyNCjy7ov1+nfowFm18oM/N2xs9yn8AEEIjkVWIvewzsywS88LfAj0 ClNVZy/ixIxC8znWbO6WMHCEKjbqTj7b0d1oK61tH4g8KiOCPs/gYVwV/p1e2EkJBRV1 L++EKvsIojDXrNw2J/XxnNjBleJKNhYXLBUb6K9KeHoQGbC14QcWiih/kCe4GLwJMVpy lHk5ecbo/VwTUh5aW/DB7DfHxNf+ECa69uSL1+XNttRBkSVffFfE9GD48Kczk4qo9gdT N5gA== X-Gm-Message-State: AOJu0YwVI37vrmoopDY2MJdQrsxjExVhc2V8ARtsgpXWcft2ToEov7R5 y5NLpar6nl+qHSrd2xB+bfo= X-Received: by 2002:a2e:91c7:0:b0:2c5:24a8:c22d with SMTP id u7-20020a2e91c7000000b002c524a8c22dmr2198720ljg.3.1700677464782; Wed, 22 Nov 2023 10:24:24 -0800 (PST) Received: from localhost ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id f6-20020a2eb5a6000000b002bcbb464a28sm12020ljn.59.2023.11.22.10.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:24:23 -0800 (PST) From: Serge Semin To: Thomas Bogendoerfer , Andrew Morton , Mike Rapoport , Matthew Wilcox , Tiezhu Yang , Huacai Chen , Yinglu Yang , Jiaxun Yang Cc: Serge Semin , Alexey Malahov , Arnd Bergmann , Aleksandar Rikalo , Aleksandar Rikalo , Dragan Mladjenovic , Chao-ying Fu , Marc Zyngier , linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] mips: dmi: Fix early remap on MIPS32 Date: Wed, 22 Nov 2023 21:23:59 +0300 Message-ID: <20231122182419.30633-2-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231122182419.30633-1-fancer.lancer@gmail.com> References: <20231122182419.30633-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 10:25:19 -0800 (PST) dmi_early_remap() has been defined as ioremap_cache() which on MIPS32 gets to be converted to the VM-based mapping. DMI early remapping is performed at the setup_arch() stage with no VM available. So calling the dmi_early_remap() for MIPS32 causes the system to crash at the early boot time. Fix that by converting dmi_early_remap() to the uncached remapping which is always available on both 32 and 64-bits MIPS systems. Fixes: be8fa1cb444c ("MIPS: Add support for Desktop Management Interface (DMI)") Signed-off-by: Serge Semin --- arch/mips/include/asm/dmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/dmi.h b/arch/mips/include/asm/dmi.h index 27415a288adf..525aad1572d1 100644 --- a/arch/mips/include/asm/dmi.h +++ b/arch/mips/include/asm/dmi.h @@ -5,7 +5,7 @@ #include #include -#define dmi_early_remap(x, l) ioremap_cache(x, l) +#define dmi_early_remap(x, l) ioremap_uc(x, l) #define dmi_early_unmap(x, l) iounmap(x) #define dmi_remap(x, l) ioremap_cache(x, l) #define dmi_unmap(x) iounmap(x) -- 2.42.1