From patchwork Wed Nov 3 20:57:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12601607 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 29D85C433EF for ; Wed, 3 Nov 2021 20:57:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BE1E16115B for ; Wed, 3 Nov 2021 20:57:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BE1E16115B 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 20011940007; Wed, 3 Nov 2021 16:57:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 18C016B0072; Wed, 3 Nov 2021 16:57:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0771E940007; Wed, 3 Nov 2021 16:57:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id ED8C36B006C for ; Wed, 3 Nov 2021 16:57:11 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B0600183DEA9F for ; Wed, 3 Nov 2021 20:57:11 +0000 (UTC) X-FDA: 78768829062.10.21CD4BB Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by imf05.hostedemail.com (Postfix) with ESMTP id 4BD4C508DD36 for ; Wed, 3 Nov 2021 20:56:55 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id k2so3627595pff.11 for ; Wed, 03 Nov 2021 13:57:11 -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=mECX+oRSHRb92wE0BJLiQDT7bINXd0Mx3xvZ2TAianQ=; b=a3zMJ0D8bBR20rg7rsxGuyOTYnQN37yYwmBwC3S+6aAW0QlVa7vPvgFG2bSlRyE3ix elmBQuwD0+9OLU0FRPq2i/CH/8YN2GJvZv6yjPKSu4EpZFIjAld18VXACn6B+kBBvgnf 2L9uKL5q6wZ81IJaEa6Sg531mllVK78U7wuYbjyLf5w/rlGG2yhVn16rhFEv7kyt/pD2 fsTMFuRsbWhqrWapbCNukGsQNb2+CLWZzoK6GQFF24Q5lQ5S+2TNQGz+7lLX5FyHvoN6 DnOOuScPioxgv2oj9Q0+yZ8xc52rZqxKJ5eEKPVTkTXUcvFyMXnuk3rBZEBDCXfWKjZt W/2Q== 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=mECX+oRSHRb92wE0BJLiQDT7bINXd0Mx3xvZ2TAianQ=; b=wKlG0KwVHy1SrXIS446sEl3E63vDZBcGoDZztUqvF+XXzZGZsJS0GNVp8J+2Q4plKY 4l/8qfgnfBMCvAVbB9nEB4zTsiQ36RGOAYGoCuPlVDgYis7SY13O7yAE66wVgj6KF90h KqWkwtcgCAOpG1gW9+CGJJ1kM+ULB5AWmpCl1LX+/03X/kOivCcCNkXVigGAtBfrV9mT +BzTb2651Mw+3lZNULF8DDIqQX5WTrJ4v1CI0JFT+i5if12EommYdT/YuKsRyAv3mpWg q18hAEW8/CHI/TcGBQ7pXi+X39HWyltV8v3jvps9TgG9ertb6ULNSUb0bK28xYU1Tvej mx2A== X-Gm-Message-State: AOAM532j7He9L2hNuyxZo5/4myVW84M0CcR0yu426272lvwYfrjZ/BLR M/UmqT/1dcSvZVkVYIP3KVs= X-Google-Smtp-Source: ABdhPJzj2664dHG+guPVVL2qUxpAjbN+Z5lTYlwZpUGV816hc1G3rRsEFzjX162YsDh52mFdzCX7zQ== X-Received: by 2002:a63:311:: with SMTP id 17mr24881549pgd.367.1635973030309; Wed, 03 Nov 2021 13:57:10 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id b18sm2554859pjo.31.2021.11.03.13.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 13:57:09 -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 , Stefan Agner , Thomas Bogendoerfer , Mike Rapoport , "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.14 0/2] zsmalloc MAX_POSSIBLE_PHYSMEM_BITS Date: Wed, 3 Nov 2021 13:57:02 -0700 Message-Id: <20211103205704.374734-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 4BD4C508DD36 X-Stat-Signature: exuz4bf9t6zewzd8pekw48pthzsbnn5t Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=a3zMJ0D8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf05.hostedemail.com: domain of f.fainelli@gmail.com designates 209.85.210.169 as permitted sender) smtp.mailfrom=f.fainelli@gmail.com X-HE-Tag: 1635973015-422657 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 + arch/x86/include/asm/pgtable_64_types.h | 2 ++ include/asm-generic/pgtable.h | 13 +++++++++++++ mm/zsmalloc.c | 13 +++++++------ 9 files changed, 34 insertions(+), 6 deletions(-)