Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796202944; b=Id9UtAHlmYVdmwDOhyQO3mE/XHG089eBc8hqZO5bdFGUrOnW+TPn9XU5cSz4rM6jj9i1 jq8L6DplMUMqWLhUdzgD50RJC4vFVeJ9iAmC+1SzZeyphdIX8S3Fs6xY5rYHxt9xCnUkE xyCwi/386sR1hw0mX1DCviMC3Uzqkel6s/TqQmR8zfGEOVOAfehwucMgPGoPjj5rf2bIm EcVW3ZqBt7B010HUqMgR/9dQbEQH8SW+zBJCVT1PDHwNw/JEeU6nC/+rEznUmlUH0bD39 c0zQZU2j6FW8arVzCDwwpRk43JW85sBBLxax7ldQ1SrUzYoHiICogkp34ebZgkFYEFg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796202944; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=Yi2lJ4u+4noxNrRLraqdPQuy/CN3Iqc1yFtUpVhTH+erVEDDNjpjlVdKWJCysZhXF8ds zbMYe/VX4boE7h+rZIF7u5R8Z8GajlKsNKS07dFDN7pklDFGDV6j9yjOFoktnFizRNZ7X BaN1ISlkaxSanTr2rsOJSvc3o+MLqlzpAP2jl1pezrmU7t5kw5qI3DID3KsLTA3jO87Xd mrsl/AqjlYitK2aqkVFsNFjd+irXCk6eD4rsJl4qDETtu9TNy+4A3u6NyGFYFVNCR9gfc aWmumTvDYNFjXHUlweI2Pe8laIRXMPVoAyPToacpQdZziZWqcYehMeVehaeQ+Z3NSew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Yxza0gN6; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b74za2IY; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B14EC606A31A for ; Wed, 2 Dec 2026 09:15:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B14EC606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Yxza0gN6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b74za2IY Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26pANV854848 for ; Wed, 2 Dec 2026 09:15:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=Yxza0gN6gdjdIirb AQaG1L7aouZDeruvmbCcXp1gj5hD9FZRMOhvXaVAofmWwHZfRb0QvaqFpZDJf850 2t/H+cCnxpaH0QSalTcd3zs+tc4rFnLjEwSmbKwG5lSAIQJ9fLy62AuWJ0WAUm/q ics6pdGKXEB2Ax6syqffYTAfQJMz4x4Nu6j3pQ0Huiune6itU9QvCQtXLSWBEWyX kAlf7e2fIO1oryIjF2z5I4OKml3nrqTVt30hWDZF/xAf4+YXlskZ+YUzNwsUL/w0 a/BVESIdJZa+N85OK9b5tdbPNs3tz/prutJY9a+E5x3mZnjfIW4iAP8/ZiL3RZV0 6JD+mQ== Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4kyau6e-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 09:15:41 +0000 (GMT) Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-1b5b37993ecso7722231c88.0 for ; Wed, 02 Dec 2026 01:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796202941; x=1796807741; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=b74za2IYzTR70aKDdrGEpChu73JixRiwjMe/RrNAT+K383R5cRUcbqcZt0Q0UMc1rc Go0ukwdDctIPCXIOjS2fYs4jPkdqmeqQEPAQ8n48DOZc9QNVP78GbmiQXMN2pId3iljf E2IcCuLuMZmhfN1nsyEi6gshdl8/4V/Zm3GXAirCD67LTHxDJTpHwiFd3ZBisxuQKDGZ XHmb3PPPMYH3Vx0qxyeNMPGLYA67Zw3dmwphKuS8uZpfDFXhBwL37mD2lWCM9miSoCU5 HhInSMM0zVVG0My8UL8pI1hiC55XCe3B3YvANau4wJgh32mUcFP6Q/Z+fPL9K+cEOrzT 6R0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796202941; x=1796807741; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ng+nzXBeH6ldyeUv9eLY2b8On2lAB9JJuhsszp45xQg=; b=s/5WUjw1yrAZ+e0jV9Pn+AL807WER5I3hMK5hkH7LKfexLUtBwqQhcfZzjC+7qHqYJ fFv/zNwbLMpFDgx4Sz2e0+keL5bTt/a4olaS3uHQJD+Kb3bRGrgqza/s016hLDTLkRmQ mSTiwFGV7hRGd43+V3hNA3px2NmrM9pT8P8Fa5gB3B/HE1RR2VNgxnn0biYIX+OvHr+/ AbAFgk43wkuzJwm+Q5T2HyfzLA9umyDMpRm7RWtL4Td0p4wsTiCbus47nw7PRKLhnxbn KJkrx3eo4aH66FunYjusNec/u0WapZLj0jDuEtjboeoUJ+TkZokz+yVUCLK9di3myk+n idwA== X-Forwarded-Encrypted: i=1; AL+hErHZN3LxtGGB+lNXg31VkYrd5ExbRE5jleGQVIkNbYS1W7pUDmskRzGe0GneYxarUWL4a4+GNABN1L7c+Yio@vger.kernel.org X-Gm-Message-State: APuU4Z9UWTz46HYwscXdC6cqZ6CPqcWE17IBLeTtfXLC5yqhS3kDVKR2 pAIIH16VuOVEPalLeGguz9rEo0Fau41crQiBF1xxgIoRAggK5feWE5d1dyK5EynwgmHPam9ZldC ie80Cwn5dqE7+jTWs1jePwFOqzlmLnUUp9ORa0Ql8g/i4ZBq6yei/4F2h6eFGDGN290wLtpfXm3 F9 X-Gm-Gg: AZFdTZfzHPcut6fUGcPUjvakbJ7Q6NSzkamgutDQCKvOp0iLu/fB8Jj/zohNU7it8l+ VIEh09h2wcgLludg2IKddyivTQpUqkQ3t17Gpz7fHiSu15FsZ4RJ8ojObpGEHcrnPRxyUCtADh7 ae+Fu+y70iBVheFUeR7yVpSUyWhVjeHjjj9oIweFuL1PuS0QJMhQQ0uluAhvwzSg+is2npUe3ea VSUxY0M4OBumBS2ikRGoqGd3hA+e2z6yD/x6sky9wmz92I66AYo04X8pErpnCkyasd7j04hTw4l CDm2qWjYj1xfQ3a7fxk4BuKSftjeZ7kQY6Eb8LViQ2XtnABtCbOvvDBllnTh5OlH73OQZJ1pfE0 LL9F1pUj0rvpsLyugEpw0pAh1ywcuhuEPFSABKzMfSaaG7dMGRFSRM9qFItqhgr6opJcQ07Ui8V GVDec= X-Received: by 2002:a05:7022:3c07:b0:1b3:a22c:7f37 with SMTP id a92af1059eb24-1b556922d5emr33179977c88.39.1796202940884; Wed, 02 Dec 2026 01:15:40 -0800 (PST) X-Received: by 2002:a05:7022:3c07:b0:1b3:a22c:7f37 with SMTP id a92af1059eb24-1b556922d5emr33179954c88.39.1796202940262; Wed, 02 Dec 2026 01:15:40 -0800 (PST) Received: from [10.204.100.41] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55684c85fsm144504527c88.14.2026.12.02.01.15.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 01:15:39 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 14:45:32 +0530 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Vishnu Reddy Subject: Re: [PATCH v3 2/4] media: iris: Disable the system error work on removal To: bod@kernel.org Cc: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Mauro Carvalho Chehab , Hans Verkuil , Stefan Schmidt , Dmitry Baryshkov , Hungyu Lin , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , stable@vger.kernel.org References: <20261119-iris-handle-unbind-v3-0-52d467a13907@oss.qualcomm.com> <20261119-iris-handle-unbind-v3-2-52d467a13907@oss.qualcomm.com> <179604311084.1329975.2425990508110024419.b4-reply@b4> Content-Language: en-US In-Reply-To: <179604311084.1329975.2425990508110024419.b4-reply@b4> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=O8ysLx9W c=1 sm=1 tr=0 ts=6b0fe1bd cx=c_pps a=JYo30EpNSr/tUYqK9jHPoA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=K7EYZ_02sBeUhtAYeKQA:9 a=QEXdDO2ut3YA:10 a=Fk4IpSoW4aLDllm1B1p-:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfX8fVDciLObKuk kHOF2pXbFcve+76DyQguhRKdDrx8Gb8fIQ1v5TqV/8UCD4SbAbDKRVZf6lBj0jeoNJL2GIdhLOZ 6OkTzW+pku1Sjt3RWpZX0wT2tN4rUCI= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzNiBTYWx0ZWRfXyKTSQPEU5KUf WJ4Ig28gFCjP8Hbhxbe0FseEy32ltkiqK7EUjqMEJSOpoZzWY7x2yJfmcT/pWlgTqcCbO8psT4w zqmkyjplwkitGD/hdZH3LRf4Q9YCXQNNPlTKf68ChO80RnOUV3ajDRDEg85uXAL7tUVNtIncr3w Ru5u9l8qk5I1YMEBFbFBERqGEkeISFHAxgp6LwEWE+8FpmbS6JKokQbj3Op8irCHbJo5Oay6OUE BRV32puWlASzFeFyxzWv1nLLnL/ijyMJTtNtNhd/HDCZXJxvwkIiW2aOU2/m4Zq8MPOzzypjXKX PF6YehS/M+IBlKc/lrGXcOWxQot4MQ9X4sqpGdZ5KHvuyYRZ967vTdw6cPNE4ezZWnsm2mKSZp2 YnHpP6qlZItAd5OH9VUXbSiGtCn9aM55Nwa/J4KSVnFx5wLsVxq6ObhcIauzZvTQcPGRw4O3IkP oOkQUbUjyvNeZwXp6YA== X-Proofpoint-ORIG-GUID: et8WQ4f7eg2Xrgt0zI7j0-vEyyWsoo3x X-Proofpoint-GUID: et8WQ4f7eg2Xrgt0zI7j0-vEyyWsoo3x X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020036 On 11/30/2026 6:21 PM, bod@kernel.org wrote: > On 2026-11-19 17:15 +0530, Vishnu Reddy wrote: >> iris_remove() calls cancel_delayed_work_sync() to stop the system error >> work. This cancels a pending work and waits for a running one. It does >> not stop the work from being queued again afterwards. >> >> A system error interrupt can still arrive after that call. The >> interrupt handler queues the work again. The work then runs after the >> removal and uses resources that are already freed. >> >> Use disable_delayed_work_sync() instead. Once it returns no new work >> can be queued. The work cannot run again during or after the removal. >> >> Fixes: 452480931648 ("media: iris: cancel sys error work on driver removal") >> Cc: stable@vger.kernel.org >> Reviewed-by: Vikash Garodia >> Signed-off-by: Vishnu Reddy >> --- >> drivers/media/platform/qcom/iris/iris_probe.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/platform/qcom/iris/iris_probe.c b/drivers/media/platform/qcom/iris/iris_probe.c >> index 343e44c6b9c4..6f02bb629867 100644 >> --- a/drivers/media/platform/qcom/iris/iris_probe.c >> +++ b/drivers/media/platform/qcom/iris/iris_probe.c >> @@ -251,7 +251,7 @@ static void iris_remove(struct platform_device *pdev) >> if (!core) >> return; >> > Wouldn't it make sense to devm_free_irq() here before disabling the > work-queue so the interrupt handler can't run for the rest of this routine > ? Calling devm_free_irq() here can leave the IRQ enabled with no handler. A sys error work queued by the handler before the free still runs, and its iris_core_init() -> iris_vpu_power_on() calls enable_irq() on the freed line. > --- > bod > >