Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp459859rdh; Tue, 19 Dec 2023 04:25:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGuri/z4cJGI05PFvAUGQyNhZRuk0A9IbmWHTxNh2xfMyZ0A6MznK1Xdmmn0GidtSBpT6X X-Received: by 2002:a17:906:73c1:b0:a23:1d:20b3 with SMTP id n1-20020a17090673c100b00a23001d20b3mr3376989ejl.100.1702988706645; Tue, 19 Dec 2023 04:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702988706; cv=none; d=google.com; s=arc-20160816; b=KuD3Itsh06qRAH+PB/ENOaiMF/WdRfdwV+7xg552nkSqQ9VFHrPHK6AbTFSXPniV9q wgp1/rGtQLRdFYp5AUpTPAA0gjZZpDunabBuEyZ7+C5z68J8R1N7USwrGc0gWiWvnV6Q AMAlmeU3OnEL2ovDfRWG+Ck8hUre9w64ev97/BOybgX6GTk04pPAPBFPxeK5mXtBqXky TqhOEm50zPm4bGnllbdgZ3HuPFiJ+Z8eiuXoX9ZvYGr769KyXJXPg3Qum80SbYlMqwcc QGeTz0k+i2WjKJLwRKMgZ+F6CTNhn0owSEvHb9MesorPyAPfl36TPrSYZpstuXnjhiD5 JKaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rvLCqo7bdZdnfP7p/4dwIXgu4AQj05T2b8CjjUUC3mA=; fh=jBexGrO55vhvvq2ye3cQilFDwDIcGstw6HIWboX++ts=; b=kCdXAJj6CPWtaXciT1ETZoZ7lnn1NomBUqPL+3nzM7Lf+VBDHCJkDZxEsJoK6gTRM3 ojlSNRUzTIdIV5d3tqXDNNzIFeawf8vXwwz1tiYCEdT80dqWtw6flxJAHSjFdpMDccR/ CzaYFVdzf1RHp/Z5EIrKGXT5X1UEpAhUjdcaJZ/iVfmQ2gBKUDUGCCnOxF69mjJK+N8c YPkItXYHvyHexZgJKgbOJoVwi4ZlhEmT3EzOJ9ztzSWN7NtzH8Qx4Q/W1OEBpHavsS+5 1Dh/MCGVQ4GwGKH2WjyJf5a5gemuF001gwYOr6OPXXroTbiQwdoFGvJtxPwtYW4Fo9kX 4Y0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OdTvuASG; spf=pass (google.com: domain of linux-kernel+bounces-5162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z6-20020a170906074600b00a1b61096ccasi10327520ejb.23.2023.12.19.04.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 04:25:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OdTvuASG; spf=pass (google.com: domain of linux-kernel+bounces-5162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 36ABE1F24736 for ; Tue, 19 Dec 2023 12:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F333179B0; Tue, 19 Dec 2023 12:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OdTvuASG" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 337C718628 for ; Tue, 19 Dec 2023 12:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-55114c073b8so5541563a12.1 for ; Tue, 19 Dec 2023 04:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702988690; x=1703593490; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rvLCqo7bdZdnfP7p/4dwIXgu4AQj05T2b8CjjUUC3mA=; b=OdTvuASG5mPBCXjLknCpSC+fINiRQzWaPItEz2pHM0JJW5f2ofWn83YCGlFoSu53q7 9Aci9gvgxBSr1gayWTW5Wd1xgBL7uzd8duDO4PeuBGGBc6M33tSMqJU79Yn0szkKgk0D auXhBG0mQs1Evzl2XQ4Vl6jKrCrctVRZdb/OC3Khd96vaxNHkH/JOZDoN5U6KXhoblUW wdMDiyazRwDZWH3O2XBCref7a5GSI3pHvedGU5ME/UTF2pdGOpttz0NQwjl1M2wspWNm oxu/srIjICrLBOYzCpz8h7BK+XU/Fewy8IlwWNSyqFZjUkNWb1lqlepgq7ZDgULWB5Ls j5HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702988690; x=1703593490; h=content-transfer-encoding:in-reply-to:autocrypt: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=rvLCqo7bdZdnfP7p/4dwIXgu4AQj05T2b8CjjUUC3mA=; b=AvN6WfkWyCeCR+MXVGxjc/bZExWfr64GhUZW8/ok4QdjJRu4aGM8FVv0YsmuePsKmj AjTN3N2qkBnFtUGQ62plng0iD3Lk5YGl0ltPgUfFGwEHxU16HQSy/Pb12PJZrObl435W Y8/+5l0fZVXYEUmFZwBvCAQxwUWcY0YxpmtT2S7B6V7uNMsyPUQ8h9pNOtIGuUbZRTY4 hZxx0SeauiXTuaF3quscf7RpreockZRu4Ir1iq8l33lxMLOYNnfFL8kAwk4bhlXquviw BOWSc6S//2CLubsecxVwARb2Hdq5Zrz9DubAOc000dS8nslPWvV5dNux8KPpILRnW8Wt Oj5A== X-Gm-Message-State: AOJu0YwxRxnjdt2QUozvdYRTpESXHsfzIr9yeEsZOKSPVTTamDzp4w+I T7P0sBC3Z1ba04JaX+JyxbOcGg== X-Received: by 2002:a50:9f21:0:b0:553:828d:3f21 with SMTP id b30-20020a509f21000000b00553828d3f21mr576374edf.35.1702988690551; Tue, 19 Dec 2023 04:24:50 -0800 (PST) Received: from [192.168.199.59] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id er25-20020a056402449900b005536476bd56sm1654226edb.83.2023.12.19.04.24.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 04:24:49 -0800 (PST) Message-ID: <20690d50-5f76-4371-97e6-dcee717ba935@linaro.org> Date: Tue, 19 Dec 2023 13:24:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 29/34] media: iris: implement power management Content-Language: en-US To: Dikshita Agarwal , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, stanimir.k.varbanov@gmail.com, quic_vgarodia@quicinc.com, agross@kernel.org, andersson@kernel.org, mchehab@kernel.org, bryan.odonoghue@linaro.org Cc: linux-arm-msm@vger.kernel.org, quic_abhinavk@quicinc.com References: <1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com> <1702899149-21321-30-git-send-email-quic_dikshita@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARA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ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <1702899149-21321-30-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18.12.2023 12:32, Dikshita Agarwal wrote: > From: Vikash Garodia > > Hardware specific power sequence include programming specific > sequence of registers. Implements this sequence for iris3. > > Introduce video device suspend and resume using runtime PM. > > Also, implement iris3 specific calculation for clock and > bus bandwidth which depends on hardware configuration, > codec format, resolution and frame rate. > > Signed-off-by: Vikash Garodia > Signed-off-by: Dikshita Agarwal > --- [...] > @@ -97,6 +103,7 @@ static int iris_probe(struct platform_device *pdev) return dev_err_probe, drop __func__ [...] > + ret = readl_relaxed_poll_timeout(base_addr + reg, val, ((val & mask) == exp_val), > + sleep_us, timeout_us); > + /* > + * Memory barrier to make sure value is read correctly from the > + * register. > + */ > + rmb(); just drop _relaxed and return directly > + > + return ret; > +} [...] > + ret = read_register_with_poll_timeout(core, AON_WRAPPER_MVP_NOC_RESET_ACK, > + 0x3, 0x3, 200, 2000); that looks like a lot of bits/bitfields that deserve #defining in this and some other functions Konrad