From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 461D3C83030 for ; Thu, 3 Jul 2025 10:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To:From:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hP+BkC35hNSnXV8TcDRXavj/ZeNPjI2KJ2eMUjAdrdM=; b=Zf+zjll0vgXNAg ZWTztEHliMcAy8tVblS2kMUvdR0sOulEKCfokz5EPYYQKcfNO9yqh+1t7i19cR6gDDP0D+ZQQ+Tph N5NodKhWtLL0RTmXOV0kNz5XYgxLhPjvuYlYEvqmiWdF9xNfe9qbfC1eh5f9f7U2abC+EmVc8Xksc 8p5B6NoVACc66fyKLhlMgTX0Q1rGe3iT/mfcdPzYDC6EhP2QvwXM8GmY+BOUtHsRqTK2aZPL8KkB/ BgckgumsqRqoxETJDlS4E5bzcj+3AcdWEUKX8QZ+Ikb+TvEaSjVUjOCfFHHX1BtGaQBemVALOrhdE 0Zu0NLwULKsAkvfW91XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uXH7B-0000000AyOV-117T; Thu, 03 Jul 2025 10:24:25 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uXH4h-0000000Ay3N-3Yiz for linux-riscv@lists.infradead.org; Thu, 03 Jul 2025 10:21:53 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20250703102143euoutp027f7f1818aaaa170587ffe7af9ca78222~OtqATbQ_A0870508705euoutp02b for ; Thu, 3 Jul 2025 10:21:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20250703102143euoutp027f7f1818aaaa170587ffe7af9ca78222~OtqATbQ_A0870508705euoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1751538103; bh=nS7gGLPcYu431wACYDIpnQCjfgmdMYV2m+06WEOimxI=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=UMvZTPf5MFlYbVthTszDlaAh2NyGedz2J80TIqan8EPLEip18Xoe//ExhI+DzeMZ7 Y414rsSATVtoYPH/HyaGIRHkKHOIJbBL0jjLdx0Ln3JoUL8WtRta+WIHlpziSIfn4m j5SnuJeiSMBtJPx9MMOL0WQSQXWRykSbsz9ilvEw= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20250703102143eucas1p273c64519df9ebb05e9b3a7d9a38ad341~Otp-qSogJ1836718367eucas1p2p; Thu, 3 Jul 2025 10:21:43 +0000 (GMT) Received: from [192.168.1.44] (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250703102141eusmtip2ab7c1f9865f3ac73941aa40cc36a67b8~Otp_moHuq2747427474eusmtip20; Thu, 3 Jul 2025 10:21:41 +0000 (GMT) Message-ID: Date: Thu, 3 Jul 2025 12:21:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/5] drm/imagination: Use pwrseq for TH1520 GPU power management To: Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Philipp Zabel , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Ulf Hansson , Marek Szyprowski , Drew Fustini Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartosz Golaszewski Content-Language: en-US From: Michal Wilczynski In-Reply-To: <20250626-apr_14_for_sending-v7-1-6593722e0217@samsung.com> X-CMS-MailID: 20250703102143eucas1p273c64519df9ebb05e9b3a7d9a38ad341 X-Msg-Generator: CA X-RootMTR: 20250626093356eucas1p1adfcd565173d939f82e15252189c316f X-EPHeader: CA X-CMS-RootMailID: 20250626093356eucas1p1adfcd565173d939f82e15252189c316f References: <20250626-apr_14_for_sending-v7-0-6593722e0217@samsung.com> <20250626-apr_14_for_sending-v7-1-6593722e0217@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250703_032152_146112_71FBBACC X-CRM114-Status: GOOD ( 16.92 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On 6/26/25 11:33, Michal Wilczynski wrote: > Update the Imagination PVR DRM driver to leverage the pwrseq framework > for managing the complex power sequence of the GPU on the T-HEAD TH1520 > SoC. > > To cleanly separate platform specific logic from the generic driver, > this patch introduces a `pwr_power_sequence_ops` struct containing > function pointers for power_on and power_off operations. This allows for > different power management strategies to be selected at probe time based > on the device's compatible string. > > A `pvr_device_data` struct, associated with each compatible in the > of_device_id table, points to the appropriate ops table (manual or > pwrseq). > > At probe time, the driver inspects the assigned ops struct. If the > pwrseq variant is detected, the driver calls > devm_pwrseq_get("gpu-power"), deferring probe if the sequencer is not > yet available. Otherwise, it falls back to the existing manual clock and > reset handling. The runtime PM callbacks now call the appropriate > functions via the ops table. > > Reviewed-by: Ulf Hansson > Reviewed-by: Bartosz Golaszewski > Signed-off-by: Michal Wilczynski > --- > drivers/gpu/drm/imagination/pvr_device.c | 36 +++++++- > drivers/gpu/drm/imagination/pvr_device.h | 17 ++++ > drivers/gpu/drm/imagination/pvr_drv.c | 27 +++++- > drivers/gpu/drm/imagination/pvr_power.c | 139 ++++++++++++++++++++++--------- > drivers/gpu/drm/imagination/pvr_power.h | 13 +++ > 5 files changed, 185 insertions(+), 47 deletions(-) > Hi, I'm checking in on the status of my pwrseq patch above. Is this on track for the next merge window? Please let me know if there's anything else needed from my end to help get it ready. Best regards, -- Michal Wilczynski _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv