From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 ADA6C17C205 for ; Tue, 11 Jun 2024 12:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107944; cv=none; b=KOd7cxQ/KhWojqlwG1DeXb8HCBFSSH+xsZQ0gpkyYEoj4ncxuKEig6QrpEuRBOQYdQj1RqrFVw1cXF3YB/WTHOPxx7goJ9lBsePRXzrcTdeq0P0cpNun+E1I9LBvaJyAEL1Mck4DXiqmxCBpW9ZOBATqjpcsTYOL3LSZ9o+01Lc= 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=bbHlvtLn; arc=none smtp.client-ip=209.85.222.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="bbHlvtLn" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-7955c585af0so64877885a.2 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=1718107942; x=1718712742; 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=bbHlvtLnqwR2l0To927wd2CoZZUEy4Ubp/VJUKMeBRdWVCvtGXyRfGbuSK4PEWfe+T 5wxzVkr6YR6cDRnELrS5jZfpNDx979050vJn+KzmAjL1/CWcS9nLggUcKO1b4yMUli6K x3gWcdaffnXVkUPk4j3s+wR7QrlSc75RLOSghf7CZmCkrvL3M+9Jxqi2L4P3/iyQGJ37 EMNojekvv2DcVFMZ21/r7/OpdDegAYwGfjOdAmO4z+4Sxye/1YEzXQwAHTioIeLiUdWX bl1+N8YDfjextD4kmgK5dmsQHe4GVGj1CPWBATFqOwTnj7ilGs4wg/31AJ2T3jyRQTkZ ZYyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718107942; x=1718712742; 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=E22e0PJc+kmNjfE0tIXQNC4+V9nC6Qbxm4hQNKLl0Db64uDgl5y12rz/Wo/5E+VSX3 zLLRmmkiYH78rek8gK0tIHnZ2Ktc/0VP5y5VzEw16nuPBASGFyuV/CdsYGTWMNucR7BI RTHCP4X71+uUOYGHibm2TBoKhljk4+xcyUMD2cLnbEPg9uQFQAkNoEDpVRAMMvw/SkpE McdwX6koXI7IC0Nn/L3DFis/jUXQHAZenLLsbva365vb4g8GYpEUsO8cvqzGL2/2Vump M9SLZ7EIweK5tsIPlIs0e63wrpMur59vtrdCl7Dg8s7AHyxnjDZX6mP2fzF26YVEAETM kxyw== X-Forwarded-Encrypted: i=1; AJvYcCW5x0vVN6ahcFdP6d7M2FNl3rE8TzfwjT4MeW+Y72sl5VlWxr5qaMfitroL+cyFfYrCaf88HOi2mQUNa5zNql/eHDxCzOa4n3Qt/w== X-Gm-Message-State: AOJu0YzE/5NE7er6GFrllUqzEaCeSg1pf+VeVAsH3ZJ9C+Cq0byeXsf7 0gmforOZUke+hy72IE4wHBkMG4/zY5+W/F5zxaF6ZkTzQpLH5xEL2sjhXniRBgw= X-Google-Smtp-Source: AGHT+IGrA5stCDnRo1H5n9Y5w5ElO81oVmgd60ewDFQ3Fm5sCDbN4V5n/Tt2xc1pS6BW64I2SfmIhA== 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: devicetree@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