From patchwork Fri Nov 25 12:07:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 25960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3966668wrr; Fri, 25 Nov 2022 04:11:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf63ewBMLsFKVG7NCQsGwnA8tIzBotSfL3HricBsxs8wslmj1Hnnp1P+asvYQEecYkpTl/qB X-Received: by 2002:a17:906:3396:b0:7b9:78c4:24dc with SMTP id v22-20020a170906339600b007b978c424dcmr11603283eja.754.1669378304668; Fri, 25 Nov 2022 04:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669378304; cv=none; d=google.com; s=arc-20160816; b=qj3DoBLqC2gSP3Qn1DcjC8LiB6L1RXI9u1i3S3Y3LnKt+tg+8AInIPT7s8KiwYNNga t3nFm0VwwZlGRijWYjtKs9pnD/lcjeTdMTyed5qm9ivZgQsxcVag+5HMyIrV8XYVPAQE AFd0qc25se6167zkwDTY5ZF0rKbQC5Oyrrz0hrRzakVUNULiSUQT43wDbZumwF0MkCcZ d0azvq7AU7ka6ZoGniiBoKVrXATmJvxj2OhxtRHxwV24WL6EDHDvNmxFB8X9WPM8yHuq sz6sKCB1XcOf1CQCwl2Kxj+uQSVXgogoxRkw31TB+DK67H3pgLfbfgKkSLmygeVfkDI7 hEqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E4z0UbLMTwbQv9+jJqdD9CLpAzj1ONnRgRoVCU+zOfI=; b=pbSOTFfChC+DPizq7ZVUunGAJdooCHW2ghoU4TWuleg278PPVh+v1gh4z1akxHVl3i ZNZcokkLpoYOYD2xZBBRb6+VRzi3iYnYLQES/+xyddzq92DM+yZinuV+Wlddfp+steRJ Xa/sqgtehlkeCutoli7WjFl/N8DgKW2koTfH3y6F/oIikYyF4y8k7UVVpaUo8X4u1Zr2 jeDLmOfUGHlmyCOsIe7SFUmsg/voQuIXWxJxznfXU0BizOVbNo255lq4ySrdz3HMPHer WN7+nJUJEo2LhUFSEheiSHh+lQ/VKDFqYnYLP0bpv8wdaeN91FESju00jRdz+KLlQZan qkIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tlQQJPME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a1709064ac100b00778d193ca81si2332217ejt.550.2022.11.25.04.11.19; Fri, 25 Nov 2022 04:11:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tlQQJPME; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229672AbiKYMIJ (ORCPT + 99 others); Fri, 25 Nov 2022 07:08:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiKYMIG (ORCPT ); Fri, 25 Nov 2022 07:08:06 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A99B22B1C for ; Fri, 25 Nov 2022 04:08:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3A399B82A7F for ; Fri, 25 Nov 2022 12:08:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9E25C43470; Fri, 25 Nov 2022 12:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669378083; bh=TwhSqRrup21U4CF27sTO/M6pc2iifKvlpLvARqgBso8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tlQQJPMETl9fmBXDukSJVB/J+xVITuSX3gm/HkozT6+4sh82miMixQPUN9aNwWv8a x2IpaZ4alkUFLFbpXFfXSzXE8h7iq/k7KM06T0Kd2wceVVmw7dmBU1+dqjTiNfuRZf hLuCsI5j4Y68+NnEkXgpFBAzIMOs6je7pW1J63960/clm/pxtYbB1rPQtVFFKEAsF6 /P/IezXyogA9f4OhyHHtNPYA9yhh7J4mI5GKUxWZ9Hc1uZBvjYph0YWrKgpFVGTJm0 Duyejm8EeY8NbCxdgFHzQMW84yHjwwQVketQGnuXTzn4vzaV7tOMeOGQCmh61YPzaj 8Lswuge7nEUNA== From: Lee Jones To: lee@kernel.org, arnd@arndb.de, akpm@linux-foundation.org, nathan@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, ndesaulniers@google.com, trix@redhat.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 1/2] drm/amdgpu: Temporarily disable broken Clang builds due to blown stack-frame Date: Fri, 25 Nov 2022 12:07:49 +0000 Message-Id: <20221125120750.3537134-2-lee@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221125120750.3537134-1-lee@kernel.org> References: <20221125120750.3537134-1-lee@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750470025274192112?= X-GMAIL-MSGID: =?utf-8?q?1750470025274192112?= calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64) architectures built with Clang (all released versions), whereby the stack frame gets blown up to well over 5k. This would cause an immediate kernel panic on most architectures. We'll revert this when the following bug report has been resolved: https://github.com/llvm/llvm-project/issues/41896. Suggested-by: Arnd Bergmann Signed-off-by: Lee Jones Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor --- drivers/gpu/drm/amd/display/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index 6925e0280dbe6..f4f3d2665a6b2 100644 --- a/drivers/gpu/drm/amd/display/Kconfig +++ b/drivers/gpu/drm/amd/display/Kconfig @@ -5,6 +5,7 @@ menu "Display Engine Configuration" config DRM_AMD_DC bool "AMD DC - Enable new display engine" default y + depends on BROKEN || !CC_IS_CLANG || X86_64 || SPARC64 || ARM64 select SND_HDA_COMPONENT if SND_HDA_CORE select DRM_AMD_DC_DCN if (X86 || PPC_LONG_DOUBLE_128) help @@ -12,6 +13,12 @@ config DRM_AMD_DC support for AMDGPU. This adds required support for Vega and Raven ASICs. + calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64) + architectures built with Clang (all released versions), whereby the stack + frame gets blown up to well over 5k. This would cause an immediate kernel + panic on most architectures. We'll revert this when the following bug report + has been resolved: https://github.com/llvm/llvm-project/issues/41896. + config DRM_AMD_DC_DCN def_bool n help From patchwork Fri Nov 25 12:07:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 25961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3967288wrr; Fri, 25 Nov 2022 04:12:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vcozocEyTxeTj6BSPGZpjJz0IpCke+3UuBkJkWifueyEWVvrZ8TAMCWC7ANgsSGAhdpB7 X-Received: by 2002:a17:906:16d4:b0:7b9:f0fd:47b1 with SMTP id t20-20020a17090616d400b007b9f0fd47b1mr10359124ejd.462.1669378352996; Fri, 25 Nov 2022 04:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669378352; cv=none; d=google.com; s=arc-20160816; b=EREXJGiCeCSH9gdzAKkLRWgv4LkvYE7apSWbX9kJIfP8zH3uYX/LgjrAew2AEmjK/P 6l8ECBqXPvDuq/nLVILhw+SUR9nEKZnmAPNsEWdMxzcuHMoazekLJvcDZZBmVFOLKwx9 WvmZhcD2x8oDiQe5owOj4Dt5dmNfY0AD7/3PtVOfjE09H7JDRwYkA8ry5O1DRLI7BNLJ Ri0k+P8+1nQAdWyHF9BC4fpgDWO0v8oG5lOjh3KwE5p6Bh6Sfe8ce9fDpoYhFj6t2P/Z fQss8q3VjDom5TQcPM0Si7rMYwGwcKNzl0vEX095slxHjQyAyB9Y5XqE+NNfB32SJp4w 9j/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t9NyayfhF7vmKX+RAPAkM5IR3/X023xDEyGNkDR81Us=; b=xAJkNcZyEFTz5Xu89Elz+mL1Ge2nfG1jGinGWqyqFkoADRCxIvgs+6KBnUSfJf0B+k OqbKMsWjmKLURUtxs4CaE4JZ94uBd9dsciqmObZHoRXYbWE4RcrCl4pujkVB57w6pZ2X Jj2l3WpdJLTBoAK4mlpxyj6ZFUpc5bblYIRGXM5Rsua4DyrVhzCbABl5oHhjs5RhVy9x kFhrlgKfjCLat911HwG5Oh7WJg2LoC7kxzvHE3okd1ynLZYoR3INK/NJMGLmUF6JzZk6 rCGoYKbWaCQXed9ARNM38BE3Tsn/yur9k0H77FGd5J0mfbyk9X1ANclGriPum/j00gtV 7x2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AKro9j5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a1709063e5200b0078bdbb52361si2386289eji.209.2022.11.25.04.12.08; Fri, 25 Nov 2022 04:12:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AKro9j5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiKYMIP (ORCPT + 99 others); Fri, 25 Nov 2022 07:08:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiKYMII (ORCPT ); Fri, 25 Nov 2022 07:08:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E0812315A for ; Fri, 25 Nov 2022 04:08:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 282A6622AA for ; Fri, 25 Nov 2022 12:08:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74F04C433C1; Fri, 25 Nov 2022 12:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669378087; bh=gevkG6TfDd9z8LOLiUxeJy2lRLn2rHcp1JIJZyU3WcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AKro9j5bc3m00YbU0C47HLUKAGS90KVKcmKx+1ecGTLz37DxwZyrNZ7fwQfp5Fj8a CiapE/0vqwCbVzyT6HhmpVX/XBKeejO6lK9QXxlStLS1dng1RuhTy8Gv9LR40rZ0jI roICL0dzAEKCllb1GT6QZQ+AtTu+w3R+7rdxjgCAE1deHnnnSu+Z/h7tZB73K+FSld XRk6ZlECfR0pF1ev+J1frrZh1lxzN9kmR+Fjv8dEZfZq6nOsnGmetTUu7q/Fi/QHMM YzPWHY3w9e6RdCRmPk8euVAu7uXqWYeOEwwkhpP0qaJK3hxNzjlkv3EduQ+nlzeo2z eWiR5vohumuvw== From: Lee Jones To: lee@kernel.org, arnd@arndb.de, akpm@linux-foundation.org, nathan@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, ndesaulniers@google.com, trix@redhat.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 2/2] Kconfig.debug: Provide a little extra FRAME_WARN leeway when KASAN is enabled Date: Fri, 25 Nov 2022 12:07:50 +0000 Message-Id: <20221125120750.3537134-3-lee@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221125120750.3537134-1-lee@kernel.org> References: <20221125120750.3537134-1-lee@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750470075981668953?= X-GMAIL-MSGID: =?utf-8?q?1750470075981668953?= When enabled, KASAN enlarges function's stack-frames. Pushing quite a few over the current threshold. This can mainly be seen on 32-bit architectures where the present limit (when !GCC) is a lowly 1024-Bytes. Signed-off-by: Lee Jones Reviewed-by: Arnd Bergmann Reviewed-by: Nathan Chancellor --- lib/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c3c0b077ade33..82d475168db95 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -399,6 +399,7 @@ config FRAME_WARN default 2048 if GCC_PLUGIN_LATENT_ENTROPY default 2048 if PARISC default 1536 if (!64BIT && XTENSA) + default 1280 if KASAN && !64BIT default 1024 if !64BIT default 2048 if 64BIT help