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 537D9FA3742 for ; Thu, 27 Oct 2022 15:09:32 +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:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lL05/xxJajRDrxmCYxRi0sMUMbwHRBWcPWMhSRGQhqU=; b=fgJ/rDAf4DUcAr pzFecfaiO5O/RNxlmUbP2CrugJTv1pclTx92KryaFLU4VoZ+Ng5kBRnC0PlpRuO8fjxIkf1bPANC4 ex2EEJ+ijYSfzyEL5WV4JnVitLjGcGrm7Si/+ldhXjCZukEYE6RWVXZirHuXHVlwjATYSkwB8T90/ bN+QQiUHLbGkaod0D+Jt6n5QLCLzriA4JQxF2Jr/RZ6VA7papfasQ84R8emQ/YR+Pb2HrfU1DKM2u 0wGof4MKC9ehTnk5dLgxISOnyag4pFSHeCQe53aqOKNMZUSMXBhO/TyXIB5EM4zUqVECil7caGUL0 CC3iUi9QYGsKGomfxSXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo4UR-00Dz9w-Et; Thu, 27 Oct 2022 15:08:15 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oo4UN-00Dz8K-73 for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2022 15:08:13 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 41C3B5C012E; Thu, 27 Oct 2022 11:08:09 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Thu, 27 Oct 2022 11:08:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1666883289; x=1666969689; bh=Ntd0npd+6X jjks/O0Njc7Sa6rifWM593ZCyxHJVsjtk=; b=SqqgCN+cFxbkFVxX3hempYUO7e L64TZDR6uX8qsSZY8re1EkpmfG7HKoGC4wnehIUBGL/xR/gKfTecdK5JcgBkNmJa r1tFBOi8uhJ5lynFw/RPcDxbX8d3IqNTHte2hM2GA83O6VdyfYcdS0Y1XAtRq4Yg m24hnvh1NueKVpqLI13brZohdLXvC+5kXG7wfo10Ls19DxDCQ4kbU8QlL/MsdP34 ChidQAhfnAq4kUvaZyxkthrq6UoOT8c/kw/4K5zcvK7tvmkAwgFb9E+B70Ks6AV1 BwNtFFL1woNKk3jXjOf25fZFyohvsgYrSPiAAldF0onAKBeWJVU76myx090w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666883289; x=1666969689; bh=Ntd0npd+6Xjjks/O0Njc7Sa6rifW M593ZCyxHJVsjtk=; b=FtSbBrWbH9J9OKid+rszZc1HGgic+co2ywsWxZ49ChPl WG80UygURbmnwTrweXiniuKX3rX0iyBKaKFIfTdJpBH57mzrBUmsN2R6Ln0McWVo O1YXYzqXGdFI3Zb0O1NtMcuvsQGDxAkOhp3YrmcYBXCTREv05iMZ2jittOhFcVn+ J0dhY601bV0gn+6EWC/K7BPuDeCPXOQRgxdftVMsXCLygWiC06cSCTrjU2/yY281 s/JgVNyhdnvlZp2NuF5q/+FH+S72/PQMX65FmZAQJBjdu8yHDg1W8xeE45Vafgd6 4JzokLymQKdThZUBvqK1XeZ9SMIZGZ7zHgb8fYG05g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 52A08B60086; Thu, 27 Oct 2022 11:08:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1087-g968661d8e1-fm-20221021.001-g968661d8 Mime-Version: 1.0 Message-Id: In-Reply-To: <20221027144527.4247-2-hacc1225@gmail.com> References: <20221027144527.4247-1-hacc1225@gmail.com> <20221027144527.4247-2-hacc1225@gmail.com> Date: Thu, 27 Oct 2022 17:07:48 +0200 From: "Arnd Bergmann" To: "Ao Zhong" , "Harry Wentland" , "Leo Li" , "Rodrigo Siqueira" , "Nathan Chancellor" , "Alex Deucher" , "Stephen Rothwell" , =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: amd-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/1] drm/amd/display: add DCN support for ARM64 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221027_080812_025592_674CB703 X-CRM114-Status: GOOD ( 12.76 ) 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 On Thu, Oct 27, 2022, at 16:45, Ao Zhong wrote: > After moving all FPU code to the DML folder, we can enable DCN support > for the ARM64 platform. Remove the -mgeneral-regs-only CFLAG from the > code in the DML folder that needs to use hardware FPU, and add a control > mechanism for ARM Neon. > > Signed-off-by: Ao Zhong > > +ifdef CONFIG_ARM64 > +ifdef CONFIG_DRM_AMD_DC_DCN > +dml_rcflags := -mgeneral-regs-only > +endif > +endif I don't think the CONFIG_DRM_AMD_DC_DCN check is needed here, if the dml_ccflags doesn't have this. > +ifdef CONFIG_ARM64 > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn10/dcn10_fpu.o := $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn20/dcn20_fpu.o := $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn314/display_mode_vba_314.o := > $(dml_rcflags) Similarly, this bit should not need a check for CONFIG_ARM64. > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn314/display_rq_dlg_calc_314.o := > $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn314/dcn314_fpu.o := > $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn30/dcn30_fpu.o := $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn32/dcn32_fpu.o := $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn321/dcn321_fpu.o := > $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn31/dcn31_fpu.o := $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn302/dcn302_fpu.o := > $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/dcn303/dcn303_fpu.o := > $(dml_rcflags) > +CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/calcs/dcn_calc_math.o := > $(dml_rcflags) > +endif > endif > CFLAGS_$(AMDDALPATH)/dc/dml/dml1_display_rq_dlg_calc.o := > $(dml_ccflags) > CFLAGS_$(AMDDALPATH)/dc/dml/display_rq_dlg_helpers.o := $(dml_ccflags) Having the #endif for the CONFIG_DRM_AMD_DC_DCN list is a bit confusing (this is the preexisting state, not your change).I'd probably drop the CONFIG_DRM_AMD_DC_DCN check for the per-file cflags entirely. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel