Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1780603lqg; Mon, 4 Mar 2024 03:46:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNQM3zSss3d8uAk4+k/FIOGqI2vsZsQza4jy0gWjiyxGs9ifkHMI2hX0jcQCpWSXbar1azaZRR7WWTzJLzIay928RC1rmLxyuO8zY54w== X-Google-Smtp-Source: AGHT+IED2h3nqiP0UZe8tGRKIvmGkh4gGrLkPHWngKL+Y7XF2CPTirMtKGtVmgRiWT9I7KuFgvvf X-Received: by 2002:a05:620a:5608:b0:787:3769:d747 with SMTP id vu8-20020a05620a560800b007873769d747mr10184989qkn.59.1709552769652; Mon, 04 Mar 2024 03:46:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709552769; cv=pass; d=google.com; s=arc-20160816; b=hiCoSEFkQBmqpA+lWeCokyBfGCayfBgZ7C6v2Rsxmj3BTfXpJgaV4v9DMqM/T4Hebw MkHx6T7XwfuIDTpOO90OhFMJ5dIb7WvT7tk1HcxRO+vpDKDsN26fOUNsLhxNB3jf79yN V3gtNpchT1YDRZdlBOU2+7TTD4buHWltR5vq94iLkjDBa+uHQUqbHVbODTYU4U1shnep 9NsHbVvJ3IzQ9QKP4Y2edLJ5AEMe4wZQ7vZ0fEryIdmeakcG3//vBwOo2cZ6hXyVsjQm Ae6oqtOEXoHTAGfJcGy9Fe2EaRJMplchkTA0zdHZtPmCumVQgmsauqOVqxsHBFdV3Fbn Bp6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HJQHRoGJxK/7ctC8X3GP7QMgr/GPB4Cd8Wgqt9WCosU=; fh=xIXUabo1qo0i0UkI//mplY6WInWZg/kxWnP25+XzBDc=; b=mayjpkVHGOP2zzRVSNRBUjo7jzW0xAj8OGRSNSBrJeLPGrqFYtmBCHqR9kTM7qofIu MAHm+iYTm5dJv8wUwnA/pessWmrXMxntepBzolQOSyAWGMbVXwRFd+Q5iH8DtouQX3qF N/1OJLGV4D+l8JOZiyWqY0aMEFZOcAZXQMRqZlkNaQP8/tPhip4PU1/48yXARuNlD9/b 8ADtK9i/0v8GZnzkALKONGYbi5Lt5xaBrmgjiLJS//kRzhYL5IvDq1jPeTQT1tL1CUKK bw+B650xIshClZlIsz+nbzWO71cj/Ev1Y5AgT/2JS30VB5dlalhKL/TS0Kwxh8XVjJ4H n1cQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cd5qKjsm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ea5-20020a05620a488500b007882e843281si725906qkb.244.2024.03.04.03.46.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:46:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cd5qKjsm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 635011C20B88 for ; Mon, 4 Mar 2024 11:46:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B45CE3A8FF; Mon, 4 Mar 2024 11:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cd5qKjsm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D34BA3A1D1; Mon, 4 Mar 2024 11:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709552763; cv=none; b=QNmnNzIg1/A+p5oZrsbIdiP11rFdIzEj6aOvvp5I1WYERY/Y2s7KaOzq7zWZCWrCwCuGiNSC7ncaPDlE6cYr9TfTPef4Znb0puD7MqXTaXN2rvm2eUJqEqiVGsdl6uFsaLp4OS5ZceSLUMkSy22NMuGOyz8kSmLCHBFwVr+O23c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709552763; c=relaxed/simple; bh=qCfn8+14iH8PjhcmL/Dqov86jABrctnZ8SOBmrrpc0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tO7dh+Iqy6YslTuqOTqRZOfvfC3RWH+AK3GYKmh/A5GkTJL0aJA0sHrkZoQRVDaZsBC9ssm2yAEDYjN03qdsMIFFgRTrbCxisKWj9GYH6QbDObmjQDN3EepjmHcR2DbmwgJQg09kCoIIOlKOsNSjs1bFFRbm0Guj0JtUETIq50s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cd5qKjsm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46D5BC433F1; Mon, 4 Mar 2024 11:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709552763; bh=qCfn8+14iH8PjhcmL/Dqov86jABrctnZ8SOBmrrpc0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cd5qKjsm7tlNWam9UmT9oCfjUa/fwI5qFHbnGZWcPollBsT6lFWcCN1J/onilOiVz lRtcwRD6A+P6/22MrtyreM/qk5bzoAn6xz+qIIO8rwsmgzLJRF+qxG0DsYg6WnfPXe SyIUHRKmhSTWOx9EPXP/t/a/Tl22MeVwE+rGUB/ltmiJ5TsxZ8n57AN15SVWhimrpZ Q+64iix0NdZSm8PhMdmOet8pDHoAcQ9OMkMmBcCXTb008nPLAC6xmckqWcsF8uVyXO obCk6lzQBYuIiE1ZDL/+czEuIc/tHNkfEvwMCNhjPkDLvNycINaB9tJVI/y10upcEC cAHFx5Qxd4pFA== Date: Mon, 4 Mar 2024 12:46:01 +0100 From: Maxime Ripard To: Arnd Bergmann Cc: Naresh Kamboju , open list , Linux ARM , linux-sunxi@lists.linux.dev, dri-devel@lists.freedesktop.org, lkft-triage@lists.linaro.org, Dave Airlie , Dan Carpenter , Ard Biesheuvel Subject: Re: arm: ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/sun4i/sun4i-drm-hdmi.ko] undefined! Message-ID: <20240304-brawny-goshawk-of-sorcery-860cef@houat> References: <338c89bb-a70b-4f35-b71b-f974e90e3383@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qhf5po6j5zzjeoj5" Content-Disposition: inline In-Reply-To: <338c89bb-a70b-4f35-b71b-f974e90e3383@app.fastmail.com> --qhf5po6j5zzjeoj5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 04, 2024 at 12:11:36PM +0100, Arnd Bergmann wrote: > On Mon, Mar 4, 2024, at 09:07, Naresh Kamboju wrote: > > The arm defconfig builds failed on today's Linux next tag next-20240304. > > > > Build log: > > --------- > > ERROR: modpost: "__aeabi_uldivmod" > > [drivers/gpu/drm/sun4i/sun4i-drm-hdmi.ko] undefined! > > >=20 > Apparently caused by the 64-bit division in 358e76fd613a > ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid"): >=20 >=20 > +static enum drm_mode_status > +sun4i_hdmi_connector_clock_valid(const struct drm_connector *connector, > + const struct drm_display_mode *mode, > + unsigned long long clock) > { > - struct sun4i_hdmi *hdmi =3D drm_encoder_to_sun4i_hdmi(encoder); > - unsigned long rate =3D mode->clock * 1000; > - unsigned long diff =3D rate / 200; /* +-0.5% allowed by HDMI spec= */ > + const struct sun4i_hdmi *hdmi =3D drm_connector_to_sun4i_hdmi(con= nector); > + unsigned long diff =3D clock / 200; /* +-0.5% allowed by HDMI spe= c */ > long rounded_rate; >=20 > This used to be a 32-bit division. If the rate is never more than > 4.2GHz, clock could be turned back into 'unsigned long' to avoid > the expensive div_u64(). I sent a fix for it this morning: https://lore.kernel.org/r/20240304091225.366325-1-mripard@kernel.org The framework will pass an unsigned long long because HDMI character rates can go up to 5.9GHz. Maxime --qhf5po6j5zzjeoj5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZeW0eAAKCRDj7w1vZxhR xcNXAQCCkNjiY0JsktvmYZxKxBoofaQq7Q2nAcC6MriD6vV3BwEA//ChFlHIKtWA r/JmCAoccPnEhcl+Ei+VFQT6vwm4UQM= =GTZR -----END PGP SIGNATURE----- --qhf5po6j5zzjeoj5--