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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39FAEC77B73 for ; Sun, 16 Apr 2023 18:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230024AbjDPSjw (ORCPT ); Sun, 16 Apr 2023 14:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjDPSjv (ORCPT ); Sun, 16 Apr 2023 14:39:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A87A126B1 for ; Sun, 16 Apr 2023 11:39:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 43C4260F0C for ; Sun, 16 Apr 2023 18:39:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D817C433EF; Sun, 16 Apr 2023 18:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1681670385; bh=L2BFlblrmbFXqUaTey2eurponU1/HozmOHiptGPCgJU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Lhld3ynB1F24353J+r6elbc6+ySKg6pkyoRFOb87z2RhCbb3S23Zt7v+kQ/F5Mf9C bwxSC7+rarhTpNGWyNWTyNmHf1l4u5Z4Bs7C+jEqQp+B6hTKNrd5Tc2Qlmk/AwCiUG CTx22wc5nchRuxQIbX/pBAmTSXZy/dJAnhpkrcBI= Date: Sun, 16 Apr 2023 11:39:44 -0700 From: Andrew Morton To: "buddy.zhang" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Venkatesh Pallipadi , Suresh Siddha , Juergen Gross , Dan Williams , Konstantin Khlebnikov Subject: Re: [PATCH] mm: Keep memory type same on DEVMEM Page-Fault Message-Id: <20230416113944.c9b50a76a98b9e7c974cfac9@linux-foundation.org> In-Reply-To: <20230412142236.407d6d0e6d90232da004980e@linux-foundation.org> References: <20230319033750.475200-1-buddy.zhang@biscuitos.cn> <20230412142236.407d6d0e6d90232da004980e@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Apr 2023 14:22:36 -0700 Andrew Morton wrote: > On Sun, 19 Mar 2023 11:37:50 +0800 "buddy.zhang" wrote: > > > On X86 architecture, supports memory type on Page-table, such as > > PTE is PAT/PCD/PWD, which can setup up Memory Type as WC/WB/WT/UC etc. > > Then, Virtual address from userspace or kernel space can map to > > same physical page, if each page table has different memory type, > > then it's confused to have more memory type for same physical page. > > Thanks. Nobody has worked on this code for a long time. I'll cc a few > folks who may be able to comment. > Well that didn't go very well. Buddy, can you please explain what are the user-visible effects of the bug? Does the kernel crash? Memory corruption, etc? Thanks.