Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp539566rdh; Thu, 26 Oct 2023 08:53:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3Dltd8wngFXIV50c39lZKkG+UqUthjVyH6uI5PZWMuj6ujOw77tASdE1agHRPhKJPUP2Y X-Received: by 2002:a25:ac07:0:b0:d9b:d0cb:db74 with SMTP id w7-20020a25ac07000000b00d9bd0cbdb74mr19203671ybi.33.1698335633539; Thu, 26 Oct 2023 08:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698335633; cv=none; d=google.com; s=arc-20160816; b=STXphdfM/W6dRA8bzMjklJ3uy+9tHtPzvEHf0zMPCrWnfyOVgFMAQjyuB7pgaQAXZS 0QayYP5O+snRjLA8mVlgVTDKXHsV/a4I/grVwXLh4nyPO1vJXY3ILYIUi3KgxPenxpAp NXGc6pWoFtY5JT/U8enfHXyrzqaWhyxMbSzF7m7WjV4WMPdKXrJbFxVOAOwWsbNSfa48 6oanN3X7E/lMEs2a2mELm8+H8os40VwY7ifIbnLhcerLcdyOIWGqOSk7RcM0pSO9I5QJ rFxCkbR01c0aZxw5fLbE4uHEiFK4uNKnkgUqjlPhEr+6tu3QcjDXSlZNNymW3LLdH2jz 0zZQ== 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=7hynPC3scdZ40zr3lj72+b2FKOXBK+Y3Zgo5uOul25Y=; fh=ElLpA3tmnRX7PC28Y/S7A2b+QZLAyLSGCm4UwHpa0Ds=; b=fPcqeoCWwC12X80XglGHqUsEiPG3eAlY/ic+KrHrhr/wNP6MTVHEAsQzyzqsnWf5xB vGkpI8+jwN0PCRPEDNIAgNd6iE98EQPfOHGJvIkrhPKM1HLe4nHIlXaodlOAHPWcir/G ecFqoom8L9LZouqo5Gnqx8ieXV3ux02Ad8UloWo/mIRZatKvh7XJBr1QTW2l+enef4en oVqn9acVD/2xUX9tCwBZn8d3F9LszUorAvyOI+d4CyP6Xx2PR0VvjrqCLJ1T3ULgNK/2 0LIHg34CsrrTWWX4UJPaHg6oWlrVXMIYuPTRCgOFw7N5Gfs8N3dqMnbH2U4zuT6zOcKw J21A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=HMu7Sn+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j63-20020a255542000000b00da03e20657esi7793859ybb.512.2023.10.26.08.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=HMu7Sn+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B74538050934; Thu, 26 Oct 2023 08:53:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345496AbjJZPxl (ORCPT + 99 others); Thu, 26 Oct 2023 11:53:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbjJZPxk (ORCPT ); Thu, 26 Oct 2023 11:53:40 -0400 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A948C1A2 for ; Thu, 26 Oct 2023 08:53:37 -0700 (PDT) Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-586b512ba0aso229597eaf.3 for ; Thu, 26 Oct 2023 08:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1698335617; x=1698940417; darn=vger.kernel.org; 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=7hynPC3scdZ40zr3lj72+b2FKOXBK+Y3Zgo5uOul25Y=; b=HMu7Sn+hoYqbmiZBZbNfLjQV6cglOiSQQmXZ1B54BDsK2u88Sd4SOa8CcZHficl12R 00myd9SWfESwPhUoprfW7rw6FknKJerBy/Iy3GHRbedMuRrJ0DAUs33C5C/O3ygM0Je2 JDNx4Dy0CzHx53v5EJe4zmeW5SsuALSQ7DRGbI75TFLb3ofEjeTfdQ7ilB6VpY9KPw3/ JPv/rvyLb9RA74oARlVlId9belzIcba+QBScfaM5LeoBaXyb9KIcmFIyX54i+6Qb+OMW 6FUeM5S/edgooXzX80RW4e4fLYobTJp3jamvapkweSYBXHA8djhg+7gslNPkN+WzE9Pv WHQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698335617; x=1698940417; 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=7hynPC3scdZ40zr3lj72+b2FKOXBK+Y3Zgo5uOul25Y=; b=PuetFLGmyHt0V/kHzxNEli1mPc+hqI9fnikCsrDgTFaG+nMgRtGSL6VoBsJSRIknkG YtfcI0tOakk2sY+0aCRHK3QqZ7+8FUnpq+bPECnjS0M28dOPM+FCMG+14ENbgOLZcl7A SeHQNZkkaevSEe73LtPJv1VhaNJbeHPKvvXZkXft6+FQaKAOOJhpP3NMmFmGyXWRMXNs C7RxDmo0BIienInsWnKXC+pD/ZkQmg+m4pYGmX2XMfjOzg8rmURuWhfoHG259aqaWVgN os0S+0dVwdr6FLTsIdXTXe2IWmT6YTlilE+IFSZI6DsnxcGdmQFYv2zLriQHi9ecp+Z3 3CQQ== X-Gm-Message-State: AOJu0YwPsamCQHsI3rEBk01PBahRphZXEO6vd66urhMkAHEUNU0SQG83 pCZARd4lZNbXDa5lJ7m3LaHmMA== X-Received: by 2002:a05:6870:2b15:b0:1e0:eb36:a7ed with SMTP id ld21-20020a0568702b1500b001e0eb36a7edmr22601245oab.29.1698335616806; Thu, 26 Oct 2023 08:53:36 -0700 (PDT) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id dd4-20020a056871c80400b001ef459c9a72sm479351oac.29.2023.10.26.08.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:53:36 -0700 (PDT) Date: Thu, 26 Oct 2023 08:53:36 -0700 (PDT) X-Google-Original-Date: Thu, 26 Oct 2023 08:49:23 PDT (-0700) Subject: Re: [PATCH 6/7] riscv: mm: Always flush a single MM context by ASID In-Reply-To: <20230910-haggler-barrier-421cefb0cc79@spud> CC: samuel@sholland.org, alexghiti@rivosinc.com, linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Conor Dooley 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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:53:50 -0700 (PDT) On Sun, 10 Sep 2023 12:46:38 PDT (-0700), Conor Dooley wrote: > On Sat, Sep 09, 2023 at 03:16:34PM -0500, Samuel Holland wrote: >> Even if ASIDs are not supported, using the single-ASID variant of the >> sfence.vma instruction preserves TLB entries for global (kernel) pages. >> So it is always most efficient to use the single-ASID code path. >> >> Signed-off-by: Samuel Holland > > On nommu: > arch/riscv/include/asm/tlbflush.h:59:69: error: 'mm_context_t' has no member named 'id' > arch/riscv/include/asm/tlbflush.h:61:9: error: implicit declaration of function 'local_flush_tlb_all_asid'; did you mean 'local_flush_tlb_all'? [-Werror=implicit-function-declaration] I'm getting a few more build issues as well. One's over here https://lore.kernel.org/r/20231026145516.25866-1-palmer@rivosinc.com , but I'm also getting In file included from /scratch/merges/ko-linux-next/linux/arch/riscv/include/asm/pgalloc.h:11, from /scratch/merges/ko-linux-next/linux/arch/riscv/include/asm/efi.h:13, from /scratch/merges/ko-linux-next/linux/arch/riscv/kernel/setup.c:40: /scratch/merges/ko-linux-next/linux/arch/riscv/include/asm/tlb.h: In function 'tlb_flush': /scratch/merges/ko-linux-next/linux/arch/riscv/include/asm/tlb.h:18:9: error: implicit declaration of function 'flush_tlb_mm'; did you mean 'flush_tlb_all'? [-Werror=implicit-function-declaration] 18 | flush_tlb_mm(tlb->mm); | ^~~~~~~~~~~~ | flush_tlb_all /scratch/merges/ko-linux-next/linux/arch/riscv/include/asm/tlb.h:18:25: error: invalid use of undefined type 'struct mmu_gather' 18 | flush_tlb_mm(tlb->mm); | ^~ cc1: some warnings being treated as errors > > Cheers, > Conor.