Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp206482lqh; Fri, 3 May 2024 20:21:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoI5w+XVSa6MdhkYO8wxM/ToWjxsg4DGqqRRwQSY5G5AVoDAM13Ad/sStWd7MVZWPy8S0DISbP5nnjtlEA2lQlyFlUum+IrU2QXfl8Jg== X-Google-Smtp-Source: AGHT+IEhhFRuy3OHn7HiQmAHgq0qsAgPeI0r2IQOXnjOSj6mwNZSMkvK/yTjue1H7atfWMfHl4Wo X-Received: by 2002:a05:6358:3384:b0:17e:53f9:6985 with SMTP id i4-20020a056358338400b0017e53f96985mr4826310rwd.14.1714792876421; Fri, 03 May 2024 20:21:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714792876; cv=pass; d=google.com; s=arc-20160816; b=i35UVfay/vEqerZNDpmMrn5VpdMYHSpxXw3ymwsD9ZhXOED/ABdKpgMTemT0CcvXjA lQ5WQ8o0w97NNhYJUP/t82aDJJBIa+odHMjdm0xpQYJ/e8dg/7X/6+ftW/M3RWvhXYYp Cvn4vCGrZJF++SAx7Ide1zuvS6uZoPKS2SBwAefV323AcS/EKQi7gQ2AwI0CaJHRCTGr jW/mWTZeOAJLh2LpGB/SjqCbXlm5LJi336IflK1d8STkaItjnKGY/RgmAtiU/WBPsBMY GzEeE2P3f2mzXUWtEfZdSOtFLfwstpx6jsvi+R8DC6RIZT78N3uInOhmX0AAOlw538qQ uDgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UP9eUI0SLrmBrJiw57IBQ/K7Itco0hIpxL/7USEVWNU=; fh=GZpB+23hS60jmu+hKJaXmUS0z/LJyB8ihlMvW8pUUB4=; b=g3Qr1ZKT4A0pLYR5ifM7JyHKeuufpbvZTZF6eD509PySXZXhtsPirI9eoLN8wVxgnl sEemJYt7Q2sz0fpwbw0yeIB7jXG3lowwcry2WXnXIUWMnNW/Wep6S5NDl2kL14hRp/YR yxx+aLug3RsCXwSK8f9b698mLXtjp2nkURZpuSQyRpSYQ7GLrc9hYRZdP4OdfqO7+pUa 9THY1Aoh769wMLqjmlaZPcXbSDIKuDbw8enUUuHr+AOdfgTxDn3gZH6bgQTUwKNRxORn 86nLBQzULIktG/QncR38BHyGlLFzEwJfA/l0f4WnnNlZEJUoW+Ov0UzgBoIah6seowJ5 uwiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OLhmNU0s; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w68-20020a636247000000b0061dd3ca6a9fsi2129349pgb.177.2024.05.03.20.21.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 20:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OLhmNU0s; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-168488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 293C2B214F6 for ; Sat, 4 May 2024 02:05:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98255AD2D; Sat, 4 May 2024 02:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OLhmNU0s" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01472210D; Sat, 4 May 2024 02:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714788338; cv=none; b=c6F9dDRmbmYI6a9lLVPcaLggej/W83tmPzir8YLqP+CbRGM5alK2Ywhn//NbM89TyVtZ3JqnrDVLu2L9LugJND08Dpv432ebWCr/iHOs8DWNfiqL2JfgcE6QShgMeoNWVmWnO2EN2rNVhva+7+/getBouEHcgUoR4bCt/zVheBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714788338; c=relaxed/simple; bh=7klp7IIY3XFtHFhsC2ojag4m07iXNC50Ffi+qHgcjKk=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=OLDKIhS89jL3tEFW2hcXyQKc335GhrPkwWBG4jyN1KgGEwMsN8cE3CQbauUebPYrQRkNQX3L/H9iU/MJQ1GwJoS0p72rZnVbFewgzJR+7hXV2XH4bDupdVcRAf9mQOS+WBejVIyJcnu+xZi4DazbG/53EJlMj1pvWe8o/OG7OlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OLhmNU0s; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714788337; x=1746324337; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=7klp7IIY3XFtHFhsC2ojag4m07iXNC50Ffi+qHgcjKk=; b=OLhmNU0saBYRE3nj+BTQn/ExYbWijCS8n12xntPb83ueI227HLYHHarr PMwVcnyzKKRKHG1CGJ4h8AJvKjvjzsA1bD8nV5Iiq1sbXvCiaGRt03kj/ 9AA+Oje7ED/puU0tZQpxE+nOvArMDGWWXkq+3psmVKidusgu60HXFTSB6 7eDfWJOWvb6X4/h38FJZei/hVb4fXKePz0WB5xVvP0ysA4zYB8J1oWVWr RTblY6KRp51BVH2TGNwQT1+zBxM9CQwSbiG/Yj0KQaf8H/7yIkSsFgwmN Ywygf80NFMa33x6xRmDU8baEnOAz2kdavBlEtrQvVtSSztPNmiNaYjKXP Q==; X-CSE-ConnectionGUID: WNgk9HxYT5+CxX3O2vUrWA== X-CSE-MsgGUID: fLEg7l0lQVGeZfcU2ixk7Q== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="14395663" X-IronPort-AV: E=Sophos;i="6.07,252,1708416000"; d="scan'208";a="14395663" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 19:05:36 -0700 X-CSE-ConnectionGUID: LoYy6EzuQwejfXItCMF5OQ== X-CSE-MsgGUID: pIjcEpz0SHWP9ccYOy3Ogg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,252,1708416000"; d="scan'208";a="58817915" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by fmviesa001.fm.intel.com with ESMTP; 03 May 2024 19:05:32 -0700 Message-ID: <0db1f6d3-5eb7-4cda-877e-80d477333db9@linux.intel.com> Date: Sat, 4 May 2024 10:03:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, 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 Subject: Re: [PATCH v4 7/7] iommu/riscv: Paging domain support To: Tomasz Jeznach , Joerg Roedel , Will Deacon , Robin Murphy , Paul Walmsley References: <1cda67ed73f0a1d5cb906b3692a90ab35416f2ba.1714752293.git.tjeznach@rivosinc.com> Content-Language: en-US From: Baolu Lu In-Reply-To: <1cda67ed73f0a1d5cb906b3692a90ab35416f2ba.1714752293.git.tjeznach@rivosinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/4/24 12:12 AM, Tomasz Jeznach wrote: > Introduce first-stage address translation support. > > Page table configured by the IOMMU driver will use the highest mode > implemented by the hardware, unless not known at the domain allocation > time falling back to the CPU’s MMU page mode. > > This change introduces IOTINVAL.VMA command, required to invalidate > any cached IOATC entries after mapping is updated and/or removed from > the paging domain. Invalidations for the non-leaf page entries use > IOTINVAL for all addresses assigned to the protection domain for > hardware not supporting more granular non-leaf page table cache > invalidations. > > Signed-off-by: Tomasz Jeznach Reviewed-by: Lu Baolu Best regards, baolu