Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1261559rwl; Thu, 10 Aug 2023 08:38:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUsNJajcuqYZW++vPD3EetJFqoUnV+kt508EP0zk3WpfjN9ovFoc6lacvxpypjBd41M2h9 X-Received: by 2002:a17:906:73ce:b0:993:ec0b:1a24 with SMTP id n14-20020a17090673ce00b00993ec0b1a24mr2712318ejl.7.1691681907101; Thu, 10 Aug 2023 08:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691681907; cv=none; d=google.com; s=arc-20160816; b=usDazdxcMM6mVmFo2jqsjZ6U++FEcD7USTE7ZsiRTun5fhhnOaZ6nbmy8JdWg6OhHi W8ggANx/XzpMzx9ow+cXWfUdheSIZw7U9c7EsSOLHZ312jQaf5UfwMeGGzRmdliuV7k4 ij2FxwwHcMh7AsqmM58DVptVlKAUSoOHn6Ala3XOI1otmGXLKY6ZY2X3YQzQCWpls4Tg jmm+OhNpAN+zQ9aNeSOxoRke9ax0yuaxvtk1yOXMeGwgAoWtelZNqWzwJrf2HD7rmN3S p5jRRNsCGpL5h7uzOCkgrFwizpedFMUl5Yy4495bsM9osxMuCnMTK6RfEfrXQC3JdSaM nPKw== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=0yH1lR7Tmb/121ugTuhyYiipeLnL26qyWyxJS1YHu6k=; fh=WZXn5pQu9xU1bwbi318w7QBhP5/uBKimeWcJ7El/9hw=; b=0sywybFZpueWb/Xvmd1wk2NQ4trNh40R+3k9HhDOp+ZccRVvEo88Fd9uJPsFqzoYRs TXEDJhQXe4kp9p5oSthRvoLvIIRAlvUw1D385LwpXqSAmPFUUnc0KYy5M2R7f0v8QQqK wrKfCCIb1t9rStRVQNm3ATEPYeyGODcC/GQiuM31336d2tvccDX0OSYsYXkEiZJNZlJe J1bf4w2ucQpK5PAGTGT/tc2Ao9lBvDkXM97tzSnSOUYz2gAssDjdn9FOMHv1ik9Uhve2 aWu1F0mTEFEqpmZfU9XPhEKRaW+RLKZfEfVYp8hONQg2SPR+1ULAhGNxnrZFfOwjgl2G +pBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=fisx6tDi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a1709066d5300b00993166137f5si1691316ejt.140.2023.08.10.08.38.01; Thu, 10 Aug 2023 08:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=fisx6tDi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235378AbjHJPOC (ORCPT + 99 others); Thu, 10 Aug 2023 11:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236065AbjHJPN7 (ORCPT ); Thu, 10 Aug 2023 11:13:59 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96BE126BC for ; Thu, 10 Aug 2023 08:13:57 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bc83a96067so7725475ad.0 for ; Thu, 10 Aug 2023 08:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1691680437; x=1692285237; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=0yH1lR7Tmb/121ugTuhyYiipeLnL26qyWyxJS1YHu6k=; b=fisx6tDiRoHdpjchdDQDaYu+AxzZRxKXddUGJDrRYeC+Qbbhlm1ZHdlft0uLxKS6NM TtJsKXfhhl/oXRrShuS7fHFpMD5RixmhG+UmSvvcdp17DkCUYlmMJ7LLldWBJvQ0xHH3 uuhveIWbFeP/MWkSzta8InmHES6xMe+s/o0dPooFzmVvgkpk39QTAgL1LdkNN47GuBtl MLs80BAdpDr7OJLH1FUWbQv0qXDenZ8RfFUIM6ngKjdnRaUdKAxTFWquTFLwBp6Vcaxd 5+YEAhzCze10+IlMABH0AR0ovBYrMzI3k81gv2oj8FAUsPa8LnbtzyoI2K2vZvGXFVT2 tXTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691680437; x=1692285237; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0yH1lR7Tmb/121ugTuhyYiipeLnL26qyWyxJS1YHu6k=; b=XS4hDDXgldN53i11LuSeDmJpQT1WX9BbcpEZlPO4e93TZuoWUX4aDohf2hnjgI9aAn W+DkFsVf8UPOFF3sANFw2t0fKZaOUSmnKZlEnsvflujxEhsJ+NsPEgpx+sAWcINW1FBV iFViSnyGewxihmyPoGGo5vhRRvovfq5DvDqJf5FkzFrj+XPP+S6PvZ7aOA/nwi5wWJGU 1Fn2d6volLsvwerjv8c4z9I4ikRdM+CXQF20Bl23URdy0A1MryuekL/grVw5kzip0mnJ tL8PwFMkImJ5GevD73ZBdT77MZKpQAntI3cxPksXGO5DeBVKJjO+Uy3aKpaojuy++QBq qBuQ== X-Gm-Message-State: AOJu0YyJYF35UT50he/aBg5jsN5d5m5ZlW908hDhS5+PeNSJZNYagSjj nvvQYs/D3ZKCnYQpHdlXdHBXUQ== X-Received: by 2002:a17:902:9681:b0:1b8:5b13:5958 with SMTP id n1-20020a170902968100b001b85b135958mr2145864plp.31.1691680436948; Thu, 10 Aug 2023 08:13:56 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id ji1-20020a170903324100b001b9cea4e8a2sm1871565plb.293.2023.08.10.08.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 08:13:56 -0700 (PDT) Date: Thu, 10 Aug 2023 08:13:56 -0700 (PDT) X-Google-Original-Date: Thu, 10 Aug 2023 08:13:53 PDT (-0700) Subject: Re: [PATCH -fixes] mm: Add a call to flush_cache_vmap() in vmap_pfn() In-Reply-To: CC: alexghiti@rivosinc.com, akpm@linux-foundation.org, urezki@gmail.com, Christoph Hellwig , lstoakes@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig , dylan@andestech.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 09 Aug 2023 15:25:19 PDT (-0700), Christoph Hellwig wrote: > On Wed, Aug 09, 2023 at 06:46:33PM +0200, Alexandre Ghiti wrote: >> flush_cache_vmap() must be called after new vmalloc mappings are >> installed in the page table in order to allow architectures to make sure >> the new mapping is visible. > > Looks good. I somehow vaguely remember seing a patch like this floating > around before as part of a series, but if that didn't make it it > certainly should now. > > Reviewed-by: Christoph Hellwig I think we're likely to end up with performance problems around here, but at least it's correct. If someone has performance Dylan: this fixes your breakage as well, right? I've queued it up for testing, but I doubt QEMU would find any issues here. My build box has been slow lately, but it should end up in fixes later today.