From patchwork Tue Feb 6 18:43:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 770999 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 AACDE13FEA for ; Tue, 6 Feb 2024 18:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245023; cv=none; b=SQhF5Cn/uc3Yyw8/SIFqG5pHNEH51nHW3gyLmjx940nLPHWXF60PQV6xub3YL1QK1wklzfyjV+S5gCc7IpOnwBqYX/fPv5qokIXDmWsFPaF0/5vMc/kPuW0+2K3ierrXrQ4j3zLyvVW2a1bIXgEL9P3KzparOz8fqAQbP/mFmeQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707245023; c=relaxed/simple; bh=yDmruuQF6fFZAPlSNaL/m0BOFTSsJrnucEdwAIP0S64=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fHcUgBcVtuLbcAUQ1jAPqA0is6q4E4c8+spVtEu3Ffjvl4MgZ8mt+konisxZh/2QGYeRzDJUdnF3cVNPeM2qxc23Dl/92FtTu654h4pl2JVXwnmPBZ3Mia8b10SnuOBVb+NQrEAR6ttRXHaFyZdbFgYSUoprse5uTwK4tUULlvo= 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.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jW569ETY" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a36126ee41eso757379566b.2 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=Jr8z+MDAMXNRWbJvQYh717wyXvslW8Oa8nAhoK4DxXbwYBUqcBx0lt2Ba/emZwTNwa I17kuOg9ZuEn99yXZyqttMwVmPCYoaB0xGhYK0Ti3S0VK8jwkVFfy61JQ+sYcr04Nrb7 +ePGpX9x6rZI+WjbH82g2wsKzIkrj/tMOZ7FrJF4Ran8kmCR2YexIkyyhkx/XRJUbijz ZGx704RqkB11i/a9vOsyw1FtYjsFdUJmonPPnZ6BMNaIxsK3UuwO62m41bkrL6mpimrm QHYLS/eohNo45avM1NNxKZAUOzWCMKkSQU/oS8tgU2p0TvxHo/YdMecWXLIR7TjZ7Xe7 RTvw== X-Gm-Message-State: AOJu0YzBK6KTCnrqOwZffV177eJzvaiLGdaID11vRu/BNs184bLCghDd ZJk11ktWVoiS+6Ektf9B9fbHjKt98MX53tYVfA94LzwCPL7S2jZRAjYCp6sVwRk= X-Google-Smtp-Source: AGHT+IG69MWyI/fNP1oAOlGJFsc3y7aOqQvZFe/yNI+O+DjRzhvBz+gVC2ZHAkmswNLc8nBo1PKTeg== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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,