Message ID | 20240229232211.161961-1-samuel.holland@sifive.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 D9E18C54798 for <linux-mm@archiver.kernel.org>; Thu, 29 Feb 2024 23:22:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 63AC26B0092; Thu, 29 Feb 2024 18:22:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5EB316B0093; Thu, 29 Feb 2024 18:22:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4B2526B0096; Thu, 29 Feb 2024 18:22:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3C5A26B0092 for <linux-mm@kvack.org>; Thu, 29 Feb 2024 18:22:16 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E0A2EA15CC for <linux-mm@kvack.org>; Thu, 29 Feb 2024 23:22:15 +0000 (UTC) X-FDA: 81846417030.25.69E9F5E Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by imf10.hostedemail.com (Postfix) with ESMTP id 0DCE3C001C for <linux-mm@kvack.org>; Thu, 29 Feb 2024 23:22:13 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=U6BfH3Jz; dmarc=pass (policy=reject) header.from=sifive.com; spf=pass (imf10.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.167.175 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709248934; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=gYpxFJdLsUY33jWloX4oa7IMcbdSQ5C7SOjzy7kQJJw=; b=f04er6mXie8yCRro6l6Pi0IKSmE9xGwMCmW8Zm51IHEVRwypfP1cACFh9xAOabsmAJNJ9R p2WLi8YJT884ksdKD9y/JmOQyoGcYBzPWYOK5AZ4ziQMNeuPOTvpDqOKKUXD+Qj2gwDXan fZWaVVze2EXtgZssrlWZDzWUz4hJxvo= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=U6BfH3Jz; dmarc=pass (policy=reject) header.from=sifive.com; spf=pass (imf10.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.167.175 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709248934; a=rsa-sha256; cv=none; b=DQZM87BYYAY8WLw3NatzhtjOSB9GaumkMkibAmK1hcITTG6myuA5OKIEfzyyh6RQXScH0P +byHkrdnCi/YfoEqUeJocuvc/lOWeAihu0GTt1SAUYH+Ih3N7g1iPChvBhLTQdG78txyu9 n4xfZDCoTJAHvcKkxAIhhuWB6QmMRKA= Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-3c1c51f2fb1so677741b6e.0 for <linux-mm@kvack.org>; Thu, 29 Feb 2024 15:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1709248933; x=1709853733; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gYpxFJdLsUY33jWloX4oa7IMcbdSQ5C7SOjzy7kQJJw=; b=U6BfH3Jz+sVEY5CDInMuFNGtX4k+IeGz9+KEnQwZhbIr7BdeJ5nVETGlkOPNPQgK+b gZhlmSHHWv5Lv6bal0uyTr9EzhXuljtE1YNJf4UOoPHDNfVj6/yEq/4pxGj+gS3GTQPV yfQEwfwImOlILfhlnaO3EzbtDMKYzVxQWdgXMRI3wfWb1x3Pyn4jJ1kOGMIPstZRnSyg /GhWifzc79Ugrx/pPc7NKI3Jcd685b20zFIa/psyHmatUCq2/QdKPoZM8rkcAfD0iHYA +c2klr36mcfx3l+D4Jd9oKJq+hcWo0UjnsxiMSXeF/a4PoGU0a8Q+fdlRBRYl5abDZsB X7Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709248933; x=1709853733; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gYpxFJdLsUY33jWloX4oa7IMcbdSQ5C7SOjzy7kQJJw=; b=qFGtMw+Qu7lj4VnzzKqxzkd3gJzJu1bigtA/32jhd9o6MmwNmPWgC7N8mU3hEs/Ion B9BMOwmh4rgdmXk7hqThUG6XNSO5/IVccvEVTjmxx206lrtV9tLxD2apoqQccjbK3dE5 Dea3pN7k/v1pSsN4kbMMKzVzr1iIOV+6l4GycHp79kSmi6SMI4fL74hcdEl22+uwpTr2 r48NqIAir6X5C7g6JYl81lM9cubJk+FGcq39swx9VhTfMCYNgsh8zaPDedcySh8UTE3n 3ixBY4uKbCH7mv+gXnxo3Nl2kUT1TnTzCm4d8oLk69zwaebLFG944Y/5egOndaDpEnae qR8Q== X-Forwarded-Encrypted: i=1; AJvYcCXLJkGG45xEW9RUfkJJBYocG/owrCI7Po3V1ydzy8/7oCxOgJhIrDUaqjkkDJSvt52wh96EB3t1caVXhoRgq9DIyhs= X-Gm-Message-State: AOJu0Yz4bdVQ0cP3AqhUqb1ZM02GtqE0jjkywNUWRNgJDuO+AA8fPPOa aWkhBis9JdxucG39vsGTCEs9Tu7sXVvj3cNmsivgkZpcxRR4GZxyMmS3aL5lu9k= X-Google-Smtp-Source: AGHT+IEbMzGg89JeXwrCbKoTrQtwzZydngrB60RIdlIeQk1Zbv0hmu3BVs2SCgNJATrXU3oE9uJ2wA== X-Received: by 2002:a05:6808:1a83:b0:3c1:d0a2:9220 with SMTP id bm3-20020a0568081a8300b003c1d0a29220mr68801oib.24.1709248933079; Thu, 29 Feb 2024 15:22:13 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id c6-20020aa78806000000b006e55aa75d6csm1779719pfo.122.2024.02.29.15.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:22:12 -0800 (PST) From: Samuel Holland <samuel.holland@sifive.com> To: Palmer Dabbelt <palmer@dabbelt.com>, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexandre Ghiti <alexghiti@rivosinc.com>, Jisheng Zhang <jszhang@kernel.org>, Yunhui Cui <cuiyunhui@bytedance.com>, Samuel Holland <samuel.holland@sifive.com> Subject: [PATCH v5 00/13] riscv: ASID-related and UP-related TLB flush enhancements Date: Thu, 29 Feb 2024 15:21:41 -0800 Message-ID: <20240229232211.161961-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0DCE3C001C X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: tzxgekij37uihwga3zikjebyg1b7duqk X-HE-Tag: 1709248933-755941 X-HE-Meta: U2FsdGVkX18ZgmL6oHSdafTWd2t8OumUgHd3KDSaJGqQMn6E1bv2Z5o3nufJ8hs4YYBZCuhF12XXjz0nRk9Kpj0XS1mBA+12WU9Sbv+ukH5B4f6o3WU6JUST4rDH6fSwvh1BCQNPrdzbbxw3D10Rnc8SWK/aRUhllr6K4TTtvk/UxCQ0JOgKLkPUGY9O+SLC6XYWn+bbJqol+GkZMKsd5wfb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StphEXFuiEhGgTZULEXpCQiBTe/boDADaB8vPOuEsVA/bTDbFPRjNdg2P93prz7JUZNenTjqgz/txj12fKhMmV5wCb2f+edEWbYvRhMv/FjOAAEyG2jUS3ZVjABZ0/s/uEqIHSJJZojuEsnatkTOTDLCEKr5ed4= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
riscv: ASID-related and UP-related TLB flush enhancements
|
expand
|
On Thu, Feb 29, 2024 at 03:21:41PM -0800, Samuel Holland wrote: > Samuel Holland (13): > riscv: Flush the instruction cache during SMP bringup > riscv: Factor out page table TLB synchronization From here onwards, fails on 32-bit, bunch of implicit-function-declaration stuff. > riscv: Use IPIs for remote cache/TLB flushes by default > riscv: mm: Broadcast kernel TLB flushes only when needed > riscv: Only send remote fences when some other CPU is online > riscv: mm: Combine the SMP and UP TLB flush code > riscv: Apply SiFive CIP-1200 workaround to single-ASID sfence.vma > riscv: Avoid TLB flush loops when affected by SiFive CIP-1200 > riscv: mm: Introduce cntx2asid/cntx2version helper macros > riscv: mm: Use a fixed layout for the MM context ID > riscv: mm: Make asid_bits a local variable > riscv: mm: Preserve global TLB entries when switching contexts > riscv: mm: Always use an ASID to flush mm contexts