Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2687454pxu; Mon, 7 Dec 2020 12:52:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz13encmXqgY0kegA/J+LIxI8KtQHDnmAeDeDcvGHqsbFbkEUp86x03Nx/KXeBPR7r2bxAM X-Received: by 2002:aa7:d64d:: with SMTP id v13mr20010766edr.196.1607374333129; Mon, 07 Dec 2020 12:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607374333; cv=none; d=google.com; s=arc-20160816; b=DBLCh226Re+/+UGrwHa10Qiza10jz4C8H94glnvbLXRPY1HJaB8dpFLF2Ac7J/rzXG E2us9vQbaQvGC+lwuNIVvC26tUUd3Qlva73raQ/YL/xhqFI4OXUhAMuFMOC4EqBeyJ4p C+avnFjGp+9kTNebuawslX9DQFUsuZoiGMzbjrLrY2tOzbWfJbuae2YPZ+wPqTuOwfpW 9iTZtpZFiDLM8w0SL0LWD3xq/tNF7IX8hFg7cVosDtbpw/9yLz5HUyExPFuLAdRQMJGu sEw5/ZrOOKbPF3flKrniYqO5JcyqVF+nqk4aYImBYcouqFECL3rlqYBz1vwTM/NbYUee KXMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O8MHc0bkaqtEgfXzX9IcijUfPytzNuGviQ8Ld2feZE0=; b=EC4yhRi5kjZ8plL/oU6edm7zu1fS+y4GK46W7Pxjo02r0mUxnzuIww+TZr4uw3YpaG L2iF0dlGOiszGH2zxXKqy2EUUqu6HAjPgQzDbQ3Qmr5xJSmCJNvFciWHgT79tYWhfOpF c3ynqqtRBvdIq/daRzGjgXeDahoq8lWannwYxH84anIF+WaCOXqp1VdU0fGIi/Xje5l+ YYU4JApS0BYBdeTOQtD0JflYlyLbhEXC6iNJuNiIid91001VKdcf7fbA91zeWMUghACE VawDN51M4vzPhbMSwPylg7Lhdtw+OgA9dEMnOlHUO3Oa2MR9FSvMlsUWgmAH9/KF64E8 vGRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M4EeiBVT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e14si8870592edy.505.2020.12.07.12.51.50; Mon, 07 Dec 2020 12:52:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M4EeiBVT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbgLGUsa (ORCPT + 99 others); Mon, 7 Dec 2020 15:48:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727288AbgLGUs3 (ORCPT ); Mon, 7 Dec 2020 15:48:29 -0500 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77AF1C061793 for ; Mon, 7 Dec 2020 12:47:49 -0800 (PST) Received: by mail-oo1-xc43.google.com with SMTP id g20so1650326oos.9 for ; Mon, 07 Dec 2020 12:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O8MHc0bkaqtEgfXzX9IcijUfPytzNuGviQ8Ld2feZE0=; b=M4EeiBVT5qO3N+RSm+RjkQqRnTwYMaqynM9CGNdvQCKEdeZBKAA0nri72d/1pAWseG xBBzs9W9YLZcz/eOx5KFEarqLQeUNt6UOQSr6Krq4rX3ccqCx1OAZr9D6jU8yKGwwPIH AIGd90FA92blZskIIJmQ99g5DxTCsM9iDGrOLyQ2RuQMUBUuTDJXv+FtaMFlN/Fd13YB rMJGRfv8zNK7ZoDyazGs4B19igxQZ+7Xddz0vzajTYAo8N/SmD4f6g8tPHBgn/DB0T5H EW6fBulqYoGPfvcthAaQjlGP0QE9Z1X2GtMQSCQbBMZgtP3EpeI2QQurCr0FEYy7L3I5 pt9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O8MHc0bkaqtEgfXzX9IcijUfPytzNuGviQ8Ld2feZE0=; b=bRE78aC8qQ7AOWecXy216BQZun0CJAUCcZINERajYGgH+DchaSxC/loP6A4AtmFyF1 9bMWMrYXguxeSWmu+C0a2Vxyvf899AsYqVAves5dvP/CvPAiBfjflK/4ji3XbO2Bdkyi +2xdJoxtw/eLS1OeZFjZpHbTVY0IG0lhpPrZx8ov/U2z8AQbbHEuM1kPbx1+PYZYJjwE rJWsiacwxEagLF5bF7oHpDwO93SpXJx3DlzX379fr9h4AOenJBksPjEAeVDwSRa0N7QK /BV/JUD/mfiDkVI4ANanBmr5++yQRkc15XgTK8sKmehNYq4K5u8wEaioA5PTkgwb/lYR iwmw== X-Gm-Message-State: AOAM530PVh8KYa5U+/RblXFPMvdHfLcSW2Z5n5A9TtkEqBdE4mAGs3aw uQdQwBAN4+sk1cTl2jA57cqjojxSE1x+KHNBCIk= X-Received: by 2002:a4a:330b:: with SMTP id q11mr7063370ooq.90.1607374068633; Mon, 07 Dec 2020 12:47:48 -0800 (PST) MIME-Version: 1.0 References: <20201204081349.1182302-1-arnd@kernel.org> In-Reply-To: <20201204081349.1182302-1-arnd@kernel.org> From: Alex Deucher Date: Mon, 7 Dec 2020 15:47:37 -0500 Message-ID: Subject: Re: [PATCH] drm/amdgpu: make DRM_AMD_DC x86-only again To: Arnd Bergmann Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Nathan Chancellor , Nick Desaulniers , Luben Tuikov , Arnd Bergmann , Mauro Rossi , Randy Dunlap , Roman Li , amd-gfx list , LKML , clang-built-linux , Maling list - DRI developers , Bhawanpreet Lakha , Daniel Kolesa , Timothy Pearson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 4, 2020 at 3:13 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > As the DRM_AMD_DC_DCN3_0 code was x86-only and fails to build on > arm64, merging it into DRM_AMD_DC means that the top-level symbol > is now x86-only as well. > > Compilation fails on arm64 with clang-12 with > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3641:6: error: stack frame size of 2416 bytes in function 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than=] > void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) > > I tried to see if the stack usage can be reduced, but this is code > that is described as "This file is gcc-parsable HW gospel, coming > straight from HW engineers." and is written in a way that is inherently > nonportable and not meant to be understood by humans. > > There are probably no non-x86 users of this code, so simplify > the dependency list accordingly. + Daniel, Timothy Others contributed code to enable this on PPC64 and ARM64. Unfortunately, we don't have these platforms to test with within AMD. Does PPC64 have the same stack limitations as ARM64? Harry, Leo, can you take a look at fixing the stack usage? Thanks, Alex > > Fixes: 20f2ffe50472 ("drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3)") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/amd/display/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index 797b5d4b43e5..54aa50d4deba 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -6,7 +6,7 @@ config DRM_AMD_DC > bool "AMD DC - Enable new display engine" > default y > select SND_HDA_COMPONENT if SND_HDA_CORE > - select DRM_AMD_DC_DCN if (X86 || PPC64 || (ARM64 && KERNEL_MODE_NEON)) && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) > + select DRM_AMD_DC_DCN if X86 && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) > help > Choose this option if you want to use the new display engine > support for AMDGPU. This adds required support for Vega and > -- > 2.27.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx