From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.234 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796118154; b=dtz7mGNGpjIQRRXn89z2V3sEhNNAFcftGY4eIJg6wTV89kbM18DqMbQTR1aZpHTeFWXd DRHxJ1+WJzl/yv8opIC2zo7HtMSTK2txXYn8tHqeq93Fi+7/orwKAH6oxiMcZHPLGzCkX 5/ACKElkdtkcNQiYmeeGfP3F4oUpvH5rGgATtpyRUp/oV4m2MTeYPH/vQAQKDvOkygTlf +VxJaP3npFwGmo0FtK6m0cSCVxl/atyJF+pKhje5HW5TEjUfWtHpbjXp4oiIZYlGsKlFJ RYviEaRjQ5dI/ODR8CUFvGnVLrWqGdKaNfRZoelgqeuhd+5o0zcGtnptQT19F0gkWYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796118154; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=tqICkVXQSRhhGjys89mHAdujm05FnpCGCRERI2E6w5E=; b=IZLGQX4dTxbB33x46txe9sEy48YBR9N/dcbW6hW4e0Q2KW6O5XRpQz9V8A5yoHIVJuJ/ KweRKFh26WZQWng8hUuWTx+WQNjw43j+E0cCJZH7T3uhxduM9uIsL8QaeetilEDJWPFeP ul12FUqBiendbmbP3f4rFOf1jRCIEdg1MEypyUhkCGTkFgB+ZhqqbVUCORQ2vB0BANe8q VAhxIl3UbPSN8RuRDywjkgj5+z30rUrI0o4jPCeFDvt43WRuBOdTsUHysWGa/Z8E73N/4 KehrdyKkWRjq77e8JUi9OcllXS27BXmt/y87WGj8zD6ruMCv/LNZJ8waJDfldJzOxjg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=grimler.se; spf=pass smtp.mailfrom=grimler.se; dkim=pass header.d=grimler.se header.i=@grimler.se header.a=rsa-sha256 header.s=key1 header.b=fR0Uxz8R; arc=none smtp.remote-ip=95.215.58.234 Received: from mta1.migadu.com (out-234.mta1.migadu.com [95.215.58.234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5AFF606A320 for ; Tue, 1 Dec 2026 09:42:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C5AFF606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=grimler.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=grimler.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=grimler.se header.i=@grimler.se header.a=rsa-sha256 header.s=key1 header.b=fR0Uxz8R X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=gs3WCXp6mTQu7tNAIGyTnp+psB9VLnDZi2g+WXtkRDc=; c=simple/simple; d=grimler.se; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796118150; v=1; x=1796722950; b=fR0Uxz8RaR7w/Fe4IQhzhcr0G5jMt448OKqteb3PmiWZZQFurdSZo2NyWSF2rd1v0TTaLX1N gGiWJZnRo98SryNd8WOTQ72QKWTITIjrZBrUmJiD9K76UWzJaDZw32E3YOETMoMCV/HKGsPobeH ivVm0xst+M1sCllBBpcrnbCE= X-Envelope-To: linux-kernel@vger.kernel.org Received: by mta12.migadu.com with ESMTPS id df96065ac6f939be; Tue, 01 Dec 2026 09:42:30 +0000 X-Mizu-Trace-ID: df96065ac6f939be X-Migadu-Flow: FLOW_OUT Date: Tue, 1 Dec 2026 10:42:26 +0100 From: Henrik Grimler To: Young-Jun Hong Cc: Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Peter Griffin , Alim Akhtar , Stephen Boyd , Brian Masney , Jerome Brunet , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH 2/4] clk: samsung: exynos5420: add VPLL rates for 650, 700 and 750 MHz Message-ID: <20261201094226.GA817@localhost> References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Young-Jun, On Sun, Nov 22, 2026 at 05:24:46PM +0900, Young-Jun Hong wrote: > Hi Henrik, > > > Thanks for the review, and sorry for the slow reply. > > On Fri, Nov 06, 2026 at 03:45:36PM +0100, Henrik Grimler wrote: > > What you mean with "using the same P/M/S style as the APLL rows"? > > That wording is too loose, sorry. Let me explain how the rows were > chosen. [ ... ] > > Was it tested by a human? > > Yes. The code was generated by Claude Code, but I set the direction of > the experiments, looked at the results myself, and repeated the runs on > my ARTIK 10 board until the results held up. > > Some background: I am evaluating the ARTIK 10 (Exynos 5422) as a > small compute board. Starting from its factory Fedora image, I moved > it to Debian and tuned it for benchmarking, with Claude Code writing > most of the scripts and configuration changes. I defined the > experiments and how to validate them, analyzed the results myself, > and accepted a change only after it reproduced across repeated runs > on the board. For this patch, that means the clk_summary readings and > the fixed-clock GPU runs described below. Thanks for explaining. > > Do you have any references, like vendor kernel sources, to back up > > these choices of dividers and scalar? > > Not from a vendor kernel for this SoC: the ones I found for the Exynos > 5422 (Hardkernel's ODROID-XU3/XU4 3.10 and 6.1 trees) also stop the VPLL > table at 600 MHz, and the mainline VPLL table (b92981de92cb, 2019) does > not say where its values came from. > > The closest reference is in mainline. clk-exynos5260.c (d39e55e06371, > Samsung, 2014) has one table that it applies to all pll_2550 PLLs of > that SoC, including its G3D_PLL. It contains 700 MHz = 175, 3, 1 (the > same row as here), S = 1 rows from 633 to 1200 MHz (VCO 1266 to 2400 > MHz), and the 1300 and 1500 MHz rows (325, 6, 0 and 250, 4, 0). So a > Samsung-written G3D PLL table on the same PLL type already runs the VCO > at 1300 to 1500 MHz with S = 1. The vendor 3.10 tree for the 5422 also > uses S = 1 on other pll_2550 instances (IPLL 666 MHz = P 4, M 222, > S 1; SPLL 800 MHz = P 3, M 200, S 1). I do not have the user manual, > so I have not checked the rows against its PLL limits. > > On the board, clk_summary reports fout_vpll at 650, 700 and 750 MHz, > and GPU throughput follows the clock: between a fixed 600 MHz and a > fixed 750 MHz, an OpenCL mad4 loop goes from 31.1 to 38.7 GFLOPS and an > fp64 loop from 11.2 to 13.9 GFLOPS (ratio 1.24 for both; 1.25 > expected). > > In v2 I will change the 750 MHz row to 250, 4, 1 (the M/P of the > 1500 MHz row of the pll_2550 table): same VCO and output, Fref 6 > instead of 12 MHz, so all three rows reuse an existing M/P pair. I ran > that row on the board: fout_vpll and the GPU clock read 750 MHz, the > fixed clock results match the old row (fp64 13.8-14.0 GFLOPS at 750 > MHz, 11.1 at 600 MHz), and a devfreq run between all OPPs showed no GPU > faults. The 650 MHz row (325, 6, 1) passed the same test (fp64 12.0 > GFLOPS). The v2 changelog also describes the clock path and where the > values come from. In my opinion the values should be backed by some usermanual, or at least get some sort of ack from Samsung, to try to ensure the values will work in all edge cases. It is great that you have tested it, but I do not trust that values generated by an LLM, if it cannot provide references. Best regards, Henrik Grimler > Best regards, > YJ > > -- > Young-Jun Hong from Hiworks