Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2988865rdb; Tue, 13 Feb 2024 03:42:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGskBCQwZK1Ex8spahjFjTcQsZknOZs6c/CSKA7ZQp+YIj4bUPUNXTCxq/ott+Mn6sRZlri X-Received: by 2002:a05:6a20:9f45:b0:19e:9d92:b6a6 with SMTP id ml5-20020a056a209f4500b0019e9d92b6a6mr13220315pzb.44.1707824563621; Tue, 13 Feb 2024 03:42:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707824563; cv=pass; d=google.com; s=arc-20160816; b=N0/TpWWrgjnjv6m74NRxLTLyuHLWDrI18e40oEaFxVXOTAHAHURIVUwFCzWRP6Nj5p 8G9mBK4EWWULYBL7k5ukD3o/IX4GH6JSWgjiT0UxD/v5ckmUzxGH55RnQL7MwPn4X0Mp bjs0DktZKs0f3Y3PX/Vnsn61jQ924RrdK6F1dL4ErNVGedEzqnvmt1d1VJg6PQLVSs8b zDNWJ+Bfipr7ZU9VWtH3itRe/PoC6Ve+Ih5MVWKHEXkn304vFZwoouim8ZzQoZUEGQmc eZNM/NhEqSUa+cwD6wIxt3JTGbG0zfFOtUUK8RSKcFznOL29fPdLWG/GoN8OTueFikLU Jqxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=1+Nbe6pDZ63ioQkKXid2jGstswmBXmnpdiKfauFCv7Y=; fh=08vs5IzCoDxhdl/GSqz1yE/CQr0FI9ovR5N1i/r6toM=; b=a4XjUUYaA9V/ExrdNPAaQlmOrIuZSDOCEtv0uRT85MsQ1YaA5GAfiItufXpplaqfwO Qqs2aNSdxfO1rmcYyTfoCUccwlKlZIt7VoCo3sxmvsOZi7pP+sJ+Ay/5oYVuXAs/7vp6 t9Y/KPws/YUUH9N4uKngOg0KW0d6iH25Cke4szfXcHnPwN4sPZQtmywnur4Dun0Pfpvr J7h2LiWyznLls38k4lldw83L6tBLUDku/iRfuGwjIw8D+6T9bAfaKktEyUHHKUPxbyHM l2140tlmrynFzcIioC6ovhmgh5OzupR3XAL3QzGYWmN0MwH8isrps1zIoneU6Ds/CnGW jOyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v7EjjPoz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63438-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCX6v06y6g+cTvNFO37Ki3Q3icU78JBxpMho0iU0TSRdYtfxzbgyn5U7xFJcGxkUEgQYb76RdVloUbKQl/MtboWoyuEeJTeWfGFYRg61oQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m20-20020a638c14000000b005d8e1dc1df8si1920328pgd.705.2024.02.13.03.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63438-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=@linutronix.de header.s=2020 header.b=v7EjjPoz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63438-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AAE6EB2190F for ; Tue, 13 Feb 2024 11:30:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3F3236B17; Tue, 13 Feb 2024 11:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="v7EjjPoz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uYQ3uDu0" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7F107364C1; Tue, 13 Feb 2024 11:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707823809; cv=none; b=mcZu3LZcqr9hS6CVOmi5EpU55SQUBjY9qFdCoC6cTpIpOSg3qN2lMXDWNpwcdNO2LPSbwFyl/TUk+iBWpViC2RDo7muEgoTJnHZTjZM4UZjVDfny21s+OpLrmF+EyhAvfxYUS26yNdb2Ihv7f9OWA8VV1Ie5170a1rt+y5D/qFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707823809; c=relaxed/simple; bh=5izMiGMvnqhgGkUvIKXkWstcbpTq9lmIY9dFDbhveDM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=m1jcRzJqFHo8Y0vQKNGcNi4yRvJIkbG2iUTzJ9V818ClFPKBOK6mhyy+G3fSLbCL0mWFRPlPoHKOADjtD0V1OuQbPvAfAh2++N6qgFXM3HGvhilc5v+z+wYQ2SQMPYPkLLfq0sVnHXc6l95X+9e8yU8ZBQUAnQQDPSlXACU9lck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=v7EjjPoz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uYQ3uDu0; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 13 Feb 2024 11:30:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707823805; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1+Nbe6pDZ63ioQkKXid2jGstswmBXmnpdiKfauFCv7Y=; b=v7EjjPoza9OKUfvNiXiPXmVT4wX8iwkdLqgMLI5ZPscWM8JQq/OZMypyyY/q78AIszKc8e S2wmSYmYIbO2sLZUpngIGLa+eD9ytQ66aEUG5Rey6cXq10VwKn77/iU9rEGOnqPEy2VYEZ 1pVo4YdtRbEpDYR+ApXXjuv441PUgTWI+8Noj9fMmKvVJJQ4bCwE9q8OYHm5CAUKLgKPWX F+NZW9o6/8BTwjaoaaTqTJ9FxDEKzqo2yI4ETDbtIohdHKdpY6Cag8JW4GJ8mBEpGl3T7m wkgF9bSI0DvxMJ3gG/XGOtEq/TkXrCZiePI1s4n8Tule6YnqVw+CSSymA1cfug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707823805; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1+Nbe6pDZ63ioQkKXid2jGstswmBXmnpdiKfauFCv7Y=; b=uYQ3uDu0YWWBlQjT43ZDa+gPK9vcJRneHq+PiaZTes1pD9TrRMGlVbxkgzQHVJrN19Vw1O 5aFNOI2yXC5JKFCw== From: "tip-bot2 for Borislav Petkov (AMD)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sev] crypto: ccp - Have it depend on AMD_IOMMU Cc: "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240207204721.6189-1-bp@alien8.de> References: <20240207204721.6189-1-bp@alien8.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170782380447.398.10866500625716475213.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/sev branch of tip: Commit-ID: ee8ff8768735edc3e013837c4416f819543ddc17 Gitweb: https://git.kernel.org/tip/ee8ff8768735edc3e013837c4416f819543ddc17 Author: Borislav Petkov (AMD) AuthorDate: Wed, 07 Feb 2024 21:47:21 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 13 Feb 2024 12:21:15 +01:00 crypto: ccp - Have it depend on AMD_IOMMU sev-dev.c calls code in the AMD IOMMU now but that can't really work if latter is not enabled in Kconfig: ld: vmlinux.o: in function `__sev_firmware_shutdown.isra.0': sev-dev.c:(.text+0x2501f0e): undefined reference to `amd_iommu_snp_disable' ld: vmlinux.o: in function `snp_rmptable_init': sev.c:(.init.text+0x26260): undefined reference to `amd_iommu_snp_en' make[2]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1 make: *** [Makefile:240: __sub-make] Error 2 Fix those deps. Fixes: f366a8dac1b8 ("iommu/amd: Clean up RMP entries for IOMMU pages during SNP shutdown") Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240207204721.6189-1-bp@alien8.de --- drivers/crypto/ccp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index 32268e2..f394e45 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -38,7 +38,7 @@ config CRYPTO_DEV_CCP_CRYPTO config CRYPTO_DEV_SP_PSP bool "Platform Security Processor (PSP) device" default y - depends on CRYPTO_DEV_CCP_DD && X86_64 + depends on CRYPTO_DEV_CCP_DD && X86_64 && AMD_IOMMU help Provide support for the AMD Platform Security Processor (PSP). The PSP is a dedicated processor that provides support for key