Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5644FA3740 for ; Thu, 27 Oct 2022 14:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=VAaYTWrkazd+sXJYd/2mlCekjVCzlc2CAl3dm/DksII=; b=acOPd301wnJO1G 4L+j0psLFA8/JsOgcJKY+gCI3kkU+p0kim5ST54A9Cu7ZsYMcN8/PsPohG1AK/tVWxckXhcXPYj0m 9toVoNvYBfGZuItliLt6GU5cyLEqMTViHF8+74BRYjL6s8IiAaKa1qZwE3mwKT9cJbeNH7xNbB1ac bi2Kz001mLgXNwEa7lOxXgtOO65DIo9JGs9srrj4a2fpnV4i9yH8BgsBJG1To9U66hv0MV6ltBhOK ipVYtrXoRYZS4VCd3H3uYsdC4ihl24uhXmfRkuwg5p1pTqoO50pPzDalk0UGsY/HWUeGEoA4OTQub TRp9g3vnsrlJUOcaAGiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo491-00Dr0x-LT; Thu, 27 Oct 2022 14:46:07 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo48t-00Dqxe-QC for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2022 14:46:04 +0000 Received: by mail-wm1-x336.google.com with SMTP id t4so1186536wmj.5 for ; Thu, 27 Oct 2022 07:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IAqC1HKVNV7rs1WtvU904YHZiDgWJOrzWfsvwETeujE=; b=ZQoJZJ2pk+FgSb1zhCFw99ZrOd1qW+do1Yf8a+dkAAlCE6k8NxK9xdhLHyUvvWW+jC huXB5GgpKQ+07AreOh+yv1jtXRuwazerG7nTymYzeFp1YTg1h67pgLfzqw5C8nXTlANS V4+npoMjBTsNgBH3HCLsIWar4Zn4p9UjD5w4h/Enc5RD6Zx+sgJ2A2WuDoemMh4AUXRj mjnzPLXDvZA3dZcMLwKPTuZhP1SmqCtDdUruxsPH3QEmlY+hjTnECpTXLnMJXIrVSqHE r7gLsfRtqm/UefSqqs3oBYTLIz9651i6IyQhukU2vuKK4uZgBZm47mCOAXUymAvgFVae 8plQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IAqC1HKVNV7rs1WtvU904YHZiDgWJOrzWfsvwETeujE=; b=Kifl7AZ4j5B5QAYTgbi9AwycXdSlJ5RGRohOkfxK4MRVcDYgqik1h5RUcHszzHMwft H6jh4qaLkvqa1GVSLoLSg/SY7eEYuaI8kKW7pNmICGJ6Sq21N7qoyTmDPfGrsCo4MP51 5u6Xls9ahexuw0WBzOTu5KkjDehNl1JllIBKuKZXNFBi5vy0QmtKgImQVniKVVIS98Bm NJPEkA9dMmycAf0eePVfEQcJgOf0wA5DY02aLHAKJhnDYWaNIvMN1zMODS9US3qqe4re /2AMvNky6l+ZQYSrDWqEU8fcy80Ox4QrbBx1beSO22GJuslZ71Jhp1LLSGD3swpgG+q2 wAEg== X-Gm-Message-State: ACrzQf2y5+b+h93SD6+4t4TMnDwWVFXHWwa740tocLG/RwodRDMY14rX aopCdyzqCwaG2hRcujgouyE= X-Google-Smtp-Source: AMsMyM6keI129AiE2PP1FBIClELOYwSPfhUKJbouSNXbxR1dFjbffgYRhgYiL6wHA69bcp1B+gJ1gA== X-Received: by 2002:a05:600c:3545:b0:3cc:74b:736a with SMTP id i5-20020a05600c354500b003cc074b736amr6026791wmq.145.1666881954572; Thu, 27 Oct 2022 07:45:54 -0700 (PDT) Received: from localhost.localdomain ([2a02:908:4f6:d280::9a6]) by smtp.gmail.com with ESMTPSA id f6-20020a5d50c6000000b00236576c8eddsm1340914wrt.12.2022.10.27.07.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 07:45:54 -0700 (PDT) From: Ao Zhong To: Harry Wentland , Leo Li , Rodrigo Siqueira , Arnd Bergmann , Nathan Chancellor , Alex Deucher , Stephen Rothwell , =?UTF-8?q?Christian=20K=C3=B6nig?= Cc: amd-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Ao Zhong Subject: [PATCH v2 0/1] drm/amd/display: add DCN support for ARM64 Date: Thu, 27 Oct 2022 16:45:27 +0200 Message-Id: <20221027144527.4247-1-hacc1225@gmail.com> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221027_074559_908995_1DF6130F X-CRM114-Status: GOOD ( 15.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello everyone, Recently I got a SBSA ARM64 workstation, and try to use it as my daily drive machine after installing an AMD RX6400 graphics card. Since the newer AMD GPUs require DCN (Display Core Next) support to work properly, DCN is not supported on ARM64 platforms. Because some code in DCN needs to use FPU, and aarch64 has no soft floating-point toolchain. Displaycore developers have started isolating code that needs to use FPU, and most of the code has been isolated. In the process of trying to enable DCN support for the ARM64 platform, I found that there are two remaining code blocks that are not isolated. Due to -mgeneral-regs-only is enabled by default to compile the kernel on the ARM64 platform, these two code blocks will cause the compilation to fail after enabling DCN support. I have submitted two patches to isolate the remaining two code blocks that need to use the FPU. Links: https://patchwork.freedesktop.org/patch/508813/ Links: https://patchwork.freedesktop.org/patch/508816/ After merging these two patches, we can enable DCN support for ARM64 platform. I removed -mgeneral-regs-only CFLAG in the dml/Makefile for the code that needs to use hardware FPU, and add a control mechanism in amdgpu_dm/dc_fpu.c for ARM Neon. Change Since V1: replace $(dml_rcflags_arm64) with $(dml_rcflags) in dml/Makefile Ao Zhong (1): drm/amd/display: add DCN support for ARM64 drivers/gpu/drm/amd/display/Kconfig | 2 +- .../gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 6 ++++++ drivers/gpu/drm/amd/display/dc/dml/Makefile | 21 ++++++++++++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) -- 2.37.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel