Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp332695lqh; Thu, 28 Mar 2024 03:37:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVk6DbKbPZbmp/+q1UIFYX7d1I6GVMR98oxeExHBXcvWHL0DY1LWStpFpzhPZHenu+qJK1MgFK53ZmzGVa2KgrlCSNpYmHLWK+BLyYbhQ== X-Google-Smtp-Source: AGHT+IHHoUK4k/xe4Xfgj5RpVWgUY1DXRS0yndhbyqGXNJYM6gstUuccf4TjWdtUXIAIKZjrAllA X-Received: by 2002:a17:907:9488:b0:a4e:14a1:fa81 with SMTP id dm8-20020a170907948800b00a4e14a1fa81mr1638763ejc.46.1711622254783; Thu, 28 Mar 2024 03:37:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711622254; cv=pass; d=google.com; s=arc-20160816; b=U4V0lsQjV6eKpOWCWBA/n9qLHZYvLt9WXPA2w+ll3MvXNnk1l+x+D9ieuiCzOelpqQ 6iGGR+FNzEFwocP8BB6A364CbSITZ0Auw7sG4hL9t37TlO2wTm6rVFvSqxvnNqQUV1Sy y1/YlQSLUhfR4GYoADCa+q1rZ0isi3u14gxKrmk8iZm+3FLWQfqV/qAl6nKX7fOHCUvh d6Qgkuwy+dkKh0U+r1Y7skcWdUOY+WyPUDLPGRGGlH3WakxdhltgDHOD3NqEvNQAjpda eBqqcN32q3G8M3zLTjp4/4LIN+Jed2hQfVuf20K6qD+5S0pzVRIBL9wMYJgM8n7aDR9G KWtA== 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; bh=lzxYRjXnMfMaagtgwp7EN5AG9c0wpmfyTFnnX4sifIo=; fh=HQTjMXBEFaUYyvSrJBGoc91HJao4T69g+K+Ast/QAsQ=; b=nS7Wg3kJg1gD3+WMzFV7AOavWjXTCfrblm+3W9dnZUxJkji3djUmgU5AbDMAB6x6Mo 4wgTOpI2c4gRgfhBxjz0ENqBhr0gHX78Nc811MqRJpXXgD9/OlrKfrnrDBGXH9C4qT+u WDv0PoNTCRBcc8GwnGTlhJSKRev+cPj9pYUyZzyP2UdS/OyFLAG7+N1bygOBWLP7pJKA p/3WOtpd9Bc+lYMCxiOYcaos8N2dy9eAWIr9IgWvOdHxGd9pS2zUsPWU5L9yaBDpktde 1TmPBmhPYCVcG0ZCk6B/cU+DwBXfSLr+pt9C1Jx1PcvKb8jY+C5CWVfmU4NGGiFCFarn HhxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l25-20020a170906231900b00a470e1e1671si579655eja.45.2024.03.28.03.37.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:37:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122786-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 4F9A21F29576 for ; Thu, 28 Mar 2024 10:37:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B3B7D094; Thu, 28 Mar 2024 10:36:58 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 7285E57895; Thu, 28 Mar 2024 10:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711622218; cv=none; b=a1huI4paDbTK3mHmgneluQmc9j+PkrxmrNou6wwRCo+yc06kC20Q5dO/t5QmAabpdDK4ncP+4+EafilIO3lKZUU4EuHGlDABHOnjCg+n531+LGeAUFOQmoAtCy4OHnh3Nygd6L+//temyqKSu/xYx34rfdPqG4pKuOMp0xvLW6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711622218; c=relaxed/simple; bh=1tLDjrlhyi2d5C+bucKg0yc9r5BN3QOnrP8/yaJXcjA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KsrdwAq85NlhqL95+DORUaXY9tW1rhR1UPBJ/A4IhNf5XB4B3mC3xa4b6TQMkfk2gxnnC72Z3CUCDWYOeR5WQPBHfV+MmSVFkfa191yy0WT0XwOfQ/Pf6eFEU1IMOMlfD8Axww+vIs8NMQTJWaTWrrgd3h/neYpTXULtDATOyCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 7CBB31C0081; Thu, 28 Mar 2024 11:36:54 +0100 (CET) Date: Thu, 28 Mar 2024 11:36:54 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bert Karwatzki , Lu Baolu , Joerg Roedel Subject: Re: [PATCH 6.1 212/451] iommu: Fix compilation without CONFIG_IOMMU_INTEL Message-ID: References: <20240324231207.1351418-1-sashal@kernel.org> <20240324231207.1351418-213-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vZ6/CY6IfejnIZqG" Content-Disposition: inline In-Reply-To: <20240324231207.1351418-213-sashal@kernel.org> --vZ6/CY6IfejnIZqG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit 70bad345e622c23bb530016925c936ab04a646ac ] >=20 > When the kernel is comiled with CONFIG_IRQ_REMAP=3Dy but without > CONFIG_IOMMU_INTEL compilation fails since commit def054b01a8678 with an > undefined reference to device_rbtree_find(). This patch makes sure that > intel specific code is only compiled with CONFIG_IOMMU_INTEL=3Dy. We don't have commit def054b01a8678 in -stable, so we should not need this. Best regards, Pavel > +++ b/drivers/iommu/Kconfig > @@ -192,7 +192,7 @@ source "drivers/iommu/intel/Kconfig" > config IRQ_REMAP > bool "Support for Interrupt Remapping" > depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI > - select DMAR_TABLE > + select DMAR_TABLE if INTEL_IOMMU > help > Supports Interrupt remapping for IO-APIC and MSI devices. > To use x2apic mode in the CPU's which support x2APIC enhancements or > diff --git a/drivers/iommu/intel/Makefile b/drivers/iommu/intel/Makefile > index 7af3b8a4f2a00..29d26a4371327 100644 > --- a/drivers/iommu/intel/Makefile > +++ b/drivers/iommu/intel/Makefile > @@ -5,5 +5,7 @@ obj-$(CONFIG_DMAR_TABLE) +=3D trace.o cap_audit.o > obj-$(CONFIG_DMAR_PERF) +=3D perf.o > obj-$(CONFIG_INTEL_IOMMU_DEBUGFS) +=3D debugfs.o > obj-$(CONFIG_INTEL_IOMMU_SVM) +=3D svm.o > +ifdef CONFIG_INTEL_IOMMU > obj-$(CONFIG_IRQ_REMAP) +=3D irq_remapping.o > +endif > obj-$(CONFIG_INTEL_IOMMU_PERF_EVENTS) +=3D perfmon.o > diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c > index 83314b9d8f38b..ee59647c20501 100644 > --- a/drivers/iommu/irq_remapping.c > +++ b/drivers/iommu/irq_remapping.c > @@ -99,7 +99,8 @@ int __init irq_remapping_prepare(void) > if (disable_irq_remap) > return -ENOSYS; > =20 > - if (intel_irq_remap_ops.prepare() =3D=3D 0) > + if (IS_ENABLED(CONFIG_INTEL_IOMMU) && > + intel_irq_remap_ops.prepare() =3D=3D 0) > remap_ops =3D &intel_irq_remap_ops; > else if (IS_ENABLED(CONFIG_AMD_IOMMU) && > amd_iommu_irq_ops.prepare() =3D=3D 0) --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --vZ6/CY6IfejnIZqG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZgVIRgAKCRAw5/Bqldv6 8gZYAJ0dAltTpDHidc4ImFcKiK5HNSKFhgCcCqMLqo5lIL5+3AZeO+JDJB4mEjE= =FF3G -----END PGP SIGNATURE----- --vZ6/CY6IfejnIZqG--