From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BB47606A322 for ; Thu, 3 Dec 2026 21:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=BlQyg6EG Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 00F7E10E3E3; Thu, 3 Dec 2026 21:39:27 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id A71EA10E3E3 for ; Thu, 3 Dec 2026 21:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796333961; x=1827869961; h=message-id:date:subject:to:cc:references:from: in-reply-to:mime-version; bh=eOxGklwJnMNFr5CTQqIPbdJDEyDuIF2uQLf+loFkJfY=; b=BlQyg6EGjUYEzO3QgeSsejOJTwFq7Cndw8xeVhcv6NCLWpwSIP9cdEGZ TrU9d0WFeT2DM9FdWaVh9WCZnJPgIPN36qyLxqfzL+R05UgDR7sbI94ef Qyvit2f0aNk5jj12Ocsc2ahdmTsA47ZFAr2I5u70qx5JfqPoqSpD0ioNG 8shcHL5EYFJfflC+399L5k0SmHRHqteEJUwr+7/yHRBkcMnCdeOwtKTJP dAbE+RxRqYnivcDerRJvd4ucmR9eni6Ki2fliY/ELovFRGJbF0Gbzt/Oo AtfI3gqzNF6ohJSEjxWLw9A3/jAJdZH3zBuamv0ETKi3m1JvfNQWYFAM+ Q==; X-CSE-ConnectionGUID: 04gpAicJQKCYrMUkKKoW5A== X-CSE-MsgGUID: +kzE3KGcS7KGzv6qpX6ToQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5306158" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208,217";a="5306158" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 13:39:20 -0800 X-CSE-ConnectionGUID: LyD8Xt7PTDqZqYFV2+js0Q== X-CSE-MsgGUID: Oukuic11S2eL0lCpwaCosA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208,217";a="14198498" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by fmviesa007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 13:39:20 -0800 Received: from FMSMSX901.amr.corp.intel.com (10.18.126.90) by fmsmsx901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 13:39:19 -0800 Received: from fmsedg902.ED.cps.intel.com (10.1.192.144) by FMSMSX901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 13:39:19 -0800 Received: from BN8PR05CU002.outbound.protection.outlook.com (52.101.57.50) by edgegateway.intel.com (192.55.55.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 13:39:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Olq3UXVVQF9BW6ybTuSXgbjT1AsFrNECTj4tq/3vGGN0sM3NHhiTNSy6zHD1UJTGY/qyPnEbukNSVn3ZwRyQPGeBXoWjTw+s8K7gSD3GGm/F4h0I5kHPRgQ3TAvlhz8+gFNhsnJ+w+wUQ9g+0dNP2D2QrIfJWHQyL10h8vQ9ANZSd23Us92z5rUAVtiME9XGsqEr4bTkJvoFIV+yHfAZIxruBZMhz3tBrwCvcAtexw+CfRUPhxpdkhabZQS2acTZdn9Q0q0dX3+5M9dCLOP+mykxr0ps7wJ8gjQD18BJFn9ubP+tj/dlR3w1i7rQDe9UBZeWJ/ggERB4663BpJtPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eOxGklwJnMNFr5CTQqIPbdJDEyDuIF2uQLf+loFkJfY=; b=qEJ+ovPslQlcgnKCDuM1VbctXrl1LzeLIR7T6YkXwMHg4u/YQC6+vTuZeFIKnkWJNKPkxpi8lgLILJPK+SfvGjo0m7hk34IHMbXQ1rnrE9Zv3EewrP1YWg01qZaMiGNo4nzQ9O+uPC+NuDTh7bREuqJoyANbdvKni8wZ3CteNanHOEUK0P+aejOJJSc9jMkVejaPW0fuXCLm0tRIX9ILMVaPmZ/iopZCizL0NdmdvUyy/WWB4wwSKqbtNNYveRSxEmG3q0DiYbftm3oLiYqDRQhEP6ht/y3ozKTIjFNaNZ677QhnJ3PsqKmC5sX/yemy3NG32o2HrQ4ma51+/yXfwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from IA3PR11MB9226.namprd11.prod.outlook.com (2603:10b6:208:574::13) by CY8PR11MB7778.namprd11.prod.outlook.com (2603:10b6:930:76::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Thu, 3 Dec 2026 21:39:09 +0000 Received: from IA3PR11MB9226.namprd11.prod.outlook.com ([fe80::4efd:8324:f06f:5b70]) by IA3PR11MB9226.namprd11.prod.outlook.com ([fe80::4efd:8324:f06f:5b70%6]) with mapi id 15.21.0688.009; Thu, 3 Dec 2026 21:39:09 +0000 Content-Type: multipart/alternative; boundary="------------Od1W3C8ec0Il9dD4IqWUGh0L" Message-ID: Date: Thu, 3 Dec 2026 22:39:04 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/5] drm/xe/xe3p_lpg: Apply Wa_14028597154 to SR-IOV VF To: =?UTF-8?Q?Pi=C3=B3rkowski=2C_Piotr?= , CC: Varun Gupta , Matt Atwood , Rodrigo Vivi , Satyanarayana K V P , Tangudu Tilak Tirumalesh References: <20261203181408.362175-1-piotr.piorkowski@intel.com> <20261203181408.362175-6-piotr.piorkowski@intel.com> Content-Language: en-US From: "Lis, Tomasz" In-Reply-To: <20261203181408.362175-6-piotr.piorkowski@intel.com> X-ClientProxiedBy: VI6PEPF00000201.AUTP296.PROD.OUTLOOK.COM (2603:10a6:808:1::90b) To IA3PR11MB9226.namprd11.prod.outlook.com (2603:10b6:208:574::13) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA3PR11MB9226:EE_|CY8PR11MB7778:EE_ X-MS-Office365-Filtering-Correlation-Id: 675775a4-65c6-4fec-05ef-08df5185dcd3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|23010399003|366016|4143699003|6133799003|22082099003|18002099003|8096899003|261026140227099003|56012099006|11063799006|260925021911599003|261028144727099003|260925022911599003|260925021311599003|261022075727099003|261026121527099003|261022105027099003|261021121427099003|261102123227099003|261009223027099003|10067099003|261021123027099003; X-Microsoft-Antispam-Message-Info: y0XMzULca+/3MEEu2M8bVos59k6nB/3yu7cCAY8q8/hjdIVkntG5juXvlZqwT3c9BdQdtFj00cARa4LDKt5p4WEJFY8tgRpH8T7AMYdgH92ULwVfgBrtGkYTjbLl8UtqhR+jxvIVp7vxHk4twcj/iOwmj0M16IOFedVuxIRqSXcV97Nf/gDqlJ2RuS7CZASXoXBShm3tACsC7s8nl1jo0GhMRR6Z0n6AkfgSy6l1ouOHPJIsV/zownFgBSOUxtmlmUZh1CIE+Vc7ZJvLopw2UP4BsI3YNUNMqNwHLOZhk5PfA1OqXDwnL6anbnJCXviclyS228cFtzpBOLQbIhHD+QzhdD4XfDM1C2UdRJ2fAfVRdSU24Nbwcn6S6iUJgAG0eukZgL+1FjwfJw9PvDcI1H0B1tkEsDycpVuwNxnosG4JG2IYvPbXS7I9niKZqFFp3/ItIh8UuSN4ZXyX2cveBW+im1URSLjEdxRL10kfckHLq+Nbas7S7NqcnFpmLoobl3na5J/Df8HJc5KE7KnVZOVp73hvD8SvTDPogMppRsHkXqYkzW0/0zg/TcVx6cNypFGCw0sjvQg3XttXPFHFEMqZRqsTC1mV61oTW+WWzNVpk+LQ7feiBdZMHkHNCD6Gd3nK1qjXnK27Ib3VSQIOAhk7CJ4Ui4O4gZT9QLfqXTw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA3PR11MB9226.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(23010399003)(366016)(4143699003)(6133799003)(22082099003)(18002099003)(8096899003)(261026140227099003)(56012099006)(11063799006)(260925021911599003)(261028144727099003)(260925022911599003)(260925021311599003)(261022075727099003)(261026121527099003)(261022105027099003)(261021121427099003)(261102123227099003)(261009223027099003)(10067099003)(261021123027099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d3lXVDdyN1hOY3IrZWM3QVpLc2lTcHRXTG50enNZSGlXWktqS24vVVZhNS95?= =?utf-8?B?NHJ6RHhJdk4zN0Vvc0l1aEI4TzdoVHZkbE9nRThEdkFpTkNsQW5DeHF6elow?= =?utf-8?B?MytzS1N6UHhLV3llNHFyblZkbDRuNmhkeGFmby9LQVJtUDNkR3k3ZFU0R2s4?= =?utf-8?B?L01sL0JpZ0xVQmVjM0lDT2kyNGNGTTRPdzlrVTArallvM1RXSFd2M1YyZTBi?= =?utf-8?B?b0ZtNDc0c2VkUVpnc2EvdUJaRTF2eXN2RXVLbk5iellkcitWK01DanBvaFhl?= =?utf-8?B?cTZXQlZGRzF1WEYwNmUzL2hnQWRXVGFpbUplZWJTNVFzT1RPS3lTNThBWll2?= =?utf-8?B?U212dHhpVWFEYnNaQ1d1WWZEb2N5d0d0MnZROGswTnNXK0VicEp0a3BCSDMv?= =?utf-8?B?ckp4aXVtNU5xUXphODQ0c29lL2k4ZFFZN251U1F4MDJBV0NZd1RaSjBuVTRp?= =?utf-8?B?WGVqalprVE9jZllSeWZWZWlsMUdIUkd0QUovSVVvdVdGbEF4UDV1YWxLUXlz?= =?utf-8?B?Rnp5dlJTVStiNDRTZ0pYTUtoQlVMZDQrNWRkMEp5Y3YvNEc3RlMxUGNGOVdB?= =?utf-8?B?YmtyaTNrOUorMGMxZFZnN2QzbnM3MGl4cXQ1RGFJR0lmbjBFZm9CSWZvZTVM?= =?utf-8?B?UmpiUkhKbXdDYTZ0dDEyY0JwbnhENzVzQTFsbnhFZ01RejJVdkN4bitMUU1o?= =?utf-8?B?MkREK3VLbjZDbnpaUTZnOWMrMmlTL2pZYlBTR2JrYjBiNVBmR3V3TWw3elZw?= =?utf-8?B?WjVZWldTeUlhSUNZWVFCOTdqZmdIK3pvaXBuRXVDWklleUdHb2VDUkVxbUQ4?= =?utf-8?B?d21KOFJ1b1FMS245UnpGSlI2S0NTTVdZb096UHdybWI3MVlncUdOVVVnQVM5?= =?utf-8?B?MWdYK3NxU3lLbTdERVVGaTY5K205NmE5eGVTbEhNWWZCem85V2tRR1RqZmV1?= =?utf-8?B?L1JPYy9DTGNFUjdtSURoY1FHRjF5OFRETlo4QjRUTXh6MldVN1pwVkhqUm9J?= =?utf-8?B?czhCcVNlRGZIaEFxMU8wVFJ4NDFFUk01b1VvZE9zZThoN1pyR3BSVzVuTCtW?= =?utf-8?B?ZXc4bXcrVDY3alFMYmU0UmV4WFBSNUxVeG9wbVlnOVhxTVpkdWNxZTlFYWVk?= =?utf-8?B?V3RBeVd1NlZIT29tY3lXY2NjYkJMaGZzYUk2RW5OV0Z3b3ZrRWQ5eXNEUlgw?= =?utf-8?B?UDdOQWpzLzZWTEJGdzVBbHFBZUNjUHhCa25hdXRFU3lvWGNJRHNrQkJ4R045?= =?utf-8?B?OFNwSFN6T1NmWEUyYXJBdW5jUnFJam13aFZybHZWdWZ3Q3Q3QzhoZUg2dVRM?= =?utf-8?B?N3d6VFR0VDVkWXRGU2paaENOcmxlazB3QmR1K3N1dlRDOTN2NXFzS0VQRlVn?= =?utf-8?B?K0gwUUVLRnBJblBlV1JiZE9WWFJmYytiVWVUOG5ZNkM0U3RKZnM3TTlQWVBV?= =?utf-8?B?bjdhYkpYSzdCaUhaQTBIV1N3ZExUWnJ5eXdsa1g0UUJBb04zZmd0WjdMRHp4?= =?utf-8?B?eUg2d1FSSitjL3FBTkFtQytSUURJM0x1THpCbUZ6dnZIUzNMOEtQWjllbW5J?= =?utf-8?B?OXZxdWhlTHpIWTVNY0dYek14bFM3Rk9JRUJaRExrM1ZEYWNtTkUwMzNaMHNC?= =?utf-8?B?cnZCSVFKbXdvTW9vQkdFVGpjaUovaHRRVkFxSUFOTVhWTDFBMVlubDVkRzVE?= =?utf-8?B?ejlYd25QbVY1UndDR3hhN2NjekRnTVozZy9yYXovRGZlalc5YU9oQnN6MnpJ?= =?utf-8?B?RTN0dFhmbW9LWXVQWGdKRFZndjBzbk14eEhYeE5WblhFSFpmNUJxaXFkWWpl?= =?utf-8?B?RUdDOVRrbjZ6akg0d1p5N1B6bFdNMWRLMjVFU2xjRjBzMUpIYUZ5cTdXcm93?= =?utf-8?B?TmIyZ1FvS0JobEtRWkFCak43VlB3MVQrMmlXMkwyN2Y3MFRwa0tjOGhUV25l?= =?utf-8?B?Sk5KczZRZkJpMzFuRlJaMjVudDljQlZpdWlrNWZYS2NxTUIvWnJwOXFYMVo3?= =?utf-8?B?RnVEUk5URUpSZnljbTgrL21DanlXWlJpRWxhZkZqWkx4UGVVTzdQY0tSWnd3?= =?utf-8?B?cG4wZnZkdWpiMTExMHN4WkszSkdUczNPZDRpMzdvOGM1QmhoSnBtVGk2OExq?= =?utf-8?B?V1k2dWNndXQ0MVN1dUlRREZXVkgyR0pvQmRQOWlkSVVQNHRPdzdPNTlwUE0x?= =?utf-8?B?b1ZKM0RmY0QwTjV6eERha3REdzVad2pFQmNJV3NRWThHRW5KRG9CNkFsT2FG?= =?utf-8?B?U2JBZEgvS1VQSGFibTd1cjd2NmM1NVRCMytqMUYyejZ3YjFIeVhlczQ1Y0du?= =?utf-8?B?T3FXMy9HTktzZzdaNXVSTXVuOUl2R0JJTTF2ZjYveUxRL2pwaEI1QT09?= X-Exchange-RoutingPolicyChecked: EIr1JcjRwYmooIfc75gs0MlGveQrwtxCs2BOgdjQFoTIid+9Rsm9XNalXtYZGHIvxa74UxybTRrXZUs89AwpdVI4cJ90uRKNMNJnhZ7hUkyMXoAd+WbZIoNQn1UIkZyHWa6sFbpgryPUS/pc0dhto5llUoala0GTx/FjTqwB/R4YwdZkV3Qp2hzDSpgsgMmf+HdgpSvgNatOzQBkhu5T2OFWhvQsSwACqUcWtvnwiYF+RrDswJmazgjL60Up0Whv7Ci9A1W17sisXI+dPle/9M+PJhP2We3aJlHTp6KPaXZgCCEnsz/UrjT+04TtK1fQ4HYRC40j3MJS+Juliq/+ig== X-MS-Exchange-CrossTenant-Network-Message-Id: 675775a4-65c6-4fec-05ef-08df5185dcd3 X-MS-Exchange-CrossTenant-AuthSource: IA3PR11MB9226.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 21:39:08.9687 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uEpv57Y0f7Mjji3F4CeJN2NLO2zpndL1IckzTv1vcwAN2gTkjnFHYi5oC59p9Er6q4bRaKmJmr94hjvW8R0KiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7778 X-OriginatorOrg: intel.com X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --------------Od1W3C8ec0Il9dD4IqWUGh0L Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2026-12-03 19:14, Piórkowski, Piotr wrote: > From: Varun Gupta > > The PF assigns the low-4MB GGTT PTEs matching a VF GGTT range to the VF > together with the range, but it is the VF that has to back them with its > own dummy page for Wa_14028597154. Compound sentence, which uses terms VF and PF meaning drivers. Maybe: "The Wa_14028597154 defines special driver behavior for low-4MB GGTT PTEs. The PF driver assigns these low-4MB GGTT PTEs to VFs, in ranges matching GGTT provisioning of each VF. Then, driver for each VF has to back them with its own dummy page, as that area needs to be writeable from GFX HW." > When the WA is active, map the VF dummy page into the low-4MB PTEs > matching the VF GGTT range at probe, on resume and in > xe_ggtt_shift_nodes(), even if the GGTT base did not change, as these > PTEs are not migrated with the VF. Read them back and fail the probe if > they were not written. Also fail the probe if the VF GGTT range is not > 4MB aligned, starts below 4MB or is smaller than 8MB. Keep the top 4MB > chunk of the VF GGTT range out of the usable range. > > Let xe_ggtt_shift_nodes() return an error, without moving the nodes, so > the post-migration recovery fails if the low-4MB PTEs of the new GGTT > range can't be mapped. > > Cc: Matt Atwood > Cc: Rodrigo Vivi > Cc: Satyanarayana K V P > Cc: Tangudu Tilak Tirumalesh > Cc: Tomasz Lis > Signed-off-by: Varun Gupta > Signed-off-by: Piotr Piórkowski The 3 issues marked are with comments and minor function structure change, so as long as that's somewhat addressed: Reviewed-by: Tomasz Lis > --- > drivers/gpu/drm/xe/xe_ggtt.c | 123 ++++++++++++++++++++++++---- > drivers/gpu/drm/xe/xe_ggtt.h | 2 +- > drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 12 ++- > 3 files changed, 116 insertions(+), 21 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c > index 64b81c0c48a3..4cf0ee203cd9 100644 > --- a/drivers/gpu/drm/xe/xe_ggtt.c > +++ b/drivers/gpu/drm/xe/xe_ggtt.c > @@ -497,10 +497,16 @@ static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size) > { > struct xe_device *xe = tile_to_xe(ggtt->tile); > > - if (!IS_SRIOV_PF(xe)) > - ggtt_init_native(ggtt, start, size); > - else > + if (IS_SRIOV_PF(xe)) > ggtt_init_shared(ggtt, start, size); > + else if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt)) > + /* > + * Wa_14028597154: keep the top 4MB chunk of the VF GGTT range > + * out of the usable range. > + */ > + ggtt_init_ranges(ggtt, start, size, size - SZ_4M, 0); We have created readability-improving sub-functions for simpler cases, but the more complex case which require direct comment is inserted without sub-function? Please create a static function for this as well. > + else > + ggtt_init_native(ggtt, start, size); > > xe_tile_info(ggtt->tile, "GGTT usable %#llx-%#llx = %lluK\n", > ggtt->start, ggtt->start + ggtt->size - 1, > @@ -563,6 +569,20 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) > else > ggtt->pt_ops = &xelp_pt_ops; > > + /* > + * Wa_14028597154: the PF provisions VF GGTT ranges 4MB aligned, above > + * 4MB and of at least 8MB. Refuse any other range, as the WA can't be > + * applied to it. > + */ > + if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt) && > + (ggtt_start < SZ_4M || ggtt_size < SZ_8M || > + !IS_ALIGNED(ggtt_start | ggtt_size, SZ_4M))) { > + xe_log_err_fatal(ggtt->tile, GGTT, -ERANGE, > + "GGTT %#llx-%#llx unusable for Wa_14028597154\n", > + ggtt_start, ggtt_start + ggtt_size - 1); > + return -ERANGE; > + } > + > ggtt->wq = alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM | WQ_PERCPU, 0); > if (!ggtt->wq) > return -ENOMEM; > @@ -581,6 +601,14 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */ > static void xe_ggtt_invalidate(struct xe_ggtt *ggtt); > static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt); > > +static u64 ggtt_get_low_4m_pte(struct xe_ggtt *ggtt, u64 addr) > +{ > + xe_tile_assert(ggtt->tile, addr >= XE_PAGE_SIZE && addr < SZ_4M); > + xe_tile_assert(ggtt->tile, !(addr & XE_PTE_MASK)); > + > + return readq(&ggtt->gsm[addr >> XE_PTE_SHIFT]); > +} > + > /* > * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF > * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF > @@ -662,8 +690,40 @@ static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start) > return hole_start + SZ_4M; > } > > +/* > + * Map the VF dummy page into the low-4MB PTEs matching the whole VF GGTT > + * range from @start. The VF can only modify them if the PF has assigned them > + * to it, so read them back to verify the mapping. > + */ > +static int ggtt_vf_map_low_4m_locked(struct xe_ggtt *ggtt, u64 start) > +{ > + u64 mask = XE_PAGE_ADDR_MASK(XE_PTE_SHIFT) | XE_PAGE_PRESENT; > + u64 end = start + ggtt->full_size; > + u64 va; > + > + xe_tile_assert(ggtt->tile, IS_SRIOV_VF(tile_to_xe(ggtt->tile))); > + xe_tile_assert(ggtt->tile, ggtt->low_4m_pte); > + lockdep_assert_held(&ggtt->lock); > + > + if (start < SZ_4M || !IS_ALIGNED(start | ggtt->full_size, SZ_4M)) > + return -ERANGE; > + > + for (va = start; va < end; va += SZ_4M) > + ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte); > + > + for (va = start; va < end; va += SZ_4M) { > + u64 pte = ggtt_get_low_4m_pte(ggtt, va >> 10); > + > + if ((pte & mask) != (ggtt->low_4m_pte & mask)) > + return -EPERM; > + } > + > + return 0; > +} > + > static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt) > { > + struct xe_device *xe = tile_to_xe(ggtt->tile); > u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10, > XE_PAGE_SIZE); > u64 low_end = min_t(u64, > @@ -676,6 +736,14 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt) > if (!ggtt->low_4m_pte) > return; > > + /* A VF only owns the low-4MB PTEs matching its own GGTT range */ > + if (IS_SRIOV_VF(xe)) { > + if (ggtt_vf_map_low_4m_locked(ggtt, ggtt->start)) > + xe_tile_err(ggtt->tile, > + "Failed to restore low-4MB GGTT PTEs for Wa_14028597154\n"); > + return; > + } > + > for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) { > if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks)) > continue; > @@ -694,16 +762,9 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt) > struct xe_device *xe = tile_to_xe(tile); > u16 pat_index = xe_cache_pat_idx(xe, XE_CACHE_WB); > struct xe_bo *bo; > + int err = 0; > u64 pte; > > - /* > - * TODO: SR-IOV VF support for Wa_14028597154 is deferred to a follow-up > - * (requires PF 4MB-aligned VF GGTT provisioning, low-4MB VFID PTE > - * assignment, and VF dummy-page mapping). > - */ > - if (IS_SRIOV_VF(xe)) > - return 0; > - > if (!ggtt_needs_low_4m_wa(ggtt)) > return 0; > > @@ -716,7 +777,19 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt) > > scoped_guard(mutex, &ggtt->lock) { > ggtt->low_4m_pte = pte; > - ggtt_restore_low_4m_locked(ggtt); > + if (IS_SRIOV_VF(xe)) > + err = ggtt_vf_map_low_4m_locked(ggtt, ggtt->start); > + else > + ggtt_restore_low_4m_locked(ggtt); > + } > + > + /* The PF has to assign the low-4MB PTEs together with the VF range */ > + if (err) { > + xe_log_err_fatal(tile, GGTT, err, > + "Low-4MB GGTT range %#llx-%#llx not writable, required by Wa_14028597154\n", > + ggtt->start >> 10, > + ((ggtt->start + ggtt->full_size) >> 10) - 1); > + return err; > } > > return 0; > @@ -945,23 +1018,41 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt) > * Ensure that all struct &xe_ggtt_node are moved to the @new_start base address > * by changing the base offset of the GGTT. > * > - * This function may be called multiple times during recovery, but if > - * @new_start is unchanged from the current base, it's a noop. > + * This function may be called multiple times during recovery. If @new_start > + * is unchanged from the current base, the nodes stay where they are. > + * > + * When Wa_14028597154 is applied, the low-4MB PTEs matching the VF GGTT range > + * are mapped to the VF dummy page again on every call, even if the base is > + * unchanged, as they are not migrated with the VF. > * > * @new_start should be a value between the WOPCM size and #GUC_GGTT_TOP. VFs > * don't have access to the WOPCM size so we can't test against that. > + * > + * Return: 0 on success or a negative error code if @new_start is unusable for > + * Wa_14028597154 or the low-4MB PTEs can't be mapped. > */ > -void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start) > +int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start) > { > + int err; > + > guard(mutex)(&ggtt->lock); > > - xe_tile_assert(ggtt->tile, new_start + ggtt->size <= GUC_GGTT_TOP); > + xe_tile_assert(ggtt->tile, new_start + ggtt->full_size <= GUC_GGTT_TOP); > #ifdef CONFIG_PCI_IOV > xe_tile_assert(ggtt->tile, ggtt->shareable_size == 0); > #endif > > + /* Don't move the nodes to a range unusable for Wa_14028597154 */ This comment is confusing rather than helping. There are no nodes which it mentions. Maybe: "The GGTT range which need setting for Wa_14028597154 does not have &xe_ggtt_node assigned as it is outside of space provisioned for the VF. But it needs to be mapped again after every VF migration." -Tomasz > + if (ggtt->low_4m_pte) { > + err = ggtt_vf_map_low_4m_locked(ggtt, new_start); > + if (err) > + return err; > + } > + > /* pairs with READ_ONCE in xe_ggtt_node_addr() */ > WRITE_ONCE(ggtt->start, new_start); > + > + return 0; > } > > static int ggtt_insert_node_in_range_locked(struct xe_ggtt_node *node, u32 size, > diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h > index 7b5221d6f733..22cf19d2b8eb 100644 > --- a/drivers/gpu/drm/xe/xe_ggtt.h > +++ b/drivers/gpu/drm/xe/xe_ggtt.h > @@ -20,7 +20,7 @@ int xe_ggtt_init(struct xe_ggtt *ggtt); > void xe_ggtt_resume(struct xe_ggtt *ggtt); > bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt); > > -void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base); > +int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base); > u64 xe_ggtt_start(struct xe_ggtt *ggtt); > u64 xe_ggtt_size(struct xe_ggtt *ggtt); > > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > index 60f1b29358f9..1a5395486327 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > @@ -531,12 +531,16 @@ static int vf_get_ggtt_info(struct xe_gt *gt) > /* > * This function can be called repeatedly from post migration fixups, > * at which point we inform the GGTT of the new base address. > - * xe_ggtt_shift_nodes() may be called multiple times for each migration, > - * but will be a noop if the base is unchanged. > + * xe_ggtt_shift_nodes() may be called multiple times for each migration. > + * The nodes stay in place if the base is unchanged, but the low-4MB PTEs > + * of Wa_14028597154 are mapped again, as they are not migrated. > */ > - xe_ggtt_shift_nodes(tile->mem.ggtt, start); > + err = xe_ggtt_shift_nodes(tile->mem.ggtt, start); > + if (err) > + xe_gt_sriov_err(gt, "Failed to apply Wa_14028597154 to GGTT %#llx-%#llx (%pe)\n", > + start, start + size - 1, ERR_PTR(err)); > > - return 0; > + return err; > } > > static int vf_get_lmem_info(struct xe_gt *gt) --------------Od1W3C8ec0Il9dD4IqWUGh0L Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2026-12-03 19:14, Piórkowski, Piotr wrote:
From: Varun Gupta <varun.gupta@intel.com>

The PF assigns the low-4MB GGTT PTEs matching a VF GGTT range to the VF
together with the range, but it is the VF that has to back them with its
own dummy page for Wa_14028597154.

Compound sentence, which uses terms VF and PF meaning drivers. Maybe:

"The Wa_14028597154 defines special driver behavior for low-4MB GGTT PTEs.

The PF driver assigns these low-4MB GGTT PTEs to VFs, in ranges matching
GGTT provisioning of each VF. Then, driver for each VF has to back them
with its own dummy page, as that area needs to be writeable from GFX HW."

When the WA is active, map the VF dummy page into the low-4MB PTEs
matching the VF GGTT range at probe, on resume and in
xe_ggtt_shift_nodes(), even if the GGTT base did not change, as these
PTEs are not migrated with the VF. Read them back and fail the probe if
they were not written. Also fail the probe if the VF GGTT range is not
4MB aligned, starts below 4MB or is smaller than 8MB. Keep the top 4MB
chunk of the VF GGTT range out of the usable range.

Let xe_ggtt_shift_nodes() return an error, without moving the nodes, so
the post-migration recovery fails if the low-4MB PTEs of the new GGTT
range can't be mapped.

Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Cc: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

The 3 issues marked are with comments and minor function structure change, so as long as that's somewhat addressed:

Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>

