Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1333746rwl; Thu, 10 Aug 2023 09:35:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoWONhelZBCEJW1sEm03q7+1qNSTumCQ0Lq2Pp6ZM6wwLtt6+fA3nEcCnJ/cnNrQikxKYd X-Received: by 2002:a17:902:e5c5:b0:1b8:33d4:77f8 with SMTP id u5-20020a170902e5c500b001b833d477f8mr4350749plf.23.1691685357898; Thu, 10 Aug 2023 09:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691685357; cv=none; d=google.com; s=arc-20160816; b=jci/mgDMg2NNHAAgkrFIzCm84EyVRkzQ6PRNqd2oOCxAE6N3jg/X77lQC5nyJOP9E+ ZTFNB6A9EmYIbFsj4eXe60hBvBPv0GNRcDxZmUDKje1lPEToiEomff9bp+tnJCERwndY +fnrPTmB9agKH9oIu5uBx/5l3GR8vx380bSbbybaQUSM77sJE1PbcnUOOkfkOp3aSp37 T7fdTQFDORX8u12pznZes7P+khMMoAz7vaeiLyPQkiHoefm7Ft49DJLRxKH7cMXrT4tD u3PbNnLmIgKONArIxWMvc99oPd+qSY4DFlr0a+9EMo8d52wsDBZDjY2RkjZStjMoi6+r nniA== 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=VDBBjEUhdOwGqmMS5EZuk5kV7DmaXVSYKyA1KEjjfTQ=; fh=0pgtFHw2KWV4vt3WY8TxKLNZuQ/8KxsqGaLS0/eqASc=; b=MoiR5q3ES168pzh6/5LohQyONsn5aZGiePDwgZrjka9vGo+Pka5ZzZv1hQCPMcbvb1 atO6Yh8W5fEYC8BiUbcBv6VONZ3nLHoUvwG/RStwSy3V9uNk0cesQE+RPRIutDfpx2ba nvp0V1JuCVD/sFiFRJtEV+ovZuO+3E8+JWA6ctpv//AOnMhPd3U9YGiD/TIlh4V35y3z /POxt2RrnGAq6bY2jrA6PZh729IhVCYfFLt5qfGqrJSOyiE5xUTtDy5gUyKUuXg0nV0f 1PzSAN2S+4/dtz7s7UBj5+J67ZmZk3Jlznrih2OTM6nrSOV81d+f6s1ecAPDbxziNcMO MVgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b="Loux/lcb"; 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 kg12-20020a170903060c00b001b5589848absi1691680plb.234.2023.08.10.09.35.45; Thu, 10 Aug 2023 09:35:57 -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="Loux/lcb"; 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 S236278AbjHJP6R (ORCPT + 99 others); Thu, 10 Aug 2023 11:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234880AbjHJP6P (ORCPT ); Thu, 10 Aug 2023 11:58:15 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F1FE53 for ; Thu, 10 Aug 2023 08:58:14 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-26837895fbbso727631a91.3 for ; Thu, 10 Aug 2023 08:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1691683094; x=1692287894; 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=VDBBjEUhdOwGqmMS5EZuk5kV7DmaXVSYKyA1KEjjfTQ=; b=Loux/lcbFGKt/PwP6moOiY2xjkOS3vWT1JKnclVLiLOabD41avWWLUPZx/1Iramwr2 tnlCkFCqmZGZMpOCoY4PAIQCMqOKs7nw7JTxkNJFhoeq8Rfc7NVdanAbYNJ2XI0/WnI9 Qh5+I2kq9wQGqQx6LyV9eiwakiwABwd66AAx1JOQfRn/UwawKiYrfedIC5JbdnhPLROJ TsHOnT2zUPQ0AYCoBnjfJkUv9WH9MhSqjCwUeauUagThIRi3w47QqkfUseiR5dOTCKmp 0yBzs2uX24fBdU4gzdyFBKYAJDNqxkbUmwxbHlFA4U6lOLAoMV0Kbvss1TVvBXeXXKbj LWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691683094; x=1692287894; 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=VDBBjEUhdOwGqmMS5EZuk5kV7DmaXVSYKyA1KEjjfTQ=; b=WHeCo91fHI0znACE7qfTV5pOXcJx1nEj/lkWz1dmLqTcjjpljibkhOhgPGaMy9JkZV jTssZucdmP1TTPr3mPE8Cs51/OwpA2zGXeio/dsUy6Js5OCZ4abKCZtPeSxeCkisb5ND DuPNKakhUetG8BInC8aX5IpGNAWYLyMYeaYgIUCIXZY1sMPc96ILFOLCt9qdzOZKnqAW qmt1czYy5wONCjOVF0Pe3AzW1hqtrWA1gNAMW8G3qFXo0UTXX8Pj37T66AwXxbpAiafV wCKNkwBBTWqF5ImpLWMWAgDgxdK5LmbLvn7cWUwTGUPvKJjZS6nJTnLEnvof2MDkzHkm Hs6Q== X-Gm-Message-State: AOJu0YxveVjvxwEq5DPheugKn74DHlR+hEwdcE+gokVevzapGMK/K9jP +cT446snWiD0plPNacg7HSb2Kw== X-Received: by 2002:a17:90b:3e8d:b0:262:ee7d:2d20 with SMTP id rj13-20020a17090b3e8d00b00262ee7d2d20mr2620120pjb.12.1691683093833; Thu, 10 Aug 2023 08:58:13 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id 30-20020a17090a001e00b002630bfd35b0sm3827053pja.7.2023.08.10.08.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 08:58:13 -0700 (PDT) Date: Thu, 10 Aug 2023 08:58:13 -0700 (PDT) X-Google-Original-Date: Thu, 10 Aug 2023 08:58:09 PDT (-0700) Subject: Re: [PATCH -fixes] mm: Add a call to flush_cache_vmap() in vmap_pfn() In-Reply-To: CC: dylan@andestech.com, alexghiti@rivosinc.com, urezki@gmail.com, Christoph Hellwig , lstoakes@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig , akpm@linux-foundation.org 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 Thu, 10 Aug 2023 08:13:56 PDT (-0700), Palmer Dabbelt wrote: > 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. Sorry about that, I'm in the wrong thread -- I meant to be over here . Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt but I'm not taking this via the RISC-V tree unless someone asks.