Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp522620rdh; Wed, 7 Feb 2024 11:27:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8vGorCSrRbn2XBuWPg/bOtjSi6kjzEPWLIXz0uId/6N3XDz63ETwsSqbk+xn5pOm842Xi X-Received: by 2002:a17:907:7608:b0:a36:436:b188 with SMTP id jx8-20020a170907760800b00a360436b188mr4820208ejc.48.1707334059088; Wed, 07 Feb 2024 11:27:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707334059; cv=pass; d=google.com; s=arc-20160816; b=WSkJDRxq5bGqKTZRpBJmeG27/lCIKLKJjeT+jXY2s0YLXZCELa8oCkyrIWkkAb5gMi tz/aKz5N6xQl2WBewCVGUdDGck7a6tWKAA1oV5/UuOBVKLH6XGQciXxEjQ7Qu73iu7zt AJFMqejbxXLkv8v2BZ91b/ydKM9EDqq5gtRNGfklNEnvACxkhctm4sT1Yxqpo1XKlybb AJmbGPYhXtR/4p4jmoBC/3gaKXVuDkSjXFzPBddmfVjXM4RqKvREvDpA/AOCFSlx0exZ BBXGcO5KaoeqABL50eXMCzUdCWrY/e67OKyF+rUtDCLoyneaMzQ5OZJ0v/CmkJtSFP7S XcnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:cc:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=cA5YwgvtHoLDpmj5Skshopyo0pdeDCfKH8nml3v6ZvA=; fh=pwdS0P0B8iqQ4lTTp9ecDTJeIqo7YOyVO8HBayn3FDA=; b=Z4PTjWyejXe1rLfYFidgR3vlB6EdFvAlGNgk3/2AplUxFOINguTLIMAsyJaJLzig/b YZ3rMUA33EPbBy8KTuRxwpNPYTpXRM74M5LfpFPMBXnWYhL9VMtJcp5t5ZHbwY8LVfGR dISsds1LrQewi0yI7aDMh7BbAqAASBbvhBMP6PHX+0oFQF7F47Qcsn9p0ce+1GMc44IG UEZfBEAQCpTXVT5EHHwdgAlIEBicKp36Il8PymhuihqACsjzd5PJras7R2+4i7tclT2Z u72+G1dhkQ1dmf2rNE88vx2vp4hSo9UzYOEtOr6CGhlZ6hW9B0aeHgbZiT9QXldH22tD qBWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=TViiTtzA; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-56983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com X-Forwarded-Encrypted: i=2; AJvYcCX0bxTvxENHJ6kRF0fNIdxeuo6hFL+vnm0vzGl5P8UapYkFzA4K/nzQc4bJVrztcHpTA/6fKOPsTV3OahckK/6nKVjWauT/78SQ6OkFUg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ay18-20020a170906d29200b00a37845ce4c2si1327922ejb.371.2024.02.07.11.27.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 11:27:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=TViiTtzA; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-56983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56983-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CABFF1F25C20 for ; Wed, 7 Feb 2024 19:27:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6DEA85C47; Wed, 7 Feb 2024 19:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="TViiTtzA" Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78B658595E for ; Wed, 7 Feb 2024 19:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707334052; cv=none; b=Zp/ESkOYgUPXRpuQyMZNyOHy3ewjralyF5SYJXkKhm5XVl03nk5CXi+J9h/5RkUfBxqGGPQP4R3j63vwQfzp8u0D4+7a+snMy4yd9S9BmpmEha7VVhsrJFkeYvQBT40N8AGavu0btPIuySIj9k+ZEnjtenO8fWQCTwwnFTUFSfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707334052; c=relaxed/simple; bh=5RaTiIWx9wDoTYXHqrYH6XJ/pBQOCNuol350peNdprY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From:Cc: In-Reply-To:Content-Type; b=U1L2QnGM7y8eo02S87eZr8c9rAZWJL2GOso6J0oJVDbmBRDAgMkmmkXVgcAPlH35q2S2RL9JwojzEnw2472P8W1e4O2WKTk9ldhK3emDjrv9k34UV3CuGz2fiUmYKgfP2nLFCAAHbLipNNKZpX3vBdFEUQL0hjIxCx8O2OEKknQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=TViiTtzA; arc=none smtp.client-ip=209.85.160.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-42a8be32041so8701061cf.1 for ; Wed, 07 Feb 2024 11:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1707334049; x=1707938849; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:cc:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cA5YwgvtHoLDpmj5Skshopyo0pdeDCfKH8nml3v6ZvA=; b=TViiTtzAyVaIrBaq1lcHsQ9AJv+rg/QUQ2fWILE5q56VkvV031ahfyj5KnoaVPxJG+ M9uGLQupOz0998OezZIktk5NhRzyAnpu9ZcNTAYMYfAC8gKVJwip/oVdla2emp/ZhMUh nAtBLA2LcdQhWqxmYup0qP9CTO6RXPUW1ddqp5ajgGpb63swHKoHrjJvDMtBgf6EMCya u7aablLGhtysxqqoZjk9gViO6SYPnWcjOAdPwOIZNrztfy7lyUtfjmmvm3pN5mipDCVT RszNM3mo1ctob7nLsAtBKFRzHF5OZEY0TwjtvKPumh+yXebsFW3N9u0M2lxkh+WM/LPe 85Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707334049; x=1707938849; h=content-transfer-encoding:in-reply-to:cc:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cA5YwgvtHoLDpmj5Skshopyo0pdeDCfKH8nml3v6ZvA=; b=mcfQJqHTgOB90qXe2IVCIeRg2sZ0+q04ziTwmpOh3FtoLa3hkjvqyHoy+rm5QQ4zLY JnNhrKi29seLxY+N4ulKp0lramiOp3vfx2QfsI1IDCZpXDXDTG7btSjyFOjUUVpN2S3l YaKzn/ppbdT0RDgrIyCmoCRE+lXrspCqWRWTkVB/2hIys4taunXXcYpY9n7RSq3WTt5k R65F6uOT/WLYvhUI7m9TZwW2MFAO2CIvgG6IeF0QmTmqHl9tJmwFWwgiX41tLQoSZx+Q sofUJTu/4Cs1mw0Yxifx6mdRyFOfeHrZScvEur0c1o7I4ebCcIsOX46whr2FssJ1HaCb JuPQ== X-Gm-Message-State: AOJu0YwBXOUvLxwen93uuoSm56G0WV40Od/Gz4ZgMy2G9g4zsbHcf9Dn xNZ1Te699Js1VjqwlTu4cecwYX5pXT8rd+YpKCIwNktgllOVG3g4YgWIcYo2mNI= X-Received: by 2002:a05:6214:27cb:b0:68c:67aa:c056 with SMTP id ge11-20020a05621427cb00b0068c67aac056mr6941805qvb.39.1707334049232; Wed, 07 Feb 2024 11:27:29 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXj1ff2e/sYSGxK1YlhNSpJ8/w8GhjTI5LhuvxizKy6x8W/6hos9diJ1ETtTEcLg/TVYmqAIwhTEKHzeaxM9l9DDMoT6Rl/ykv8I5MEn2RQ4RzDTpjnVLYW3ZXn/TNw0ueiAHScDsmwL3AwcGQDqrxvYNXsvFkP1puPtlXLOAxSFw+g/0BCBhy9I8Gajfei3p+mqqln7VJ2vILpUpfwVUdbkVf1werhIL4Xk9hkFoyQSXVpRi34UW/O8UHpavC+10PZ4+KSLIrP8EsbFRi/xpmZIjPE/QII7mdA+9jGp3ZJw+/NwygGxNW2xdpBgA2x1B/FviTu6abT91l6SLSW4ExTkADsYTqPkirRqI14FN4vBik5b9VpObUbi0iUqNRUfVaRBoEsg3TQ3KU+IyoV/60EkdsKc6zC+dDKPwAsDoMmpJz3Nv45Y33ntLQctzsHs9XF3FZuVV8dMiaEtw== Received: from [100.64.0.1] ([170.85.8.192]) by smtp.gmail.com with ESMTPSA id nd10-20020a056214420a00b006819aeb62d6sm868412qvb.136.2024.02.07.11.27.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Feb 2024 11:27:28 -0800 (PST) Message-ID: Date: Wed, 7 Feb 2024 13:27:27 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -fixes] riscv: Flush the tlb when a page directory is freed Content-Language: en-US To: Alexandre Ghiti References: <20240128120405.25876-1-alexghiti@rivosinc.com> From: Samuel Holland Cc: Will Deacon , "Aneesh Kumar K . V" , Andrew Morton , Nick Piggin , Peter Zijlstra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Jones , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20240128120405.25876-1-alexghiti@rivosinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-01-28 6:04 AM, Alexandre Ghiti wrote: > The riscv privileged specification mandates to flush the TLB whenever a > page directory is modified, so add that to tlb_flush(). > > Fixes: c5e9b2c2ae82 ("riscv: Improve tlb_flush()") > Signed-off-by: Alexandre Ghiti > --- > arch/riscv/include/asm/tlb.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Samuel Holland Tested-by: Samuel Holland