Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F269E7E644 for ; Tue, 26 Sep 2023 15:54:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7976010E12A; Tue, 26 Sep 2023 15:53:59 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A19E10E3FA for ; Tue, 26 Sep 2023 15:53:56 +0000 (UTC) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38QFGQ4h011371; Tue, 26 Sep 2023 15:53:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=l1Q9rTp30M7Sjknpp6UCRrWx62as7GKgQ/FxfGRMau0=; b=TtZPuSdl74x6UBfJRuc4QeRmzLGNu+HcEnoeIot0rOphvHKYQFLZpmGhrHRAnNQNqCpC 77IGTXNlGXr3a5c13Qs1gtudvf+P6tSxjZf1XZSxXT9QGHhNIJW5gdoc1o99rHaudvoX 8OELi2DZBtzfL/3UOk2SyZhhSzlR//3Pesk+FUAVi8hkq3gSnuR6qKuJw2kl/u4StsiV bSjveq3eOlpqOt1dlLuYLnZvcEmE1xtZVEPnK1LH6FhBk2fcEF63tXfi/9odKvzsRyWJ lNDOHvkAM3bUM3BEF1gSTdxjgkJL6EMPKX55DHBxkgfogO0PGcRHn7B4tYoxLgXwkwFB 5w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tb72skrac-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 15:53:50 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38QFrnUL005074 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 15:53:49 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Tue, 26 Sep 2023 08:53:48 -0700 Message-ID: Date: Tue, 26 Sep 2023 09:53:47 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 3/6] accel/ivpu/40xx: Ensure clock resource ownership Ack before Power-Up Content-Language: en-US To: Stanislaw Gruszka , References: <20230925121137.872158-1-stanislaw.gruszka@linux.intel.com> <20230925121137.872158-4-stanislaw.gruszka@linux.intel.com> From: Jeffrey Hugo In-Reply-To: <20230925121137.872158-4-stanislaw.gruszka@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: gxL24p1g_FN3ijUu6LawyrnVTzSbKpoo X-Proofpoint-ORIG-GUID: gxL24p1g_FN3ijUu6LawyrnVTzSbKpoo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_12,2023-09-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 malwarescore=0 adultscore=0 mlxlogscore=893 spamscore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309260138 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Karol Wachowski , Oded Gabbay , Jacek Lawrynowicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 9/25/2023 6:11 AM, Stanislaw Gruszka wrote: > From: Karol Wachowski > > We need to wait for the CLOCK_RESOURCE_OWN_ACK bit to be set > after configuring the workpoint. This step ensures that the VPU > microcontroller clock is actively toggling and ready for operation. > > Previously, we relied solely on the READY bit in the VPU_STATUS > register, which indicated the completion of the workpoint download. > However, this approach was insufficient, as the READY bit could be set > while the device was still running on a sideband clock until the PLL > locked. To guarantee that the PLL is locked and the device is running on > the main clock source, we now wait for the CLOCK_RESOURCE_OWN_ACK before > proceeding with the remainder of the power-up sequence. > > Fixes: 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4") > Signed-off-by: Karol Wachowski > Reviewed-by: Stanislaw Gruszka > Signed-off-by: Stanislaw Gruszka Reviewed-by: Jeffrey Hugo