Message ID | 20240327045035.368512-14-samuel.holland@sifive.com (mailing list archive) |
---|---|
State | New |
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 760DEC54E67 for <linux-mm@archiver.kernel.org>; Wed, 27 Mar 2024 04:51:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C89D76B00A6; Wed, 27 Mar 2024 00:51:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C10B46B00A7; Wed, 27 Mar 2024 00:51:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8A0C6B00A8; Wed, 27 Mar 2024 00:51:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9287C6B00A6 for <linux-mm@kvack.org>; Wed, 27 Mar 2024 00:51:06 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 61F2B120639 for <linux-mm@kvack.org>; Wed, 27 Mar 2024 04:51:06 +0000 (UTC) X-FDA: 81941594532.18.B1C1949 Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) by imf05.hostedemail.com (Postfix) with ESMTP id 695F5100014 for <linux-mm@kvack.org>; Wed, 27 Mar 2024 04:51:04 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=fmD3YSJ3; spf=pass (imf05.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.161.46 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com; dmarc=pass (policy=reject) header.from=sifive.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711515064; 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:in-reply-to:references:references:dkim-signature; bh=DStjBcAn1SHrL/HpDMugRz0dC8r4hdt1hrlyujsEs2s=; b=6tooMdkRfwdocNeMjvvnDJhQehOXTbffi8DvYB9xiT0JMKFCWd3a+57/Wy/Zo9BD5dcpMb XtePzh7TpuCmrJjQenN43eY51kl2C1WUwRJKaoDXlih8b+2dKqGXZc75WYm/SLMDRZdkh+ IPGltFUvXmISiKB0Z6+6YK+RAiJWkHk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711515064; a=rsa-sha256; cv=none; b=wv0EA+jt0dVOlgW4dUKziD1TAc8FOR71QBXDtZmqL/FwMKwA0Qy4f9vLbdPBi8dDfa/zUp Ms8nFMF3u5kVPKMDtrDPN//8SYvNnz+A6ll8FXf1O5ZUZUlHQ7rNuGkmgAJSVsRoh9I9ue ps7L1lfQaFzUx765nyDyiqtPs4pyULY= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=fmD3YSJ3; spf=pass (imf05.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.161.46 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com; dmarc=pass (policy=reject) header.from=sifive.com Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5a53d5aaaa4so1681047eaf.2 for <linux-mm@kvack.org>; Tue, 26 Mar 2024 21:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1711515063; x=1712119863; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DStjBcAn1SHrL/HpDMugRz0dC8r4hdt1hrlyujsEs2s=; b=fmD3YSJ3lU0jJPFiDanbprmiR/8i15zQij9VLxUuGsArNxmWD4gIJv5U+KhPheRKrB f52FBvUzGsQ6pu217XweB7W7Ug2OmtqaFW/RpY57AyCbk1cGXP41HlEXC4Qd9sffwhYA beuYXRoqn1dyxrwrx7CNu4X0U1FgBevTK+p5mwN0J82b2nXG6DHHMH3Zmkh2hB2hKJRw OlkrxuFmdBQ2IP5uLd2tY8wKsHspY77ZhlRLR/nWhpogCSSwjWPWdE4F6QDBh0SKwt+H 4/f43mJOQmtuVP21VPtvidzLQRtkr1SwCSfj75Ogg0Zol4Ppd9yYVSZHSW9Wsz4urXmH O2YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711515063; x=1712119863; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DStjBcAn1SHrL/HpDMugRz0dC8r4hdt1hrlyujsEs2s=; b=mfO0CtbMKT8NfZ2SoBZ6BmRlQf7qIORQnVNTKjRjXkdII9FfpUtPa+IswNUnGPH9I1 cNfVZjNVNo7pOkUavuawCNL06Z35T1Ih5eRaf4Ds24RYBW8ZIhfi11WUCS6PJxYMOSZb lV1anKH5IU0NXSwGzQNzOW1BkGDM+N0Yr54XIGLOta7VQCLauoSiHxD2+sB46qg+cKNK YIfJb5eVzKGJNHOE/L9XId1rgPekm/ZtFgvkFQS1TCqa5EcpDJbpfBsnndhvIxJAME3T QK2LFuk+mfKGuDfbLtw9PmoYiKO54VIkJT3KgemYOy6FiugmqY+YNyFvLTV5ZAo4hENx bQ3A== X-Forwarded-Encrypted: i=1; AJvYcCW8FYN95OS274pKHEMDe30omaiXjx3bQ0kOwmtsSpBd1kQN01HjQ4og3BleZxjnRerJaWjDUB0jQMjxp1zlLL0zaDA= X-Gm-Message-State: AOJu0Yz9w5EJ2Tgrgh4Hp+QYIo6eNkdpxr5yHOpWx7HiHnqfMGPmEG7k qyn6YKg4mJG6+8+ao6zZcq21ROBfRABT4GlyaiRWGm8v8+uqPAo+XewxqacPiqQ= X-Google-Smtp-Source: AGHT+IElUFan01DMTcKq7mpLuQEXv/M6ZjDhhp1pW7v7cPBwp502ELftTLKlJV+xiDuinHxlNWw0zA== X-Received: by 2002:a05:6358:520d:b0:17f:1d34:6253 with SMTP id b13-20020a056358520d00b0017f1d346253mr268628rwa.15.1711515063614; Tue, 26 Mar 2024 21:51:03 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id e31-20020a63501f000000b005e4666261besm8351500pgb.50.2024.03.26.21.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 21:51:02 -0700 (PDT) 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 v6 13/13] riscv: mm: Always use an ASID to flush mm contexts Date: Tue, 26 Mar 2024 21:49:54 -0700 Message-ID: <20240327045035.368512-14-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240327045035.368512-1-samuel.holland@sifive.com> References: <20240327045035.368512-1-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: fngknyfdx9dnky61d459njiismcmhw6u X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 695F5100014 X-Rspam-User: X-HE-Tag: 1711515064-494082 X-HE-Meta: U2FsdGVkX1/UZsqCyEjy+gI7GEGhfShB1wHpzuAP1DmY5Rq9InNwKsVVvaWcTaLiMWNmIiV45MjgvlgCDcJ7Vli63ScO/TFP/0K9HPx79IKoMJtApGm24qoP5OAWc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RYy9r1viDXtk48M0Ds238uBtoZOxumuozzrtGslP4zolAZ7PZ+xC6WdkOI3bhkQ1MnMp+ScLLtm7R0vr0gfsJ3EkGcK9/ybmXSyQqufGxvLz5jqR1gBIO0/MVoD7tUsXcfJ0cVjo3uIHjoJb6ryUBIwKRV7W6GOgzzB3nsFR3Wm1AqZCFc+USGR9xGXmVRmBeRN/wVm6PbLcUWedLacmWrXFLwf2Q72waug5soGHfcMeSMoESXc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000391, 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
|
diff --git a/arch/riscv/mm/tlbflush.c b/arch/riscv/mm/tlbflush.c index 35266dd9a9a2..44e7ed4e194f 100644 --- a/arch/riscv/mm/tlbflush.c +++ b/arch/riscv/mm/tlbflush.c @@ -109,8 +109,7 @@ static void __flush_tlb_range(struct cpumask *cmask, unsigned long asid, static inline unsigned long get_mm_asid(struct mm_struct *mm) { - return static_branch_unlikely(&use_asid_allocator) ? - cntx2asid(atomic_long_read(&mm->context.id)) : FLUSH_TLB_NO_ASID; + return cntx2asid(atomic_long_read(&mm->context.id)); } void flush_tlb_mm(struct mm_struct *mm)