Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp459795imi; Fri, 22 Jul 2022 02:52:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sWNTYZxg61L5bdRQC2WkkENPGz55/jAk1cYDA0urmRAqlaQDXZLE59bD5U4TwxYf+LxzOT X-Received: by 2002:a17:907:2ceb:b0:72e:dd6c:1b96 with SMTP id hz11-20020a1709072ceb00b0072edd6c1b96mr2403815ejc.503.1658483540449; Fri, 22 Jul 2022 02:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658483540; cv=none; d=google.com; s=arc-20160816; b=wbRA05+iCRd7Af3PvmVnDn7TWmljOS1MTl+R6zCL0WklJEsMwvAYsMv2xDTeYWWdVt qxpM4fXXyNcCsmJtP8u+D189YJ8cAtK1BAd1x84EFM+G5GKWwhvlAGJuA3/BmC/e03mH F2nwliitw86CrVws9VnyCNWq4ZzdtOGkPy2mXkry/VU/pYO+I5nTsxfRcRFAhrfXKNCz dxkgc03Gz4bVNNAzchyMuMBt6funl0+/exOCHk3F4iMh52f7ydMeIKfAeE82cKQmlMfh 934SR5i6Ux5t9w5+2shoQgdMAPtq5o83URet/HWMdTA+rgZy0xSC7/SZUyo9swHQUbK7 RjSw== 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 :message-id:date:subject:cc:to:from; bh=cxqbCxY1a2AgXmnOiEYnAghFtPs7H2snNjSZx5boLd0=; b=qv7tSysvmHYXEA101xB8nyPKKSyhrZucMj8ItWtrCNVz7HYvW5mErJ6RXuqdGOOgpd laMsveldjIiPfJtqKxMYmtbZUjIr/c26kDL2/zKT/FGxVLXUI9kKtor94mGRLL9Piqbh 1EL+ADYDCDL0usFxALZKzoCcMtQVcVo+3ryQIzaQ9bSgBmsE12Ib54Ai60nMuVz2IM2T xZeOjzunwImZ/ZdD5ZS6HAGxjqKweH1IQLUdiSr6QNz7sEC2koBn2z9Exmd0mDQYg4cL IuAgx5ny+SSTp2t47ipPOhMEK2HhnRViiSfwfu2VGq+eEmOt5CSb5OJ1rGNSTOF8nLR3 hRSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa32-20020a17090786a000b0072b6e6b48bbsi1068869ejc.546.2022.07.22.02.51.55; Fri, 22 Jul 2022 02:52:20 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234984AbiGVI2b (ORCPT + 99 others); Fri, 22 Jul 2022 04:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbiGVI23 (ORCPT ); Fri, 22 Jul 2022 04:28:29 -0400 X-Greylist: delayed 424 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 22 Jul 2022 01:28:29 PDT Received: from redcrew.org (redcrew.org [37.157.195.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E0CF9E793 for ; Fri, 22 Jul 2022 01:28:29 -0700 (PDT) Received: from server.danny.cz (85-71-161-19.rce.o2.cz [85.71.161.19]) by redcrew.org (Postfix) with ESMTP id 8CBCFA0C; Fri, 22 Jul 2022 10:21:23 +0200 (CEST) Received: from talos.danny.cz (unknown [IPv6:2001:470:5c11:160:47df:83f6:718e:218]) by server.danny.cz (Postfix) with ESMTP id C649E11AA6B; Fri, 22 Jul 2022 10:21:22 +0200 (CEST) From: =?UTF-8?q?Dan=20Hor=C3=A1k?= To: amd-gfx@lists.freedesktop.org, Linus Torvalds , Guenter Roeck , Michael Ellerman , linux-kernel@vger.kernel.org Cc: Alex Deucher Subject: [PATCH] amdgpu: re-enable DCN for ppc64le Date: Fri, 22 Jul 2022 10:21:22 +0200 Message-Id: <20220722082122.571974-1-dan@danny.cz> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE 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 Commit d11219ad53dc disabled the DCN driver for all platforms that define PPC64 due long build issues during "make allmodconfig" using cross-compilation. Cross-compilation defaults to the ppc64_defconfig and thus big-endian toolchain configuration. The ppc64le platform uses a different ABI and doesn't suffer from the build issues. Thus keep the DCN driver disabled only for big-endian ppc64 builds and avoid regression for ppc64le users of the amdgpu driver. Distros are mostly focusing on ppc64le and that's likely why it got unnoticed, because there were no build issues related to the amdgpu driver on ppc64le in the 5.19 development cycle. Tested by a local rebuild on ppc64le and using make.cross from a x86_64 machines. Fixes: d11219ad53dc ("amdgpu: disable powerpc support for the newer display engine") Signed-off-by: Dan HorĂ¡k Acked-by: Alex Deucher Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2100 --- 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 0ba0598eba20..778a6f58047c 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 && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) + select DRM_AMD_DC_DCN if (X86 || (PPC64 && CPU_LITTLE_ENDIAN)) && !(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.37.1