Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp501334rdh; Thu, 23 Nov 2023 09:34:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGV1ZwN72rWCPt9OQ5tx/JvPN903O5rtEbj9HUPv3VaoFw52/YGqK1oE1ylYTmyuWbWKS6q X-Received: by 2002:a05:6808:e83:b0:3b5:6432:e0eb with SMTP id k3-20020a0568080e8300b003b56432e0ebmr58036oil.38.1700760846664; Thu, 23 Nov 2023 09:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700760846; cv=none; d=google.com; s=arc-20160816; b=UvFrbVAoh2aS5vND/1VAEIcSTJ4aeL1QrEM4m3o4F2YYKvArcnNxm4VUr24kE0KYfr CxCkC0KS7SU5nYo/AR5zPf88dLjIyaWy3+XobXjPDACSSnjEqao1qnGvwJ+D637WCi8a x4XV2oimfbi3+cEOWSInKYCu/hSRCkDtceoazuxRIcCT3Q/3VXRDTBYG4WHxobOWRnwT g+lw6lE58X6Y5MaBSo048/S1CwXJd2d0LTeIimta0ZDpoTJr5lcz1VTBtHRW/oQt3KIM hPnZ1+oziq1lJk9byXeXGE2i6kxO/IYjz2MF9IRCWYL0ZF+64My/N9uQNY/0Vr/BUHoQ wHjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=27SDTQSVNSOteu3KKkKr7JW9siSN9Q+1UTFB8KAZ5YA=; fh=wFCn5QXtsW/UdLUOMg0d9FEdjETguJkE6pGp+vTEwUM=; b=qatkJWRc8LOeHu5vXruwXTGAQm2+KfAOFS0Gm819xG5+XQsHayvJelN2fVaGXRExcj UoqYo5MXECG6zB4HgepcSzW0uzhUW1tr0551jMaIRMhRixA4kTfABApOxVWmoAygnmEA eQA59RuIZFsatLuYr/1aq/uDhkSIsey8AxvzMTI+OXfZPdR9zS0Bje8SIAr/MebxcTq0 Ey0HAyaECV4SooPNn5Y7Nf42cIa1+7gXul+loa+cUxQnABLeBWe2r33Ilw8EOS8OrGo/ z6ldbikldbRClP4bt/o63ih1kegTEICzqkEQd7XbUsUY8weWtmXL860Uyp9mhO7BP25e 7Ipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=acJmjms2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cOcqtAYo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h13-20020a63530d000000b005c1b2d279f3si1663847pgb.342.2023.11.23.09.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:34:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=acJmjms2; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cOcqtAYo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E78C08069D4F; Thu, 23 Nov 2023 09:34:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345497AbjKWRdt (ORCPT + 99 others); Thu, 23 Nov 2023 12:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWRds (ORCPT ); Thu, 23 Nov 2023 12:33:48 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC61AB0; Thu, 23 Nov 2023 09:33:54 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E7AD53200A81; Thu, 23 Nov 2023 12:33:52 -0500 (EST) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Thu, 23 Nov 2023 12:33:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700760832; x=1700847232; bh=27SDTQSVNSOteu3KKkKr7JW9siSN9Q+1UTF B8KAZ5YA=; b=acJmjms2lNSKCid+/n/CTUSeUKdjClGGB7LXwCChe77TE9MID9T P9gI3N8gQUA7tIK/vZiQrzEIVhc7ys27xnbx/IiVOP7lcAuthNpIr6mUdj9nGqeF CkDtA3CJrZXrlNeUnqt0bM9zg4LVC8uBlzcmp30d8JzyR4D5bTj7mqvG6h0pzTAj XQXZPEMSZ0XtQibWSwduuf2164/PEgT1+eC5eqR6yOgj/wDU2HGoJlzTmk9B5vq2 bt5PB6/U9IK6YHxUvuKbAxa4v4BhgIEIpt044s9vchnRooWrzCECqfNXTJfGRCvI dBP4/gmHc8vVv8g8PMJYHAeJGfDEx+/S7/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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= 1700760832; x=1700847232; bh=27SDTQSVNSOteu3KKkKr7JW9siSN9Q+1UTF B8KAZ5YA=; b=cOcqtAYo5IgG5pzOd6Su/JTI1FCQ95828mAhmzWcWPfE+RfTbTv wkKl14OMnwW+1dgzeHIxZGCAEAqq+5gMz6uYuoRshLDhtLdarHNd6KSIHHqAdiwT RLPAlGXohmPbG07t+ruKfA6If+53e6xq83vDtTCTFfrgG5A94DeSLZXpkRh4HAq3 Oab+WmpLS9sgDp9Q4UlBsxdDWVIsRzXYNSgkfcKJuUNv/OMtdfhtJDGJJLZ0sEX8 WaXiMeYMPtZzdUMscbEwj/jbEKH4EGW8KjasdgwVpf/KAcVUNbzST7r7gtDrqprT Sy1htvBdI1+CGBcp0QNEUqg61FpErd4T0lw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf lfhirgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtg homheqnecuggftrfgrthhtvghrnhepudefgeeftedugeehffdtheefgfevffelfefghefh jeeugeevtefhudduvdeihefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8719736A0075; Thu, 23 Nov 2023 12:33:51 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1234-gac66594aae-fm-20231122.001-gac66594a MIME-Version: 1.0 Message-Id: <245d3985-9085-4be0-8c74-d95d06334584@app.fastmail.com> In-Reply-To: References: <20231122182419.30633-1-fancer.lancer@gmail.com> <20231122182419.30633-2-fancer.lancer@gmail.com> <8ca730b9-fa8c-46ea-bdc5-158da0f29c3a@app.fastmail.com> Date: Thu, 23 Nov 2023 17:33:31 +0000 From: "Jiaxun Yang" To: "Thomas Bogendoerfer" Cc: "Serge Semin" , "Arnd Bergmann" , "Andrew Morton" , "Mike Rapoport" , "Matthew Wilcox" , "Tiezhu Yang" , "Huacai Chen" , "Yinglu Yang" , "Alexey Malahov" , "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: Re: [PATCH 1/7] mips: dmi: Fix early remap on MIPS32 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:34:04 -0800 (PST) =E5=9C=A82023=E5=B9=B411=E6=9C=8823=E6=97=A5=E5=8D=81=E4=B8=80=E6=9C=88 = =E4=B8=8B=E5=8D=884:07=EF=BC=8CThomas Bogendoerfer=E5=86=99=E9=81=93=EF=BC=9A > On Thu, Nov 23, 2023 at 03:07:09PM +0000, Jiaxun Yang wrote: >>=20 [...] > > the problem with all 32bit unmapped segments is their limitations in > size. But there is always room to try to use unmapped and fall back > to mapped, if it doesn't work. But I doubt anybody is going to > implement that. Yep, I guess fallback should be implemented for ioremap_cache as well. > >> >> AFAIK for Loongson DMI is located at cached memory so using iorema= p_uc >> >> blindly will cause inconsistency. >> > >> > why ? >>=20 >> Firmware sometimes does not flush those tables from cache back to mem= ory. >> For Loongson systems (as well as most MTI systems) cache is enabled by >> firmware. > > kernel flushes all caches on startup, so there shouldn't be a problem. Actually dmi_setup() is called before cpu_cache_init(). Thanks > > Thomas. > > --=20 > Crap can work. Given enough thrust pigs will fly, but it's not necessa= rily a > good idea. [ RFC1925, 2= .3 ] --=20 - Jiaxun