Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2387368rdb; Fri, 8 Dec 2023 06:51:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaGjJSl38d6toeNTsyEBKMxXR5r6vix+u+OSL8di3xUinjZxhHKGBMdkXbkSFWo1rZycTk X-Received: by 2002:a05:6a00:80d:b0:6cd:f6e6:2f4e with SMTP id m13-20020a056a00080d00b006cdf6e62f4emr141541pfk.4.1702047080405; Fri, 08 Dec 2023 06:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702047080; cv=none; d=google.com; s=arc-20160816; b=IU73uVDV0YrPkN599kUnXqxCRwZxQwL73+6lvmam0/FCk1i0sIrQfuL2WsZxkoDKeO bLGtCeqMviu4MUK8agE4TyBalrSTee3yrUvDEHv9Nt6oMOhMDHHSeeE8qzm7ReNN+BSm ouBYAKrwGhw/FsUjU/lkhRMORlyj+wMEK618fRRme0NgDD970xXFgTAAiTn+wryw5OUl eTbOX0BuUs172NsngslraobEXRLvKpAIy8qfeP+MWKND7DhdmDvvPSXJBz/Hao6gnMgi bSJz90f2I/r+8neSvg/W2O+U/wjqIo4iDdNEm7zbfscMmXmIoF5OO5UdHTKZRjgefAHL k/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KRANGRVtR/xMLf1ZFIiHI4KcVqsMlvQCzyvqC37ZWJ8=; fh=f+kbc3urmvxpL+GkqF2WqD2h5Bkjbnw/m5OhbtUS0vs=; b=tnyCUMuVl5faBsv0NI2041EGSf9cg9qr1gsQxJmnR2eV8x6H3HOL8jmeuRjKXhPQ5P 0mFbdbA/JdEElOi+YHNTvugNnae8wVXXDrjQP5giN5PdeERvdSBrPGP/NcEegWzVCqLq 3TNjWDiLeUpMds1wj2aLWQMk5dUYH1kXxpfq4kdUO885eX/BrD4zQp9WC+zW0qUOeIJQ wHYoPzxl5vEYs4OPfyH2NxWE6IW8pNMy0ZKE0Xhhss5ZRCdcUQcl7b4/EX1cGoQ8VaVh +JTMICFxW3w0dzs+/OiNfqHk2VzRO3j90VpZbZlP71/E7geLd3uIGW9oxB1HSePUFdyA kPOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5QTFyOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 19-20020a631253000000b005c65b28ff0fsi1741885pgs.99.2023.12.08.06.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 06:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5QTFyOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7B24E825EDAB; Fri, 8 Dec 2023 06:51:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574036AbjLHOvA (ORCPT + 99 others); Fri, 8 Dec 2023 09:51:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574027AbjLHOu7 (ORCPT ); Fri, 8 Dec 2023 09:50:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2054D173F for ; Fri, 8 Dec 2023 06:51:05 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D819C433C8; Fri, 8 Dec 2023 14:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702047064; bh=T5He5Aq/lOrFvOVWphEjDW0dKri7ifK39X4Qeuo70+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D5QTFyOdj1eXrySHveWmpSTex81IQ1KyWDBN1yCYV8g7rGrE0MQwcWt4o2c92W+T3 os5EtnSPi3XlsGr49dxsvM4RGe7YZrg9c022H4t2nv9kf7mQopxjd142ga2q6Qwmvu I/5HGtVHLG4vLCYoJkbQtw46v2I/Ip+lxXaVVwM1QWtfgqQkfOU66ZmI9QI2nX3/6P vA2M0+sIq29PPMT3ijIPU+P6+BvSBrVj6mkANgWo4Xl6yjSyXKGn5VkyBz9aMh9jll OhMiMMqPJ20LdZK1csiAQXDgNt7BxVUL2/l+Uh469Y/0VgBwMo9qmWxnO1kRkmrupj vPVH08da7wEEg== From: Bjorn Andersson To: Arnd Bergmann Cc: Arnd Bergmann , Andy Gross , Konrad Dybcio , Stephen Boyd , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: (subset) [PATCH 1/2] soc: qcom: stats: fix 64-bit division Date: Fri, 8 Dec 2023 06:55:14 -0800 Message-ID: <170204733604.342318.17962213281334041105.b4-ty@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231206123717.524009-1-arnd@kernel.org> References: <20231206123717.524009-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 06:51:15 -0800 (PST) On Wed, 06 Dec 2023 13:37:06 +0100, Arnd Bergmann wrote: > Unguarded 64-bit division is not allowed on 32-bit kernels because this > is very slow. The result of trying anyway is a link failure: > > arm-linux-gnueabi-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_ddr_stats_show': > qcom_stats.c:(.text+0x334): undefined reference to `__aeabi_uldivmod' > > As this function is only used for debugging and not performance critical, > rewrite it to use div_u64() instead. ARCH_TIMER_FREQ is a multiple of > MSEC_PER_SEC anyway, so there is no loss in precisison. > > [...] Applied, thanks! [1/2] soc: qcom: stats: fix 64-bit division commit: 73380e2573c34a45e01786750a4a2efafc2248bd Best regards, -- Bjorn Andersson