From patchwork Fri Jan 12 23:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Zhou X-Patchwork-Id: 13518781 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4E7AC4706C for ; Fri, 12 Jan 2024 23:55:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27EE16B0072; Fri, 12 Jan 2024 18:55:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 238DD6B008C; Fri, 12 Jan 2024 18:55:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0CFA46B0092; Fri, 12 Jan 2024 18:55:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id EE78D6B0072 for ; Fri, 12 Jan 2024 18:55:58 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id AD7391201AF for ; Fri, 12 Jan 2024 23:55:58 +0000 (UTC) X-FDA: 81672319596.01.22E5C93 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by imf08.hostedemail.com (Postfix) with ESMTP id 24B5316000F for ; Fri, 12 Jan 2024 23:55:55 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf08.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.210.171 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705103756; h=from:from:sender: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:in-reply-to: references; bh=gs+osQ4JMk0b+DIOh+BXavjsZaPBoH1jST1sDAxf3IQ=; b=FYdoJ6YdDJrcMOt7JpJJWFfKVdA+tQi7ZBZpZfGmGdnLnqsikU4b+Y/5HfckZBPHAYBA42 86tDw1VQFrBcmAaECVnYicjAvcw5b8zMPpRVx2sIzJKJgN142DyOwzC23rzDmAAzCoBVF1 MsL9SFgdCIE8JRtX9bRyLr6XrklfZ1g= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none); spf=pass (imf08.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.210.171 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705103756; a=rsa-sha256; cv=none; b=0elALQHSaEDKHHtTMcerI31bxW77FtXCp66GrDYwulmwg2nXvZu6e5oahAM6KlUOsBSYl+ pkTZ3xAh7LNrv2KXpZ0vR8MnDJOShZS1W75txgRJa95fZ8BBTYXVqIY8TkJEQMiza8+EsB XC5FyEfuAx3vbqIMVEWPIPwLMDPv6+E= Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6d9b2c8e2a4so5946927b3a.0 for ; Fri, 12 Jan 2024 15:55:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705103755; x=1705708555; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gs+osQ4JMk0b+DIOh+BXavjsZaPBoH1jST1sDAxf3IQ=; b=fmE3+M52WxKDN/7j8Ko89DhG4dd3AOFAb5aA0eok3GfBw+lMvAcChL3s4rkZm+j3aE 982gkSOtYID3u+g+umo9aXrLBiet4wg0jp6S/rDSRsZ55UDxhLNiUC7v1jkb1I8YsrJC ywB5EkNK82PHtRApaaxaSN1O6/U2h42LKdrTdNUct1M1LC27Y8Kvyza5KT/YhosakyYl P7XbnBysiZHePD5GYi3TZOT233T5bQOsUx/WQmxVxbCKVsH1+6gz42udyxK8/YFm5AbW ttwRN6Q18tOekTwyyJKdyhW7Zmse5EEJv2XTULEP0Uakg4Y1l4FJqkpBa0inDPU+clVP l9Gg== X-Gm-Message-State: AOJu0YxLEDiWPOyfADPPQpiZarp95gRoL4FT03lOpGIQnf5ix8WhLQyc 31phiiCO9w1UaM4Ycc17imM= X-Google-Smtp-Source: AGHT+IF+jF0gpJYaqoi2WiUfdqepgcp3xTM6CSJapbK5axmXSuTSvNtyDn3J2cjluoevKTrzYzf7tA== X-Received: by 2002:a17:90b:3b8a:b0:28d:a535:ca23 with SMTP id pc10-20020a17090b3b8a00b0028da535ca23mr3133012pjb.20.1705103754948; Fri, 12 Jan 2024 15:55:54 -0800 (PST) Received: from snowbird ([136.25.84.107]) by smtp.gmail.com with ESMTPSA id w5-20020a17090ad60500b0028ce12f8cdasm4807193pju.10.2024.01.12.15.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 15:55:54 -0800 (PST) Date: Fri, 12 Jan 2024 15:55:52 -0800 From: Dennis Zhou To: Linus Torvalds Cc: Tejun Heo , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu changes for v6.8-rc1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspam-User: X-Stat-Signature: ptsouaf9j4rs6qfguoy8pch5srh7du9n X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 24B5316000F X-HE-Tag: 1705103755-359645 X-HE-Meta: U2FsdGVkX18btVSkFAyFjfrjCeif8vqkWI32Pszfi8so22NwVANRWBQZoY39VveAG/t1qRZ+TfOUGIlbfdr0MGbQbi8ID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8in3y4H+J2daX8JcIrM3bH00ZO/X+g 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: List-Subscribe: List-Unsubscribe: Hi Linus, This enables the percpu page allocator for risc-v as a fallback path. Separately, I just sent out a respin of Thomas' cpu hotplug related fixes for percpu_counters in [1]. I'll hopefully pull that in shortly and get it into for-next for some wider testing. [1] https://lore.kernel.org/lkml/cover.1705101789.git.dennis@kernel.org/ Thanks, Dennis The following changes since commit 33cc938e65a98f1d29d0a18403dbbee050dcad9a: Linux 6.7-rc4 (2023-12-03 18:52:56 +0900) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git tags/percpu-for-6.8 for you to fetch changes up to 6b9f29b81b155af023da95f560f738f29722b306: riscv: Enable pcpu page first chunk allocator (2023-12-14 00:24:06 -0800) ---------------------------------------------------------------- percpu: - Enable percpu page allocator for risc-v. There are risc-v configurations with sparse NUMA configurations and small vmalloc space causing dynamic percpu allocations to fail as the backing chunk stride is too far apart. ---------------------------------------------------------------- Alexandre Ghiti (2): mm: Introduce flush_cache_vmap_early() riscv: Enable pcpu page first chunk allocator arch/arc/include/asm/cacheflush.h | 1 + arch/arm/include/asm/cacheflush.h | 2 ++ arch/csky/abiv1/inc/abi/cacheflush.h | 1 + arch/csky/abiv2/inc/abi/cacheflush.h | 1 + arch/m68k/include/asm/cacheflush_mm.h | 1 + arch/mips/include/asm/cacheflush.h | 2 ++ arch/nios2/include/asm/cacheflush.h | 1 + arch/parisc/include/asm/cacheflush.h | 1 + arch/riscv/Kconfig | 2 ++ arch/riscv/include/asm/cacheflush.h | 3 ++- arch/riscv/include/asm/tlbflush.h | 1 + arch/riscv/mm/kasan_init.c | 8 ++++++++ arch/riscv/mm/tlbflush.c | 5 +++++ arch/sh/include/asm/cacheflush.h | 1 + arch/sparc/include/asm/cacheflush_32.h | 1 + arch/sparc/include/asm/cacheflush_64.h | 1 + arch/xtensa/include/asm/cacheflush.h | 6 ++++-- include/asm-generic/cacheflush.h | 6 ++++++ mm/percpu.c | 8 +------- 19 files changed, 42 insertions(+), 10 deletions(-)