From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F38802E2DD2 for ; Wed, 26 Nov 2025 09:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764150692; cv=none; b=pdR+xKhBCohKEaGRxxcqd0XLtxjnLRnYRgMp8iL52pxEzsjJUWAHXEWbG5YlywJypeZzWE0xj8Z8mD0sF0wfyWjRMEWvSoa0ZkiSKBlqzmeShVbooVcf0R0Qlz90l5+vssBKaNBly3MIagCxkon3igdnPvj3vL2q+okfE8JuZPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764150692; c=relaxed/simple; bh=so7nOmpXqoQYJpxOfTcvkMaiTauPELZsUilm6ijVslc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kI2Qh/I/beuUjFZyEAZ9AHifs4EWJHIyzgJG1kmAsEyJ9zN09tVYHQtx5+3UCkaWDMBCUfhj/LeNAJsELOhR/Rfibz2wCr4azo4JJfAouFVeef12iQYYWuEP5FwBcz++cVRfGjp2oNsNs4LRclr2XOY+6UMm0hPOw69vkqyfn9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=TfGC9kTh; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="TfGC9kTh" Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 59A4B1FB97; Wed, 26 Nov 2025 10:51:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1764150680; bh=PLT6q+os6sRO2bOatt7n+jU6laXTsM8Aj2mf1+OMMQw=; h=From:To:Subject; b=TfGC9kThli7oAzQKAlI9zZR+OvVuFtIc18FZzRFB3eQvq3APk7Ql0GhzFIxzWBRGu UMXufpkr3Y8R4dqF7SI+Nm2wV4i+AxnONT773vVGBW9UIrnVGzdaNjiuKwSFI/4y31 lMGDaCvNMqVYEk3xi1YE5VjZ35klQy02dC+t5XXQU5QuAcbg8Og2PbZY2GbJsQBro3 cd53UxnefrGztmcOyH8JsOHywwVDTbAkJ4Imhb4Br9eUz1VUo2MOhkG8VRCV2Tu1TE jNLf6EroJB5p/9S+n6dmOIBF6V7glW1pHNAyZJy26pIXOkovRN6eVumzw5NHWYDS82 lDSWkUdkQUo9g== Date: Wed, 26 Nov 2025 10:51:16 +0100 From: Francesco Dolcini To: jassisinghbrar@gmail.com, Beleswar Padhi Cc: linux-kernel@vger.kernel.org, hiago.franco@toradex.com, francesco.dolcini@toradex.com, afd@ti.com, hnagalla@ti.com, u-kumar1@ti.com, nm@ti.com, vigneshr@ti.com Subject: Re: [PATCH v2] mailbox: omap-mailbox: Check for pending msgs only when mbox is exclusive Message-ID: <20251126095116.GA6168@francesco-nb> References: <20251103201111.1417785-1-b-padhi@ti.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: <20251103201111.1417785-1-b-padhi@ti.com> Hello Jassi, On Tue, Nov 04, 2025 at 01:41:11AM +0530, Beleswar Padhi wrote: > On TI K3 devices, the mailbox resides in the Always-On power domain > (LPSC_main_alwayson) and is shared among multiple processors. The > mailbox is not solely exclusive to Linux. > > Currently, the suspend path checks all FIFO queues for pending messages > and blocks suspend if any are present. This behavior is unnecessary for > K3 devices, since some of the FIFOs are used for RTOS<->RTOS > communication and are independent of Linux. > > For FIFOs used in Linux<->RTOS communication, any pending message would > trigger an interrupt, which naturally prevents suspend from completing. > Hence, there is no need for the mailbox driver to explicitly check for > pending messages on K3 platforms. > > Introduce a device match flag to indicate whether the mailbox instance > is exclusive to Linux, and skip the pending message check for > non-exclusive instances (such as in K3). > > Fixes: a49f991e740f ("arm64: dts: ti: k3-am62-verdin: Add missing cfg for TI IPC Firmware") > Closes: https://lore.kernel.org/all/sid7gtg5vay5qgicsl6smnzwg5mnneoa35cempt5ddwjvedaio@hzsgcx6oo74l/ > Signed-off-by: Beleswar Padhi What's the status of this? It's fixing a real issue, and it has been tested and reviewed. Any blocker to merge it? Thanks Francesco