From nobody Tue Nov 26 00:30:52 2024 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7C39204F9B for ; Wed, 23 Oct 2024 16:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702256; cv=none; b=Zxc8HQeSnxUc1FkiZ788xgyomV1Llsyktwul0LjvV1ZC5GozPXvHaPTZt+k6uhC/Oz859/xo1PWGRsRhJxSMutjPURXjSF1TznQMT1Vx9UUsdDJBcgsOXuzZApts6YJICOys4H7I3Na/Zr0WpQOuBDahr0ZTtbGj2kU1CBcXTuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702256; c=relaxed/simple; bh=C3Ok8sm57eKmxRqqzCgHPYhgz8IPwYz2HCnF7cfbcRM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZuW4jLA2Xh9cmG6Xk8hWyt5G/Qr1bwF9rSDkvL773Ylq2kleQGQPKp9Y0M3ptfAkTqGmfVTH8CAM/RG0mcDYsBHC1eYGCGaTe4dX0T5B5oTi6SXz90lQWZyKo3VWVH6mIWxcaLT5ntsazlpVYu6gVk3PHGaMyRxU9PDwFOfZtvg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=ooSlda9d; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="ooSlda9d" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-37d50fad249so5507876f8f.1 for ; Wed, 23 Oct 2024 09:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1729702252; x=1730307052; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rM/PLpT0bJIFrHHYZG7pNuWN750b4ZOA/oUy8wRZ+s0=; b=ooSlda9dznT3V1h6pRhzcmXf2OIQ/8DdepYFfOKmKomRwvpIn9TM2VEPX19NPd4SX4 DS74dtSoNnBVguNHi1bFa2tp7XbemkP/gN4tRbzMcX3io1YhHjYHIb8309JxiNPGN/73 3GX3Wm2qVRjdJ3CAmWkd49Z/tiqfLvvMY2Zl1r5dcbk0KrAn2IEgvtRqCCOEWErZ2LmC 8f2nXcR63by6M3v82SJdq+EiGDwLhgcNQTu1cNgjHy2N1Lq1Z4A/2O0kIFXGsCvLXad+ a1ciJJqoTbS/V7pqURaG1LOAOlCU2t7YzwXgILidEQJYG0DdxXQrXZYRCzY1nyH3HIUH aROQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729702252; x=1730307052; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rM/PLpT0bJIFrHHYZG7pNuWN750b4ZOA/oUy8wRZ+s0=; b=aImPahJ8jsRbHyG7coXqFK5zI1a7Wx3vujXiV0WYF2SZ5YsXzEDeRrhN8rRkfvSih3 dxixGh70wATODqX9r53/ad2AJfl6dT69pZlNl8j3EjCMvzPwYW5fPWmqLrvgy33flt8s JsFK6Vna/6cvsNrH8mEh/63rYvhFhha3ymsRXIKcsKBhu++gTqUEoQH5Sde1XOmehaE4 eHQNFAORQS4GDDCpPX332VnPRLspdt5DZ2BGY3AmwuBRAxAmRteyUdieBnczxPK0mNE0 a9gXM+4mp7CYbRdex00NaQ3csCDDPu/4mQLk+U1IMTmZPWQdQwKXKoFzL/2y+/hpW2FI p5Qw== X-Forwarded-Encrypted: i=1; AJvYcCUTiNNGMZiWbffc9Xli3HAdi7VE6c3CRpYX2UYy2s7oK0aM9+VLOsZrdT3IOgDyWs2i+9TARmeJTWPJt/M=@vger.kernel.org X-Gm-Message-State: AOJu0YylymIqzo39DNHWfCqyWNP5o8/9lwSK0d3klCvOrguHoVZrTl0V 3Q68fsCzWjZy3KEn0NZ3BR+SHWR029xtLVypIjIh1qOcoLx4xWY26eUjKHOYUEM= X-Google-Smtp-Source: AGHT+IHztOCCr87oR87Z3+JBdAivrEgxHT4i0hywZWr6jUvTWMEc0lm3QWh2DVlbarj1WpyyJN12PQ== X-Received: by 2002:adf:e009:0:b0:37c:cc60:2c68 with SMTP id ffacd0b85a97d-37efcef190cmr2044356f8f.5.1729702250772; Wed, 23 Oct 2024 09:50:50 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-43186c50445sm21642035e9.39.2024.10.23.09.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 09:50:50 -0700 (PDT) From: Dave Stevenson Date: Wed, 23 Oct 2024 17:50:28 +0100 Subject: [PATCH 31/37] clk: bcm: rpi: Allow cpufreq driver to also adjust gpu clocks 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241023-drm-vc4-2712-support-v1-31-1cc2d5594907@raspberrypi.com> References: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> In-Reply-To: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> To: Maxime Ripard , =?utf-8?q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Michael Turquette , Stephen Boyd , Javier Martinez Canillas , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Dave Stevenson , Dom Cobley X-Mailer: b4 0.14.1 From: Dom Cobley For performance/power it is beneficial to adjust gpu clocks with arm clock. This is how the downstream cpufreq driver works Signed-off-by: Dom Cobley Signed-off-by: Dave Stevenson Acked-by: Stephen Boyd --- drivers/clk/bcm/clk-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspbe= rrypi.c index 6d5ee1cddded..274176a938c6 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -156,7 +156,7 @@ static int raspberrypi_clock_property(struct rpi_firmwa= re *firmware, struct raspberrypi_firmware_prop msg =3D { .id =3D cpu_to_le32(data->id), .val =3D cpu_to_le32(*val), - .disable_turbo =3D cpu_to_le32(1), + .disable_turbo =3D cpu_to_le32(0), }; int ret; =20 --=20 2.34.1