From nobody Sat Dec 28 02:58:14 2024 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 3FDE7199E8B; Mon, 9 Dec 2024 19:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733772269; cv=none; b=cc1MfwCixfwaU8Y+Ng4RJoGdkAVCo5YyOfTwp+YxDuztnYMAWGOy7u/1AMsmo/0VcAL9n1yGxgGj94JarZKJLgVbAA9Ny6xk+0I36rdfOj9Z5x+iss4fbKF82CKeBJ0P12EE4IyPcyIn3ago1wgEJLfDr0dPkr0TSPKUxOZexLw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733772269; c=relaxed/simple; bh=uM0sCFBR5OENaGUrRCRnB92RfG/TWV67sfsbyX7n2HM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jITWwuVHDIn0ZaFhp+r02x7Gx+MhUrzB2oCsfQaIzZM1mDKusGp4q80dGsU+/k43ZmVPRdYOFSH/B7QL5kUbAyhyR6RV7b+RdkKcRomlroPNGzKZeNt1yEir7RVAZjs9Y6ePdcruj68fvJLhhaOLhd1wCXeQ/ik2thIXiMib/gM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=eO7esuaL; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="eO7esuaL" Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B9GAl3e030748; Mon, 9 Dec 2024 19:24:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=KvORLKxHLutvvvXor H0FcfeQztw8VpV355F34zVZGGE=; b=eO7esuaL3eIZtlKmOE9Ac+u74BeIGWa1S Z5Bz/LZpEDpnKlbirw5n+i6E8cN9ciR8ijhWGEzdPKtLsFaVW4+NHqOpiZrsqYuZ zwvMVB33PV8B/MmPsYUoGfsKFHratyQOh7fyvIdIkonJg1FhQ8YsXeP1GvlOrBXF UhqC9QTdUjMLNG00ByaPhSncdHVNtJ1aRkdLODTk3yOSf2+5xyi0lY0LgnLnvHr9 /zPowVyd8z+WPrkWV9uNX52g7J1hAR9b/KHUVSAmvpBidWBbcR7g166+dJUBYHSH Ohe7OIMZSYyRH2++otyDd9u6jIWT5jh5HIXYz62PJznjBPn9tXtwQ== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 43ce1vk69a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Dec 2024 19:24:18 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 4B9HUnS5032734; Mon, 9 Dec 2024 19:24:17 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 43d0ps89jq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Dec 2024 19:24:17 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4B9JOGG931654554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 Dec 2024 19:24:16 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F55658055; Mon, 9 Dec 2024 19:24:16 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 54EF45805B; Mon, 9 Dec 2024 19:24:14 +0000 (GMT) Received: from li-2311da4c-2e09-11b2-a85c-c003041e9174.ibm.com.com (unknown [9.61.107.222]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 9 Dec 2024 19:24:14 +0000 (GMT) From: Matthew Rosato To: joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, gerald.schaefer@linux.ibm.com, schnelle@linux.ibm.com Cc: hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, svens@linux.ibm.com, borntraeger@linux.ibm.com, farman@linux.ibm.com, clegoate@redhat.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH 5/6] iommu: document missing def_domain_type return Date: Mon, 9 Dec 2024 14:24:02 -0500 Message-ID: <20241209192403.107090-6-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241209192403.107090-1-mjrosato@linux.ibm.com> References: <20241209192403.107090-1-mjrosato@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-GUID: iIs3Vd7cp6Am8rsLkjzNgnJng_mDJOM3 X-Proofpoint-ORIG-GUID: iIs3Vd7cp6Am8rsLkjzNgnJng_mDJOM3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 phishscore=0 bulkscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412090147 Content-Type: text/plain; charset="utf-8" In addition to IOMMU_DOMAIN_DMA, def_domain_type can also return IOMMU_DOMAIN_DMA_FQ when applicable, else flush queues will never be used. Signed-off-by: Matthew Rosato --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 05279109c732..d0da1918d2de 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -585,6 +585,7 @@ iommu_copy_struct_from_full_user_array(void *kdst, size= _t kdst_entry_size, * @def_domain_type: device default domain type, return value: * - IOMMU_DOMAIN_IDENTITY: must use an identity domain * - IOMMU_DOMAIN_DMA: must use a dma domain + * - IOMMU_DOMAIN_DMA_FQ: dma domain with batch invalidation * - 0: use the default setting * @default_domain_ops: the default ops for domains * @remove_dev_pasid: Remove any translation configurations of a specific --=20 2.47.0