Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793103719; b=rtrs9AZQDjDdgDE82XlHCfabwiOEHGggAVhMZD/HNjUAfQhbDWYrrzKVlxZrDuJ4Bhgm QMdwl8EqFcAqIReEVIjN+7856LXD3aKfAS+mV174pCQtjEdmTa0jS0HYJ0UhvCuM6M6ha P6wLYRug2pBPZxeE7cjrXSodzrzpXr4koRjJYoL1uyMgdQZXsKwfskRdUutWoNIStROO1 IS1ooeJfHvUJlZKeGl19EU1uLrDd3iQYAkKOeH6dAolRAixTvn5er3xiIyVRtR1eMFKwN qwsS/tHl9w1hHGcl4edB7At6S9TByYmNjGqg2b/1FZMeIguX/CAF/xkjyl84INGn6fA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793103719; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=CjWvn6AFi1A52TxbvgaZZpyJgGj9ZtMA7w6Z+oUCikU=; b=w5iSJUFM3hz/b6O5VNgMt9oVepIPkk+ROLrgUfaeeQFtHPGciiiuK8g99TAgLwgJdEgK Ckw357MQYGjL1tqOZirqCllJYDdW44o3gF7HQJqOlg3MTYVn6Sm7tgnRVaebTnCqED/mT G/EYAqqVpIEb0aSrrhkQOTuLa29knW9Ut4O62qjB78+yJ7ifGYJntlnGt0eB4h30ClkHq 0u5Gztf3aOLile27nBGgQE5jgIXs5OSxRzkmzezEVIRycn7jqiA7IDyE/bX0p+t+naaVi i9tbby9Xx4QOLdVwU9ztqdvmVmjvDJka8MOHtF0F3vpT3zkztYNsxrgyZooiETbp0Sg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=hEM7Vq9U; arc=none smtp.remote-ip=209.85.128.44 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 75B98606A31D for ; Tue, 27 Oct 2026 12:21:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75B98606A31D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=hEM7Vq9U Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a5036bbac7so16001335e9.3 for ; Tue, 27 Oct 2026 05:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1793103718; x=1793708518; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=CjWvn6AFi1A52TxbvgaZZpyJgGj9ZtMA7w6Z+oUCikU=; b=hEM7Vq9UI83EhmjxiULTmQewGqr2XpeyKaHE4T3ujUWQ1sKYuM2vEMA1NcZKUceD65 qiNW3w/jA1selWoK0OXpToAzmjDj90pXA45+BSm6Bm0sS0MjJeEQ1k4oEjIM3UqL4AC3 vIJKGGxOPPGafaUfgbtzOCqSZuV8qmZQy0/luCwn0z8St1VZTTxpj74PMUpcfomeGq4G x2hdcXV+YVPKmy2Euy7hLYdrilbjEJOxS+Jdn2l2yqlj3zw3QO7Rb+vKMBMC13JTQMfE mKXdSjF4U9CzaMj1sIofPpONo/KUXYYbOgENENs5hNs4KAlJqB25q/uGL7b0FBymaW6q CKdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793103718; x=1793708518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=CjWvn6AFi1A52TxbvgaZZpyJgGj9ZtMA7w6Z+oUCikU=; b=XC89Sr9RcfMP5bqXDOExdwX7Y7g3rgLSjqvhhkjFcSac9q7ZnZRz8cX0Jiu/dsfRdk uQIaOsjFLvECNvFlts1gOdrmrw+GiTUtlI7a1WHMomL8JpFnC0vyxKODTBskT8IyMwUM 4X37HZ6dJHEx8qAwRKQsMXnHh7gKducdXPHAgGswbnj6jtkAMFgPNAIFUFFeGvm1bm4k SXppg+NXpRBAHArsyKRpPphUsWAk8H3RK515H6jAq47HHcNv0I+TE3TP1zkUGus+6jOG uoFIINm6HBo+Dq4NUKlkEnNnxAJFOSAlINKOWihsQqs6UvmUqzQT3EZDRcLWFaNpvbJj 6QMg== X-Forwarded-Encrypted: i=1; AKwUvBw+78oMNhPlEkVeOewJfZCakn/52OG43cB5wX0emMmJ9lkPhm8QtLKu3M/sd9oNoRg5o5hM+0fhEhcJhI0F@vger.kernel.org X-Gm-Message-State: AFq9FYJUUA+r4d4vEPWD6V4L/v0q49FPZ6wMuiSOKgXch4z9AbbiPbff qxCOmAZU44tDOMduATgD2rq5ogEJfclfltE/1P6WvEh9M2e9OwXH7sNo X-Gm-Gg: AYBFou1l0YeNkPv+mXSMf0bBXrmG6OSsLXKbT7BhY52RpuWah02kGb/Zv2t8aaNGPUq UiDICIN3klQyk99TF1241KcHrolo163AuvSxY4m53Xaz64YdwFKyGQAXUlYLXCGc2HRE02MPbzG k9uQszLZx3heNClXVkQbNTdW+LXX/kaxKuK2l5UYgjh3/8Y42EdjhlSXQY15PdgAdpkF3Tsgg+L wviRai02aGOoYHOVydlirZTqa/VJz2fraOw7k+78kAX0XqayVKjFAweA8/OKAhC9f1tdMDwIlSF ENJ77wVdc6w970BccCYyzCXnBjf3scXsrNHuUO8MpnDn4kkd3/1xIxkot1FozgOJyPnwwicd8Gd SmF54OPZjT61ciZ0Jit7QEpaC+3euAW7KM3ebD9P/37wpuYgadKJQ8C8SpZ5ePUStQZ1d0sz4lg UC2KetZyAMh3AklB9kUVUTeaalevyFA/B3t8JzDEbAwqbXU3h4w0FBrgAJPSDXgFsiqnrLgaxh9 E8e0rVH9PO44geFVz0b5EZBkg6Na9JU59cZXdVOvnw7xZbbMwt/I3fCdx4B/XehWX6uLP2Y65ps mtjYr2Y= X-Received: by 2002:a05:600c:4583:b0:4a2:1197:1de0 with SMTP id 5b1f17b1804b1-4a35ac963edmr205653775e9.19.1793103717674; Tue, 27 Oct 2026 05:21:57 -0700 (PDT) Received: from localhost.localdomain ([188.190.249.216]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a35a0bae01sm325465755e9.7.2026.10.27.05.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 05:21:57 -0700 (PDT) From: Vladyslav Tymoshchuk To: Oleg Keri Cc: Vladyslav Tymoshchuk , Ulf Hansson , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Abel Vesa , Akhil P Oommen , Rob Clark , Thorsten Leemhuis , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [PATCH] pmdomain: qcom: rpmhpd: don't clamp gfx and gmxc before sync_state Date: Tue, 27 Oct 2026 14:21:46 +0200 Message-ID: <20261027122146.24778-1-tvlad744@gmail.com> X-Mailer: git-send-email 2.45.1.windows.1 In-Reply-To: <20261021080517.2161-1-okerixx@gmail.com> References: <20261021080517.2161-1-okerixx@gmail.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, Oct 21, 2026 at 10:05:17AM +0200, Oleg Keri wrote: > Until rpmhpd's sync_state every vote is clamped to the highest corner, > so that hardware the bootloader left running keeps the rail level it > needs until its driver takes over. Nothing the bootloader leaves behind > runs on the GPU rails, but the clamp hits them anyway: the GPU clock > controller's probe runtime-resumes and suspends its GFX and GMXC > domains, and from then on both rails are pinned at their highest corner > until sync_state. SM8750 (Adreno 830) is hit by the same clamp, with a different symptom and without CLX, which is only enabled on X2-85 and A840 so far. The first GPU init succeeds, but when the GMU first boots under the clamped gfx vote, every ACD level runs at half the requested clock until the next reboot. msm.disable_acd=1 avoids it. OnePlus Pad 3, v7.3-rc5 plus board patches, msm as a module loaded by udev about 4 s after boot, GMU firmware 5.1.25. The clock was measured as drm-cycles-gpu over drm-engine-gpu in the fdinfo of a vkmark process keeping the GPU busy, at fixed devfreq levels. The four kernels below differ only in rpmhpd.c, and I alternated between them from boot to boot. In every boot in the table the first GMU boot came 62-81 ms before rpmhpd's sync_state: devfreq (MHz) 342 660 1050 1100 without the patch 342 330 525 550 (10 boots) with the patch 342 660 1050 1100 (11 boots) local test, only gfx left out of the clamp 342 660 1050 1100 (5 boots) local test, only gmxc left out of the clamp 342 330 525 550 (5 boots) Every value was the same within 1 MHz across the boots. On one boot of each kernel I also went through all 14 OPPs. With gfx clamped, 525 MHz and below ran at the requested clock, 607 MHz at 539-558 MHz, and 734 MHz and up at half. With gfx left out of the clamp, all 14 were within 1 MHz of the requested clock. In one more boot of the gmxc-only kernel, sync_state came 83 ms before the first GMU boot, and that boot ran at the full clock. So, as on Glymur, only gfx matters here, and only if the GMU first boots while the clamp is still in place. With vkmark's blur scene at a pinned 1100 MHz on the same boots, this is 414-421 fps without the patch and 831-866 fps with it. Tested-by: Vladyslav Tymoshchuk # SM8750