---
 drivers/gpu/drm/xe/xe_ggtt.c        | 123 ++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_ggtt.h        |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c |  12 ++-
 3 files changed, 116 insertions(+), 21 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 64b81c0c48a3..4cf0ee203cd9 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -497,10 +497,16 @@ static void ggtt_init_generic(struct xe_ggtt *ggtt, u64 start, u64 size)
 {
 	struct xe_device *xe = tile_to_xe(ggtt->tile);
 
-	if (!IS_SRIOV_PF(xe))
-		ggtt_init_native(ggtt, start, size);
-	else
+	if (IS_SRIOV_PF(xe))
 		ggtt_init_shared(ggtt, start, size);
+	else if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt))
+		/*
+		 * Wa_14028597154: keep the top 4MB chunk of the VF GGTT range
+		 * out of the usable range.
+		 */
+		ggtt_init_ranges(ggtt, start, size, size - SZ_4M, 0);

We have created readability-improving sub-functions for simpler cases, but the more complex case which

require direct comment is inserted without sub-function?

Please create a static function for this as well.

+	else
+		ggtt_init_native(ggtt, start, size);
 
 	xe_tile_info(ggtt->tile, "GGTT usable %#llx-%#llx = %lluK\n",
 		     ggtt->start, ggtt->start + ggtt->size - 1,
@@ -563,6 +569,20 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt)
 	else
 		ggtt->pt_ops = &xelp_pt_ops;
 
+	/*
+	 * Wa_14028597154: the PF provisions VF GGTT ranges 4MB aligned, above
+	 * 4MB and of at least 8MB. Refuse any other range, as the WA can't be
+	 * applied to it.
+	 */
+	if (IS_SRIOV_VF(xe) && ggtt_needs_low_4m_wa(ggtt) &&
+	    (ggtt_start < SZ_4M || ggtt_size < SZ_8M ||
+	     !IS_ALIGNED(ggtt_start | ggtt_size, SZ_4M))) {
+		xe_log_err_fatal(ggtt->tile, GGTT, -ERANGE,
+				 "GGTT %#llx-%#llx unusable for Wa_14028597154\n",
+				 ggtt_start, ggtt_start + ggtt_size - 1);
+		return -ERANGE;
+	}
+
 	ggtt->wq = alloc_workqueue("xe-ggtt-wq", WQ_MEM_RECLAIM | WQ_PERCPU, 0);
 	if (!ggtt->wq)
 		return -ENOMEM;
@@ -581,6 +601,14 @@ ALLOW_ERROR_INJECTION(xe_ggtt_init_early, ERRNO); /* See xe_pci_probe() */
 static void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
 static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt);
 
+static u64 ggtt_get_low_4m_pte(struct xe_ggtt *ggtt, u64 addr)
+{
+	xe_tile_assert(ggtt->tile, addr >= XE_PAGE_SIZE && addr < SZ_4M);
+	xe_tile_assert(ggtt->tile, !(addr & XE_PTE_MASK));
+
+	return readq(&ggtt->gsm[addr >> XE_PTE_SHIFT]);
+}
+
 /*
  * Return the low-4MB PTEs of the VF chunks in [start, start + size) to the PF
  * dummy page. Chunks not assigned to a VF are left alone, so releasing a PF
@@ -662,8 +690,40 @@ static u64 ggtt_low_4m_hole_start(struct xe_ggtt *ggtt, u64 hole_start)
 	return hole_start + SZ_4M;
 }
 
+/*
+ * Map the VF dummy page into the low-4MB PTEs matching the whole VF GGTT
+ * range from @start. The VF can only modify them if the PF has assigned them
+ * to it, so read them back to verify the mapping.
+ */
+static int ggtt_vf_map_low_4m_locked(struct xe_ggtt *ggtt, u64 start)
+{
+	u64 mask = XE_PAGE_ADDR_MASK(XE_PTE_SHIFT) | XE_PAGE_PRESENT;
+	u64 end = start + ggtt->full_size;
+	u64 va;
+
+	xe_tile_assert(ggtt->tile, IS_SRIOV_VF(tile_to_xe(ggtt->tile)));
+	xe_tile_assert(ggtt->tile, ggtt->low_4m_pte);
+	lockdep_assert_held(&ggtt->lock);
+
+	if (start < SZ_4M || !IS_ALIGNED(start | ggtt->full_size, SZ_4M))
+		return -ERANGE;
+
+	for (va = start; va < end; va += SZ_4M)
+		ggtt_set_low_4m_pte(ggtt, va >> 10, ggtt->low_4m_pte);
+
+	for (va = start; va < end; va += SZ_4M) {
+		u64 pte = ggtt_get_low_4m_pte(ggtt, va >> 10);
+
+		if ((pte & mask) != (ggtt->low_4m_pte & mask))
+			return -EPERM;
+	}
+
+	return 0;
+}
+
 static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 {
+	struct xe_device *xe = tile_to_xe(ggtt->tile);
 	u64 low_start = max_t(u64, ALIGN_DOWN(ggtt->start, SZ_4M) >> 10,
 			      XE_PAGE_SIZE);
 	u64 low_end = min_t(u64,
@@ -676,6 +736,14 @@ static void ggtt_restore_low_4m_locked(struct xe_ggtt *ggtt)
 	if (!ggtt->low_4m_pte)
 		return;
 
+	/* A VF only owns the low-4MB PTEs matching its own GGTT range */
+	if (IS_SRIOV_VF(xe)) {
+		if (ggtt_vf_map_low_4m_locked(ggtt, ggtt->start))
+			xe_tile_err(ggtt->tile,
+				    "Failed to restore low-4MB GGTT PTEs for Wa_14028597154\n");
+		return;
+	}
+
 	for (addr = low_start; addr < low_end; addr += XE_PAGE_SIZE) {
 		if (test_bit(addr >> XE_PTE_SHIFT, ggtt->vf_chunks))
 			continue;
@@ -694,16 +762,9 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
 	struct xe_device *xe = tile_to_xe(tile);
 	u16 pat_index = xe_cache_pat_idx(xe, XE_CACHE_WB);
 	struct xe_bo *bo;
+	int err = 0;
 	u64 pte;
 
-	/*
-	 * TODO: SR-IOV VF support for Wa_14028597154 is deferred to a follow-up
-	 * (requires PF 4MB-aligned VF GGTT provisioning, low-4MB VFID PTE
-	 * assignment, and VF dummy-page mapping).
-	 */
-	if (IS_SRIOV_VF(xe))
-		return 0;
-
 	if (!ggtt_needs_low_4m_wa(ggtt))
 		return 0;
 
@@ -716,7 +777,19 @@ static int ggtt_map_low_4m_wa(struct xe_ggtt *ggtt)
 
 	scoped_guard(mutex, &ggtt->lock) {
 		ggtt->low_4m_pte = pte;
-		ggtt_restore_low_4m_locked(ggtt);
+		if (IS_SRIOV_VF(xe))
+			err = ggtt_vf_map_low_4m_locked(ggtt, ggtt->start);
+		else
+			ggtt_restore_low_4m_locked(ggtt);
+	}
+
+	/* The PF has to assign the low-4MB PTEs together with the VF range */
+	if (err) {
+		xe_log_err_fatal(tile, GGTT, err,
+				 "Low-4MB GGTT range %#llx-%#llx not writable, required by Wa_14028597154\n",
+				 ggtt->start >> 10,
+				 ((ggtt->start + ggtt->full_size) >> 10) - 1);
+		return err;
 	}
 
 	return 0;
@@ -945,23 +1018,41 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt)
  * Ensure that all struct &xe_ggtt_node are moved to the @new_start base address
  * by changing the base offset of the GGTT.
  *
- * This function may be called multiple times during recovery, but if
- * @new_start is unchanged from the current base, it's a noop.
+ * This function may be called multiple times during recovery. If @new_start
+ * is unchanged from the current base, the nodes stay where they are.
+ *
+ * When Wa_14028597154 is applied, the low-4MB PTEs matching the VF GGTT range
+ * are mapped to the VF dummy page again on every call, even if the base is
+ * unchanged, as they are not migrated with the VF.
  *
  * @new_start should be a value between the WOPCM size and #GUC_GGTT_TOP. VFs
  * don't have access to the WOPCM size so we can't test against that.
+ *
+ * Return: 0 on success or a negative error code if @new_start is unusable for
+ * Wa_14028597154 or the low-4MB PTEs can't be mapped.
  */
-void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
+int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start)
 {
+	int err;
+
 	guard(mutex)(&ggtt->lock);
 
-	xe_tile_assert(ggtt->tile, new_start + ggtt->size <= GUC_GGTT_TOP);
+	xe_tile_assert(ggtt->tile, new_start + ggtt->full_size <= GUC_GGTT_TOP);
 #ifdef CONFIG_PCI_IOV
 	xe_tile_assert(ggtt->tile, ggtt->shareable_size == 0);
 #endif
 
+	/* Don't move the nodes to a range unusable for Wa_14028597154 */

This comment is confusing rather than helping. There are no nodes which it mentions.

Maybe:

"The GGTT range which need setting for Wa_14028597154 does not have &xe_ggtt_node assigned as it is outside of space provisioned for the VF. But it needs to be mapped again after every VF migration."

-Tomasz

+	if (ggtt->low_4m_pte) {
+		err = ggtt_vf_map_low_4m_locked(ggtt, new_start);
+		if (err)
+			return err;
+	}
+
 	/* pairs with READ_ONCE in xe_ggtt_node_addr() */
 	WRITE_ONCE(ggtt->start, new_start);
+
+	return 0;
 }
 
 static int ggtt_insert_node_in_range_locked(struct xe_ggtt_node *node, u32 size,
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 7b5221d6f733..22cf19d2b8eb 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -20,7 +20,7 @@ int xe_ggtt_init(struct xe_ggtt *ggtt);
 void xe_ggtt_resume(struct xe_ggtt *ggtt);
 bool xe_ggtt_has_low_4m_wa(struct xe_ggtt *ggtt);
 
-void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
+int xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_base);
 u64 xe_ggtt_start(struct xe_ggtt *ggtt);
 u64 xe_ggtt_size(struct xe_ggtt *ggtt);
 
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 60f1b29358f9..1a5395486327 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -531,12 +531,16 @@ static int vf_get_ggtt_info(struct xe_gt *gt)
 	/*
 	 * This function can be called repeatedly from post migration fixups,
 	 * at which point we inform the GGTT of the new base address.
-	 * xe_ggtt_shift_nodes() may be called multiple times for each migration,
-	 * but will be a noop if the base is unchanged.
+	 * xe_ggtt_shift_nodes() may be called multiple times for each migration.
+	 * The nodes stay in place if the base is unchanged, but the low-4MB PTEs
+	 * of Wa_14028597154 are mapped again, as they are not migrated.
 	 */
-	xe_ggtt_shift_nodes(tile->mem.ggtt, start);
+	err = xe_ggtt_shift_nodes(tile->mem.ggtt, start);
+	if (err)
+		xe_gt_sriov_err(gt, "Failed to apply Wa_14028597154 to GGTT %#llx-%#llx (%pe)\n",
+				start, start + size - 1, ERR_PTR(err));
 
-	return 0;
+	return err;
 }
 
 static int vf_get_lmem_info(struct xe_gt *gt)
--------------Od1W3C8ec0Il9dD4IqWUGh0L--