From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9819A32F750 for ; Mon, 5 Jan 2026 10:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767610561; cv=none; b=uoTdT+ryTHEV1aYpiiw+iqW5M1hkYkXU001v0ceq4/vV9+OR13kL9/pCkxbZUt013P2tDF9MRBcT6g1UULJwqf20/HW6rgEPeSl5xifXuhjBDelh85Ju03uaB70foR37bMtMyJQb383VcmqXWrSBllcg8pNGmWRFg0+lhCAz+uM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767610561; c=relaxed/simple; bh=t9YHTJsG181WvakQ7dQiqG3B9lPmUGgmAh0Y7XXwNEQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=oQ3o5QfrwCzsr0vjbVsYcbSoii1D5LzjIW0j0ssYoX9OndUUEel5Kd2wXYpgAV+dPgSIS5uUuclJaY02XUlbaH/7kaG3J8qeyEf2qrcBqQmhxmlF5FQF2EmYFSykJxOAKa9sT+x3HNQPv0zUf8EH0kZ0LIAHBRz1s+BnB7YwJ8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qcYahuBc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qcYahuBc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5943C116D0; Mon, 5 Jan 2026 10:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767610561; bh=t9YHTJsG181WvakQ7dQiqG3B9lPmUGgmAh0Y7XXwNEQ=; h=Subject:To:Cc:From:Date:From; b=qcYahuBcWjrKXnQbtqBH8KnXWb9PlbmLHwlVk9YtrOwBLqE6fA/+scRtDal81/a3l OPR/Pe9mHQkYmR8U1SVI5StuYehfgDjuypuwZ42BkwLhh0l0tekjYY1EZgE6mOwfrg qb31MIKRMOejeP7M3dbSbCUDLJtQFYDWF1Urt50g= Subject: FAILED: patch "[PATCH] powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating" failed to apply to 6.6-stable tree To: david@kernel.org,akpm@linux-foundation.org,christophe.leroy@csgroup.eu,david@redhat.com,maddy@linux.ibm.com,mpe@ellerman.id.au,npiggin@gmail.com,ritesh.list@gmail.com,stable@vger.kernel.org Cc: From: Date: Mon, 05 Jan 2026 11:55:47 +0100 Message-ID: <2026010547-ninth-clinking-d127@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 0da2ba35c0d532ca0fe7af698b17d74c4d084b9a # git commit -s git send-email --to '' --in-reply-to '2026010547-ninth-clinking-d127@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 0da2ba35c0d532ca0fe7af698b17d74c4d084b9a Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Tue, 21 Oct 2025 12:06:06 +0200 Subject: [PATCH] powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating pages Let's properly adjust BALLOON_MIGRATE like the other drivers. Note that the INFLATE/DEFLATE events are triggered from the core when enqueueing/dequeueing pages. This was found by code inspection. Link: https://lkml.kernel.org/r/20251021100606.148294-3-david@redhat.com Fixes: fe030c9b85e6 ("powerpc/pseries/cmm: Implement balloon compaction") Signed-off-by: David Hildenbrand Reviewed-by: Ritesh Harjani (IBM) Cc: Christophe Leroy Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Signed-off-by: Andrew Morton diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c index 688f5fa1c724..310dab4bc867 100644 --- a/arch/powerpc/platforms/pseries/cmm.c +++ b/arch/powerpc/platforms/pseries/cmm.c @@ -532,6 +532,7 @@ static int cmm_migratepage(struct balloon_dev_info *b_dev_info, spin_lock_irqsave(&b_dev_info->pages_lock, flags); balloon_page_insert(b_dev_info, newpage); + __count_vm_event(BALLOON_MIGRATE); b_dev_info->isolated_pages--; spin_unlock_irqrestore(&b_dev_info->pages_lock, flags);