Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3227852rdb; Tue, 6 Feb 2024 10:43:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkvGPegH5RvdHi4R+2gpiPlufA9lZZi3ZxuoQ5uY12JSjcULbijx2NfVHrqzfV0ZHMTCDN X-Received: by 2002:a05:6214:20c1:b0:681:9467:bdf6 with SMTP id 1-20020a05621420c100b006819467bdf6mr3553309qve.44.1707245030329; Tue, 06 Feb 2024 10:43:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245030; cv=pass; d=google.com; s=arc-20160816; b=xAduVbRLMJ1LQko7wUda3IM9SLuezPGzh+SxKzBHnX4OD3ubFg0RfxUcaYvVXjrCnR 8TNRPJfGPR2MGBbORPl3du5KO0owshJ/007/QxL5/nciImqvzQAdE3n5X5273jHSZEHj Rjj2mUJMV5u9zsbH7KX26/VLSZ8A1L465RqFGnG5CWtq2A9/n2HN7x3D+N97aSE4B5MH Pa2KAecnpRfwe9AHAAa+RCXsNTibyZxRrcx4xJ4jx5xfYS6ryIEjVGguXvn9PNV6EFHg fztT4gT7ttd/QH0vcA34oNi2fmiNPwtdhCGgmj5miYtQAmfVo1OFVtBdb6YU2BhY3sGl L4YQ== 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=XiuY6kj0aGXzIgFKrxlCvRql+gYslcdnf5mn07ul94Y=; b=udTAZzZII3uvKbboY7OHN1R74SQifHEY8uJigOuRYqXmCqGDcqYIdwfTrEa4r4OUxk KM39+oUEcDpc8wV+dLNwp3UZf0sYhhETXI2USAc/8SXDE5uhv5McvMwXvGKEamZWCBYf hIhTldDqYFBUxtiMIsHIYhX7P76wJ9YEdgBF6y0oSYmL1X8P8vTg5SL8QSSB0R9Wr6xZ gijDmTcrpuhyGIDaI8DhFBYAwWi/TcSxCWOVQmMmaKC+0ueWYFV9SLZ9XzTCxE8vkzSG fTzDNYEdeU4QS1Usf79icyZYkIHPL9+qdWReiZv6kaoqoTbPdNPSvWT3QH/ZwBo7CjMJ PvrA==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWnHQIhJxsu1xWTrNba6DDWYZlhO2yWAcXwqS3LeemgXxqnxXKmcUFDrPtGsHEsoRj13Z30w6OkEzG3ZJSR2bYgdfM8pwRMWz+oaGEKHw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 7-20020a0562140cc700b0068cb0d39be6si2672813qvx.521.2024.02.06.10.43.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55469-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55469-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0D4131C2314E for ; Tue, 6 Feb 2024 18:43:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59297134B2; Tue, 6 Feb 2024 18:43:43 +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 ; 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 ; 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 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: List-Subscribe: List-Unsubscribe: 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 , Michael Turquette , Stephen Boyd , Philipp Zabel Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Dikshita Agarwal , Vikash Garodia , Manivannan Sadhasivam , Konrad Dybcio 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= 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 --- 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, -- Konrad Dybcio