From patchwork Mon Sep 2 15:12:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 825465 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 065C31CB500 for ; Mon, 2 Sep 2024 15:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725289958; cv=none; b=iynkfC/kDt7aW+r5j4YMbSA3uQeO+JsYwGGx3/8a4/kIfPWcrJNi5T1D7dPgg0nU3txoME5tLV1C7dp2TpruhtJ7jF/f9HL84vjR1ac0HJnwPY3ouyD6/vfOA9ovJhP0prssTiMN14CUppkrGsjN47Fv55TULx2jUVmmHADOryA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725289958; c=relaxed/simple; bh=Gmiv/E+cDRWnVMlt9y/4OfF3IdLGtZ1sh6be+KXdINk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=p2tzdJNPmnsu2KDVe9YOJ6VYp/qzjFIbvWaAe3g6o38QTicmTUqgE+ygt63mCUg2/TYAi5w0qu2d1jVihVVVvgnvsHePGogyKPKbWfVPvJM1Qwt88Yt84KVrTXThYGmyYenYsYSLUuSxoer2cULAHMgHTv0RLKVzAiLy1Aqr1Q4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gtmt7Ndb; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gtmt7Ndb" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2f3f163e379so70409721fa.3 for ; Mon, 02 Sep 2024 08:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725289955; x=1725894755; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HwBtwHrsiFKlPsAPLNk9m8K2n9DcXTsTBYrntTzFN+4=; b=gtmt7Ndb+J8vkiX9zOGLpFVGJswzPG61OVdR3p3/oVC4bMbe5p87ycIiYjN7x/nHI4 P/+WAHVypd0LQtdf4A5NXm1a1WYh0C4yh1BkQfzOKuCKTqzqRgHduTbUnKmY82YhkD6N Ka3Luy3LH567LLP0Yn/R7npSHlGPoaxUAhWmvpyFvMV3U/mNoWX03nVUGUHDYI4Rk4uM UvBVo2xFAHtNksUci099Nj1Zwh43Cng/0iQmhquh3G0damRArp5hAXVZDOU5A7gauJvN aU4ONx7Q7dw1mr4nfQOqrFhHg1Hj1AcjocJXxUMG+huhpEyofiQtIxIMP3y8p4YkjDt+ oDHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725289955; x=1725894755; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HwBtwHrsiFKlPsAPLNk9m8K2n9DcXTsTBYrntTzFN+4=; b=UkOglHrekhrj0J8m2q2BijaFz1T2gq7JqSP8NlUokGi51MfWKLxDSMI7JHWwMu55hZ 7yToP7xtdOS6awXuWO8FPctyfptdAMr/eG1UMIr6efjL3qNR4aW7xb/1PuIUDJTgYwdO WQW8ynKRsn57oSOV/h+7IYZLYbYOQ71hcWX15UmZE+wYSy1Nns8RFU3UrN/15A8ZtBAY 0w6LuH8U4ydkeh18U0aYgMnXRj5TBfoWdKYhKvsRM0SKnBgWg4FjbqsFmiWB2heux8FP NwY6ulz2sMoTlgk1wxyV/qdQZdMVQ/Kzjoh9q757gthekva/EaWJMJ8q4EgxFt1ZcvcU VpGA== X-Forwarded-Encrypted: i=1; AJvYcCVNu8UZlmKxe/SdJ1V/kjkyiBMaxaRUZp3K/WLMZXx79uGfObihmANNp6DSVG8H7S9Ko+RAstw78Dc=@vger.kernel.org X-Gm-Message-State: AOJu0Yw45PMZf36sTuLTrJ1u9XUJd/D1K698TV5vEiX6hr/HrdiDVmvJ 9sDZbenn6BpxiOOV02j/fciaHF3R5Mw61SHiA/xWuO7wYihhn6x7EihgbNIjPPs= X-Google-Smtp-Source: AGHT+IHmQ5yecOA48RQWgeB0rb9/S0HYng5ewvld3qXwZ6/2jVYReqFiUM10vIrA9Xd1128y0qC9uQ== X-Received: by 2002:a2e:a987:0:b0:2ef:226e:e150 with SMTP id 38308e7fff4ca-2f6108930d5mr130784961fa.32.1725289954815; Mon, 02 Sep 2024 08:12:34 -0700 (PDT) Received: from rayden.urgonet (h-217-31-164-171.A175.priv.bahnhof.se. [217.31.164.171]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c255d3da3fsm1923394a12.79.2024.09.02.08.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 08:12:34 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Ulf Hansson , Arnd Bergmann , Sumit Garg , Linus Walleij , Greg Kroah-Hartman , Jens Wiklander , kernel test robot Subject: [PATCH 1/2] mmc: block: add RPMB dependency Date: Mon, 2 Sep 2024 17:12:30 +0200 Message-Id: <20240902151231.3705204-1-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Prevent build error when CONFIG_RPMB=m and CONFIG_MMC_BLOCK=y by adding a dependency to CONFIG_RPMB for CONFIG_MMC_BLOCK block so the RPMB subsystem always is reachable if configured. This means that CONFIG_MMC_BLOCK automatically becomes compiled as a module if CONFIG_RPMB is compiled as a module. If CONFIG_RPMB isn't configured or is configured as built-in, CONFIG_MMC_BLOCK will remain unchanged. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409021448.RSvcBPzt-lkp@intel.com/ Fixes: 7852028a35f0 ("mmc: block: register RPMB partition with the RPMB subsystem") Signed-off-by: Jens Wiklander --- Replacing "rpmb: use IS_REACHABLE instead of IS_ENABLED" https://lore.kernel.org/lkml/20240902080727.2665235-1-jens.wiklander@linaro.org/ --- drivers/mmc/core/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/Kconfig b/drivers/mmc/core/Kconfig index bf4e29ef023c..14d2ecbb04d3 100644 --- a/drivers/mmc/core/Kconfig +++ b/drivers/mmc/core/Kconfig @@ -37,6 +37,7 @@ config PWRSEQ_SIMPLE config MMC_BLOCK tristate "MMC block device driver" depends on BLOCK + depends on RPMB || !RPMB imply IOSCHED_BFQ default y help From patchwork Mon Sep 2 15:12:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 824820 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B620E1CB526 for ; Mon, 2 Sep 2024 15:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725289960; cv=none; b=nbCO1TRGueIHdLiYCg1DR7ysQKhbzePBGz22XcmWZ+wUHI3pYQD4lBMYg/pc44YXoWOhAftLWKmPK/JgjWcNZu47AdTebnB7rCBX4x/hTSVwmMhfWDRiQMqjqf6FOhcbvXNM+G7V7Pgw62+RlPI1fZApEIANUX2hJn2DOVYOvWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725289960; c=relaxed/simple; bh=iDy4i4AehiIZeYd4i1LFRxEcOaeR0XqvXNmYBX9hMEI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kLvSC8UmLAdoS6ch9H7w1QpBnxu1VzYnhPWcZz7P/g7irJnNA5tcCDldgd1n8QHxXFUQ04tdq2UgdYBlXFhXyVMI4Ecbo9sr+JujvYLXzBzlf4NVA2SZbMxaOq07urZ2QfmOIa9nHfZEgIHTZ5OgvTB0TF6kY0gS2T95HzsknOI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XxGOWkJm; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XxGOWkJm" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c255e3c327so1485495a12.1 for ; Mon, 02 Sep 2024 08:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725289957; x=1725894757; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XKVoTZcvRuMQbe62Ok1KDq4nvQBQsJ3GYutKczQmCkg=; b=XxGOWkJmzdGCe3WgVExMOv3P0d/kActtXPn10Onu/g7cgNSLps42XSQsa1qqv5Uz5W dYPujVCTxKTnfu4paV3iQHI0jmS8PaULWoT688M/P4r7YIVva/bt5nT3WpEokWybKscv g7rkhv+4SLf4FUaVcF3IjiGEVOFrFH4yBEAYqwY9c1r3bGWxPANzF/MuQ5ruhOCk0EXS qOD3QUDtbq8tjA8ZoRhlG9MoedvOZUaONjN2OSmhunsr8Si0fixc+9L1qMHAA0cgKlDP AIQIH4JoJRB82/urjznM/27g6yYR6FREhBImSvnUB1sZdycamkxAkMt7v2PqYoAe01A2 pNSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725289957; x=1725894757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XKVoTZcvRuMQbe62Ok1KDq4nvQBQsJ3GYutKczQmCkg=; b=AUojFqDoU4I1SI++ng9kFfqmqQ+nmGx9jtMal59nedmc5fnAxFutWBuhovoraEFRH7 BR4KWeUM3KwPg66hs1OaO3LnSF4YBZlAKZMVdRR75XlrsO10kSsMe0OAescxFFGLRFZ8 1Kis1PztWLRxizuwQd+3UccTwuwi8AmyE8gZCcp47aFL40/trFBq7xX2cdWyqu2ve0Eo GQCeeJXueXkAa6gguR4LH41c573a7kNaIlUH0VDee1fvCxDP8I3PuWBEGWBmDnc/79PH KPLeOMUgBVsivVeOwWx+qbcdpIU3zrZ7NJFIHiJ1AnXsr23Z+sLLYXDLDXCkIJ8iQQKG fRfg== X-Forwarded-Encrypted: i=1; AJvYcCWoxoDjmxW+C9ZskGu2TyD64zK9Sohdw52CHR3/2pwbHUnc8ZFmJHFAop1RXVgXtpIUN6UbTzktFhw=@vger.kernel.org X-Gm-Message-State: AOJu0YyrOaFbRXu+KgZnLLqavby/HhNNKBUWmWLjEMAItbAI6DPEETi9 EqlyIWnx4mzHZW0yfO0UCGiDK4FJK3tfhGFFj5XGyO6mzs52BM0IOLFGC6XsNrw= X-Google-Smtp-Source: AGHT+IFHX7kiNyn/EiCOAg3GxNi7qZm+j1QIWUM2UZ12L/slU+bQcHGvd41F4a6Rn5ZG0q7TBWZrIA== X-Received: by 2002:a05:6402:348b:b0:5be:cdaf:1c09 with SMTP id 4fb4d7f45d1cf-5c25c4034damr3023143a12.28.1725289956747; Mon, 02 Sep 2024 08:12:36 -0700 (PDT) Received: from rayden.urgonet (h-217-31-164-171.A175.priv.bahnhof.se. [217.31.164.171]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c255d3da3fsm1923394a12.79.2024.09.02.08.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 08:12:35 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Ulf Hansson , Arnd Bergmann , Sumit Garg , Linus Walleij , Greg Kroah-Hartman , Jens Wiklander , kernel test robot Subject: [PATCH 2/2] optee: add RPMB dependency Date: Mon, 2 Sep 2024 17:12:31 +0200 Message-Id: <20240902151231.3705204-2-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240902151231.3705204-1-jens.wiklander@linaro.org> References: <20240902151231.3705204-1-jens.wiklander@linaro.org> Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Prevent build error when CONFIG_RPMB=m and CONFIG_OPTEE=y by adding a dependency to CONFIG_RPMB for CONFIG_OPTEE so the RPMB subsystem always is reachable if configured. This means that CONFIG_OPTEE automatically becomes compiled as a module if CONFIG_RPMB is compiled as a module. If CONFIG_RPMB isn't configured or is configured as built-in, CONFIG_OPTEE will remain unchanged. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409021448.RSvcBPzt-lkp@intel.com/ Fixes: f0c8431568ee ("optee: probe RPMB device using RPMB subsystem") Signed-off-by: Jens Wiklander --- Replacing "rpmb: use IS_REACHABLE instead of IS_ENABLED" https://lore.kernel.org/lkml/20240902080727.2665235-1-jens.wiklander@linaro.org/ --- drivers/tee/optee/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index 976928641aa6..7bb7990d0b07 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig @@ -4,6 +4,7 @@ config OPTEE tristate "OP-TEE" depends on HAVE_ARM_SMCCC depends on MMU + depends on RPMB || !RPMB help This implements the OP-TEE Trusted Execution Environment (TEE) driver.