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 1EC61C61DA4 for ; Wed, 22 Feb 2023 11:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231693AbjBVLut (ORCPT ); Wed, 22 Feb 2023 06:50:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjBVLug (ORCPT ); Wed, 22 Feb 2023 06:50:36 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35CEC366A7; Wed, 22 Feb 2023 03:50:35 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 8A7665FD63; Wed, 22 Feb 2023 14:50:33 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1677066633; bh=CsQGfUCkH2ZamwaiMkFtrGFlOwLHzQzG+8+VcxmQvAI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=caAUX07/ARkhhcAYGdi1TUU4bLJuMsAU0bp0VovhAsMfUHcFnog5xxbv5CHjytMf0 9z/F9+WVgw0wbIAFv1Bl0AtUEiWg8XiyueXBrNwNiQr7XUMahjQG4eUnQAMyg4BuGD aNPT4m0MOD5DcOXnXDKATRtBTrtVtFu2J676ONOQHxPDysplknntSZPWbozWmt0mRh Zu0iZiOcu/itWhxh2nDu9bzDruMj9J+hKaFe/KA9M/yVbo8iWvG6H0796ao47zLMfY O2sQOS8D3cw/LpVWtMoMwg/N4rWP+yUqcZVUG8ugyAk/K1+hhkMT4xeQQy3ZUBHiGg UizC/hSUL4Yxw== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 22 Feb 2023 14:50:33 +0300 (MSK) From: Alexey Romanov To: , , , , , , CC: , , , , , Alexey Romanov Subject: [PATCH v1 2/3] firmware: meson: use CONFIG_MESON_SM with CONFIG_ARM Date: Wed, 22 Feb 2023 14:50:19 +0300 Message-ID: <20230222115020.55867-3-avromanov@sberdevices.ru> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230222115020.55867-1-avromanov@sberdevices.ru> References: <20230222115020.55867-1-avromanov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/02/22 06:32:00 #20888384 X-KSMG-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Meson SM driver has one strong disturbing requirement. It's size of the memory page, it should be equal to 4K. ARM 32-bit arch always uses 4K page and doesn't support bigger sizes. So it's not a stop factor. Anyway, meson sm driver was tested in the meson-a1 ARM board and it works correctly. Signed-off-by: Alexey Romanov --- drivers/firmware/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/meson/Kconfig b/drivers/firmware/meson/Kconfig index f2fdd3756648..20303b7394fb 100644 --- a/drivers/firmware/meson/Kconfig +++ b/drivers/firmware/meson/Kconfig @@ -6,6 +6,6 @@ config MESON_SM tristate "Amlogic Secure Monitor driver" depends on ARCH_MESON || COMPILE_TEST default y - depends on ARM64_4K_PAGES + depends on ARM || ARM64_4K_PAGES help Say y here to enable the Amlogic secure monitor driver -- 2.38.1