Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2399312ybl; Sat, 11 Jan 2020 16:20:08 -0800 (PST) X-Google-Smtp-Source: APXvYqywBzEqH4r3RGh9S7Zy1nYOUDfxOwYjVqkz3FMP2bQc3e4yX/acp6DOsmYbDaAIn7TMb+jq X-Received: by 2002:a05:6808:611:: with SMTP id y17mr7490954oih.146.1578788408246; Sat, 11 Jan 2020 16:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578788408; cv=none; d=google.com; s=arc-20160816; b=QerrgnmN2437HrkbxBqwzb0KOMg1z/hKqZnUxbjifHOGks2ZDgybL4z/+AFuRXN6SN YZqx5pDfXa7XiXm0D+sgE7wH274XLxekkDSqRTf1LJ4PCfCxHz3IGZ/xsFNHvwabhXu5 rtU4HBdmbCZik9YSi4BKsnapyOy0PQd73qK6QjchFvXxYCNfOMYNFGm9Ut9MZOYDvoXH 16iulOZfmDw/prXPx0DjuOdY8XYrvKNHS5gzWllGo05KYu0QL2xAnDjndgeufJXXkqKS GCeEP5MaHMb4QUMCJfaJ6ZsATG1z+MG6Abz8KFsFwsc6BcRRt7qUSURCgAcBWgeHWCyP fCTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AjUv0l8hskCQu/sfhTW+zT+JFalMEnxaLpHc5wjsSrk=; b=CvMy7a5lzyM73xdl1+Wr7YgafET4ff9FvmJGSyUlwUKaF4vu3ri7ozAFxthl/r4R4+ 5zOyxbfhjTqZ3S95hQZEOlylFjhTD5nhpkTl890ec5aQWcspe291yKMVIrwf/ZxYeZRP 6MJ4bKh15O/xVJn4kRy9uttDeXMdksJzYR1/4km7e4afbfZK7UmPNaE4UhDyTikJSOi1 npnrquOZJA4zuG4HoQ/Yb1ub4a4aKbqfBbHEH/FFWrps86kEcihD3+gbgut2NP9BqUhj VuVzYYrM7fjB7iAVrDkz1eyRufGZXj6zCWeSbDeLyD+twV9eSg8tmQCkqrwduCkjdAoo STwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=uZapQ+by; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si3852380oic.234.2020.01.11.16.19.29; Sat, 11 Jan 2020 16:20:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=uZapQ+by; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731729AbgALAQq (ORCPT + 99 others); Sat, 11 Jan 2020 19:16:46 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35215 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731711AbgALAQp (ORCPT ); Sat, 11 Jan 2020 19:16:45 -0500 Received: by mail-wr1-f67.google.com with SMTP id g17so5206647wro.2 for ; Sat, 11 Jan 2020 16:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AjUv0l8hskCQu/sfhTW+zT+JFalMEnxaLpHc5wjsSrk=; b=uZapQ+by1rty3HyhlkQGQkL4kSQRFma4TxmcNEsHnvBp7pkpTBMBX3vgVUMG3/IClu IdHTMtYLKZeVzzvg+Qfdyi/l7s5XskJDnMxZRuZsGRBMoTHlDD+YnLEQHQ5eS3CFXphI HIDuL1wMXLwd/+ib2+jlhodUqkboDBpYVhCZ5GkTDadamEcaOfwQJfCx6JGEM9subtBS xfJqEWOS4NkPl+/XTRZ0RgtsvZMJu96IjLswacwCUb09BNsTfFjIpPpEW6Fjh+gXEaQ5 2Sm1qgWUR++mXkO7AZvhOE5GSRKeOomTQo9+/4P8ZcgDTlCPaCdNAgc4uKiDO5BU5VQB r3Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AjUv0l8hskCQu/sfhTW+zT+JFalMEnxaLpHc5wjsSrk=; b=Gm4o+wp6povyfSH2SqCT1zUjnU29LTkVTINjS6BUHUwyFrNiopMHNGHwPCeA5QLYBs ozufWLvcYoAxHE2Gd7plYzEfGKbNX4OirW57TolGEc5+GNsUXNufzEtKNNgdPlr0di7b zYzBKbqN7uFGOo3wVC01z4OqPbB80Ta4iQGUlvVB5z2FSi/AINOB9y22EfsdIZ2XyEqT 9b4C2J+psGTBcp4sVrAGDJyOSfU3q8hBH20EZpsrvBEnkzKuaUGdCD7BwURdgY14qO86 Ndp2V8mwGFp2pk+zKgNhW5qbMHo0NhoorTc4acDPATenYbR0WguiX/uGne/S2FvvEnCl VR/w== X-Gm-Message-State: APjAAAWbxvMYtxbPJGtvhhWxq/BUqhiJ6ZKJDTeO8+M1pSCmIy3IjeIS ZKrnP4tC4F6sfw8CY+AF2e6ThgIG X-Received: by 2002:a5d:44cd:: with SMTP id z13mr10795278wrr.104.1578788203919; Sat, 11 Jan 2020 16:16:43 -0800 (PST) Received: from localhost.localdomain (p200300F1373A1900428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:373a:1900:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id h66sm8575535wme.41.2020.01.11.16.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2020 16:16:43 -0800 (PST) From: Martin Blumenstingl To: dri-devel@lists.freedesktop.org, alyssa@rosenzweig.io, steven.price@arm.com, tomeu.vizoso@collabora.com, robh@kernel.org Cc: linux-kernel@vger.kernel.org, daniel@ffwll.ch, airlied@linux.ie, robin.murphy@arm.com, linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, sudeep.holla@arm.com, Martin Blumenstingl Subject: [PATCH RFT v2 0/3] devfreq fixes for panfrost Date: Sun, 12 Jan 2020 01:16:20 +0100 Message-Id: <20200112001623.2121227-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are a bunch of devfreq fixes for panfrost that came up in a discussion with Robin Murphy during the code-review of the lima devfreq patches: [0] I am only able to test patch #1 properly because the only boards with panfrost GPU that I have are using an Amlogic SoC. We don't have support for the OPP tables or dynamic clock changes there yet. So patches #2 and #3 are compile-tested only. Changes since v1 at [1] - added Steven's Reviewed-by to patch #2 (thank you!) - only use dev_pm_opp_put_regulators() to clean up in panfrost_devfreq_init() if regulators_opp_table is not NULL to fix a potential crash inside dev_pm_opp_put_regulators() as spotted by Steven Price (thank you!). While here, I also switched to "goto err" pattern to avoid lines with more than 80 characters. Known discussion topics (I have no way to test either of these, so I am looking for help here): - Steven Price reported the following message on his firefly (RK3288) board: "debugfs: Directory 'ffa30000.gpu-mali' with parent 'vdd_gpu' already present!" - Robin Murphy suggested that patch #1 may not work once the OPP table for the GPU comes from SCMI [0] https://patchwork.freedesktop.org/patch/346898/ [1] https://patchwork.freedesktop.org/series/71744/ Martin Blumenstingl (3): drm/panfrost: enable devfreq based the "operating-points-v2" property drm/panfrost: call dev_pm_opp_of_remove_table() in all error-paths drm/panfrost: Use the mali-supply regulator for control again drivers/gpu/drm/panfrost/panfrost_devfreq.c | 44 +++++++++++++++++---- drivers/gpu/drm/panfrost/panfrost_device.h | 1 + 2 files changed, 37 insertions(+), 8 deletions(-) -- 2.24.1