Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp941175lqj; Mon, 3 Jun 2024 05:54:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIlpJbFQ1H//hoYMtDBnPma50WsH3fG1xRccdid3a1Qs+grdCJhmurGpcFCoLVGEl3sGa/oPdoqaAbDav06KfL/voNa6xhIcmyAhImwg== X-Google-Smtp-Source: AGHT+IFEdBvN50SFy7pWZ7GmiD6hnuyXIQreBPK5LvOJkcvfSvtpRGrzBEFN2e8O+fzRh6oSjiyk X-Received: by 2002:a17:906:c0d9:b0:a64:722f:4051 with SMTP id a640c23a62f3a-a681c8d9e0cmr650071166b.0.1717419245208; Mon, 03 Jun 2024 05:54:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419245; cv=pass; d=google.com; s=arc-20160816; b=p4OHEGh1UcaJCPtqRKqn+oxd40bQuDU+mDtg+LpBmd1geKQVN/gsU3PWdifg6NKPBE M+G5qkh8zSCHIK3wfW2073XLnJ9T/jmXttaSNLIi+1LIaZpZhyqH4tuDpMiEhj4qcUbs 7tLRacxddhWGlbuRISN1QSI9InS5eaiQp6yAqQ4XVNz4KVEBrKhnz/hfZuItRYCcSSb5 ZXEj76DjmQrJOF8Zjm77Lb1vXvtMzgYcZYJFhId/v1nU9KewpjQzjzlHW+iE1LLS6XlY c4MFxDAIdH+pzax6qBtNd+4AQzO543eqXeLjK7Y5IvqSp9C+gLYU/031hvCyyYXYcssW hsfQ== 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=9bimdtL/8Yb4rbSFpMqz1UL6qiGEqUPhGsLy+D1hTls=; fh=f7aT5lOYKyu1jWGsF+AjAviGG9PomvsGKOqXa/bkOEA=; b=dBMpNPowSOuDe93KpX52Ll3K1pBd2uinFJTiU21XoPicIn4u1QE+zTJLLHN5aiXBg3 HQnNt0l/F3OU1RToqQ5nSV3Yhl5ui9z2hAPivogFeMy5GiX6prMkStS1KMJH8o7gZbEu sknv96g9PHZtA33W4duG891/v8mfEIGqSudYow5igNZtcx0eG+A5OjKdzkHyCfs77qOB LNaH0aXMmATgreibmmkKeLDIBWpxwyCo4QDls4Y0uWPCSgHw3+aT/X28rLrj77AUnCNl lZewx8VBzPT52Quf/f5AuGi5B/Rdg83LabwExti83CfKvrA2LZganBKQvmf+iO/eE+ZS cLuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Ez+VBXno; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-199141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199141-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea38d9cdsi396268266b.339.2024.06.03.05.54.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:54:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Ez+VBXno; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-199141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199141-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 E36C21F21B18 for ; Mon, 3 Jun 2024 12:54:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A414B12D205; Mon, 3 Jun 2024 12:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="Ez+VBXno" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 4D56E7BAE5 for ; Mon, 3 Jun 2024 12:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419193; cv=none; b=IyO2artySJPeaPpDWRv1r2MCn8MXY0nTxX8Gn1M7GP51EWw3wRUZtOJnU5DpqrCElvj7feE8MgbdArHIhY8nEWyLjB2qTMCAI80FOaz9gEv4PfjaDFHmsv0/AEwgvNz5tI0vjLQ+erIXMzVRvCPC5Go/mgWWWGIH9aXzYKqEuTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419193; c=relaxed/simple; bh=QX4iMKVssxoVyavrTllOasYtXwgAZT/oiXydBXbLzW4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ON8dSeKDhouPEquMbYOyx9LS/Ng1W3y5+L05CUAWWdABvs7+hTVeLdrCQG0vQj1+M70n5IzblW+PpFgYwb/bMfkeFXNAyG3ErwMsirukHelppoNYfo0iiotkxNvwEJk2LS/T57FFIyS7vc54ek7AdsyZGSPbGW4tr9i/jJpw7uI= 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=Ez+VBXno; arc=none smtp.client-ip=209.85.128.53 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-f53.google.com with SMTP id 5b1f17b1804b1-4212e341818so26757415e9.2 for ; Mon, 03 Jun 2024 05:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1717419191; x=1718023991; 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=9bimdtL/8Yb4rbSFpMqz1UL6qiGEqUPhGsLy+D1hTls=; b=Ez+VBXno0jjdT76WqdiNRuzx4L/KRlRH4RvGnoJvTaZ2pFcFBs27atkXHhdVqECERZ kr50I1KKC3Ntf2zGLDL7PP3XGAPxpoSREQgQLOxYEwKi967lqZh0ammmBzVYM9WNWsSH pJpw9kjjGbZJBFI7wd0CP5ZsCpUphxctHj030JSZNadtshvyNmj8RS379aL0MXR4HR8n Ed7l0Ph/t8duPQGBp0UPCnmPIpll6dMseZmXTDkVRJbwUv/+406ngFMx6OE0O1LQCwwB 0Xfej9P1xuBWgOMvkTUMnnsINd4KdR/kxLmjelkSOsbmTlLxYq8e6ecXJTrY08GmTqfo IvPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717419191; x=1718023991; 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=9bimdtL/8Yb4rbSFpMqz1UL6qiGEqUPhGsLy+D1hTls=; b=GVzfWwM2oNiX/qDJxrsWC9++qTTB6ThlkO/2rj4JML+AljFSILdlGoOpaishw3ko6F /ChGxFcVt3QqUdl1uZJSQJ/eJxDjpe+j4kbePToMm/eCU9SirxdtRUyPlr6dLUHe6WcT WhnEWKYY6W0SGriS6I4A+njp+5iuxtLxvhXzZdsRP8X7JCq/S/piYPH6WmPQO4FbAyuU ygdHEsS9Vr0iD9mOdVHPYE8iVIhxrqqbjoLYsGB4WO3AwFROZRE36HYXzRmgLSmIOt4C I4cxP7sCcrPYMnXRglanfcJInKwCDKqoUluhxrh/pGzxZCrHtuTyddfMJt1wTs2AzAJy v+sw== X-Forwarded-Encrypted: i=1; AJvYcCUFg30gCU5XMFm3O7gL6dW1Uh+icXUaPIx9TIpCrAwuDcyoBAwPDXabUiWh+jc0ZHVsH1NjMSoXf/TziUiDleVexBMuZcfmJ5Pc6VP+ X-Gm-Message-State: AOJu0YyIb5vdz0fBemABED9ibTUHd3ZewTJMRsw08mpBGVmQqXpt7LKG lUlk/D7Luy0pvrSwhywmiTRzNQ+oYt0PW0Hvn2jmcTvtXvgetMK1N+Hu6NKE2os= X-Received: by 2002:a05:600c:3510:b0:421:3674:7933 with SMTP id 5b1f17b1804b1-421367479e1mr41938045e9.27.1717419190599; Mon, 03 Jun 2024 05:53:10 -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-35e5e3d1902sm1783031f8f.32.2024.06.03.05.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:53:10 -0700 (PDT) Date: Mon, 3 Jun 2024 14:53:09 +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: <20240603-c4a8257697f83cd3bace6ce5@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=us-ascii Content-Disposition: inline In-Reply-To: <20240529-08fd52a8e703418142bdfa84@orel> ... > > +/* 5.19 Performance monitoring counter overflow status (32bits) */ > > +#define RISCV_IOMMU_REG_IOCOUNTOVF 0x0058 > > +#define RISCV_IOMMU_IOCOUNTOVF_CY BIT(0) > > +#define RISCV_IOMMU_IOCOUNTOVF_HPM GENMASK_ULL(31, 1) > > RISCV_IOMMU_REG_IOCNTOVF* for all above. It looks like this > got renamed and the header of the spec subsection still has > the old name, but otherwise the new name is referenced. > > > + > > +/* 5.20 Performance monitoring counter inhibits (32bits) */ > > +#define RISCV_IOMMU_REG_IOCOUNTINH 0x005C > > +#define RISCV_IOMMU_IOCOUNTINH_CY BIT(0) > > +#define RISCV_IOMMU_IOCOUNTINH_HPM GENMASK(31, 1) > > RISCV_IOMMU_IOCNTINH* for all above. Same header with old > name spec issue. > Scratch these suggestions. Based on IOMMU spec PR#243 ("Clarification updates to IOMMU v1.0.0") it looks like the iocnt* names are getting fixed up to be iocount* names. Thanks, drew