Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1313441lqb; Thu, 30 May 2024 06:58:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWa7MtzXCarnI4Rc0lFzdCQNnRMKsVeSxWHx1kh4Gn0R2d98SgjPPRNTIcNKilfV67c6Pwsb82kHh5yEmziTIJyjmwh/hej+OrzwHxerg== X-Google-Smtp-Source: AGHT+IHhRffJhB8Iese/jWQcugk8BOxxt/j6m2coes3t/W2rcWLMe8zBdkWTAXAZXx6tMDnjgm46 X-Received: by 2002:a17:90a:d191:b0:2bd:7135:21a3 with SMTP id 98e67ed59e1d1-2c1abd738d1mr2233192a91.42.1717077504587; Thu, 30 May 2024 06:58:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717077504; cv=pass; d=google.com; s=arc-20160816; b=vdETV/nVMjOMuquciepLH1oMyilhy4quShRRS+WBkHBcx9FMdQcoRiQqnNclhsAjrK 1FCIzzWOr3bm0Ok7e3BsLF0CHVJZKkLx09sphx/2RoBhN/++dUQcIqzIh8G+TAqb3MEX GtkVGgDVgvNVoyn6FbcxUAruXXeEx5pAFoikUZupugH+CQ2Hv4JQwqsSl8yFSu0dng2q fjjp+krOzytfJOUJZ75RntoH33dPmTqsLSq9lPayqJr8GlLdGjjwvO9DHOjGZgpdVf0k Z1ijGx9Csfg0RVKE47v3C0rDSfmTzpNhN99qJkT40xiFhQ+QiOKNutQQM9IArgDzW7y1 J79A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=iYx9c1xO6ymLn++WbU9EryJwaaf+Egf1PM7t6JATVVE=; fh=hY/gzATTTpPlzXyi9+BS5FObkh619GZok6OCQuYEZEM=; b=g1eqmYZAXPJjWX2ogtvtLi9SoILa9kaERpqk18Wuxm9A0/deB2RhaA6WdoZGi481CG QyDBfwLzLmjUgsPtbOAfnDomC7VsOArDLYLDr1I74NwnzxLQzgXJEV7gnk7s+XPMSasa h+UDchf/CEGEEUAq/EGP6K+kiUojbfjf1xB+x4E4QeP2LCvp+dtWP7/mOZ3qwqhhvmUw FKTHUewKYs0zPj5MsOrFYtVKMD3QXHZU5r7NQCVCngAVgmD0CRduI9ygO4grZ2t44G0N upLAmFyu0oMc4SUeOqrq6u+ZZx8XoV2xaG4nuWLB5iGs6G/PdWMqtVJuzInay4gzXFM+ 596g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cknow.org header.s=key1 header.b=tEdvQrUJ; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-195474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a776d6c1si1641681a91.4.2024.05.30.06.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 06:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195474-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=@cknow.org header.s=key1 header.b=tEdvQrUJ; arc=pass (i=1 spf=pass spfdomain=cknow.org dkim=pass dkdomain=cknow.org dmarc=pass fromdomain=cknow.org); spf=pass (google.com: domain of linux-kernel+bounces-195474-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cknow.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A0C91B23A33 for ; Thu, 30 May 2024 13:58:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449F0186E3C; Thu, 30 May 2024 13:57:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b="tEdvQrUJ" Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 EB375186E31 for ; Thu, 30 May 2024 13:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717077475; cv=none; b=YNrBZl+TPOYCPU+qomjgJzDAF2xD7f6pOOeiZ6Qs9g4ZQ4oVf6Fotl3hrFuvH+LSMaXT56si6YqAylQrrN6UWee2+uacVqRP9/DqShbPE98ht+puyCFHGIlEKniOvUaEn5ApkZq0ZbBunnK2eWhGFuGB2XnqU3Y0faZRA0310wQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717077475; c=relaxed/simple; bh=QDntA1S0rAkOvUWk+cA+zU1W2OoXJoWTyxaYlclJXLE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ns00ovPA8fmIxavFr9oUKUmDbCVUacjZ57TpY8g6X4im4/yLxabvu3XIkT8mH7Pi35kRj0HAXwN3kX8kLXi9Z5Kk4afYaUjvODX5GaBbNgTDxCf1d06tS7lg55BMKM0yw0VvVoaFni+WRKRSurlcMZWoEpnzamIneTOBMMycaqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org; spf=pass smtp.mailfrom=cknow.org; dkim=pass (2048-bit key) header.d=cknow.org header.i=@cknow.org header.b=tEdvQrUJ; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow.org X-Envelope-To: dwmw2@infradead.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1717077470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=iYx9c1xO6ymLn++WbU9EryJwaaf+Egf1PM7t6JATVVE=; b=tEdvQrUJCDGwkhjgDLHFl5013LSVfpYxUEM2V6mB15RlpVz/mJ61stZUY3HwiUaiS6o5dY jBffWrjInvuDPufAKBXkY7uQkxel9vH7/VlbxIVbmlYwTtXMsxtnP0oG4G2ZV18TRwHuzL 2XeaYyPXBzX4JPjqW2+klx6A3Yf0adMBbmhoe5ndCNX8v6lWSLSKv/sXQ+w1aeNxpkORUD 0O0I4erOTQYs3FM66m6jtek8CT1d952QtfYqzapf8qyCnRiD8O4MZLUwT6gUnjQuHiw0XG o4xSA4gqFqFgOvtw88BVWeIo2tgZ3+SzkZK9DdXBXQDILrb0l2piLL2mvkkeBg== X-Envelope-To: baolu.lu@linux.intel.com X-Envelope-To: joro@8bytes.org X-Envelope-To: will@kernel.org X-Envelope-To: robin.murphy@arm.com X-Envelope-To: iommu@lists.linux.dev X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: didi.debian@cknow.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Diederik de Haas To: David Woodhouse , Lu Baolu , Joerg Roedel , Will Deacon Cc: Robin Murphy , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Diederik de Haas Subject: device_def_domain_type documentation header does not match implementation Date: Thu, 30 May 2024 15:57:38 +0200 Message-ID: <14311965.TaHA55BQu8@bagend> Organization: Connecting Knowledge Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3343604.Wtvs3CB2mS"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Migadu-Flow: FLOW_OUT --nextPart3343604.Wtvs3CB2mS Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Diederik de Haas Date: Thu, 30 May 2024 15:57:38 +0200 Message-ID: <14311965.TaHA55BQu8@bagend> Organization: Connecting Knowledge MIME-Version: 1.0 Hi, While looking into ``drivers/iommu/intel/iommu.c::device_def_domain_type`` function I noticed a discrepancy between the documentation header and the implementation. ``@startup: true if this is during early boot`` 0e31a7266508 ("iommu/vt-d: Remove startup parameter from device_def_domain_type()") removed the ``startup`` function parameter returns ``IOMMU_DOMAIN_DMA: device requires a dynamic mapping domain`` 28b41e2c6aeb ("iommu: Move def_domain type check for untrusted device into core") moved the possible return of ``IOMMU_DOMAIN_DMA`` to ``drivers/iommu/iommu.c`` But neither updated the documentation header. Cheers, Diederik --nextPart3343604.Wtvs3CB2mS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCZliF0gAKCRDXblvOeH7b bn8AAQCiDxcxgUIErkiC9QpJNmPLh6SlxKa2ytIrBp/fqzJBpAD+OOGPlgXUq0ch pUs535Ep1y8OsfvhKt16hBWvJC2dIAM= =/+oC -----END PGP SIGNATURE----- --nextPart3343604.Wtvs3CB2mS--