Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1051814rdf; Sat, 4 Nov 2023 05:01:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWYx8ca/0mZW+NOfnXIBXowMrvHbFU2pkaYv80vKzY/XkzmstuQc1NPhnzK+TkJQtrbNHU X-Received: by 2002:a05:6602:2acf:b0:787:ff98:c38c with SMTP id m15-20020a0566022acf00b00787ff98c38cmr32266626iov.10.1699099317012; Sat, 04 Nov 2023 05:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699099316; cv=none; d=google.com; s=arc-20160816; b=cvENK8uO7E6E7offiVMJKkbT0eBwWal6aEBjXG0oF6Mq//eXn57skc/ihx4ClgyJuS bGxgzJZt6grT/Y1AjcvQC/Ne9JTKSzO5UjJBAwTZbzfo3378o0CBCbNF8V0cu2rnrql1 OFhPrALcJ/1RT3yqUgKYTCuW4AL+dJdLeUyamJIc/2o5mP2eaNVvLdbuZNx3FjXpmI+z vHmRfZZjAUJbtE/3ajjRf0K4lycDTrT8HyTws/Nz1KaxuR+AOZzNnWNPCeHIvhG631yZ Hwnyx/u4+FEyKE4T4fZbbBpgqP3ODTegIPKAE7eHmABORuN0vlM2fZslSPA9ZtZBpEOn qEew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=B5Yt0+TL7qwu2OzCEiBStN1gkCqYNrb0qxd9SfM0lAY=; fh=bXWNGyrYr3m7hVYdIXahcQO796GkPnbockn0zR55rzA=; b=C5yQO439aMw5NC/yYVhpWk7oP31aClOfQy9Ybe+RWb8hVCh2Lwxw0r7Z0RWBqdkiL8 anmcvom6cR/LqMPwn5Np9DOb6kFLI49SX3og1Vg9U+n/GlNqaCbA6+DJPcZvSP9udxCp J6OhKRQc3QE9akeO6j7owCYaQPCZRvJ1lvDAlrArYcnz/Ie42PUOJFQtO+hKJRIb99iZ YP4KIbVxXNy/KlEDJu0glwTwOi0r0hwVF3UFHTvZjrhapKdl1z1zk+TWzb1v1n6dxcLE cME9vifhsGb/bFwaoiwly5DluC2tTyUo67NpOWopkI6VyQ+uDb7MiOnZ02MspSvViCuX iZJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Dc/g4py5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p20-20020a02b894000000b0045c05810faasi1492672jam.92.2023.11.04.05.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 05:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Dc/g4py5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D02788077FF1; Sat, 4 Nov 2023 05:01:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229531AbjKDMBD (ORCPT + 99 others); Sat, 4 Nov 2023 08:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjKDMBC (ORCPT ); Sat, 4 Nov 2023 08:01:02 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56AA2D49 for ; Sat, 4 Nov 2023 05:00:58 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso455310766b.1 for ; Sat, 04 Nov 2023 05:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699099256; x=1699704056; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B5Yt0+TL7qwu2OzCEiBStN1gkCqYNrb0qxd9SfM0lAY=; b=Dc/g4py5zMFuqTYWhkAY16G8xLtp8UYLqZx0vFWpSGc3zOo8MP4xVIv+Ah9rKDY3w1 EQoE7fZ/j7ZtiKkLrZNCj70ifdzDM0EJpYQJ9PIFrvQim1pcorVxYk63t7/Y5nRhX6Yx 91faJTa9tNwOCLvCMgb8D/MyVF2lLfnCwejsUk+PaQEtybxKSUoE0ARNDCwhLX7XYyc7 QDlUf4knDi6W2lx/e20JPgt8PwYg+kGoUsC+YaegvpOcVqvgFOuhXSimdJyh9dd4G2mk AHkkjC/yiAyUKyGVAdyrG3mlnKMcB2oWiDeAosTTIMkcQqNw0pj1tD5xsvzMiBM4VRmq OCSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699099256; x=1699704056; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B5Yt0+TL7qwu2OzCEiBStN1gkCqYNrb0qxd9SfM0lAY=; b=EPhWW1Lq+R5wWaVVCg9UrCGMGLb2SqFHNaxFnq2he7CM1w1zPCUamFl6ZgC4YaVGIV 91bwWQ+gIcCk/ZT9lTL0uapwMiXdkCNYC6bVMIXg3sxuMUYQNknYsPIrpL+zMbuZ8vs3 G2VEOLoZrQIlmjDsxdVgKz+ZBHP8n4sCEwpEphwjCQpVEmeYG5a62Q12dFBWHEPK759W PEL/ukWR1z3IyCYrD/VfQB8M8flPN7B7BdqP6VTRpljlSnreg1OZlVQaU8LqunUDkOa4 Q2kViFL/sm8Pk1UkAnLn2GZmTajcj3zQrR6Bs90jygfwp9corCr68KGd/YXNOB0lozEs +AiA== X-Gm-Message-State: AOJu0YxqZV3DZ3FGkT/olZ75gtkAosjD4LUXpQ5xri5kwA9ZiG2JeJjc PqQdoNjXg3bW8ZaEAAYIXhFYTA== X-Received: by 2002:a17:907:6d24:b0:9c3:d356:ad0c with SMTP id sa36-20020a1709076d2400b009c3d356ad0cmr8602893ejc.24.1699099256471; Sat, 04 Nov 2023 05:00:56 -0700 (PDT) Received: from [192.168.0.153] (178235177017.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.17]) by smtp.gmail.com with ESMTPSA id r1-20020a170906a20100b00997d76981e0sm1860925ejy.208.2023.11.04.05.00.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Nov 2023 05:00:56 -0700 (PDT) Message-ID: Date: Sat, 4 Nov 2023 13:00:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND v3 5/5] venus: pm_helpers: Use dev_pm_genpd_set_hwmode to switch GDSC mode Content-Language: en-US To: Bryan O'Donoghue , Abel Vesa , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab Cc: Taniya Das , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-media@vger.kernel.org, Jagadeesh Kona References: <20231101-gdsc-hwctrl-v3-0-0740ae6b2b04@linaro.org> <20231101-gdsc-hwctrl-v3-5-0740ae6b2b04@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 04 Nov 2023 05:01:11 -0700 (PDT) On 11/3/23 11:44, Bryan O'Donoghue wrote: > On 01/11/2023 09:04, Abel Vesa wrote: >> From: Jagadeesh Kona >> >> This change demonstrates the use of dev_pm_genpd_set_hwmode API from >> video driver to switch the video mvs0 gdsc to SW/HW modes at runtime >> based on requirement. >> >> This change adds a new boolean array member vcodec_pmdomains_hwctrl in >> venus_resources structure to indicate if GDSC's have HW control support >> or not. This data is used in vcodec_control_v4() to check if GDSC has >> support to switch to HW control mode and then call dev_pm_genpd_set_hwmode >> to switch the GDSC mode. >> >> Before the GDSC HWCTL was available to the consumer, the venus driver >> needed to somehow keep the power from collapsing while under the driver >> control. The only way to do that was to clear the CORE_PWR_DISABLE bit >> (in wrapper POWER_CONTROL register) and, respectively, set it back after >> the driver control was completed. >> >> Now, that there is a way to switch the GDSC HW/SW control back and >> forth, the CORE_PWR_DISABLE toggling can be dropped. >> >> Signed-off-by: Jagadeesh Kona >> Signed-off-by: Abel Vesa > > So I plan to give this a test on rb5 and db410c > > My q here though is - has anybody on the submission list tested this through suspend/resume and vdd min ? I think that only chromebooks (sc7[12]80) and sc7180-acer-aspire1.dts are able to hit vddmin upstream as of today Konrad