From nobody Sat Jul 25 20:47:10 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B14F5392C48; Mon, 13 Jul 2026 23:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984052; cv=none; b=Nu1/Tg8i2fb1QBHdqXbdWs6tvgnGkfWRD6wbSj1Wodtv8ygB93cYvR5qnkgaY3yst5L3YS4J+yO+uGL3SMwyAacFtgr3RiU/L+L5WiW/14u7pY8QmMrwjoh6O2G/G+PsnC3lPUB9YiBNokwn14iy9D8X0XIXpZ5DP7gdZOPu/PY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984052; c=relaxed/simple; bh=9TQ5cdRAcCvSUvBBtYLoSeNqQrdYYyYA5sNd+sTiTSQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=jKLgpr2cBrYfUhlY4MOWaJjv2v1ugnO/dInR/0MoXFgewwwbnk8WSnHuycrDnBIPYRmp7QtllrefFWd5Ar6m/BT10RQRFhwb/GeHemrQpgtT5DnB2XDzk9gKr7Fk5fNce/DBfGPOaM4HK1MoF2bcUDiJ94HNoSrc8e/fr4WmaOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dLnSv7Aa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+Qpvzfnu; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dLnSv7Aa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+Qpvzfnu" Date: Mon, 13 Jul 2026 23:07:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783984042; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=FWs9c6PMVSvHt4Vu80BhrqdHWwwfhCM4MwwhuQ09uPg=; b=dLnSv7AaWEwBe4XvkWCNhdaVhCgqDGLLV/FBtO3XWO6LD0uV1v2ZDaan4fephMi/LTj1Qq wuBFXKLek+TgwPahiLEGxanqQCGOJ0+roS2zDEajH5e+yVDfjvyIZjcEU3Y+dzAuGhL80m 7ZL/Rw4RfGdJJGQQa/TEWMuv4x+xGsYH0TG9rKpJI+9bq6diWF6A3KpYrRTI7Puyzz3VyL +0mxYMz3j32GGbkFHMfjvLcuu75rBZjAo98XB5SCpT+Mz1AzW1I1KEpWoM//z0Wv6vLHIb IV9q9MXvas6k+m0kKLh1a/7s7oWKO34DqgF6lRrowPZYL6Xkpx1HsQ89tLjedA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783984042; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=FWs9c6PMVSvHt4Vu80BhrqdHWwwfhCM4MwwhuQ09uPg=; b=+Qpvzfnu9JIMDNIFAm0FE0Tkdx5TKP9yAVokTvZZyxrbOrr7QFvC67SgDWw9m4wq4WEu1u aonSCzHPp/65zEAg== From: "tip-bot2 for Vishal Moola" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm/pat: Convert __set_pmd_pte() to ptdescs Cc: Vishal Moola , Dave Hansen , William Kucharski , "Mike Rapoport (Microsoft)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260629185742.126987-3-vishal.moola@gmail.com> References: <20260629185742.126987-3-vishal.moola@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178398404130.1844600.10448696722287971823.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/mm branch of tip: Commit-ID: e27d938b0de86304f12c89706b8034f89f015077 Gitweb: https://git.kernel.org/tip/e27d938b0de86304f12c89706b8034f89= f015077 Author: Vishal Moola AuthorDate: Mon, 29 Jun 2026 11:57:35 -07:00 Committer: Dave Hansen CommitterDate: Mon, 13 Jul 2026 15:55:10 -07:00 x86/mm/pat: Convert __set_pmd_pte() to ptdescs Convert __set_pmd_pte() to ptdescs in preparation for the eventual splitting of ptdescs from struct page. Signed-off-by: Vishal Moola Signed-off-by: Dave Hansen Reviewed-by: William Kucharski Acked-by: Mike Rapoport (Microsoft) Link: https://patch.msgid.link/20260629185742.126987-3-vishal.moola@gmail.c= om --- arch/x86/mm/pat/set_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 3b9032a..93cb714 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -890,15 +890,15 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long = address, pte_t pte) set_pte_atomic(kpte, pte); =20 if (IS_ENABLED(CONFIG_X86_32)) { - struct page *page; + struct ptdesc *ptdesc; =20 - list_for_each_entry(page, &pgd_list, lru) { + list_for_each_entry(ptdesc, &pgd_list, pt_list) { pgd_t *pgd; p4d_t *p4d; pud_t *pud; pmd_t *pmd; =20 - pgd =3D (pgd_t *)page_address(page) + pgd_index(address); + pgd =3D (pgd_t *)ptdesc_address(ptdesc) + pgd_index(address); p4d =3D p4d_offset(pgd, address); pud =3D pud_offset(p4d, address); pmd =3D pmd_offset(pud, address);