From mboxrd@z Thu Jan 1 00:00:00 1970 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 0092B606A32C for ; Wed, 2 Dec 2026 22:57:56 +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=c6qka831; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QsnBmtNy 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:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date: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=Kz1+pbeTjPeCz/jv3w7KJfPcw7XoaCj2qKLT8i7p8vE=; b=c6qka831CM9wdGPHCgWtuPNvb4 e2nFPWD/AJCYTnUQQu8XIQBUk/Lj1JOW0Jrkr8+CzTJT3ac7CzSThCB+kpKM5cfLeBJ18tydoIkTE k5wxo+Umt2eA6FAIwvJOnW7yVSvW/r0j5ln0meeT4vsrTLWvHjZg0OJiulOC3SpICA+3+B71uvsEp eRg9RIOOrNtcTK1+RQS5XyYfSIfrCFDaVLeJG97pPuhG4l9u7DK3u5CX0eggkY6/6ZMZ1GQZDYcbu gnAoMuhKDtbgjO9efn2OO1CHGj/yPulP3lsbhKaKxgnEgkCFoQ/7fhMFCWIH5Rw6VmOuKPGUcP3XV pb56W1Ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYtGt-0000000Cxoi-38Af; Wed, 02 Dec 2026 22:57:55 +0000 Received: from mail-pi2-x09.google.com ([2607:f8b0:4864:3a::9]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYtGr-0000000CxoO-2kLs for linux-phy@lists.infradead.org; Wed, 02 Dec 2026 22:57:54 +0000 Received: by mail-pi2-x09.google.com with SMTP id 41be03b00d2f7-cdd8f943737so3486535a12.1 for ; Wed, 02 Dec 2026 14:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796252273; x=1796857073; darn=lists.infradead.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ep5P9+mJqb7GDrZ2UnbEtuGWqJ63fmlfkVF3YS/Ps54=; b=QsnBmtNy8+ReExLtopgjxPHNcBVzq/zesjW1SGBYI7syzqVIK4icAlKCBaVB1ZvFuX d/1nH4CGP9y8llXQxKV+D7H9nu53/3jeqmGx9Ljkv0KUrLwcUmBABYt3pqrOhp/vGrEa F1M0sy8n7tFi8GqCVxHDaPZYdB4lznyLDvs99erMpySSy150rsVA9HKM2DG6fFhb0XId +7jvzAgySsT8gA7ZyQCgXYojeiAuiPK9dEEqERJlg7+S411pYMuA6Z4bfZ61QkhkyEnp QmbVDVavAdZZDqH7HgrvDmLmlBjgkJPEyRH3V673z7fbMgJ0rXKz1ErNw1n/rZRrvGD0 Nw/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796252273; x=1796857073; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ep5P9+mJqb7G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52CbZ1bdiy3i6e6re9pRA4U51JhnzU5XpcNoNxSAoaz+dDin1Ll+TpBMGI1UWauMkrc 2O5O/g1s6BsqBMf/QxYtVpLJB1qHQskG/zUEjRpOcUYglvPhvwr2Qf2gSNrx9os1xKpv823PIYQ FIubfT04yntmUhRtf1pnyr/VEAb8cEQxtPA= X-Received: by 2002:a05:6a00:1820:b0:8b1:1b86:71d2 with SMTP id d2e1a72fcca58-8c87bfa766cmr41579848b3a.22.1796252272712; Wed, 02 Dec 2026 14:57:52 -0800 (PST) Received: from localhost ([2403:2c80:6::1032]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c873b27900sm22874159b3a.47.2026.12.02.14.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 14:57:52 -0800 (PST) Date: Thu, 03 Dec 2026 06:57:48 +0800 From: Cody Kang To: sashiko-reviews@lists.linux.dev Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com Subject: Re: [PATCH v4 09/16] drm/spacemit: add Saturn DPU KMS pipeline Message-ID: In-Reply-To: References: <20261129-k3-display-v4-0-ce6cf7988202@gmail.com> <20261129-k3-display-v4-9-ce6cf7988202@gmail.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_145753_717218_7ABE6B6D X-CRM114-Status: GOOD ( 14.19 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-0.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Sun, 29 Nov 2026 12:54:45 +0000, sashiko-bot@kernel.org wrote: [...] > > + /* > > + * The event releases the next commit, which rewrites the other > > + * command list and points the engine at it. Hold the event until > > + * CFG_RDY says the engine has taken this commit's lists; the > > + * interrupt then arms it for the following vblank. > > + */ Will fix this comment in v5. CFG_RDY and VSYNC normally come in the same interrupt, so the event is sent in that pass, not at the following vblank. [...] > [Severity: High] > Can spacemit_dpu_online_isr() arm and complete a_crtc->event before the > DPU has taken and scanned out the new command lists? Not a bug: a leftover CFG_RDY cannot show there. CFG_RDY is masked when a flush starts, or, right after an enable, already acked with the timing generator not running yet. CFG_RDY and VSYNC in one pass is the case from patch 8, see my answer there. [...] > [Severity: High] > Does calling drm_mode_config_create_initial_state() before > drm_vblank_init() leave vblank enabled on the initially disabled CRTC and > allow spacemit_crtc_enable_vblank() to race with runtime PM? See my mail to Thomas in this thread [1]. I plan to swap the two calls in v5. [1] https://lore.kernel.org/r/e2c0b2c3-ee2a-44d6-ae2d-7e41beaee6d4@gmail.com/ [...] > [Severity: High] > What completes priv->a_crtc->event and stops DPU DMA when > spacemit_drm_master_unbind() runs? Will fix in v5, except the runtime PM reference: unbind cannot tell whether the CRTC still holds it. [...] > [Severity: High] > Can sdrm->priv be dereferenced after it is freed if an open DRM file > outlives spacemit_dpu_remove()? Not a bug: spacemit_dpu_remove() cannot run while a DRM file is open. The DPU driver sets suppress_bind_attrs, and an open file pins the module. Cody -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy