From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.web.de (mout.web.de [217.72.192.78]) (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 D19B07485 for ; Sun, 16 Mar 2025 20:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742155604; cv=none; b=FejNX7NRl17szva3Wj+VW370+qhDCHpxNiPxCcSZIX+pxRVsrwgZH7HCEfaSN78uOt2SS4lyPEyRPY3D35GhODWIetxtHtbRGmyxQpLfcdAello+unE2nMEWZ7q4tC3E/hVVJrNNXN9MC00Xc+gfvqgqysM0ksxQC9TDbWM0X7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742155604; c=relaxed/simple; bh=lp+qKfgxlgHOzgYTq5zbCh56NTXhIwqTfeZc6NclMD0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=DXGve/MvGBqXgOHnCmrDzD6GxJkW6Hf5cY5DDHlLVhV6ULvqFK358BcWV8gn/Bn2uQfU9nv/7Lf6bvMs3+K10zmbyHjm55VEzVtpV//etNJsQVJ+JQfaWbwUb+hKo6/UWWOy/Y7ZDduh6s/8Oq0IhjAKsp+0rEOqWyGVYaXuLPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=spasswolf@web.de header.b=YyoHq2+6; arc=none smtp.client-ip=217.72.192.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=spasswolf@web.de header.b="YyoHq2+6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1742155569; x=1742760369; i=spasswolf@web.de; bh=8/Kj3I2BsLN/9FJ15gJzCZJpW8LAFDEU+8nDaf03+30=; h=X-UI-Sender-Class:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=YyoHq2+6YhxGfNyiwZrf3vupDobiy1zBJEMoSctxEbdO2XWI+UJZk3qSf9idfw7e WLwRTYOHwx6DWA7EOVRFda4Zhk8Pzd25fIcj+NaMF0RahMMG6NCFGHm2smjKOcZy1 +bstnaM5NAiTJSM1sEQPIg8w1P5CELvinf2BiaOqW8aQPQLe95y39v5BGa92P89Ih EbYa71sCaBQl27mU8TdLKSxKvKOUtRA/4pQJimehSnPW0x/jvFDUjJU0IWyLA0wMm maMhyi6mvcO+zxofuOVmGXfB1QAR0yCPAbcNEi/Is4hW69ImV3Toh3wfpBHrYdnMR HsS2/M2I5MR09pAKNg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.0.101] ([95.223.134.88]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MF2kU-1u0ToP2Ney-00FgaU; Sun, 16 Mar 2025 21:06:09 +0100 Message-ID: <6b0c9a4d840757ee54b141ed26f4e81c3e4eaacf.camel@web.de> Subject: Re: commit 7ffb791423c7 breaks steam game From: Bert Karwatzki To: Alex Deucher , Balbir Singh Cc: Ingo Molnar , Kees Cook , Bjorn Helgaas , Linus Torvalds , Peter Zijlstra , Andy Lutomirski , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, spasswolf@web.de Date: Sun, 16 Mar 2025 21:06:08 +0100 In-Reply-To: <9be36dfab79b17e108f71d51a6ebf39073e110c6.camel@web.de> References: <20250310112206.4168-1-spasswolf@web.de> <951f9d13-72e4-41c3-9ace-8639e2a9485d@nvidia.com> <09131c563332c892284ec7fb4ce706996131db8c.camel@web.de> <9a5df5627d3d72b2a97f501dfb7d944cc1e9920f.camel@web.de> <414f4deb8c7670a159854006b0c410ce05a6049e.camel@web.de> <12d950ee-4152-4ad6-b93e-7c5b75804b1a@nvidia.com> <705e95cec3dc5181ca2aa73722e6b84f63f3e91d.camel@web.de> <20b5823e-247a-456a-bb55-d50f212a9f5a@nvidia.com> <146277bb0ecbb392d490683c424b8ae0dfa82838.camel@web.de> <7866593f-0322-4fb3-9729-82366940fc85@nvidia.com> <5d34bfc5109b8d104fd4f8550dd17945344f9d07.camel@web.de> <551b9797-20d6-4bfe-b54c-84dd7aae7794@nvidia.com> <9be36dfab79b17e108f71d51a6ebf39073e110c6.camel@web.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.55.3-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2WxrHgAC6bEVnLbwBH6tFrQmLNqoXQheJCWpa4ZuAV8+PHMjCek U5iuuKMB7muZ/40tSSLu4wT5kJrA1CJ6B8+bPXU44R3adxIzMDlj+CNNqGzFXN/gxuYyCai oHIzEHRhFYSD+wVghIdbkWxW+Aljua5M7AGHp/6pQGCyAg5JEB/izuuIjEWcOPA5333XyET cwDLYkks5VtXErG0jBFMw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:zdDeXVTiWOU=;eetKsx3aJp8UwKkepAWLWHL/jnk 2iuJ4erMcPlAlVbWuW/tXdMVrkJDSgFUAKmO78CqWk3aBwm7TzWSu3+CDKY4STw1nydTroMYW 3Zhwzx4jNl1+yAHQ/s7cFhIg+FGXcZCXcG2A0ysN9sbnQpRa7mlThNACJbcyp3WcqJqCsA8kH gPojBN0Tov/6Hw4LEFbqrAE7mW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95Ac3vX9UuOpxSM2+qTYVhOD9NG8pXeTGETeHslNORxzpUCWm+YS/JMzffXR LWObb1h4I5guAQkXXWFf/+6OpH0LaXIgLfqbnD/ur3rV2ZFDV5dwonrJ+znO+3okX9BI5O4Fs FFwTtLbbzoxHuDg2aEa7SgOn6gnbR68D0+wdgre588NyWiVJOME7IHnXhaXJCDfyOZJaQiIfR KeH1O4Q== Am Sonntag, dem 16.03.2025 um 14:09 +0100 schrieb Bert Karwatzki: > This is related to the admgpu.gttsize. My laptop has the maximum amount= =C2=A0 > of memory (64G) and usually gttsize is half of main memory size. I just= =C2=A0 > tested with cmdline=3D"nokaslr amdgpi.gttsize=3D2048" and the problem do= es=C2=A0 > not occur. So I did some more testing with varying gttsize and got this > for the built-in GPU > > 08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI= ] > Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c5) > > (nokaslr is always enabeld) > gttssize input behaviour > 2048 GOOD > 2064 GOOD > 2080 SEMIBAD (i.e. noticeable input lag but not as bad as below) > 3072 BAD > 4096 BAD > 8192 BAD > 16384 BAD > > As the build-in GPU has ~512 VRAM there seems to be problems when gttsiz= e > > 4*VRAM so I tested for the discrete GPU with 8G of VRAM > gttsize input behaviour > 49152 GOOD > 64000 GOOD > > So for the discrete GPU increasing gttsize does no reproduce the bug. > > Bert Karwatzki So I was thinking the reason the bug does not show on the discrete GPU is = that it has too much VRAM so the GTT memory is not used in this case. In order to test this I booted with amdgpu.vramlimit=3D512. Unfortunately initialisation fails in this case: [ T291] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init of IP bloc= k failed -22 But using the parameter amdgpu.vramlimit fixes the problem for the built-i= n GPU, even when the value is larger than the VRAM of the builtin-GPU (i.e. nokas= lr amdgpu.vramlimit=3D4096 does not give the buggy behaviour) Bert Karwatzki