Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 95627606A31C for ; Mon, 16 Nov 2026 10:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Qd7+j+tW; dkim=fail reason="signature verification failed" (1024-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=gmYoRoB6 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=dPJNRPuH/sBelDaUJX33q5BK86FCmjA+QmrucK41N38=; b=Qd7+j+tWI0ZGjLuZjrfAayHHxC hAIZbHuNgHZYhcwg3HnEn472QYTaz+x0MBM/otx5HRPE1LsE0ULLhsgNMEPjoxftCote3/GehTn1h si+npKQ4EiYW5s47XFGHZ7NOuPsPc6lUP+UiiauhuQ1gBdfm3+zTB6kgrNL6rqqVwQ0W/iSueG4Eo AhsWc0dXNkJFMFMFsEfdAujcmfn6ShplsLDP/d0GG+KhGZMHnTqxFwzO/LFJ3ialxjP+yTFrPtzgi ix1lxryy2aODCSzvtnas3OsITpOA2GnUNj9OKxIKlP5BnF9lnKVolNQKv/ZT2r+ICUqD+hypJdzO/ Y+OAqA0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xSuQM-000000023LR-2JL7; Mon, 16 Nov 2026 10:58:58 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xSuQK-000000023L7-2Y9A for linux-rockchip@lists.infradead.org; Mon, 16 Nov 2026 10:58:57 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1794826723; cv=none; d=zohomail.com; s=zohoarc; b=U4di7FQLEGmh5daOcGk2o50RD1RZRFsdi9aQoA8ojjLbUX96S1kCd8uSWRqLueoimcp4P7JKDZYVX4oKgLEV/m4NJbcoxgPMOKNuFlJdap9YOtxhQI4CpqdulRa2+6yLW9XDDT6LA+V6n7yB6rZxRtrtm9AlpPztUPNZH/iOX2c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794826723; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=H0/JMO0MVBV4Zw97lRkerZQkk83rH+m9BE4n2iCqH98=; b=NuORiU6iqRD+GYvbIZWS+GNV1E4TWx6iJwKNY9M37u/rLqNJNTyA0VjewG1qB1/Gg/wFrFqqTSUmOaDbwwBbfV+mHYJidjO1EadWsEmQwdNTuDk45z+w2eGVjdN6DYoifgNy2dlMbvUgXMPgFqM40ZQzrNmq8smMAyZuzac7doc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=michael.riesch@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=gmYoRoB6F3PFZlpxFpHCOUFln6iGvF6CHYby8KvdogacxOk8YQW6aSHLgXr+P81MaTOah0JATWnZ+Tg1EMxoCPxQvonaD+Yyw0ZIpd0HqgXJNog5BEgjmh+aQAlpEQfkOMxAv4PNaPh4MfO/VvB6d5XZjrJgYDrFKtNArTSeU+g=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=H0/JMO0MVBV4Zw97lRkerZQkk83rH+m9BE4n2iCqH98=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1794826721300634.623479738804; Mon, 16 Nov 2026 02:58:41 -0800 (PST) Message-ID: Date: Mon, 16 Nov 2026 11:58:35 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/2] media: rockchip: rkcif: Don't reset the hardware in runtime suspend To: Mehdi Djait Cc: linux-media@vger.kernel.org, paul.elder@ideasonboard.com, daniel@makrotopia.org, linux-rockchip@lists.infradead.org, stable@vger.kernel.org References: <20261112183208.2688580-1-mehdi.djait@linux.intel.com> <20261112183208.2688580-2-mehdi.djait@linux.intel.com> Content-Language: en-US From: Michael Riesch In-Reply-To: <20261112183208.2688580-2-mehdi.djait@linux.intel.com> X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261116_025856_683312_641875D8 X-CRM114-Status: GOOD ( 20.92 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Mehdi, On 11/12/26 19:32, Mehdi Djait wrote: > The reset in the runtime suspend also resets the VICAP IOMMU. > > When the IOMMU driver accesses the IOMMU registers inside the delay window > between the assert and deassert, e.g. in rk_iommu_zap_lines() to shootdown > IOTLB entries, the system hangs. > > Drop the reset and the now unused reset control. I agree that the current situation is nothing more than a crude hack that happened to work in most cases. But I doubt simply removing the reset is the correct solution. Recently, I saw some downstream patch that makes the reset a shared one, which seems like the right thing to do here. What would you think about that? Best regards, Michael > > Fixes: f53fb31a3889 ("media: rockchip: add driver for the rockchip camera interface") > Cc: stable@vger.kernel.org > Signed-off-by: Mehdi Djait > --- > .../media/platform/rockchip/rkcif/rkcif-common.h | 1 - > drivers/media/platform/rockchip/rkcif/rkcif-dev.c | 15 --------------- > 2 files changed, 16 deletions(-) > > diff --git a/drivers/media/platform/rockchip/rkcif/rkcif-common.h b/drivers/media/platform/rockchip/rkcif/rkcif-common.h > index 4d9211ba9bda..38208e8b7b2d 100644 > --- a/drivers/media/platform/rockchip/rkcif/rkcif-common.h > +++ b/drivers/media/platform/rockchip/rkcif/rkcif-common.h > @@ -237,7 +237,6 @@ struct rkcif_device { > struct clk_bulk_data clks[RKCIF_CLK_MAX]; > unsigned int clks_num; > struct regmap *grf; > - struct reset_control *reset; > void __iomem *base_addr; > > struct rkcif_interface interfaces[RKCIF_IF_MAX]; > diff --git a/drivers/media/platform/rockchip/rkcif/rkcif-dev.c b/drivers/media/platform/rockchip/rkcif/rkcif-dev.c > index be3a174b9aab..dceabee2ecd6 100644 > --- a/drivers/media/platform/rockchip/rkcif/rkcif-dev.c > +++ b/drivers/media/platform/rockchip/rkcif/rkcif-dev.c > @@ -10,7 +10,6 @@ > */ > > #include > -#include > #include > #include > #include > @@ -18,7 +17,6 @@ > #include > #include > #include > -#include > > #include > #include > @@ -201,10 +199,6 @@ static int rkcif_probe(struct platform_device *pdev) > if (ret) > return dev_err_probe(dev, ret, "failed to get clocks\n"); > > - rkcif->reset = devm_reset_control_array_get_exclusive(dev); > - if (IS_ERR(rkcif->reset)) > - return PTR_ERR(rkcif->reset); > - > rkcif->grf = syscon_regmap_lookup_by_phandle(dev->of_node, > "rockchip,grf"); > if (IS_ERR(rkcif->grf)) > @@ -273,15 +267,6 @@ static int rkcif_runtime_suspend(struct device *dev) > { > struct rkcif_device *rkcif = dev_get_drvdata(dev); > > - /* > - * Reset CIF (CRU, DMA, FIFOs) to allow a clean resume. > - * Since this resets the IOMMU too, we cannot issue this reset when > - * resuming. > - */ > - reset_control_assert(rkcif->reset); > - udelay(5); > - reset_control_deassert(rkcif->reset); > - > clk_bulk_disable_unprepare(rkcif->clks_num, rkcif->clks); > > return 0; _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip