Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1780510lqg; Mon, 4 Mar 2024 03:45:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKGU2fZvfdxVLhU1kX8piFWE7RSGQQ3oj2iyMwGx/0Za0uJqptsWg++kM/Hn9wxBA2F31Pq0y4Wf/HiWrurG33NOBTOequBVMd+mol7A== X-Google-Smtp-Source: AGHT+IH+br44wKQl9C5+aVwouYH1O+hnbIf/QP/VIi1GFFlENEpXEyJlJUz3/XceWVJVCyN+9qzB X-Received: by 2002:a17:906:379a:b0:a44:791d:6281 with SMTP id n26-20020a170906379a00b00a44791d6281mr5955863ejc.51.1709552756323; Mon, 04 Mar 2024 03:45:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709552756; cv=pass; d=google.com; s=arc-20160816; b=eydODcbv8druwGYAFFTcXm4WV+LKYNi6OpLpo/dFYpKMoq+i+xsFeHUWqWwiVOpJhv GN/0y+wMaBLPezz0tapZlK60zHIWR8DSgLELvt/7bY2U5tdl3bGU9TxpRke74PFl0Lyf WjRDTRcYkw5CPNg28qJ6Y/l3Qt4TlzC82rncw+j4oiygwzKYLdgV0cKR+MLOSDbTrUxj ktP1mQNmZKSM1Wu/5cnUJBW7aXhb2hS5A0qSFBMkxEKeZ8JzKOmjv3o7DS3nkogZ9Y2J njbZFksXQbLePRkZ/KCua8LwpdDECKZqaWE+vbnGMRy4LYZfsVIWlIZ8WKT+uyyBsw/H XWRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=NmQqj74yJPF25yojdvY0iiApaUNTHa9OZf57WQqFLTY=; fh=mT/u00XjwVa4fGY7RCh/6MgKqTTQmhdxARayudWQzyg=; b=OvSMF6alBHSkFNo4uO7cBUgQv2lNvScRG5iXLuXY+/1m+GdVbDOpYbxBZcpqMNROq1 qaTtlxosALf9lMqX53hMUK9b+GBOZ+PCqQF88Pl3eAYtfq5HqGuJqYaauQxetqTmG09o CUTSVL/yTnuUrjZN0uP77TIvWT0UbjNHZV0YovhhHoSrC8mqeUjFERoXYqdSm1+8Bo15 mczZFvAWDAIJFJ/z3vtUaaZDEREZ9qkYCrdz1Qmanx602F/O71FV1Qr4Jyezg4FQc3SY VOzu05Rid/EbJ8GiLiuObs3fycBAz1PfpnYlWl6UTsya87XKP9PO1psrTWew0uHqtYRJ Awqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-90525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f19-20020a170906c09300b00a3f851fc3f3si3780030ejz.504.2024.03.04.03.45.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:45:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-90525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 127941F26FC6 for ; Mon, 4 Mar 2024 11:45:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F7EA3A8FE; Mon, 4 Mar 2024 11:45:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 691913A1BD for ; Mon, 4 Mar 2024 11:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709552751; cv=none; b=YgGs3DLNX/x0vML8oiHyRdipmIc/E2J+8DRK+I1Ghyg3nTNE4fRrBRZihFfSxw2rNgU7aO6l3JcCQT/ASi7jNxRjYHf7QbYXQSwJwYG6awe7+xcB8H7wOQeIjDDdzJuOBONaKAAHQBbDjWIyzQ2cn998Se0NmVNU8TIPl0tnMDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709552751; c=relaxed/simple; bh=35fzCKDGyb1iAEeJtIZBGvLzvc69xXg+MMNnks/ms5k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F8MlzilSVMEW2Brh8O92P5NlI/y3onWVVYowULg2KzNPrvD0F+SbCutlYYx0lrg3K9MDp30kNZZ6/ERbujNFlvWL3DOFlEq+1lVa2+wQMs7uLbul3W1y3dc01uxzyQN107idvGfW3DnXwgYtzzrHQVqSxXa0V2nCleDQhZc0wu4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 850001FB; Mon, 4 Mar 2024 03:46:26 -0800 (PST) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5240A3F738; Mon, 4 Mar 2024 03:45:48 -0800 (PST) Date: Mon, 4 Mar 2024 11:45:46 +0000 From: Andre Przywara 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, "Maxime Ripard" , "Dave Airlie" , "Dan Carpenter" , "Ard Biesheuvel" Subject: Re: arm: ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/sun4i/sun4i-drm-hdmi.ko] undefined! Message-ID: <20240304114546.4e8e1e32@donnerap.manchester.arm.com> In-Reply-To: <1baf9a7f-b0e4-45d8-ac57-0727a213d82d@app.fastmail.com> References: <338c89bb-a70b-4f35-b71b-f974e90e3383@app.fastmail.com> <20240304112441.707ded23@donnerap.manchester.arm.com> <1baf9a7f-b0e4-45d8-ac57-0727a213d82d@app.fastmail.com> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 04 Mar 2024 12:26:46 +0100 "Arnd Bergmann" wrote: > On Mon, Mar 4, 2024, at 12:24, Andre Przywara wrote: > > On Mon, 04 Mar 2024 12:11:36 +0100 "Arnd Bergmann" wrote: > >> > >> 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(). > > > > Wouldn't "div_u64(clock, 200)" solve this problem? > > Yes, that's why I mentioned it as the worse of the two obvious > solutions. ;-) Argh, should have cleaned my glasses first ;-) I guess I was put somehow put off by the word "expensive". While it's admittedly not trivial, I wonder if we care about the (hidden) complexity of that function? I mean it's neither core code nor something called frequently? I don't think we have any clock exceeding 3GHz at the moment, but it sounds fishy to rely on that. Cheers, Andre