Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp187344lqt; Wed, 5 Jun 2024 23:54:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVU6w5IgiiFQB7QNRpsnj05OUZYL3JPzl7I1ozEByUp6ks79YoGH4ms49gbIJwnEZoDCP4aLZqd3Wym3fPmOVTCW+5NimzKyN2UbJtroA== X-Google-Smtp-Source: AGHT+IFyOjWjf1+PKrcAklXJ0XtBEe1iMQ4CbaioqZRb4uvPpAywghfGKB6jqs3CLf5/ddmldb4d X-Received: by 2002:a17:906:f91a:b0:a6c:7337:b192 with SMTP id a640c23a62f3a-a6c7337b65fmr146086866b.40.1717656887783; Wed, 05 Jun 2024 23:54:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717656887; cv=pass; d=google.com; s=arc-20160816; b=CWJh30LSqmlQOHfyz2JoPVx2JRsz4jUm3c89S5Zhcw68Mh3lEjvWObVCeUcu+eBlUk 9BClGPGcyNkLdfDOesLOWZJ/AwJokuVIdnRLP1YChj6sM96Jaywz0Qg1jxJBiXlQ3WGl cW7K29jPQV5ZST+1ckb4CWKK+fpzGmA1MhtmsvHdhTEa03TTu2H44HAKwJWuvcoTvDUB 8yeJBbdxpf5GMQ8ctWV/ljDYy6zzj4i9nGupH5pDN00DW+x9cdgTtKzpaczYFuPz7b64 KC6hxPtnjoBvXwX99jjOAqrJg8WbQCVSaRbi0nFCaFmrFujnIUnNNzYxicpdybtDKDkM ZGvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a7TCmXGWr94ZoD3g1UVXKN5ISjES07LkwWyEhWG4/I0=; fh=c+ETBVQ6OjjGFm54GMaqHgQRCFrf4M0PVFGqAEmppfg=; b=n54uax5vgMVVilkt4I0yNePWmK8ACfEroqeV5+wmQs2NNO8ezCsRy1hSEvrgD5lLbA TMJ37XHoM3/qeFvtkNLF9e7YuTd6zs15sSIGBIB8zB6fqwXtX5zH4LMs/p++13Dgut9E VdmXR/OUEg40sV1PvsqsU6zGKWofmSaEpdzXFq0NU5p+/b155RfoueSX9CezMLqE5zBC diesrEBJM8sJrOZH6sy1Vac80pv2fIU8WkflgXOWVeJnntF2JYOZ0qqq+GxQYzqbtCLT pGVmIBhN8jaybkVlA8fDouBEy51lxZWvLTPqC0zENEpZGsYsXElINhJyHrVhkwCOvEw8 Rp6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Xd1GeeWG; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-203696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203696-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 a640c23a62f3a-a6c80583414si35814366b.131.2024.06.05.23.54.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 23:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203696-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=@ventanamicro.com header.s=google header.b=Xd1GeeWG; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-203696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203696-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 7E6CC1F22345 for ; Thu, 6 Jun 2024 06:54:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A36313A899; Thu, 6 Jun 2024 06:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="Xd1GeeWG" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 AB9D63AC16 for ; Thu, 6 Jun 2024 06:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717656878; cv=none; b=H6wn0p/x6PYNdHbjq4RUwxEvJ3HwyezAkzg+z1rBeikNSY8BhTJpYA6bMs24btsKp2WuddUUZfxNtrXwh7pv1TFVTjETjP22Ilja+z1ILbAuneEGXw9uf9L3xLdHQbq4ZpUDVQxJy9yZkjUff81gCs+AJDjDploblAbGIIUKgEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717656878; c=relaxed/simple; bh=KSdDPxC5VUh1WnamIAbzz671Erp4LUNSssBAt5dfhn0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=txR7GNss6IS07bRlEqhyCWHmu76A4RdzSC1C6XGQ6i27IhqJ8XxOdENLdNkmTkUe/GgsFTpgglAI0Y4qrR30qU4j+GTGFlyFAVUelD0uisNxmqA6dDjhbS6BOKBh9cWQo/8QWPoDb0+2+uCHkSVD3DY3rgUYPrELXhf8elIGhjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=Xd1GeeWG; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-35e83828738so680787f8f.1 for ; Wed, 05 Jun 2024 23:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1717656875; x=1718261675; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=a7TCmXGWr94ZoD3g1UVXKN5ISjES07LkwWyEhWG4/I0=; b=Xd1GeeWG9v03txlf+IeiUr4isYxVXO7sIlwVrFgtx1zja6n/fz2iQPtu9T/SkSo4K+ DpyV/FkNfNHxSIxjwzogopPQt73IMD3+32oj5r1+swWqeEdbBTODAoWErX6qJ5EhbA0R HtTfy7QuwaPn4Xw2Vnc3ZKfxCc7TComljJDoArtRbb7vtxsbwXhv3+n3YSv7av+TlfXd Cxw7LiDF6mp/sNv39elNFu06CElZEKRl1/b4t5s7zI5rVUcrjmcAe5u8tm1H9iTQCg4n IWigq2oVWJBeoHB0JUs38ul+2sI5OrV4XqceY9663k5lfLm1aTv5aOw3k9g1eAia2hF4 S/Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717656875; x=1718261675; h=in-reply-to:content-transfer-encoding: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=a7TCmXGWr94ZoD3g1UVXKN5ISjES07LkwWyEhWG4/I0=; b=MadEW5zNaSn7O0byd9dbWS3AThx+2nJqmDHW0m1uNf+/S6W6qPp1VhSgMJSxz+tcet 1eYuh/Y5PHAILIQnKVuBMrBmZGVVzBbfcvKTfuR0NUSfVTo69Hop3rdfRoNpHx8avWbt EksRzr7fnAbYdM3zD3CbCHVh0Rz7JMpQow3ceVLy+f3tez0kTg8MrHNJcGEMeUvrzN/W rZquj8pUU6FYDZqUqJ4cNzLq15ybPri4OXN+cP2eTm7vH9L1M5wUX+crv7e+80eLLVEP SWuHLwi/MMrznWsR3DnQl5mtOliE18JtT20Ong56eFQAAri/UFj6huUJFNCX6DCixcRO AUTQ== X-Forwarded-Encrypted: i=1; AJvYcCV3+2v+al6c8agjiRSyd6t77VtatA3xIK6eEYPpaBLRXoAnRZ8VqiRNGB4gnyM5IuUGJz+BsMoAY3sLQCm99TC1vqcrdxeuyKsqh+nE X-Gm-Message-State: AOJu0YwJyWa6Z0Ne0WmBGIsptI3+MVSnzXDeF3CwasCo6/tOW76747ag uTEeKyWGhme+b4qY2v5LIRu4kkPuNIY3U91SSSXpTekld8axsbzQhmC+DQztRvU= X-Received: by 2002:a5d:4711:0:b0:35e:83f3:ea0a with SMTP id ffacd0b85a97d-35e8ef65b69mr3594626f8f.48.1717656874844; Wed, 05 Jun 2024 23:54:34 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fc1ca8sm714821f8f.97.2024.06.05.23.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 23:54:34 -0700 (PDT) Date: Thu, 6 Jun 2024 08:54:33 +0200 From: Andrew Jones To: Tomasz Jeznach Cc: 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 Subject: Re: [PATCH v6 2/7] iommu/riscv: Add RISC-V IOMMU platform device driver Message-ID: <20240606-988b5519747e28c276f9a952@orel> References: <7dcd9a154625704cbf9adc4b4ac07ca0b9753b31.1716578450.git.tjeznach@rivosinc.com> <20240529-08fd52a8e703418142bdfa84@orel> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jun 05, 2024 at 11:58:28AM GMT, Tomasz Jeznach wrote: > On Wed, May 29, 2024 at 8:15 AM Andrew Jones wrote: ... > > > +/* 3.1.3 I/O MMU Directory cache invalidation */ > > > +/* Fields on dword0 */ > > > +#define RISCV_IOMMU_CMD_IODIR_OPCODE 3 > > > +#define RISCV_IOMMU_CMD_IODIR_FUNC_INVAL_DDT 0 > > > +#define RISCV_IOMMU_CMD_IODIR_FUNC_INVAL_PDT 1 > > > +#define RISCV_IOMMU_CMD_IODIR_PID GENMASK_ULL(31, 12) > > > +#define RISCV_IOMMU_CMD_IODIR_DV BIT_ULL(33) > > > +#define RISCV_IOMMU_CMD_IODIR_DID GENMASK_ULL(63, 40) > > > > RISCV_IOMMU_CMD_IOTDIR_* for all above > > > > I've checked latest RISC-V IOMMU Arch Specification and it looks there > it is a bit inconsistent in IODIR naming. The acronym IOTDIR is used > only once, while all other references to directory cache invalidation > command use IODIR. I'll keep _CMD_IODIR_ here. > Indeed. I've made a comment on the spec clarifications PR to suggest the s/IOTDIR/IODIR/ change. Thanks, drew