From patchwork Mon Sep 2 22:48:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13787766 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 100D6C54FC6 for ; Mon, 2 Sep 2024 22:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+tHt6YbEYKdIZoRecVjHoZ1hDu+9v6PoBrsVr9Tc8E0=; b=dj7yRi0+2yihvuYm4cQzRl6NCt 9LplhordB1lqEW7lwTV2sckRPEOpMkpfyJeBwUwcE7imSXO4ZztZ/L0gh3MFYkhHyMtqLpPKENnIW oXBQ+evoIZhk7QDu7+OLvQBzUGVcoB7REvH8OcFSnux+35sBLpNMpy6Z5srBnAvEgnYAfQJofrRgV oKGwQ9mqPs9FagrKmKVDM/RvCPWcLzGpRu/KCS6UyMFZFyP6PXm7TxNtOeK4LeP1Yr0pO40j3qfmq wDCDBuWQZoLQSKxt0M+B+RWOSrC/a9WH2zq9quG/m6UA8WKV2zJFFZ6Ym4r9tf8ElS11rY18oH+cC odHhqn/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slFrM-0000000Fhgd-1u00; Mon, 02 Sep 2024 22:49:20 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slFqR-0000000FhVl-31Ey for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2024 22:48:25 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-53346132348so5764128e87.2 for ; Mon, 02 Sep 2024 15:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725317301; x=1725922101; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+tHt6YbEYKdIZoRecVjHoZ1hDu+9v6PoBrsVr9Tc8E0=; b=bdHS7PEnM2GGv+pJrGOrWzfKKKiWuUpJQSr2RyTN9mqPoXOQ83LRm0oF46J6eibOS6 Cz5/eJ5fRnTqxiXPpsisZ2l7IEClCpKwIYtvjIGSDP0jLDuKRl5RHZqVJLiCBFdX6DDQ RmsLWZ67vbY/yAO42LmxW7Wyd8yLf8lIrEhZURYC8A4m4yt/hm59CmXUQSC39su5Bnjj QwsHujuHgYby/JkkqZxmx0x/iouHkatnjJlhulosiY+3ue1sp4rDpD1zvNpYBxEEX0QX gCJn6a55BdM2t//OqTID12fl6UFN8pK1+xB6EqLkA5wDTWqtDSzg909Viz0RGlKz3dVa J+DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317301; x=1725922101; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+tHt6YbEYKdIZoRecVjHoZ1hDu+9v6PoBrsVr9Tc8E0=; b=MJPSkbWio9pWVEnk7Ne8GKJWqDn0N6wUpn8tgJUcXGQ4/iHXSPO9lmDuliyhYL/Zrp zW2mHihA8YogMSsWUPCdgKaxrmOgFUwaesksKnpu5eKf/28+yS+C81yVAI708yY/yk64 BoThkVn5awMxmYGJ7Dc56vh2+TxOrYBcTANyWjAfdY/8z3I4M5xAZ8V3DKTLKvxfQN7R MsIcP3vlwAYqlFhpSlIT9xTGLimWYCowb03B2E8R5+2AxRpQOL0OQw6tfdzwdrDVMFf2 Tqs/G8+8So7X/66ctIpCCz2MxoOj3XxW/Lj3kQ+BhPpEs7QNpS3+wlD9I/W0+BtCud5t v7fg== X-Forwarded-Encrypted: i=1; AJvYcCWuBy9ZjmcaSwrysXLcWS3h6xvBfLBDqz/lLcwrPsT6/wEVAdtzqNInri9vHOc3nOtq/xP5eHZBVVB6m7QadEbe@lists.infradead.org X-Gm-Message-State: AOJu0Yzk0V+sqwo9ewmnN27m4B62Iu1GqADjSzRieKy0raLqeQbGtfcF 4ibzLt3rBiKVJtBbntzydxHT1kuuJu7dmZfgM7D2WC759W+uzir8ra1BnFVo7n4= X-Google-Smtp-Source: AGHT+IE5JsLl/nGfRejt5XBymU6zm0pRwvc7ZSu5/JJmpMVNh24v8a2zkgYPPPZHhLnvRh7ndQewkg== X-Received: by 2002:a05:6512:1091:b0:52b:c1cc:51f1 with SMTP id 2adb3069b0e04-53546b2597emr7683029e87.23.1725317301026; Mon, 02 Sep 2024 15:48:21 -0700 (PDT) Received: from uffe-tuxpro14.. (h-178-174-189-39.A498.priv.bahnhof.se. [178.174.189.39]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5354079bbf2sm1790646e87.20.2024.09.02.15.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:48:20 -0700 (PDT) From: Ulf Hansson To: Viresh Kumar , Nishanth Menon , Stephen Boyd , Dikshita Agarwal Cc: Bjorn Andersson , Konrad Dybcio , Nikunj Kela , Bryan O'Donoghue , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Stephan Gerhold , Ilia Lin , Stanimir Varbanov , Vikash Garodia , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] OPP/pmdomain: Assign the correct required-dev Date: Tue, 3 Sep 2024 00:48:13 +0200 Message-Id: <20240902224815.78220-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_154823_793546_C02978F5 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The recent series for OPP/pmdomains [1] that has been queued for v6.12 via the pmdomain tree introduces a regression for the Qcom Venus driver, which was reported to me offlist. This small series attempts to fix the problem by making the assignment of the required-devs more robust and correct. More details are available in the commit messages. I have tested this on specific test setup with Qemu, trying to model all the various way required-opps are being used. I would appreciate help with further test on HW and reviews, of course! Kind regards Ulf Hansson [1] https://lore.kernel.org/all/20240822224547.385095-1-ulf.hansson@linaro.org/ Ulf Hansson (2): OPP: Add helper to retrieve the OF node for an OPP table OPP/pmdomain: Fix the assignment of the required-devs drivers/opp/core.c | 15 +++++++----- drivers/opp/of.c | 12 ++++++++++ drivers/pmdomain/core.c | 52 +++++++++++++++++++++++------------------ include/linux/pm_opp.h | 13 +++++++++-- 4 files changed, 61 insertions(+), 31 deletions(-)