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 0B06EC6FD1D for ; Tue, 4 Apr 2023 16:57:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C92110E3FC; Tue, 4 Apr 2023 16:57:24 +0000 (UTC) Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0761410E3FC for ; Tue, 4 Apr 2023 16:57:20 +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 334DFWlP032611; Tue, 4 Apr 2023 16:57:15 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=0Uk4W0jctQmxqjK/hl68lHDWI2WVg9sw222CmIzHRT0=; b=OQiRVn8mrkuu1KXhdeXUDz3JXpgoEp+haMg0CJ7N6uL3LLksY8NGvAsRMieruFkK5/3R sWyMnFBRujFG7if4WHxyUYR9qqEzIElyN5PFIWeczOsVlpxBaU5Gn7K8uQYJAa9VZr// nX73CfmRNjhstLLbrnw/FVuo2qWWLfOnkKh1zfwwPvyUnPSKL+1ygIlfLSYlKwFKXRMj d5P3BnV5Moh3Qg5gb0iM4tZyiGxOc+Ly6shPh5GnWtBtJB88ka69+Hj2nFUVFisnVeS/ VdcnhxfximlBlX93/G0o5gLYtTzwBB/Ae3Yo/ppQNCT+sXWG4K7DAy3KjcvKvaaTqgtM Jg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prmkmrm4x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 16:57:15 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 334GvEtY023222 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 16:57:14 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.986.42; Tue, 4 Apr 2023 09:57:13 -0700 Message-ID: <7fcb236a-a570-7527-180d-cd03ba2fc3f6@quicinc.com> Date: Tue, 4 Apr 2023 10:57:12 -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 2/2] accel/ivpu: Fix S3 system suspend when not idle Content-Language: en-US To: Stanislaw Gruszka , References: <20230331113603.2802515-1-stanislaw.gruszka@linux.intel.com> <20230331113603.2802515-3-stanislaw.gruszka@linux.intel.com> From: Jeffrey Hugo In-Reply-To: <20230331113603.2802515-3-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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: ieJGj3x9R8qm22LlfX7Px39tzJHdAeIr X-Proofpoint-ORIG-GUID: ieJGj3x9R8qm22LlfX7Px39tzJHdAeIr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-04_08,2023-04-04_05,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxlogscore=726 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040156 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: Oded Gabbay , Jacek Lawrynowicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 3/31/2023 5:36 AM, Stanislaw Gruszka wrote: > From: Jacek Lawrynowicz > > Wait for VPU to be idle in ivpu_pm_suspend_cb() before powering off > the device, so jobs are not lost and TDRs are not triggered after > resume. > > Fixes: 852be13f3bd3 ("accel/ivpu: Add PM support") > Signed-off-by: Jacek Lawrynowicz > Signed-off-by: Stanislaw Gruszka Reviewed-by: Jeffrey Hugo