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 DC66AECAAA1 for ; Mon, 31 Oct 2022 19:40:25 +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=aEckkBZXl25wytCmB4uBUymD5diTGEqul9SDjT1uwVc=; b=rlu6NK2W4kNr3x 5xiZ/6yYYkP4t0OXu2EE/ZGulXH9T+hO3Ro6pY8rp+ze8pnHJRbaYHSJcStdCHpwx/8vUI3ebwOUJ yj14+E8Cn9JH81U48zb6PpuV54AR7Ob+cMsQXxeaDTYj/CdHkzB5nRkA3Mvv1TiaidtIUxZNHuhvf /CwhVoFVrCAuxrJsstOoXF7eZD9SsXTyhpYILh1vTpns8Ktbif0BycLbipPJumJQLgbpziAIDFz5r fcYA1OBqlnyO1nu3mIHkS8FjXqYoccaYnL+VPrVb80KvJlwrI+xv7A9LP7oIR5EB+VRX4c4qByy06 0TB+ltVjvtiMexFKiNIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opacn-00EJg5-BQ; Mon, 31 Oct 2022 19:39:10 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opaci-00EJWH-J0 for linux-arm-kernel@lists.infradead.org; Mon, 31 Oct 2022 19:39:06 +0000 Received: by mail-wr1-x433.google.com with SMTP id z14so17386916wrn.7 for ; Mon, 31 Oct 2022 12:39:01 -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=J3/rSxQE1Xug/60dw8xgqtSnw9Jfpx5WWVH4mLl2SyM=; b=VEZtM7Of0uvgOIBm9LqFfxuOrtmZlZ9ywmTw4uN9AAqMPPDVF0vMyLC8ccioTKFinS 8Sx/6f4Wu1jACWzdzTN6Ds5HU+/rNu5Lm8+lzJ50aNyv1J5bbpQhttSfRlRv2HUC91Te K4XPhtio46+2Sd052W/TRWMzqvWg7Z5+a8AahCmvJIXVPSdLRqvVHenBGf0rpMwfuvdT 7MTxSEsorJtv5ihgVStw0vaMqaCrXHMaqLqPjwjHJrkgP/juqHRu6NfIx7nrS5BV5UGK RCH8TxA4jWfY+3UTXibnPNwcbxfdm9ZL8ehg0arGk6IccyyUdjmK22i1G3tvr4H3/jIm odVw== 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=J3/rSxQE1Xug/60dw8xgqtSnw9Jfpx5WWVH4mLl2SyM=; b=zSTyw2ZsLG36UIlDf4535kX7Wcsjj4TvxzLk1+V1xKicVTYKGok1UD2pUR0GXHbWA1 AXwpzvHomb9v3Pr5Uuw6Y+WkmA55mtvRmKVLKXDNz7gTs2VI5yJjWMrYA49OWQo5rz8v d0uPV6dWIIIjfo0k3Y7BjbhsByhYiDrMfoCWXv9CylroPKko41/5VrtPCNT9kJ0GS/LK iEQ3s1szBUfd66LVNO5wgdUPSUlUBMJeMiYDsis4req9nxyTQwbb7UapNQ77JIzO/kBH gdcyohkSOk0WCoIKI2hGt5cJoHfw0GnDVb/zWu6BKPypRya5Ii5lBL6nJ3NsC1ap4++M 9pDA== X-Gm-Message-State: ACrzQf0Nw5B+WA9GpW/viH2KMnbO7fhCOdPlcV+/Otr3y1rV6vvsjU49 G7EtImmM1LCCG/bgzReEL6s= X-Google-Smtp-Source: AMsMyM7ddQvN7hSjOX/KEugGz7zogQHpjG7mh36wLY5nLwhz+F8aRQj6q53yl35chXB9i0YrwZs+WA== X-Received: by 2002:a05:6000:90b:b0:22c:beec:5b26 with SMTP id bz11-20020a056000090b00b0022cbeec5b26mr9151098wrb.490.1667245140060; Mon, 31 Oct 2022 12:39:00 -0700 (PDT) Received: from localhost.localdomain ([2a02:908:4f6:d280::9a6]) by smtp.gmail.com with ESMTPSA id h9-20020a05600c414900b003b49ab8ff53sm8216806wmm.8.2022.10.31.12.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 12:38:59 -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 v4 0/1] drm/amd/display: add DCN support for ARM64 Date: Mon, 31 Oct 2022 20:37:38 +0100 Message-Id: <20221031193738.23538-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-20221031_123904_669541_EF590A82 X-CRM114-Status: GOOD ( 16.70 ) 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 V3: - Check if CC_IS_CLANG is disabled, since current DCN build with clang on ARM64 is broken 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 | 3 ++- .../gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 6 ++++++ drivers/gpu/drm/amd/display/dc/dml/Makefile | 20 +++++++++++++++---- 3 files changed, 24 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