Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp905930lqs; Fri, 14 Jun 2024 08:56:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBGUEC98c0ukJjiofB7TvMRJYtCOOIONcuK3sa6ga2a/EoMwHgNCeMGZ/LiX3Uyyasgd364EkQTn82FzybTP02YDMhK+tSNERJ+ziVqg== X-Google-Smtp-Source: AGHT+IF3Mki0bzWmUgUx0Iz+oVjVwdI35Wa7pKFnHsn7Y7SQVcvyr0mKwpgIFmLsFPj4OQUBjiQA X-Received: by 2002:a05:6214:238e:b0:6b2:b557:c551 with SMTP id 6a1803df08f44-6b2b557c6bemr19718416d6.27.1718380571625; Fri, 14 Jun 2024 08:56:11 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b28ed0si41217526d6.316.2024.06.14.08.56.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LT6u8QFS; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-215189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A15F1C20F57 for ; Fri, 14 Jun 2024 15:56:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DC3016C691; Fri, 14 Jun 2024 15:56:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="LT6u8QFS" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2072.outbound.protection.outlook.com [40.107.93.72]) (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 3A0BA4EB55 for ; Fri, 14 Jun 2024 15:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.72 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718380564; cv=fail; b=NDeVG2e2JRIYYNFC2EtqVhZg9aOViVgYayG+MmA0c14fKggIAr7k+VkjbXAutdauJRlm+Lv5qnNJ3LdzFJjuZqHscOmCm+YitNGQX+x2bO5CAsUYu0slfn808heKCfNABb0X8dOw22deVLg5C7EHgRG9es5DLxjLCw4F5Iv9iAI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718380564; c=relaxed/simple; bh=VbhHlAwaThUdrOp7MOOLuuh2XVC5IGEMnkQJiHXRcxY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=byNEgFiu1T7r4Gl4qsAXGoAK5V1nX7a6ft0WriD38Oy0sl4dgPqXC4f/6YS/1Zvpizt2rBJGi1+adSR7ZrJLAwUoScLAWQp+j07T+0e5YHOa3a+VrfDWMC9+rZB7+XwjPz9Xh5QVoZUVu/aBxKMMNpJvjI/YQNpRxHKJTZNumM4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=LT6u8QFS; arc=fail smtp.client-ip=40.107.93.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AvesrJbfcEQjagUHHx/wrIBT+ZIo0p23JJxJ5/0FkAmNbfTCgIbeOUSkQi/7DLN9q+E/+l0GcQyrGQFDu1ubyZISINZfkk4Pb/KhpFjUE6mUXkVNxPSNWjXuq8gS4jnRvjDODU+9oBDuWyAev6CXC/00LMgST0FYpe3RS/Kz2RS9Q8KH9xHbQZynHGAnBcYQUDu7aelhzPr6i/dzT7ticCNe9f4lZ6as5mVVkldgUQvKarBy3t/oDbJh//+7p7XZiO5rOLjcvs7TMiuGpy0rJ+5xtM3mILBnR5VSO+wLxFFmJ7yQhFGD1XMRbmQ68oQ72n2WXfuu//ovjCMS890XZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mdQknaGDFOMocVoe4+tnoaeHFsAs1eOZOLLCLTBovBQ=; b=ZRHUY8itJQBExmOKiWaRUl+uiS4FaS4xseJJDgESwXAjEM7xLu+mpNZPPYATp6RgVYPnjmweRNA3LnDOak/LAzkRrtGGaXQsDZZOMJDGoYcqyq9PXh3WIZ+PSevbrydlGbVPJpKnOJuMyboGrFa3uVszjie3h2w+lKVpcEYeppina6KgDO5lyJDm+RjjPysmObn7w1Y13D96vInRqCqz1ROMXR5xRdra6bf5u6Vqveez/JgC6h8ElzHyhY7NSQefwDoPWffLIn8EZDbDoWGv1L83LGpBCgYthLS32jLZ/ultLX/r+bh7lveVqzMsUrSIM2ZXMVqBoK/nP1OE5FlIHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mdQknaGDFOMocVoe4+tnoaeHFsAs1eOZOLLCLTBovBQ=; b=LT6u8QFSmJqcK2WMvyvMYHe8oOVs7mTu7Td5iTfEO+QaGhZ+J6FCAF6V0RccSPw/hmbbN6FWC4vdGat9tq7FLA9KdtrdYLF1Yk03eli/3fWBv8q7SPJvBbv3IAsUnvb5BJ6fy0XHNL4f2bsJ3+rtokSlUsGO/Y1PxcThJ1RDjyE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by CY8PR12MB7489.namprd12.prod.outlook.com (2603:10b6:930:90::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.26; Fri, 14 Jun 2024 15:56:00 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::1c2f:5c82:2d9c:6062]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::1c2f:5c82:2d9c:6062%7]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 15:56:00 +0000 Message-ID: Date: Fri, 14 Jun 2024 11:55:56 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/amd/display: Increase frame-larger-than warning limit To: Nathan Chancellor , Palmer Dabbelt Cc: alexander.deucher@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, Qingqing.Zhuo@amd.com, hamza.mahfooz@amd.com, chenhuacai@kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20240603222948.GB1802995@thelio-3990X> <20240613222225.GA1849801@thelio-3990X> Content-Language: en-US From: Harry Wentland In-Reply-To: <20240613222225.GA1849801@thelio-3990X> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQZPR01CA0017.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:85::13) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5427:EE_|CY8PR12MB7489:EE_ X-MS-Office365-Filtering-Correlation-Id: f71cdeeb-e9be-4067-53b7-08dc8c8a7caa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|1800799021|376011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?L2x5QndPaGVMVUlRdG4rL3BGNUozY1JFT0VzeVV5RXdveGZpR1gyNUNnVXlP?= =?utf-8?B?UXhCSGhGR0kxRjNtZW51WENqd00vdzg2VXR4S2VySnlSZFRyQUJOV0Jpb3A5?= =?utf-8?B?V3hsbHRhemtzSGFjZDlrWTNpcFBzeFhWWHg3a3lsYkx0Rm5uYlVvUEk0cVhj?= =?utf-8?B?OGpBYS9VeG1BUEQycUJNZ3B6d3JzS0xLd2xnUUEwbTVWRmhaNmx3aCtmaGRs?= =?utf-8?B?QTVLOGpqRjBaaWRvVUR1b0gySFJseVQ0WlZTUzl6OG5hdys1VHVlc2RxckF1?= =?utf-8?B?MjM0WGVKTHFnTTBjWGR6NExPSTA5WTFEK1RQOTV0Y215MHhDYlh6YkRvaVZW?= =?ut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OXkwQk5jOG5y?= =?utf-8?B?UEtTeHZqMEhaODhvamFMQUgyNU1NYVYwTHNHeCtGNi9FbUkrMitCTk4vTGpk?= =?utf-8?B?eG8xZkVvMG5rcXZyaUpKZ3VITjhROTNEdkNMT1F4N1Zyc253dEo5cVYxK0NO?= =?utf-8?B?bWQreFhTUWVkemsyVTNqRE5ZM05PazRvclRUNG9BU1hLUDd3aEJ3M25iVFFE?= =?utf-8?B?SUJMV2EvZHNDMndPdkhjSnF4SFBtOS8raHZPQ3VKVWlIaUNxS3EzenE5dHkx?= =?utf-8?B?T1lObjB6dGJCMkV3d2YwRGNNaWx4SWZDQlFNUk1lWkVybXkyalhUem1ZZXR3?= =?utf-8?B?MHlIREViV0ZkMW1DSEk1aUNOWDJxc3YvbVlwWkNNOUk0NTdNZG9jZXZTZEJy?= =?utf-8?B?NWVvUW11aG41TDREbWRFU0g2Z3YvSTBna1dhdDEwTDF4bUFrT2JFNVNUWURD?= =?utf-8?B?d29XZXo1dmlmQWVudEZuZzd0ZDVRNTVPR1pkVWNMUWcycEo5amxDV2lnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(1800799021)(376011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M3dRK3p2YUxpVDFVT29sR1BwSHBVUldJWStnMHZSYlZ4cm1vbFpTWk4xaU9W?= =?utf-8?B?azBCdUtxQzBwNVJIU3dPL3lCbEpKUVdTR3ZTeXQxVjdha3B4ZWg4U0szVGVx?= =?utf-8?B?THNMOGN6b05DdkIyN0IyVUdtamtib1RsMHdvK2lhRWpLenlCeTBzdmFVbk1Z?= =?utf-8?B?c01xWmJJSmFoSlJSTEhNZnhRT1dtK2VTK0hKREZuOXJwenEwOC8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N0LzVWRDhDUExIV1hWZ1hHN1NwMjE5?= =?utf-8?B?K0pVM2owazRDUVJlTXIvM2RORlFWRXlKaU4xREo3UFlmR2gzcjl5TndtRExL?= =?utf-8?Q?aMQS9syDaMlHtWEhq1XDzUEWL?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f71cdeeb-e9be-4067-53b7-08dc8c8a7caa X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 15:56:00.7065 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1WtEYdh4UtakF4v/RXGr1UyYnjvu8eY3aaGiYy1uCVpzoH5IgWLArifI4k4siHu7wdrIvYlAXjoDIo1VehnW2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7489 On 2024-06-13 18:22, Nathan Chancellor wrote: > Hi Palmer (and AMD folks), > > On Tue, Jun 04, 2024 at 09:04:23AM -0700, Palmer Dabbelt wrote: >> On Mon, 03 Jun 2024 15:29:48 PDT (-0700), nathan@kernel.org wrote: >>> On Thu, May 30, 2024 at 07:57:42AM -0700, Palmer Dabbelt wrote: >>>> From: Palmer Dabbelt >>>> >>>> I get a handful of build errors along the lines of >>>> >>>> linux/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:58:13: error: stack frame size (2352) exceeds limit (2048) in 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation' [-Werror,-Wframe-larger-than] >>>> static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation( >>>> ^ >>>> linux/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:1724:6: error: stack frame size (2096) exceeds limit (2048) in 'dml32_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] >>>> void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) >>>> ^ >>> >>> Judging from the message, this is clang/LLVM? What version? >> >> Yes, LLVM. Looks like I'm on 16.0.6. Probably time for an update, so I'll >> give it a shot. > > FWIW, I can reproduce this with tip of tree, I was just curious in case > that ended up mattering. > >>> I assume >>> this showed up in 6.10-rc1 because of commit 77acc6b55ae4 ("riscv: add >>> support for kernel-mode FPU"), which allows this driver to be built for >>> RISC-V. >> >> Seems reasonable. This didn't show up until post-merge, not 100% sure why. >> I didn't really dig any farther. > > Perhaps you fast forwarded your tree to include that commit? > >>> Is this allmodconfig or some other configuration? >> >> IIRC both "allmodconfig" and "allyesconfig" show it, but I don't have a >> build tree sitting around to be 100% sure. > > Yeah, allmodconfig triggers it. > > I was able to come up with a "trivial" reproducer using cvise (attached > to this mail if you are curious) that has worse stack usage by a rough > factor of 2: > > $ clang --target=riscv64-linux-gnu -O2 -Wall -Wframe-larger-than=512 -c -o /dev/null display_mode_vba_32.i > display_mode_vba_32.i:598:6: warning: stack frame size (1264) exceeds limit (512) in 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation' [-Wframe-larger-than] > 598 | void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() { > | ^ > 1 warning generated. > > $ riscv64-linux-gcc -O2 -Wall -Wframe-larger-than=512 -c -o /dev/null display_mode_vba_32.i > display_mode_vba_32.i: In function 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation': > display_mode_vba_32.i:1729:1: warning: the frame size of 528 bytes is larger than 512 bytes [-Wframe-larger-than=] > 1729 | } > | ^ > > I have not done too much further investigation but this is almost > certainly the same issue that has come up before [1][2] with the AMD > display code using functions with a large number of parameters, such > that they have to passed on the stack, coupled with inlining (if I > remember correctly, LLVM gives more of an inlining discount the less a > function is used in a file). > > While clang does poorly with that code, I am not interested in > continuing to fix this code new hardware revision after new hardware > revision. We could just avoid this code like we do for arm64 for a > similar reason: > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index 5fcd4f778dc3..64df713df878 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -8,7 +8,7 @@ config DRM_AMD_DC > depends on BROKEN || !CC_IS_CLANG || ARM64 || RISCV || SPARC64 || X86_64 > select SND_HDA_COMPONENT if SND_HDA_CORE > # !CC_IS_CLANG: https://github.com/ClangBuiltLinux/linux/issues/1752 > - select DRM_AMD_DC_FP if ARCH_HAS_KERNEL_FPU_SUPPORT && (!ARM64 || !CC_IS_CLANG) > + select DRM_AMD_DC_FP if ARCH_HAS_KERNEL_FPU_SUPPORT && (!(ARM64 || RISCV) || !CC_IS_CLANG) > help > Choose this option if you want to use the new display engine > support for AMDGPU. This adds required support for Vega and > This makes sense to me. I'll be happy to provide an RB if you send a patch. Harry > [1]: https://lore.kernel.org/20231019205117.GA839902@dev-arch.thelio-3990X/ > [2]: https://lore.kernel.org/20220830203409.3491379-1-nathan@kernel.org/ > > Cheers, > Nathan