From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 011D2C433EF for ; Fri, 22 Apr 2022 16:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383939AbiDVQ0q (ORCPT ); Fri, 22 Apr 2022 12:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383278AbiDVQ0o (ORCPT ); Fri, 22 Apr 2022 12:26:44 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461CA5E153; Fri, 22 Apr 2022 09:23:50 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23MEpQ9i028200; Fri, 22 Apr 2022 18:23:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=Tz26t0AEffOCF28o5Wo7UmIZsHLJeggiP4B5JFJg+Zg=; b=owHoJCPIopVgvMeN3/8z8Z9eGsj6w1DEtBRojS8tGJMoncZyZ+n1UOMMVfhruvn6KPg8 hkf577hLz1C6B+nrVS4jOdQMJ3umiTR7u0NV34UQAtiVX0Helh2c9YelGGlNEZGjAtVf CP0yyXfxfwa8u055Kmwr6Zkyo4za5NEK1F4wLFK0rRA+VefMxFCS8GkEe/vi3XNlcTHt jAhIHTYkTvZSC8CUxugEGtPWl47/3JFXujhjYnU70f9ann6Ul1ubAIhz6zu4oygCorsO K/HVoiYoq7MISMNv3VB7v6DwEYDdOCym0y9HQpG8XIJxyUL1Ocz2Omh5eIJuuhROgKeI ug== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3fkskgtdv3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Apr 2022 18:23:27 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9BB8810002A; Fri, 22 Apr 2022 18:23:26 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8F14D23BDF1; Fri, 22 Apr 2022 18:23:26 +0200 (CEST) Received: from [10.48.0.142] (10.75.127.46) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 22 Apr 2022 18:23:26 +0200 Message-ID: Date: Fri, 22 Apr 2022 18:23:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 5/8] ARM: stm32: select OPTEE on MPU family Content-Language: en-US To: Ahmad Fatoum , , , Krzysztof Kozlowski , , Stephen Boyd , Philipp Zabel CC: , , , , Marek Vasut , , "Pengutronix Kernel Team" References: <20220422150952.20587-1-alexandre.torgue@foss.st.com> <20220422150952.20587-6-alexandre.torgue@foss.st.com> <3d5969cc-2210-3c7c-01c8-3f5c3789e54b@pengutronix.de> From: Alexandre TORGUE In-Reply-To: <3d5969cc-2210-3c7c-01c8-3f5c3789e54b@pengutronix.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_04,2022-04-22_01,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ahmad, On 4/22/22 17:37, Ahmad Fatoum wrote: > Hello Alex, > > On 22.04.22 17:09, Alexandre Torgue wrote: >> Select CONFIG_OPTEE for STM32MP15 and STM32MP13 by default. Final >> activation will done thanks to device tree. >> >> Signed-off-by: Alexandre Torgue >> >> diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig >> index 98145031586f..b322cf2a136f 100644 >> --- a/arch/arm/mach-stm32/Kconfig >> +++ b/arch/arm/mach-stm32/Kconfig >> @@ -6,6 +6,8 @@ menuconfig ARCH_STM32 >> select HAVE_ARM_ARCH_TIMER if ARCH_MULTI_V7 >> select ARM_GIC if ARCH_MULTI_V7 >> select ARM_PSCI if ARCH_MULTI_V7 >> + select TEE if ARCH_MULTI_V7 >> + select OPTEE if ARCH_MULTI_V7 > > Users may want to use OPTEE as a module without it being a SCMI provider > or not use OPTEE at all. I'd prefer you drop this patch and leave it > to users to configure their kernel appropriately. > Yes, I can understand, I did this one too quickly forgetting that every multi_v7config users will inherit of this config. thanks Alex > Cheers, > Ahmad > > >> select ARM_AMBA >> select ARCH_HAS_RESET_CONTROLLER >> select CLKSRC_STM32 > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DB9AC433EF for ; Fri, 22 Apr 2022 16:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9mWY7oTC1hxUBgmSYhFJgnylxg9ahk2GBZJXMVB1S/w=; b=MYbuTHww9YGiRg +RLb/CoYKuxwDEHKRyMzoK37cnRHGWpyHHmHB+2vZ6J1EZdBNrW7tJRrYh3wOY9TH99wm7i3tEreR CtkC1zf1XjMe0tBpifOofEJ/BUecjOi9WFCAJLC8z0xxER0IrTcBQTCYcE1JiAvPCbpqrgukxtkgK LDM7M/3fKHfw8TbM6fJFilBM1PKGJDjUjVO4uhh36AlhxHlXjyo1OGI9ZE4pAAUnULBc/iwITQ4Vi WuAURzcB9Fw45DvgtN1a/WNWYvoEbZtMeEN7Skif4GcK0hyJfII0TZhYoWJyoqlq/ksN/BZyaM6Ia UnBPxLGhPW+DGOyE+YmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhw4T-001PIO-Ro; Fri, 22 Apr 2022 16:23:50 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhw4N-001PEi-Hp for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 16:23:46 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23MEpQ9i028200; Fri, 22 Apr 2022 18:23:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=Tz26t0AEffOCF28o5Wo7UmIZsHLJeggiP4B5JFJg+Zg=; b=owHoJCPIopVgvMeN3/8z8Z9eGsj6w1DEtBRojS8tGJMoncZyZ+n1UOMMVfhruvn6KPg8 hkf577hLz1C6B+nrVS4jOdQMJ3umiTR7u0NV34UQAtiVX0Helh2c9YelGGlNEZGjAtVf CP0yyXfxfwa8u055Kmwr6Zkyo4za5NEK1F4wLFK0rRA+VefMxFCS8GkEe/vi3XNlcTHt jAhIHTYkTvZSC8CUxugEGtPWl47/3JFXujhjYnU70f9ann6Ul1ubAIhz6zu4oygCorsO K/HVoiYoq7MISMNv3VB7v6DwEYDdOCym0y9HQpG8XIJxyUL1Ocz2Omh5eIJuuhROgKeI ug== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3fkskgtdv3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Apr 2022 18:23:27 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9BB8810002A; Fri, 22 Apr 2022 18:23:26 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8F14D23BDF1; Fri, 22 Apr 2022 18:23:26 +0200 (CEST) Received: from [10.48.0.142] (10.75.127.46) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 22 Apr 2022 18:23:26 +0200 Message-ID: Date: Fri, 22 Apr 2022 18:23:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 5/8] ARM: stm32: select OPTEE on MPU family Content-Language: en-US To: Ahmad Fatoum , , , Krzysztof Kozlowski , , Stephen Boyd , Philipp Zabel CC: , , , , Marek Vasut , , "Pengutronix Kernel Team" References: <20220422150952.20587-1-alexandre.torgue@foss.st.com> <20220422150952.20587-6-alexandre.torgue@foss.st.com> <3d5969cc-2210-3c7c-01c8-3f5c3789e54b@pengutronix.de> From: Alexandre TORGUE In-Reply-To: <3d5969cc-2210-3c7c-01c8-3f5c3789e54b@pengutronix.de> X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_04,2022-04-22_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_092344_290622_59DEED0F X-CRM114-Status: GOOD ( 16.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Ahmad, On 4/22/22 17:37, Ahmad Fatoum wrote: > Hello Alex, > > On 22.04.22 17:09, Alexandre Torgue wrote: >> Select CONFIG_OPTEE for STM32MP15 and STM32MP13 by default. Final >> activation will done thanks to device tree. >> >> Signed-off-by: Alexandre Torgue >> >> diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig >> index 98145031586f..b322cf2a136f 100644 >> --- a/arch/arm/mach-stm32/Kconfig >> +++ b/arch/arm/mach-stm32/Kconfig >> @@ -6,6 +6,8 @@ menuconfig ARCH_STM32 >> select HAVE_ARM_ARCH_TIMER if ARCH_MULTI_V7 >> select ARM_GIC if ARCH_MULTI_V7 >> select ARM_PSCI if ARCH_MULTI_V7 >> + select TEE if ARCH_MULTI_V7 >> + select OPTEE if ARCH_MULTI_V7 > > Users may want to use OPTEE as a module without it being a SCMI provider > or not use OPTEE at all. I'd prefer you drop this patch and leave it > to users to configure their kernel appropriately. > Yes, I can understand, I did this one too quickly forgetting that every multi_v7config users will inherit of this config. thanks Alex > Cheers, > Ahmad > > >> select ARM_AMBA >> select ARCH_HAS_RESET_CONTROLLER >> select CLKSRC_STM32 > > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel