Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp962709pxk; Thu, 10 Sep 2020 03:27:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqSfcMO9gBmIn6k4jqg2btB4pq70xr8CaarmnkwCUavPTG05yMnqzVYY70ae8uGlt20Gmu X-Received: by 2002:a17:906:1c4f:: with SMTP id l15mr7862913ejg.419.1599733669996; Thu, 10 Sep 2020 03:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599733669; cv=none; d=google.com; s=arc-20160816; b=pxaxsCjPXAE+rMIYUMZXNVZevJWkzjKMWejJoJGDS3aURP8Xoq6reaQU0zEamBgcK5 u6/gZYytee6+q7VhPQxI7nUDeg7asM5gY016dayYIBDxTAHfMGe+BK053L+SOHnNRyHq d0g2Qcw5KwCNRXU4RuoIsSwWcPhd9LGzNC5JDb3PaqB6OaivA10VmxyrxAv7CTXICdIt g09y09d36d5ylWuqFynBwQYVcoQvOclSV8rx3UesQd1ou9KsAujJ5Utb8iyM4wfwP+VZ 4S2ULhZQKssYJ7XQCQfLtXXPM8BDPaGGIA9t5g5+PYZzyuDEusqrxn2a4+ca/dSMISqq 2WuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fM7nILzf12DnBQVmZZ5rcCBmPLbp4Y3/fHSPMNgk7AA=; b=WX7s0dg8L0LWbzYrqJ+NkMfQ+4bkDjoRY9zg6POLQCqqetMJbZOilUXU3hiB7NSGtT fKZcu92Fofhl5WOl9Duzjr0DV1wFaofOcMr8pXnzdJ3h/VvC9QVHNQheD86HzFEJkkDE G7H21XPWKAfN7Dfmdbh0nVpFHrFuID0c8+y0rDqXeuxFVCNECCboqWs640EhVFXDR5Q1 T2ELaTzGPrUok2xovYcMPTpPNGSHf39N75AKtDOIDnJraR92n3A1vfQFBKOWaczpReyR mdiJuAVsUeYiPOFrAP8gYisKqCbEd8M1M9XvsOYKP5HUkFdZb7mnEW4TPio9KGJKFvTO jqQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o62si3262217edd.494.2020.09.10.03.27.27; Thu, 10 Sep 2020 03:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730909AbgIJKZs (ORCPT + 99 others); Thu, 10 Sep 2020 06:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730779AbgIJKZF (ORCPT ); Thu, 10 Sep 2020 06:25:05 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0594DC061573 for ; Thu, 10 Sep 2020 03:25:02 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kGJl0-0007HR-Ia; Thu, 10 Sep 2020 12:24:46 +0200 Message-ID: Subject: Re: [PATCH] drm/imx/dcss: fix compilation issue on 32bit From: Lucas Stach To: Laurentiu Palcu , Daniel Vetter Cc: Philipp Zabel , David Airlie , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , dri-devel , Linux ARM , Linux Kernel Mailing List Date: Thu, 10 Sep 2020 12:24:44 +0200 In-Reply-To: <20200910102128.5agk4vxf2jeonw3q@fsr-ub1864-141> References: <20200910095250.7663-1-laurentiu.palcu@oss.nxp.com> <20200910102128.5agk4vxf2jeonw3q@fsr-ub1864-141> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Do, 2020-09-10 at 13:21 +0300, Laurentiu Palcu wrote: > On Thu, Sep 10, 2020 at 11:57:10AM +0200, Daniel Vetter wrote: > > On Thu, Sep 10, 2020 at 11:53 AM Laurentiu Palcu > > wrote: > > > When compiling for 32bit platforms, the compilation fails with: > > > > > > ERROR: modpost: "__aeabi_ldivmod" > > > [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! > > > ERROR: modpost: "__aeabi_uldivmod" > > > [drivers/gpu/drm/imx/dcss/imx-dcss.ko] undefined! > > > > > > This patch adds a dependency on ARM64 since no 32bit SoCs have DCSS, so far. > > > > Usual way to fix this correctly is using the right division macros, > > not limiting the driver to 64bit. But this works for now, would be > > good to fix this properly for compile-testing and all that. > > I didn't see the point in using the macros since this is running only on > 64bit. Though I will probably revisit it and fix it properly in a > subsequent patch. > > > > Signed-off-by: Laurentiu Palcu > > > Reported-by: Daniel Vetter > > > > Reviewed-by: Daniel Vetter > > > > Please push to drm-misc-next. > > About that, I may need some help pushing it. I've already pushed a few minutes ago, so we don't disturb the build tests any longer. Regards, Lucas > Apparently, my request for > a legacy SSH account for contributing to drm-misc got stalled: > > https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/289 > > Thanks, > laurentiu > > > -Daniel > > > > > > > > --- > > > drivers/gpu/drm/imx/dcss/Kconfig | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/imx/dcss/Kconfig b/drivers/gpu/drm/imx/dcss/Kconfig > > > index 69860de8861f..2b17a964ff05 100644 > > > --- a/drivers/gpu/drm/imx/dcss/Kconfig > > > +++ b/drivers/gpu/drm/imx/dcss/Kconfig > > > @@ -3,7 +3,7 @@ config DRM_IMX_DCSS > > > select IMX_IRQSTEER > > > select DRM_KMS_CMA_HELPER > > > select VIDEOMODE_HELPERS > > > - depends on DRM && ARCH_MXC > > > + depends on DRM && ARCH_MXC && ARM64 > > > help > > > Choose this if you have a NXP i.MX8MQ based system and want to use the > > > Display Controller Subsystem. This option enables DCSS support. > > > -- > > > 2.17.1 > > > > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch