Message ID | 20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-55469-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1760872dyb; Tue, 6 Feb 2024 11:14:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLDaWTYEeW38CPNoJ1ZLk69t9hJ3ocTbrSSQsLwMbNVfg1oNpqcpdi8UIQCghcP+r042jk X-Received: by 2002:a17:902:684c:b0:1d9:73da:a43f with SMTP id f12-20020a170902684c00b001d973daa43fmr2178680pln.0.1707246854132; Tue, 06 Feb 2024 11:14:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707246854; cv=pass; d=google.com; s=arc-20160816; b=m0nlllPrCKkyNtHMjCtobBrcGVrIHVJOMGUdhfw6HH96dZbEUEJfDNYR3+MdSVOY7O Ch0aftrcQmTKRwjSVM+gTeUjUk2uujZcXWaWepDGT517kwf4XHbwFEjDpowoTHbhG34t PORRRKevpa4/nfPUu8MgeRcg85yjU4MvL/KyxLJDzEjqolCRNkVlc2UKS6IQVaLc3yQO wZJIAyeaoHkR3oIYUTathctRWdKGsmDHRoBsApjHZZk0D+vk5DcbRkciGzM3jBsRkHe4 FaNrbGZpTAax3BG/qtZf4V2y10C2KryTGaF3AtjLnfUxE1ZN279JeWJ1XuNiZJ1jrNVx /MSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=EPinIhB5nRjoZSkHxrPck/Req/gZMo5duEbps1JKDSE=; fh=wtJ3lnZCUJXzkZU4QdGWuYvNPFPyWPmSWu05V009zI8=; b=Bw7TkXjPGRoeF+XHSJAUA33SiJz8678RV8S/FiczthBsIUPenpjDlta37xFTVAKMbB x1BZKf4vc2byyLVOzd/5PT+QYHiP9xHsif3es0LPSp5meWl7icizNgw1RN1U1Ux+1ln9 fur3zKbSTfz8Zgcoa2Renr9VtrEyrzBkUNyVpO8XNiEb/XF46HNURE2zhIXeSWYeoJmi L1JcL6UUglX9Mg1IUBOEJg8zDwfiTBxm8p9wz+DXH6edbG4pBG/co+1mzzp4HAkZnVN4 R0F7AyNHAyGFLKq/YXHc4oMFFOsJ0l9RMHHIHIkcDjahSw1PfD1vv1o9PmQVUznoL6Rr 8gUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jW569ETY; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55469-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55469-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUl8baWUfsisjYKT2w1b0gCTDsT7ZM7xibcultR4i0DwnjP6W1wm6z8Qx27BqTvNgh4Vm3x716IKfJgw5Tr9ESD0hyoPw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fw17-20020a17090b129100b0029615edd44bsi1541147pjb.99.2024.02.06.11.14.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 11:14:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55469-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jW569ETY; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55469-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55469-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1A50728A64B for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 18:44:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C52DB1400B; Tue, 6 Feb 2024 18:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jW569ETY" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 9FC9A13FE0 for <linux-kernel@vger.kernel.org>; Tue, 6 Feb 2024 18:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245022; cv=none; b=VLK3tNPIwt6MI3J06vBJcnOcPIudG88KZzHl0Z2gyfMz228/W48gYuyDjXl/KnIk056qJPEa8oHnCPga0jb1bTPlGWsTn7mQZqgG+7AH+4gZMYoXezifu0uheWZk2rcrAGQ4WQlL7ix9B8viCG1poD7/CMdGaGgOWXjfTP2rYF0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245022; c=relaxed/simple; bh=yDmruuQF6fFZAPlSNaL/m0BOFTSsJrnucEdwAIP0S64=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=SC4c4pBBp/XWTMFDME13BVnEOgkUb9gtUM+5eAdfRgMUcW1dAOl0aJb/UAVCSQO+r8Hy13onlSrPmzCNJx8cBHOuXaAWSqzZotraKsGhEwKDT9A+TqtiOZIgpMwLHUCHdNK6GQBVb6ohscn8LTaOZGDHV50b95qxiQDoP7M9F+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jW569ETY; arc=none smtp.client-ip=209.85.218.41 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-ej1-f41.google.com with SMTP id a640c23a62f3a-a38291dbe65so104877066b.3 for <linux-kernel@vger.kernel.org>; Tue, 06 Feb 2024 10:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707245019; x=1707849819; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=EPinIhB5nRjoZSkHxrPck/Req/gZMo5duEbps1JKDSE=; b=jW569ETYOI82jKAh+40VLkeasraAPYhJ70IlaX3XWRoHl7/aHNyxAh+uXhhch+Jp1C 2dQfDkDW/isjgVyX+/6Q/jJMtltIuZC1/BccmOnt5trM/XhJqPfUS13sJSDdopp71aw9 zn4jHVpbKQPsbOC8DXSsx7Dm2igooIpPnZMl0NsBtAiS8U7F4J8EKgHm3mK4F1JvfL4E hjxmT2pDzrxms6dGalzIu+qYfD4LNj2eHO7srO9TZKR8GZu4MrvDyCr815gMipsrhx4/ PH624U9LSEJIelz6/RABk35gm3L8gd2vINKQfTyhjbvNKUg3+Bim3uV7BNdqhgCUC5hw yZ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707245019; x=1707849819; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EPinIhB5nRjoZSkHxrPck/Req/gZMo5duEbps1JKDSE=; b=BVEPxCaqxHIFeyVGqOSzc4Ut4lUfeGDz9/PZTXrv7ywyYOJ8lc3nYGpXKM7ZMybLqV aMah7wblIbbVw7NnQf0mZqK8gRXZ8m98VpZDEjZlRX/tBOjbV7WmEpcY79GaLd2Y6QRh dol0yLck1h59n7ry46DM++dagLerqaH/VBEDm/lxYGnT3O3nZhLz1+dUf3C6dCU2EsMA 4JrvUaqPWNd0jRpatMAS4R249DPB0cJn6EXQcOBB5mW+85b9/XENnBQw/O9EhowLAHr1 oJrQDFBAlXzhqhhJPc6KNGCuid6Au20FTHu6diDAfUSeUZrTxMB9UMYl1IDWgePa/E3N 3Q3g== X-Gm-Message-State: AOJu0YzginrJp0n9WT9g0KA2PGkAw0JUJAHXseuvADeyzrSeeVnCJBAd 8WLC2nQT+ZAwfLMc++lPJWFQeBAqTujfI5B9IhhYnW1u4Ytl+RqAj3gspEfiIIg= X-Received: by 2002:a17:907:7898:b0:a38:4365:a5c5 with SMTP id ku24-20020a170907789800b00a384365a5c5mr1089191ejc.13.1707245018845; Tue, 06 Feb 2024 10:43:38 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVLGmVoMO+w58EzIO+EO7SbiXNGlwA2UmjJbT7sNcUNolDUXewVSnGu52rgkDcgkwr1Vw14cdfGLsHWJvtaAQFny7RglViQwkHmCa/4vPP/GeX4vNygg7Nsz4aVGjbGVSWVd7ljMlIayQA/I4dIRnH15dtF6MldOFNKuXH4cYOAns6BftYFTcbYp0yUQyl+/K6nvEs1XYsl9BAeh6uIPSzBlTjoHEfRaUBCuqoJNZt5bwP5mdBUJ7R7a6d6FuNpcm0qnswXDVkIWMMzYCxnMDb25AA4pF9VN/q1ePLH2dbU3MdsIHXDo3Ga0kzlSaBsfEY2itOy9VJ91w2UdUL7O5UmN7IHcUY6VJHW/brKXPkobuIR6IwytA9x+r84uO7I0xtO/UKiQ9sxg+3Sb7p2jXfvK4QgA2/Mvr045sz2ksPRyHqRkoeu+VMerP+IuKsV5wEn0aRY/nCo Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id un9-20020a170907cb8900b00a384365e3b9sm562305ejc.195.2024.02.06.10.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:38 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v2 00/18] Qualcomm GCC/VIDEOCC reset overhaul for Venus Date: Tue, 06 Feb 2024 19:43:33 +0100 Message-Id: <20240105-topic-venus_reset-v2-0-c37eba13b5ce@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANV9wmUC/32NQQqDMBAAv1Jy7pYkGLU99R9FSpKuuiCJbDS0i H9v6gN6nIFhNpGQCZO4nTbBmClRDAX0+ST8aMOAQK/CQktdSSUNLHEmDxnDmp6MCRdwpqqV65W VbSNK52xCcGyDH0sZ1mkqcmbs6X2MHl3hkdIS+XN8s/rZf4usQMK1Vb6xta5aY+4TBcvxEnkQ3 b7vX25arlHIAAAA To: Bjorn Andersson <andersson@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Dikshita Agarwal <quic_dikshita@quicinc.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707245017; l=2858; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=yDmruuQF6fFZAPlSNaL/m0BOFTSsJrnucEdwAIP0S64=; b=HtYYLU6J5DdnzEQhJpjXJ/NVyentVHNiW9ifCXBv3p88W/6LDStzzyYaqd1AvhujA1ojoVXjx r75ifKSJiPlCz/eSsWiM2vkFL6/CcHnwH7op2UDAKUy75iIqDJ/Co8R X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790178076833691886 X-GMAIL-MSGID: 1790178076833691886 |
Series |
Qualcomm GCC/VIDEOCC reset overhaul for Venus
|
|
Message
Konrad Dybcio
Feb. 6, 2024, 6:43 p.m. UTC
Some resets associated with venus require a larger delay for the hardware
on the other end to function properly. These seem to fall into three
categories:
- 150us for 8250 and earlier
- 400us for 8350 and friends
- 1000us for >=8450
Make some housecleaning changes and describe these delays in preparation
to moving this data out of the venus driver.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Changes in v2:
- Wrap the function parameters in patch 2
- Better describe the sources of reset delay values
- Pick up tags, rebase (with no changes)
- Link to v1: https://lore.kernel.org/r/20240105-topic-venus_reset-v1-0-981c7a624855@linaro.org
---
Konrad Dybcio (18):
clk: qcom: reset: Increase max reset delay
clk: qcom: reset: Commonize the de/assert functions
clk: qcom: reset: Ensure write completion on reset de/assertion
clk: qcom: gcc-sa8775p: Set delay for Venus CLK resets
clk: qcom: gcc-sc8180x: Set delay for Venus CLK resets
clk: qcom: gcc-sc8280xp: Set delay for Venus CLK resets
clk: qcom: gcc-sm4450: Set delay for Venus CLK resets
clk: qcom: gcc-sm7150: Set delay for Venus CLK resets
clk: qcom: gcc-sm8250: Set delay for Venus CLK resets
clk: qcom: gcc-sm8350: Set delay for Venus CLK resets
clk: qcom: gcc-sm8450: Set delay for Venus CLK resets
clk: qcom: gcc-sm8550: Set delay for Venus CLK resets
clk: qcom: gcc-sm8650: Set delay for Venus CLK resets
clk: qcom: videocc-sm8150: Set delay for Venus CLK resets
clk: qcom: videocc-sm8250: Set delay for Venus CLK resets
clk: qcom: videocc-sm8350: Set delay for Venus CLK resets
clk: qcom: videocc-sm8450: Set delay for Venus CLK resets
clk: qcom: videocc-sm8550: Set delay for Venus CLK resets
drivers/clk/qcom/gcc-sa8775p.c | 4 ++--
drivers/clk/qcom/gcc-sc8180x.c | 6 +++---
drivers/clk/qcom/gcc-sc8280xp.c | 4 ++--
drivers/clk/qcom/gcc-sm4450.c | 4 ++--
drivers/clk/qcom/gcc-sm7150.c | 2 +-
drivers/clk/qcom/gcc-sm8250.c | 4 ++--
drivers/clk/qcom/gcc-sm8350.c | 4 ++--
drivers/clk/qcom/gcc-sm8450.c | 4 ++--
drivers/clk/qcom/gcc-sm8550.c | 4 ++--
drivers/clk/qcom/gcc-sm8650.c | 4 ++--
drivers/clk/qcom/reset.c | 27 ++++++++++++++-------------
drivers/clk/qcom/reset.h | 2 +-
drivers/clk/qcom/videocc-sm8150.c | 2 +-
drivers/clk/qcom/videocc-sm8250.c | 4 ++--
drivers/clk/qcom/videocc-sm8350.c | 4 ++--
drivers/clk/qcom/videocc-sm8450.c | 4 ++--
drivers/clk/qcom/videocc-sm8550.c | 4 ++--
17 files changed, 44 insertions(+), 43 deletions(-)
---
base-commit: ac139fc7db67968e5061715508b5fc4aa7c40c56
change-id: 20240105-topic-venus_reset-b5461bf1a087
Best regards,
Comments
On Tue, 06 Feb 2024 19:43:33 +0100, Konrad Dybcio wrote: > Some resets associated with venus require a larger delay for the hardware > on the other end to function properly. These seem to fall into three > categories: > > - 150us for 8250 and earlier > - 400us for 8350 and friends > - 1000us for >=8450 > > [...] Applied, thanks! [01/18] clk: qcom: reset: Increase max reset delay commit: 316861f383176c6360dcffecceb1f843d860faf0 [02/18] clk: qcom: reset: Commonize the de/assert functions commit: eda40d9c583e95e0b6ac69d2950eec10f802e0e8 [03/18] clk: qcom: reset: Ensure write completion on reset de/assertion commit: 1bd8c3ad02b1aaa9163a72fece2c28360a52b345 [04/18] clk: qcom: gcc-sa8775p: Set delay for Venus CLK resets commit: 6c0530974183709e74c3e809d4f0df386a23465b [05/18] clk: qcom: gcc-sc8180x: Set delay for Venus CLK resets commit: 627fcb22966d9e7dcfcc040f3895e5da7f64fb9c [06/18] clk: qcom: gcc-sc8280xp: Set delay for Venus CLK resets commit: 446b8e191072b78de4af16f5288dcdbfbda78dd1 [07/18] clk: qcom: gcc-sm4450: Set delay for Venus CLK resets commit: eff85a0f548e536563d57d42bdd6c215031e8c84 [08/18] clk: qcom: gcc-sm7150: Set delay for Venus CLK resets commit: b8b2343112083f76a4183aa2acdfe861dcc1bb6b [09/18] clk: qcom: gcc-sm8250: Set delay for Venus CLK resets commit: 2013a0bca5679dab16fc0f4b7dde4cf8b15b7621 [10/18] clk: qcom: gcc-sm8350: Set delay for Venus CLK resets commit: cecdccc3e50924a09411f8f9af760f4d1ef8b5c6 [11/18] clk: qcom: gcc-sm8450: Set delay for Venus CLK resets commit: 6ad1da7c0f2317ceffdfe50ac913b6123cd6ff71 [12/18] clk: qcom: gcc-sm8550: Set delay for Venus CLK resets commit: d64c6880c44e3a6d52b97dda1082c17317c82c74 [13/18] clk: qcom: gcc-sm8650: Set delay for Venus CLK resets commit: 6efbf3e21211ece0b49bb75499398f9f08fb9cd6 [14/18] clk: qcom: videocc-sm8150: Set delay for Venus CLK resets commit: 23fd517957693846ed279cb86f30f548aed01fda [15/18] clk: qcom: videocc-sm8250: Set delay for Venus CLK resets commit: 726184dd7b2f7c41a7007a1c1add301ddf173cf2 [16/18] clk: qcom: videocc-sm8350: Set delay for Venus CLK resets commit: b68d14f84c2c179d0f56588bda2e3a2675dd6d28 [17/18] clk: qcom: videocc-sm8450: Set delay for Venus CLK resets commit: ed17763a24f22d04e8da104715eb48ba69989dfa [18/18] clk: qcom: videocc-sm8550: Set delay for Venus CLK resets commit: ba4354f6ae160609aea8f7adec22ce1a9d0f586a Best regards,