From patchwork Wed Nov 3 20:57:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12601613 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EA36C433F5 for ; Wed, 3 Nov 2021 20:57:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3F4F86117A for ; Wed, 3 Nov 2021 20:57:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3F4F86117A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id CFC4094000A; Wed, 3 Nov 2021 16:57:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CABF6940008; Wed, 3 Nov 2021 16:57:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B4C9894000A; Wed, 3 Nov 2021 16:57:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id A8060940008 for ; Wed, 3 Nov 2021 16:57:21 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 679B35C887 for ; Wed, 3 Nov 2021 20:57:21 +0000 (UTC) X-FDA: 78768829482.20.A564910 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by imf22.hostedemail.com (Postfix) with ESMTP id EBA5D190A for ; Wed, 3 Nov 2021 20:57:20 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id t11so3555237plq.11 for ; Wed, 03 Nov 2021 13:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgkJjFPSZ0RIiVDPTncldaM4JyePze+OY2e9ObDrx7w=; b=fhZKtKStcdupgiOxcNB95yd9Vzfj7Wn5bRHFRNaH41aSZXHw/MYS8vuFYdDSVjGm4K Vk9elSX27N4++k6VjEXfy2sIVKLOxMxyB6oZKk3s9tV6tV4W5vnlyNkwQh8tLs+DepJr kfiJxkG++oyS7MlANxu+lvPLpZ4m3PKexHbnKEBpncSvuKt/7z0IXrdLVXNiaT9CXsWk kG+L0bmKvi8tAwUj7vnT2ysLIq5XuorFEASFx40pKnz1z2YG015WrdXWJpBoqgBBnz6z y3r88+9sR4bR58ymsxwC8ERtvqTmJ34BmFAo9Lxvk5u1EwU+Vj1hwuHgqoFhrXqlTWm0 FUNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KgkJjFPSZ0RIiVDPTncldaM4JyePze+OY2e9ObDrx7w=; b=Kw3Sn9KcXY9gPbLMg5UlzSE/O+78KNraavW9iIz9P1E1SASDe7/55q63+qWW8MDtMI ZwzQfjs3QGDHHhA/VKH6WzJuPnu6GLRIL4B+U4TpAZXxbqnasvNkLHQoMSQk9oP/0t/F ESBOFBCus+l9hg6AH3zP4xWp2iq3lRDm7Og0MxQpdxSnfmYdf7fW/whrBO8hwIwoo68C Q0w9L86qC4S/Ab9G+a0MsgnRzau5oHV7NicXLSmhLFEif9Kzz+/GrDhkZFFY7qdq4jK2 FX9A21JLt0foZi0n+tccdxRBrq5D7KUBD509xWjaPB7MicrJ9IVWbzn9CRNWy9kLecV3 kdgQ== X-Gm-Message-State: AOAM532Itn6hTl0Yp6JlQ83OUBIGle/sgC/xYTcd58+K5YvEd5Yuzi9L GgWDytlLESjAySdeDjDkFcA= X-Google-Smtp-Source: ABdhPJycXucVgZmu6nLmid4Wm8D7owELy7xzF4D/w2z6jkZdhxTfGUfl//WngJBDuQUwCAYMBVYNdA== X-Received: by 2002:a17:90b:3144:: with SMTP id ip4mr17617348pjb.153.1635973039942; Wed, 03 Nov 2021 13:57:19 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id n14sm2512073pgd.68.2021.11.03.13.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 13:57:18 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin , Florian Fainelli , Vineet Gupta , Russell King , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Arnd Bergmann , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , Thomas Bogendoerfer , Mike Rapoport , Stefan Agner , "Kirill A. Shutemov" , linux-snps-arc@lists.infradead.org (open list:SYNOPSYS ARC ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-mips@linux-mips.org (open list:MIPS), linuxppc-dev@lists.ozlabs.org (open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)), linux-arch@vger.kernel.org (open list:GENERIC INCLUDE/ASM HEADER FILES), linux-mm@kvack.org (open list:ZSMALLOC COMPRESSED SLAB MEMORY ALLOCATOR) Subject: [PATCH stable 4.9 0/2] zsmalloc MAX_POSSIBLE_PHYSMEM_BITS Date: Wed, 3 Nov 2021 13:57:12 -0700 Message-Id: <20211103205714.374801-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: EBA5D190A X-Stat-Signature: cc7azs6u8e568igcgr67qsw4mhzi351i Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fhZKtKSt; spf=pass (imf22.hostedemail.com: domain of f.fainelli@gmail.com designates 209.85.214.178 as permitted sender) smtp.mailfrom=f.fainelli@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam02 X-HE-Tag: 1635973040-118168 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patch series is a back port necessary to address the problem reported by Stefan Agner: https://lore.kernel.org/linux-mm/bdfa44bf1c570b05d6c70898e2bbb0acf234ecdf.1604762181.git.stefan@agner.ch/ but which ended up being addressed by Arnd in a slightly different way from Stefan's submission. The first patch from Kirill is back ported in order to have MAX_POSSIBLE_PHYSMEM_BITS be acted on my the zsmalloc.c code. Arnd Bergmann (1): arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed Kirill A. Shutemov (1): mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS arch/arc/include/asm/pgtable.h | 2 ++ arch/arm/include/asm/pgtable-2level.h | 2 ++ arch/arm/include/asm/pgtable-3level.h | 2 ++ arch/mips/include/asm/pgtable-32.h | 3 +++ arch/powerpc/include/asm/pte-common.h | 2 ++ arch/x86/include/asm/pgtable-3level_types.h | 1 + include/asm-generic/pgtable.h | 13 +++++++++++++ mm/zsmalloc.c | 13 +++++++------ 8 files changed, 32 insertions(+), 6 deletions(-)