Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1146571lqb; Thu, 30 May 2024 01:20:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVOEyBd1nef15YRi+gnL75arz2m9i6UOWxTapre9pUmg9u/ALZLzvIl9Y87j2wQ7SkPeVy0OpZUercZdB7+Wb3wOFVgF3ni98TzgkFCLQ== X-Google-Smtp-Source: AGHT+IH31YtmcrDKiETQEFZ7HZ1dnvEOBwZQasIcv5oyb5D4YoKz67Lz6470K5ZKjIUlrPMJ5muG X-Received: by 2002:a05:6214:4801:b0:6ad:84bf:b91e with SMTP id 6a1803df08f44-6ae0cb09fd6mr19413266d6.3.1717057230295; Thu, 30 May 2024 01:20:30 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac1489d44asi149340056d6.368.2024.05.30.01.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ventanamicro.com header.s=google header.b=X4MGssAO; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-195055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195055-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E1F061C22075 for ; Thu, 30 May 2024 08:20:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C88B14C5BE; Thu, 30 May 2024 08:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="X4MGssAO" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 453ED143746 for ; Thu, 30 May 2024 08:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057222; cv=none; b=ierLxeRNF8zk3OjuLyJeKjxRm9uuBBeVNUjjDogF4ezJVYq5N0pPQSDKH+yG0YXXbn9nmqPXlTWyM/2kFpX0R2Dtj7iKC8j+GfjgpknUl+oa5BUfnayy/4yTzGngPv++E1q4+DCnyUCMAsocyiNRl0ZYIkmjMIrHoyqzQRBhcO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057222; c=relaxed/simple; bh=9hQvbxkraGoQByyfnB/SKIQRAxtxMniFpbudb4R8J+8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WJbsK4Oi7Wv71mKLx3rgERROoSPTD5IC5ZCYjG/9KTXELZISNjlbO49bAYcRukb4H7bdpIWVR/UNYjMnimI0tBsy7jddNdEJSS7rSuE2C/cJ/QCdxoY1kho+yiF1gul2+KnpynKzCf6cbguCIEQJFY6EEU0MJpG3bkYtO6lQIww= 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=X4MGssAO; arc=none smtp.client-ip=209.85.128.41 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-420180b5838so3398955e9.2 for ; Thu, 30 May 2024 01:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1717057219; x=1717662019; 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=xAFqwlnprskdijXg0+qVMxiHshvm9v4VwBvMivw4hqg=; b=X4MGssAOpP+ReUDeAySTOFHDO/FubL+QJxHVcC+a5OJ58ZwzkJT342ezkeV7bDetn8 SVKOa2Is89YHjf8phSxz5TL66YMcs4GmIV2U7LzYpFptW+BZJX5eI36LX9nSCBuA4ofQ pRVlIr2VXuD9g7Pr2TWAcPxCZQ4RW7hMysILLojJ4SBHhKgasjYgjVwEsiaEq/1nEYrw vCy55gf0GJlHYukEXivVpxZ3Y84qni1uyOiSiK5M6bK+81FkBIPlS/ts+ljn/3N7TMa0 +2JfLy3MuuetTFjE2Vb6sF49E4WdJ4yqEe7oj5228Pw2x57UHZpMCjEQRYTwYUq/4XGw vWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717057219; x=1717662019; 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=xAFqwlnprskdijXg0+qVMxiHshvm9v4VwBvMivw4hqg=; b=a4J2X4+4o2S6QnP3kd5UIpRv47vnhA6CSCVYT57b5OM1E8zHkVtY4ctRLu1N9X0nN4 LM74oo5XuUQteEQwhAt/IrPzX6+1/aJEkBsXhPzysBYeWj2gDgbjpCWrIBkX1nVTy13b HEfcySka3jQ94mI41Bh2oCMQxp2RNvx/FzI2CdL7B/aCTrrTtsVByep4arwg6/K5M/yF jTyXtzc8WW8QDNQ8VnOFeSFDUVE9tOVKq5FKCag9f9a6YqHT6o8EMxrxqJEzvlmvE48W 1Pc1k2/5XPRdmF5JVypM02WABp2Vzxr0OLLqmZWVyyX/fpdfZpNBFUG0OoqKukSqq2w4 kVhA== X-Forwarded-Encrypted: i=1; AJvYcCUeT9MRqqDo1QYQDk/eBcyUgizC5vaUDC1eW9cuNKEoGtCa3+0Xo+Dw7e1zsgct2fOiH80SXj48aMjGP4fImeDxCrnxqzVps5YKfk8B X-Gm-Message-State: AOJu0YwcfAFU0hlB94OjyMtb9C600tJ3R3j33E8zM4uVozhTE6HRQdha sGZoa86bn0GJAH9HF5I9K9Ph2DtluAiSyOK5XK5TPFavxslZIbS1MQ6FSk5c8+o= X-Received: by 2002:a05:600c:45d4:b0:421:2241:5be3 with SMTP id 5b1f17b1804b1-4212780a865mr16402325e9.5.1717057219466; Thu, 30 May 2024 01:20:19 -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 5b1f17b1804b1-4212708a6fbsm17283305e9.44.2024.05.30.01.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:20:19 -0700 (PDT) Date: Thu, 30 May 2024 10:20:18 +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: <20240530-af20943d2b372faa7b11ed41@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, May 29, 2024 at 10:59:58AM GMT, Tomasz Jeznach wrote: > On Wed, May 29, 2024 at 8:15 AM Andrew Jones wrote: > > > > Hi Tomasz, > > > > I reviewed iommu-bits.h to the spec. Most naming matches exactly, which > > is nice, but I've pointed out a few which don't. > > > > Thanks, > > drew > > > > Thanks for looking into this a bit boring file. No problem. I also meant to point out that I checked all bits/offsets as well. They all looked good to me. .. > > > +enum riscv_iommu_fq_ttypes { > > > + RISCV_IOMMU_FQ_TTYPE_NONE = 0, > > > + RISCV_IOMMU_FQ_TTYPE_UADDR_INST_FETCH = 1, > > > + RISCV_IOMMU_FQ_TTYPE_UADDR_RD = 2, > > > + RISCV_IOMMU_FQ_TTYPE_UADDR_WR = 3, > > > + RISCV_IOMMU_FQ_TTYPE_TADDR_INST_FETCH = 5, > > > + RISCV_IOMMU_FQ_TTYPE_TADDR_RD = 6, > > > + RISCV_IOMMU_FQ_TTYPE_TADDR_WR = 7, > > > + RISCV_IOMMU_FQ_TTYPE_PCIE_ATS_REQ = 8, > > > + RISCV_IOMMU_FW_TTYPE_PCIE_MSG_REQ = 9, > > > +}; > > > > RISCV_IOMMU_FW_TTYP_* for all above > > > > I guess RISCV_IOMMU_FQ_TTYP_* to match _FQ_ acronym. Oh yeah. I guess my eyes had glazed over at this point because I didn't notice the 'FW' vs. 'FQ'. So, yeah, we want RISCV_IOMMU_FQ_TTYP_* for all above, including RISCV_IOMMU_FQ_TTYP_PCIE_MSG_REQ. Thanks, drew