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 45559C0218F for ; Fri, 31 Jan 2025 18:45:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC31E10E41C; Fri, 31 Jan 2025 18:45:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="WlQus3lB"; dkim-atps=neutral Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D89110E41C for ; Fri, 31 Jan 2025 18:45:21 +0000 (UTC) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50VGw2HC013211; Fri, 31 Jan 2025 18:45:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 8XoOJkRzhZF6Ajyskz1qQw6ftm4HXkxcvTI5GfCpM3o=; b=WlQus3lBltK90JsA 1jXpvdk2nZErHwgxnY2vE6Vt/b9gHaIR6RAzq+2cTw49OZhM/1TaPLomN/wyy43U v8G23sUyIygxckV/gdn7Rl4uJhJmX6tuVcWpp68lvbeKXICUOv6Sd8IP/1VLOLaZ 4X56NVwmtdJo2oT0J0VWg/U9Sbn8wev8w74DxAgTwTrli8h/urNsB7XR4dZo0usU xBQ6itQJK6JAKp+RVHjamwyALwApF63PY8YieBPV9jvJ6EeUrwBRSYszFvPbFiKz ULt49vfW2b3JWRW2+O1TPgxCMBndK2QNHT0hlYe9lsUoG4U5DcNcMhKSIVIPxvkf bSs+hw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44h2gd8aqx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jan 2025 18:45:18 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50VIjIoS013544 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jan 2025 18:45:18 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.1544.9; Fri, 31 Jan 2025 10:45:17 -0800 Message-ID: <5fcf44fe-759d-8d31-ff92-a87e8b267080@quicinc.com> Date: Fri, 31 Jan 2025 11:45:16 -0700 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: Fix missing MMU events if file_priv is unbound Content-Language: en-US To: Jacek Lawrynowicz , CC: , , Karol Wachowski References: <20250129125636.1047413-1-jacek.lawrynowicz@linux.intel.com> <20250129125636.1047413-4-jacek.lawrynowicz@linux.intel.com> From: Jeffrey Hugo In-Reply-To: <20250129125636.1047413-4-jacek.lawrynowicz@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-ORIG-GUID: 843-NKp7fUptF3pWMX91eJktms2hPCM3 X-Proofpoint-GUID: 843-NKp7fUptF3pWMX91eJktms2hPCM3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-31_06,2025-01-31_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=838 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2501310141 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 1/29/2025 5:56 AM, Jacek Lawrynowicz wrote: > From: Karol Wachowski > > Move the ivpu_mmu_discard_events() function to the common portion of > the abort work function. This ensures it is called only once, even if > there are no faulty contexts in context_xa, to guarantee that MMU events > are discarded and new events are not missed. > > Reviewed-by: Jacek Lawrynowicz > Signed-off-by: Karol Wachowski > Signed-off-by: Jacek Lawrynowicz Reviewed-by: Jeffrey Hugo