From patchwork Mon Apr 10 12:49:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13206343 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 E4B8BC76196 for ; Mon, 10 Apr 2023 12:50:27 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2Sp2gMnBW8vkioCiZUgrN8yoZziPLbZxByiA8cSh9nI=; b=H2lC3RvKA1MQwc mG8Ll0Oet60E/O/eOT9qEsfkBhYHpc6YajYtrEdO/QlpNs5taYr4+OJa1KrlJYvmKZr+LG1Mmc2tA Cqi7XJiJNGV3lo4ynKrdwaInrzE/3SNa5Wz5UEgLLODfB78/hmSoUhO2N6Vfuu3436qCBeX3yZ61Q 1VfQo+wEeE/IHrvN/4TB2YPrUH1JnSGYXLCLuxawTIYWVENWVfUPUrNyE/BmUjB/H6XEh19MpZ1a5 2/Z1nVV/4uzifOgQ7vQUsRliH9y+l/Y9LJWmt/qYQhTA53rgwzMCKWbMlZOXSk6F408ICTLNCn0yg bd1r0p0xTwHU8BrP6UwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1plqxU-00FF0t-2u; Mon, 10 Apr 2023 12:49:20 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1plqxS-00FEzp-19 for linux-arm-kernel@lists.infradead.org; Mon, 10 Apr 2023 12:49:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681130955; h=from:from: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; bh=gfI+8pNpKHzSRSbn60p2xLlTui4koSe7i9/TyNPKMTg=; b=PwuxheMlPHzaCdjZe2ZWTjikrPdz0X5JY6e9Vyb9Ux111hhToYBOMWNiv5ITd3PeaAmxvz OoAkpEW9YHG27si6E1itatwhyOHAy1k52XSi8zhRNhs7m+PBl4UZxfW8evy2n5ghQDKJln Ls0we9klawx5T338EXpOCDBj6IxNeDs= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-568--amACAXZN0G-cNu7F0XQ6Q-1; Mon, 10 Apr 2023 08:49:13 -0400 X-MC-Unique: -amACAXZN0G-cNu7F0XQ6Q-1 Received: by mail-wm1-f72.google.com with SMTP id n36-20020a05600c502400b003ee93fac4a9so3669434wmr.2 for ; Mon, 10 Apr 2023 05:49:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681130953; 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=gfI+8pNpKHzSRSbn60p2xLlTui4koSe7i9/TyNPKMTg=; b=go4C7cEJAJlP1nkZaaVGfBAuxwcmE1wFfxJGbMHqYluf9ih/YrcIdHg+uEzPNtvBP0 i8pZK2aFbVrteCANyTft00NNJLxrbsrw7AepH9Rk27jdSnexlawRZwYACP45SKHCRpMH kOJSjB557LjDPJPdybHqMvSUQdAxIZFMfXrjpABSE3BeiK2TB/NzmVpV5G1q0GhrK51x zoPw1DCCLmqWCg2pmzmMB9NUXVPD59eXPuikZk0eGCpOY/DOrjkhfKg2YLkGyiybuD/T p0ftVLs/8eW/osCXgf9bWLhRGQgqiDGo6SGALsMSD9CXEZ6jfLXU4BukSFYVxPguPM1P 9cDw== X-Gm-Message-State: AAQBX9dbV6+ioUvObyl/BWD3oc8+Ncg7qbqtcijNniHlG0y7INdOxEj8 BTSZ2JzHnp6dd3pdFuXkNC4h7891R8QBy2uvXA10A9f1iJXxe7RImh8G1Aqn9k24JpBDAwcDFQk n5c5HBzHyaB5iMeERH9R/Yx+4u0PZkSPXMbc= X-Received: by 2002:a5d:5349:0:b0:2c7:1b4c:da75 with SMTP id t9-20020a5d5349000000b002c71b4cda75mr7297843wrv.69.1681130952865; Mon, 10 Apr 2023 05:49:12 -0700 (PDT) X-Google-Smtp-Source: AKy350Zf/wmB9Myl3vBu+oEHUuKmq0XEAyi0iCtTxsDkx/dzU4MaidTOs+oWSxrEoWjjViR0eA5pqQ== X-Received: by 2002:a5d:5349:0:b0:2c7:1b4c:da75 with SMTP id t9-20020a5d5349000000b002c71b4cda75mr7297834wrv.69.1681130952548; Mon, 10 Apr 2023 05:49:12 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id m8-20020adfe0c8000000b002cff0e213ddsm11791320wri.14.2023.04.10.05.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 05:49:12 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Alim Akhtar , Arnd Bergmann , Gregory CLEMENT , Jernej Skrabec , Krzysztof Kozlowski , Robert Elliott , Russell King , Stefan Hansson , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: exynos_defconfig: Enable zram as loadable modules Date: Mon, 10 Apr 2023 14:49:07 +0200 Message-Id: <20230410124907.3293869-1-javierm@redhat.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230410_054918_496801_5A774241 X-CRM114-Status: GOOD ( 10.73 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable zram and dependencies as loadable modules. This allows to use the /dev/zramX virtual block devices as swap stored in system memory. Options were taken from commit 5c824e8be64d ("ARM: omap2plus_defconfig: Enable zram as loadable modules") that does the same for OMAP2+ platforms. Signed-off-by: Javier Martinez Canillas --- arch/arm/configs/exynos_defconfig | 4 ++++ 1 file changed, 4 insertions(+) base-commit: e3adc46da349d4a4cda1c58d8186c5bce0b011fd diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index b0f0baa3a6c4..2d5be864b4ca 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -37,6 +37,8 @@ CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_PARTITION_ADVANCED=y CONFIG_CMA=y +CONFIG_ZSMALLOC=m +CONFIG_PGTABLE_MAPPING=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y @@ -84,6 +86,8 @@ CONFIG_NFC_SHDLC=y CONFIG_NFC_S3FWRN5_I2C=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y +CONFIG_ZRAM=m +CONFIG_ZRAM_WRITEBACK=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_CRYPTOLOOP=y CONFIG_BLK_DEV_RAM=y