From mboxrd@z Thu Jan 1 00:00:00 1970 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 040B5ECAAA1 for ; Thu, 27 Oct 2022 19:55:00 +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=BrgNDOmbRUxxrergpbrntGxq5IELEvbR6l1WdR5EaaU=; b=MXCjHaFpzS4DCs NnAxfOi6DREtdksx24l00S1Y5bSiiYfYpeRhjXs1qCX1S+Drxr53LfYIWEHFvH780S9tOUyZ4FFC+ J/7N5PnuP6MzEQa9763UpniUxKZ8HAt4D2Wg6sBE6ufncdcnQIwMUY7BwWvKft3jI61lJ+dcd6nnu kvYYibPTe8B3guVhKiC1ePXuye9Rsp9EoDx9KjPlaTU1pZm/scvNj2Pr/QMcawL/WpCM3swHMcoNi lyWu0yNQTFDqjoKKA/vx3cWdRVt3yRDgCqEeJm1XDl08i4j/MJR9WgfRCt4hW4JxvR0duajp4L9IF 6XMflqUpr/u0hjxa5scQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo8ws-00EjFu-DF; Thu, 27 Oct 2022 19:53:54 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo8wp-00EjFG-6g for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2022 19:53:52 +0000 Received: by mail-wr1-x436.google.com with SMTP id w14so3959538wru.8 for ; Thu, 27 Oct 2022 12:53:50 -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=dJhvE1wrXqNaDnf3qxehmNOVSmrog8ZQt8ZKnj1Ow9A=; b=fxJNejyMkqENsTVBpqHNQZaRJ6Wgg7mu+FtdRePBeUCp61M16fjt40qOfR/4tL+rZc w8sfrNHiVG3xIZ0cGtJdNh5iw6ESyVndXW+r9YDhPgz6DAE+ZAI+7yMViLkFr/XN2csc BME6qvwr+otiEaQE97iZ7mVcxsELiiI6+TtzhH20IgADkClIpdeFBRWXx2QkiC2Pnl6c sNyrXqLsNfdewjZRXismXbFhZ9Z42ZCrqXLjkBvVffOsLBJ3teBwEi2tq0oMDOElihom BN8r/RtQv3WY4DO4sBZFK2IcXBrp3ypIjChUyC7kgDArJ6jvOHFFa80VYBFMqO+W9yiO +Ccg== 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=dJhvE1wrXqNaDnf3qxehmNOVSmrog8ZQt8ZKnj1Ow9A=; b=HGag/oCwC92RaM928jeD2bTWEst/oI2nD2B0P2nTaXLfswkxWRVLmJCMQuxy5QMEUI xtpa5avD7+Yvy/3Zj2EtFsTE3tOQ1JhmrrE0ZG2A85KzTnZrQRbNI24XACsHdVE0comU lg0q8gRLAmD2NbQqmwwGOJ15aMjhqXr320/ZbB+CWLGDy7gGJnJGzuXRsvQ65TNKQ5gW eSrEvSE+/lj734eiB9Qcay7aeSmZz0K2/XwagjYx0cm+NA+w4X2nXPV5VkYvcqre2wpk 3sCUQ4ncDOSItJronMQpTbWZAXjbd3lPkRozEoVcUbKoD2wuD3LXde4fnvTm1a6jooaw tvDg== X-Gm-Message-State: ACrzQf2jDlIwfmbNIyiNh0nld5VZH4lfFpQRrZs4WUq2DyTP05mH5YGL KBAomnofKKmXaEm/x62gGIw= X-Google-Smtp-Source: AMsMyM7wVbJF0ku4PEGKKzGsvOyR3GkV85+lxtqNP0d93Ac+EEKDFpze++xx815DWUKEHZ06iWxJnQ== X-Received: by 2002:adf:f743:0:b0:236:7309:1209 with SMTP id z3-20020adff743000000b0023673091209mr13886316wrp.14.1666900429010; Thu, 27 Oct 2022 12:53:49 -0700 (PDT) Received: from localhost.localdomain ([2a02:908:4f6:d280::9a6]) by smtp.gmail.com with ESMTPSA id t18-20020a05600001d200b0023647841c5bsm1837976wrx.60.2022.10.27.12.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 12:53:48 -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 v3 0/1] drm/amd/display: add DCN support for ARM64 Date: Thu, 27 Oct 2022 21:52:27 +0200 Message-Id: <20221027195227.5312-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_125351_288192_817CB2DB X-CRM114-Status: GOOD ( 16.27 ) 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 V2: - Drop CONFIG_DRM_AMD_DC_DCN check when initializing the dml_rcflags for ARM64 - Drop CONFIG_ARM64 and CONFIG_DRM_AMD_DC_DCN check for the per-file cflags list entirely 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 | 20 +++++++++++++++---- 3 files changed, 23 insertions(+), 5 deletions(-) -- 2.37.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel