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 A8AA6C433FE for ; Thu, 27 Oct 2022 00:28:44 +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=qqmrTWn3nYoiQfrvsHwtDIHJUBJlYXrVC8n4DwNTs1E=; b=4CloDe3JRSvIGq rU7bqnfuknMTK3lUtPrLwf5o0dpzAYH/tdmzXYIfMsX4ru9yX0/gx7CDgMZXokS7+LmaEH/x9S4mo iUrd2FM3xOFzjqrUl6HHpS7NtGYVg5Ric2Yv6NIXet2t+oqz1VTCq4DfizPOa7e7oc2WXfN7AEYII ZA2+xDrUH/6RIlHE/D45oGkSibC1LlppAb5r453agCH8pXjfU2bdzy9EFeeL2cS3MHDC18cptp4cp U/4wyrgSa2JEXHAqqOxNiYxND9wlil/djyiTUiNbl8P6NVoLDy27CWIfLCJhr4ZV7ltD9JybkTHoz azsp3QjTlO751RkqAP1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onqjb-00BMkn-8x; Thu, 27 Oct 2022 00:27:05 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onqjT-00BMkN-7v for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2022 00:26:52 +0000 Received: by mail-wr1-x42d.google.com with SMTP id y16so18750230wrt.12 for ; Wed, 26 Oct 2022 17:26:47 -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=jMH6NbarRlIC2YyXd7lgXgFphUvn/dsCZiz0Rfu1Vkw=; b=CZU1bLheV1hEeTQ9KZ08EE75iVxKd/vYIPpAIBII0wz9pkPEAfqnnwaUP0YhdAOxEp efBFjeZS5yS/Eo43zYT9ocz4pgORfFNEhgbTDFDTn9rE/N1IWtiKiAhkiW5BdPMlFiSB iq3kWwvwgOb/sScvvx2XHOihror72shvw0uyCWxJ0/khyWAriuHwvx1quxcqVjSvl4yS 5y+gcLqmn6KRoWhiRXfqKJe1hndhuKaQZ14Nal6JC2evQGc6UQbJbxfykfaNM8Ex0iuN TDotqJwiaD4VS4sPIiOpjEeH1DUv98d+bsLZ/tgwOif6HJcNtOQIVTn+nbGE3x2LxSsj M2Rw== 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=jMH6NbarRlIC2YyXd7lgXgFphUvn/dsCZiz0Rfu1Vkw=; b=0kT24086eboYrsW1v4CmfWZhyLMSRashLuypi5Qc4LT7eG6tb/AWlz2fBr/viCK5Ir Z+5qVXy+vflUkhx+4d2Wz/DHuOnwACNTGS8Q2qlKWV5l9H5r6s4fZXabaEAw3OHAvFWG B3v+PuOWE7Q1rfLneMrIjNjteSthj9pvfoOXHWTQZ1Z+KpWAhk3VEZrFPLOT3ICe8ina pvWoRbiIZNjzM1exGeKVFiYw41qavbzaKkXkPITusA2xrqz6mv7Y7fv2B621s1cd/pwD zCPag8wUyziRBvtIx7zqUiDxZh57phLmjkwJvYGhHstRRh5QLO+WSYH1vr09IRC6RJve ZQLw== X-Gm-Message-State: ACrzQf0klxMIsu21wMLWN4qHlb2IwnMky0IFDW61ml47ceiwudYmPCg/ REUXZx2zWEqDPIWOD786HZn9hStZ41mB0+1U X-Google-Smtp-Source: AMsMyM4w6WSLccvq7RJXCyU0YAb7qq6G5uD/sg/QjmGESZvpR92L4U01DLXoh7x/kXFKM7nI89qYwg== X-Received: by 2002:a05:6000:1888:b0:236:8b32:cb47 with SMTP id a8-20020a056000188800b002368b32cb47mr3816241wri.601.1666830405816; Wed, 26 Oct 2022 17:26:45 -0700 (PDT) Received: from localhost.localdomain ([2a02:908:4f6:d280::9a6]) by smtp.gmail.com with ESMTPSA id h17-20020a056000001100b0022e66749437sm6519420wrx.93.2022.10.26.17.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 17:26:45 -0700 (PDT) From: Ao Zhong To: Harry Wentland , Leo Li , Rodrigo Siqueira , Arnd Bergmann , Nathan Chancellor , Alex Deucher , Stephen Rothwell Cc: amd-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Ao Zhong Subject: [PATCH RESEND 0/1] drm/amd/display: add DCN support for ARM64 Date: Thu, 27 Oct 2022 02:25:28 +0200 Message-Id: <20221027002528.15983-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-20221026_172651_342610_8A3AD1D3 X-CRM114-Status: GOOD ( 14.73 ) 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. 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 | 64 ++++++++++++------- 3 files changed, 49 insertions(+), 23 deletions(-) -- 2.37.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel