From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29A8C27C4F for ; Sun, 30 Jun 2024 17:25:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 190706B0088; Sun, 30 Jun 2024 13:25:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11A0D6B008C; Sun, 30 Jun 2024 13:25:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAE656B0092; Sun, 30 Jun 2024 13:25:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CCC486B0088 for ; Sun, 30 Jun 2024 13:25:53 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 52F841403A0 for ; Sun, 30 Jun 2024 17:25:53 +0000 (UTC) X-FDA: 82288232586.13.83829B9 Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) by imf11.hostedemail.com (Postfix) with ESMTP id 1C34640017 for ; Sun, 30 Jun 2024 17:25:49 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm3 header.b="OvKTfhx/"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="Z pzWAZw"; spf=pass (imf11.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 64.147.123.146 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass (policy=none) header.from=flygoat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719768323; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=aknC/bJ2HCNbC91FkDP/9Fd6yYCcQCOG2a8P5wpDT1k=; b=Kkz7Uvy1Jy1tPbpvp7yQ+XiDy3sTOsi6D3mRPLSxkYmM8GEWQn/vrR5sMbWcNmx2GM2CO+ CNgFmRJMPA7orngNYc/qdMhbsiBaQ+nze7ienwtfKcBULrpVcO81F+IwnQlW2vxZJI7GKP 0YXjv+rvXGNIjIRbAhK2DRvvioFRd5o= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm3 header.b="OvKTfhx/"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="Z pzWAZw"; spf=pass (imf11.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 64.147.123.146 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass (policy=none) header.from=flygoat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719768323; a=rsa-sha256; cv=none; b=pjDY70tvpWsyuK6Wy5Hywd8jACq2oYjWh1TewZuShIRjCEA0LcsiCy1W/72kXq4ZO3imLc NwTthaOEzgFAX/NnxRmHTk89kZElKQBn/xr5yD3Vmy8iBSZAFEU+9ggU8v8Z7c3OAQoolD EcLWmMAI3C8gfz4EzI1CkVpMVYBhDGA= Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id 8C8EE1C00086; Sun, 30 Jun 2024 13:25:46 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Sun, 30 Jun 2024 13:25:46 -0400 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:subject:subject:to:to; s=fm3; t=1719768346; x=1719854746; bh=aknC/bJ2HCNbC91FkDP/9Fd6yYCcQCOG2a8P5wpDT1k=; b= OvKTfhx/ULSgMCWJPFCh437SGDqZECROJ+wk4HbETmNK++8H1zf9gHE9OEqpu6pS BapqoiGIppHhlzN+Mz6kG632a/V5mnRSdZ5KJbYesgLN8f6lJNpFZRBd1P+RCSJy 9JNLaTTeZAfgQQ8IDkId6DpNAGvmSQm8R3SZxvyH8SJEc+L6EKoPSGb2VPu9+tQQ NwMNqWTXzTil5dIsZVAsf1dRsDTfFbBNHuOgmSkH+MSHilKPbZEz8rinfHfNkfUf 7gBIqfvHY8y/IK4utqNfTJZxJwSlaEIAxctdWUsPUzLR+vG8g3kgf0vtia+5ltlF RLSrD/Esvz081i5oEycMLg== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1719768346; x= 1719854746; bh=aknC/bJ2HCNbC91FkDP/9Fd6yYCcQCOG2a8P5wpDT1k=; b=Z pzWAZwgb160ocDTMd7WBaQnxTYtkNnTmYE6+DAPtYUrY8m8gWDNEItjHoY1VSX6f qEuivnMCmS/K9HrktrRdsFKvVyJvcqD5v6FhXp2CtGlBLbgwFLhauo1EOH9dYjSY lwUzpryV/Fsmw6hmgXn7wutFUZKYG1EcjNKTquJZTRfZc1mSqBLPy62TFOGhJbWI ROYTrIcxgIl+WALp4qXQ+6nPnMvDlzn005ixkKWUIO8ltib0ICm9tPOuUgZhIb1A AsGpTwMkbngn2C0jBtX8v0HTgC2R5lKQwKXybYFxH54Kz/TBO6PD7XWjgvi8tY3j JZl/Tt+QiX8L4pO1l6ItA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddugdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfl ihgrgihunhcujggrnhhgfdcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtoh hmqeenucggtffrrghtthgvrhhnpeeuudehgeffvddvgeeugfeltdeujefftdekhfeuhfeu ffeiuddthfeuheekuefhjeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhkvghrnh gvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E1D3E36A0074; Sun, 30 Jun 2024 13:25:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-538-g1508afaa2-fm-20240616.001-g1508afaa MIME-Version: 1.0 Message-Id: <03a8b78d-5643-4711-a57f-47f87b8bd566@app.fastmail.com> In-Reply-To: <92ab0d2b-cda9-4d69-8312-1e1c256cf900@app.fastmail.com> References: <92ab0d2b-cda9-4d69-8312-1e1c256cf900@app.fastmail.com> Date: Sun, 30 Jun 2024 18:25:30 +0100 From: "Jiaxun Yang" To: "Yu Zhao" , "linux-mips@vger.kernel.org" Cc: Linux-MM Subject: Re: MCEs on MIPS: multiple matching TLB entries Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 1C34640017 X-Stat-Signature: 8j3gfbgeornq9gaatpzpuonkke4nkfi3 X-Rspam-User: X-HE-Tag: 1719768349-194780 X-HE-Meta: U2FsdGVkX19vTfLVl1Tql0yY3k0ieo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2DJChwVdo2twPbDI7MmzU4EgIpMPDi6e8GAKTCspNUtIPl2Mj5KYl9WvuJhAqIvBqukxi966PJZw/ApBnnJ/ydT8coEjJU5Oi3SMBNrGkLVjCRINram21804cPDZZh7GJQfHTjZfAlJFwlUSHcJF461pDD0yMzLYQG0rVVnH3u/K1OgHlAs4mID0Enu+HORQda1V1JZnOJoKsMMZQxrFFtu55Cxchv0nZShOk6dL5xrV4YYlsFD7BrtCnvWHdAxlMKO2ixEI1tPd X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: =E5=9C=A82024=E5=B9=B46=E6=9C=8830=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8A=E5= =8D=884:01=EF=BC=8CJiaxun Yang=E5=86=99=E9=81=93=EF=BC=9A > =E5=9C=A82024=E5=B9=B46=E6=9C=8830=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8A= =E5=8D=883:22=EF=BC=8CJiaxun Yang=E5=86=99=E9=81=93=EF=BC=9A >> =E5=9C=A82024=E5=B9=B46=E6=9C=8828=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8B= =E5=8D=886:57=EF=BC=8CYu Zhao=E5=86=99=E9=81=93=EF=BC=9A >>> Hi, >>> >>> OpenWrt folks ran into MCEs caused by multiple matching TLB entries >>> [1], after they updated their kernel from v6.1 to v6.6. >>> >>> I reported similar crashes previously [2], on v6.4. So they asked me >>> whether I'm aware of a fix from the mainline, which I am not. >>> on >>> I took a quick look from the MM's POV and found nothing obviously >>> wrong. I'm hoping they have better luck with the MIPS experts. >> >> Hi Yu, >> >> I never hit such problem on my (non-bcm) 74Kc systems. >> >> However a quick glance suggested it may be related to Wired TLB entri= es >> on your platform. >> >> Both duplicated TLB entries, Index 2 and 3, are all below "Wired" set= ting, >> which means they are not managed by mm, but platform code. > > I just tried to dig into bcm47xx platform code and I think we should b= lame > bcm47xx_prom_highmem_init, which created wired entry for high mem and = may > conflict with kernel's mapping. > > Nowadays, MIPS mm code can handle highmem on it's own, so there is no = need > to create such entry IMO. Sorry, I think I made a wrong diagnoses, it's actually a problem in our = cache alias code. Will try to fix. Thanks > >> >> Thanks >> - Jiaxun >> >>> >>> Thanks! >>> >>> [1] https://github.com/openwrt/openwrt/pull/15635 >>> [2]=20 >>> https://lore.kernel.org/linux-mm/CAOUHufbAjZd4Mxkio9OGct-TZ=3DL0QRG+= _6Xa7atQVFN_4ez86w@mail.gmail.com/ >>> >> --=20 >> - Jiaxun > > --=20 > - Jiaxun --=20 - Jiaxun