Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp299297lqp; Tue, 11 Jun 2024 05:12:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMKL3/H8gynWDiSCwC6/LHn2sdONpE7+O1IbLHlwlNB8Yf92tUQE6tlXcEmGgD1M7VFbbIfu87JKgtURmTp6oPZCr3zC5rBm29l6MPag== X-Google-Smtp-Source: AGHT+IFOnd0sbfOfI8FtASpnkrgW4ijoMca0iORmu5ZZkZP+uA1o7VtUFMTeJ7tKMwcJrEZC6gaK X-Received: by 2002:a17:907:20ae:b0:a6e:fc0f:5b61 with SMTP id a640c23a62f3a-a6efc0f7790mr557962766b.76.1718107965727; Tue, 11 Jun 2024 05:12:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718107965; cv=pass; d=google.com; s=arc-20160816; b=0ii5QAhLkzAztsi0UJ+fgl6fAm7alNxTL0yIgvoNPTi6lGFrNBVDiPd0ZmYnBcLjie qI5FAf9oHYjF5ZgCjCVomALtqQVao0sshlZtJwd0+STqrIJWc4ktc0yxTRrudFUUA3JQ cSFZnrl5zWeYIZ2AE1oBAqXc1xzJjVqTee5vMFpN8KnzSo3RbOtn8hQtxE0MJOTvHTdv fH7cjy41arKUlD2qyNPWCpJIkZ0jYqLtEP+3+V9UhoFU6zzW2SNCo6x8GrV/sAZADMY9 /ddzQtHPgG2/BXKM0raRmNwMLJ94Cm0kNYLEJTQ1sXuwgDcrTZuLuAQp5tpw31aA9thx 8hKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sIbNJUSxjDR6r4OKpjG9oJgb7z911EUrOwt9KL6BXgo=; fh=m5aKq7MBeK3airOgU8J5+Z6L/Sqzv0XTdH2ZmOBbUJ8=; b=GYPP1T9fYm2rOWqBFZKy32iVNJx1Fgm6X/1YQa9JiBUyggKwJRLiGi2W6m7F5DbUvm oE6VPwrrTTh+RvpL3kKs7IhIFqXWvcDHLPNawWbrrU82qAMJJGB4kkMA9HCU4J4PvmfD NKcClOjhXY+osdoHY1R5dHecqSbZVmSOWrjd6QnvmgFPXfHfor2r/AjKHX7TKO9ngHCK O/DEn+GMgIXfVI5zd3xA4NSQixMUHcdwCJQRo+0zIuc/7mbzZkgVinO9PymAKrTcPd+Z ztIgKP5YF2FOMNc8PDSrUCkGh9Bl7EeUtu0SyUUXewzTXOePAnS/qwrPdwB0hpeVV+tm AfJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="P24EE+7/"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-209837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209837-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c9d2e4009si294420a12.99.2024.06.11.05.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209837-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=@ziepe.ca header.s=google header.b="P24EE+7/"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-209837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209837-linux.lists.archive=gmail.com@vger.kernel.org" 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 7383A1F22155 for ; Tue, 11 Jun 2024 12:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D86B017C215; Tue, 11 Jun 2024 12:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="P24EE+7/" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 8CDDF17C201 for ; Tue, 11 Jun 2024 12:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107944; cv=none; b=oe8NOXlNKbQcYNmTiQxoh4WmHXJ5k9UcVFrA5c1zEawtVoKZLrj+9cYxtTJAt9TjLlmqbuIA6HAddgxYV9hdjLe8W2b6CRSmrUWEvKDD+YdHqhMROEopfkcZcv8DZuBdF9ecCFJlKRSrxKbZAabjnWGqmRElWctcQZxsM4rfq3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107944; c=relaxed/simple; bh=sIbNJUSxjDR6r4OKpjG9oJgb7z911EUrOwt9KL6BXgo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lOoaIstEqXHkZiZGFuOTsn6DH5rEf74QTOHylMnuLw0FJikJhXf6O1TQj3VB3bm9dt0HqhHbjHbM8Iw7mhZGglBf2e4ky9Dm19NK9ROb8VCFqE4EGJoidrpAhJyq1KACbyXiPXY5M28ZRAc02U4SRWUigUCSUV988hYeHmr9rMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=P24EE+7/; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7971a9947e6so49902985a.3 for ; Tue, 11 Jun 2024 05:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718107941; x=1718712741; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sIbNJUSxjDR6r4OKpjG9oJgb7z911EUrOwt9KL6BXgo=; b=P24EE+7/YyuEVvQOGKiDeS6CiAex8HT23tTTROqxjraUl3+kO2ce3TKNfUXEMgRcVR ToZEBFt8IGpElH7xeV0pvg4k0Mki0sq6UgagHZsrPKEPEpo+sc0UCh5VCmeuD2eVnstX /JwC3CxDx9e+it97mZy0Gikd4IcXnF6DwrERTplIgIBS5JJxPHBzJV7gUVEC+EMCL8m0 72JMAHlzlQPUFjnAdc4gJTl2wNQMypLVxFIpynSvpKR44tFAcJz3OhQlAy1AHGBHMtha 1FDV6hpFGEjqfD7qfxEwURReAWBOoCbHXCbzeVafEpXj1YL/IIblEAr/A5T0TVqtZail uKsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718107941; x=1718712741; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sIbNJUSxjDR6r4OKpjG9oJgb7z911EUrOwt9KL6BXgo=; b=dNo7ngiVd4EBk/F+sdZdE9dLUawoQgRyEkadomzb0h8GpCrSZEht4dskeOtsjwAOVB kpmWOSZqegDlPhoaqCetMECPAQa8HEMO3NxofOVKwajBg3HnBIzeVyVz0vAM5LCLM/Mc 8HqYJHnLg62BiflY+g1KVIb7KCwV0UD2ciLQTQmXNC2sCIICZ77bchQWQ2e1f2k2QAWW cKCTh4xe7Qz7lkT8KL/Obsker0ZB/wsFaogNxsKwpPLJ8m6rZ2rOw+JFvOOp6r+t5nGT lCsP1WHhIYG351m+lmbCsD8+Z9pngjlqEL5LQwPfBAaqCSTqwO5zvs9pVEKGRPtnHObo WLVQ== X-Forwarded-Encrypted: i=1; AJvYcCVOSnG9k7OHDn43eU+MZ0f/luzXe2+LWJyLTtnVbhqZMHhwCBhP2ZK0wkfgQu8V9aaiCAFh/1zyg1t19OX4Dhcxi73HQVhC0z4TTK3K X-Gm-Message-State: AOJu0YzOJJy++4RBifHx84f+7asmJOnPJamZV/nJokK/A9z07ecN9ick MPgRBWDSU/EJP882XC6waVVlIGd3cCa0A0bIo/mAprJv258oqVvoztKPDDl4363LmgME6KmHGjv Knc0= X-Received: by 2002:a05:620a:24cb:b0:795:4cde:3b1c with SMTP id af79cd13be357-7954cde3cf7mr1271288985a.6.1718107941369; Tue, 11 Jun 2024 05:12:21 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79556b3ac83sm292416485a.127.2024.06.11.05.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:12:20 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sH0MN-001OhE-1j; Tue, 11 Jun 2024 09:12:19 -0300 Date: Tue, 11 Jun 2024 09:12:19 -0300 From: Jason Gunthorpe To: Tomasz Jeznach Cc: Zong Li , Joerg Roedel , Will Deacon , Robin Murphy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Sunil V L , Nick Kossifidis , Sebastien Boeuf , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, iommu@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux@rivosinc.com, Lu Baolu , Jim Shu , Vincent Chen Subject: Re: [PATCH v6 5/7] iommu/riscv: Device directory management. Message-ID: <20240611121219.GP791043@ziepe.ca> References: <20240610174934.GM791043@ziepe.ca> <20240610222051.GO791043@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jun 10, 2024 at 07:00:34PM -0700, Tomasz Jeznach wrote: > For now, I'll change the implementation to assume negative caching for > DDTE and will follow up with device tree / driver updates to make the > invalidation optional when revised specifications will be available. Is there a reason to make it optional? It seems like it doesn't have any performance downside to just always invalidate, attachment is not a critical path operation. I could see making something like negative PTE invalidation optional as that is more performance path.. Jason