From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25E862260C for ; Mon, 20 Jan 2025 06:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737354802; cv=none; b=LQs1ZHM1nINdO3Df02n2k6EoNq0pkvPFbCrUWXOuHAswMiRPFRVhxw/vE3H1sKDLl7zwYmFFp9Yn5gRTWd9kbhPsN7eETm0rvcvMJxL8/I0sm0tcBL8p7sJwVTRMeifHCJbZIOlD6yRdRK1IXcKPDX2s0jofEASZlQKN5DUEisA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737354802; c=relaxed/simple; bh=lkXkcVBs5Oz7RxmRyrycSBaOllOusJb5t5AmGaecgK4=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WLHYlBHg3s7Jy0pSDU3Zg93a2/KKWsbdlAOSPZStcTGwm4+8C2LpN++sEZj+M1n9OrR0q/q+UsANgXUL2AJXvrMonLa/XDQhGIPq1vPdH8ahkAhJ1xNwj4cOYla6GQG2xGX/JuKokMPLC+DndW65dpk8vryzmb5B/0/zpUNPLLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=lXjridMP; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="lXjridMP" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50K6UZq7002487 for ; Mon, 20 Jan 2025 06:33:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=uVp3XNn+9poXy5mSRevBQr0o dexdzyW+I7EJrxu33e8=; b=lXjridMPaFP7/q5kZOjxgungdaJJwpjreH0azpn9 D6HMiS5NOjcoAiMQskdyIOkFJW7tW05cDepN35nCBX/ocMb3wG4jnCyYi86yeVZe wDGxPOEPlzMClA0aWcv0DWP6gfSbZ74CBMiitHBmTMWkPPUMzjWJVAp1C2Vi6iSf nWphNvQV7hBBZl7GQlQJe4iC60npXMClJBvsQ3PQH48MLQ6CUF4BD9tEW+NuvqRy NF6zXEFUE1fgOZpem0N8dZDVkDw2Udp39Mw01IjcewOYe8mcTYoMvAH6VBRNmVR5 /Sjm8YaX0BmXeU1CvkT+2AmydWB4ZKrBQYwHRQwtf1fLdg== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 449h9j012r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 20 Jan 2025 06:33:13 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-2ef775ec883so7537640a91.1 for ; Sun, 19 Jan 2025 22:33:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737354792; x=1737959592; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uVp3XNn+9poXy5mSRevBQr0odexdzyW+I7EJrxu33e8=; b=oV1MjFE+obpVWZqmdNl1oxCrb4kQ6m1EGBNdIxHrGuZmwDy80SC0f8fbX+w60tk7mK HaBZRhhQnXByFqoGuH5HTMjuOxZZPYwfyb0qSA0cNc0+J6TZ2cZDJmwQpy2hrYTX/sq3 jR1vfQwND2RWV1RiEIs4/6+kPLFEBUKcZEzXXudyayZffsS4hINmPoyQCdvwRyV8CAYM cTI5k/m3gmtYoN1PmZgcd6ZDIiz3Ux/MS8x8X+JUTcbTodWc5AfclPQVq/g2EQVv/vkN zreoQpbBk7dCPWO8XvYx88ibSp3TrftlwDYJyILC4BXptTeURxV38NGD+Xk9hebfH2+j XV9w== X-Forwarded-Encrypted: i=1; AJvYcCXYKGZPP2elU5nqs+upfIHbVu0TAoeWJdhh0pEmjgq8LcsOQ29U65ZF4SqsFDycMwAA6Sd5lOrXfWRwwxo=@vger.kernel.org X-Gm-Message-State: AOJu0YzYx1IVxcXv8iX7iyd1FA8M2TPdbas7gyEdvwlUsDKaRJIYR+FB ApB6vsHGaBVc5WICgUl/+JiCNONekJBGmbjrxAnCnF/2MFnDJVQOgzFWNdy1RPKnHhXvFCDcdA0 Q10hrDs898tLE/y0NTnxJStvINQNHiFsg+0YleQIpkquCIJNCvPVf3soWtAK7BrA= X-Gm-Gg: ASbGnctwQMaj9eeK5ORyU1o4iCs5pTPiK/GxLyxa0oPMY4YXZqgLy/YStAa1dp6KUbx C24bo8C+MJ3NIP0IECSvMstD3acvjlQilLHPZ6oGhIdoCbKjJSwtgNCd44/uSdrVTRforG/oe/N 11xkPz8jo/aTHjBfenq2l9WQ1LxgV4G1wTP8TuFOGuG9+dVLXieFvAZ7aFvokc3h9UGItBHEVvv C+uJKyC5Ft84LAWQ2eUEbgARSwUACBTN5pRHj4U9HzQcXY6yS3ePHraFUm0WPVAGKpfRx/ZYui7 F+geQqsh2hWGaF+IqMi/EQ== X-Received: by 2002:a05:6a00:2d8a:b0:725:1d37:ebff with SMTP id d2e1a72fcca58-72dafadbcc0mr15486000b3a.22.1737354792610; Sun, 19 Jan 2025 22:33:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+QbAuKn4OjWr1W2rbrpDJoX3PStAkVif1e/WDg5glmLJWH2Rs5SlcxjvgCPSJjIJxpRqOvg== X-Received: by 2002:a05:6a00:2d8a:b0:725:1d37:ebff with SMTP id d2e1a72fcca58-72dafadbcc0mr15485982b3a.22.1737354792187; Sun, 19 Jan 2025 22:33:12 -0800 (PST) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab9c8d7csm6375779b3a.101.2025.01.19.22.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 22:33:11 -0800 (PST) Date: Mon, 20 Jan 2025 12:03:08 +0530 From: Mukesh Ojha To: manivannan.sadhasivam@linaro.org, jassisinghbrar@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mailbox: qcom-ipcc: Reset CLEAR_ON_RECV_RD if set from boot firmware Message-ID: References: <20241230075425.2534765-1-mukesh.ojha@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241230075425.2534765-1-mukesh.ojha@oss.qualcomm.com> X-Proofpoint-GUID: bdmWQfOSVVwfAzBa71eYrMlaLQhjwOhL X-Proofpoint-ORIG-GUID: bdmWQfOSVVwfAzBa71eYrMlaLQhjwOhL 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-20_01,2025-01-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 mlxlogscore=703 lowpriorityscore=0 phishscore=0 mlxscore=0 spamscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501200053 On Mon, Dec 30, 2024 at 01:24:25PM +0530, Mukesh Ojha wrote: > For some SoCs, boot firmware is using the same IPCC instance used > by Linux and it has kept CLEAR_ON_RECV_RD set which basically means > interrupt pending registers are cleared when RECV_ID is read and the > register automatically updates to the next pending interrupt/client > status based on priority. > > Clear the CLEAR_ON_RECV_RD if it is set from the boot firmware. > > Signed-off-by: Mukesh Ojha Resurfacing this in case it was missed during the New Year vacation period. -Mukesh