From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.227.201 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796252273; b=G3hz4VnAYCjBsOylgbynxzJmg0Y37tSjOC/ExWI8bbWIaaP9B4eb6U3L1Lm/mADG9qVf dzB3mAaHa7hMKbfyWBs+YkJ1LCCPafGyVqiDrXqVT8dN4u7OoKWhd8tdF9ifRKLfMtHEp ihz5zaIl9UbGcRr97lf0gKvCX/jim6VQ9xaYWT+JzIUHW3TETyrUKoLykjy/LaFTuWfjV 8I5QZV+yCbd2kcfGpdeV5+LnDqdGDKcfrAbCd6CEX3+DOmNc6RpCVjRRtfHNjPHRlJmOb GXMQgIOu0T8yMlDlwEBVWl5YltzTdXTcHWsgzHRFkE5jv9v7ctWkCGRJFC7lKGuhaVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796252273; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:MIME-Version; bh=ep5P9+mJqb7GDrZ2UnbEtuGWqJ63fmlfkVF3YS/Ps54=; b=CTtQy1P0tpwJvi/JdkbKT7qKsneAge1h4LVqIRQhls7iDVVtqFVu+iElAhytoqEQByQ3 sC5sYINy0zD+Fm05vPQ2wNUlDk3eoj646AyPmz4xcGVn/d2SAzgnsACtcki/MYA30IKrU JOBcCM9YEePBLyjsd7mGdCth6U7CedNzkKMvuTpFpqW1dO1wE+ng+fJUMngSOpV40Hmc1 dy3uNJLvkTfNo3knnnht6rHrQcgiBsp/XMW7TZ0mG6jtTLbK1fC3g4w0DbKK5Ff7n/lpv Kctm4qgdfHT9fG7z3DXorqyK59OpANTvRKj67aQEC+1KThkNQQfDfCrqwUdZ5BoEhAQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="PEyaqit/"; arc=none smtp.remote-ip=74.125.227.201 Received: from mail-pi2-f9.google.com (mail-pi2-f9.google.com [74.125.227.201]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D272606A32C for ; Wed, 2 Dec 2026 22:57:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D272606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PEyaqit/ Received: by mail-pi2-f9.google.com with SMTP id 41be03b00d2f7-cdd9d0d40a4so3702302a12.0 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=vger.kernel.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=PEyaqit/wU2N3r8Vb7Slg188rWHAnHg7U8YYqlDaJJL4Qkr8XCN4SubUgpA/gliOic 6es7wptHtEiCAaLADN1UqlL+hH/kJIUoWM309ZmO8YNYd3IRupXOqu+qmpaUnAz3x8Qu 67X9bIHt7/lSd2RvuxdFOf4uRn72mDEFM2xW9JHebjN8SRchP2yWJwGDcd9F14XlJPgM 2jT1yBK6HY1zQyGess1tCjeEYWmtBQdr/uDNlU/3J91RVuVcheWUl6e6PUtgKUHAvg24 eKcVAgoxRyx50I+WA1xqhbgFjHWuZX5Xa+qV2GcPtUZErd5QpeBVnUv9+rJF6Zx/yzlM nu0Q== 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+mJqb7GDrZ2UnbEtuGWqJ63fmlfkVF3YS/Ps54=; b=PCMJpHBBfDSw8zHeAAkyTbyxgr6QUAlibwamXW+S18t9D/FUu6yvYihp+AtGB3omMi VabvUvqNFU8zwjI7nhkmVKewOiGBuyFWQgHUMpLP5rQ6QHS179y5RAjwftTrkgkBYzxy OaIngnghGKcvEi+XMd79Em5I47+PYHSQAqcdO6sEj9H75HCnBxffXrMi3uZpPgIKtUIQ Y10cOb3jfL7UAQ/4rc+465rpJFUleUow80QWH1/v7jHMp4PyaSIMhmLclOOUqmqV8VOZ 4OII6EVpKoLNFcr3Xz4ZoDeRXhmjLerOl+qyHLyVg4j/7J2qkjDbULCAwRTyRpApOp5b l4Ow== X-Forwarded-Encrypted: i=1; AL+hErG+eoEjOhl8kFSO3MxESeEoy86wuXR1LAKWYfVr8UJs+0f/33nNgNr8n9fZuZkwV/2FiQCC6LhnoqRf@vger.kernel.org X-Gm-Message-State: APuU4Z95uNPyPua8vqvm73WKFdBPfjPUzEkUyaKhtNIS32uauDRAxgcX ms2vkNCrgR3oqMHifAI4Bfelap3XcP5zvoX6myeQaMZ8MI2vYM8OiIG2 X-Gm-Gg: AZFdTZd1tgWI/YSvxJX7/R3fL03v5MqDnKTcHIlb1AoVeIlosuTrbKYQ+IiD7z46CmT WUk7Tyb98mX9dR/Bs9iVtzHnYrbETRZBGpfvzg6mvwfgZnotskOoP/oMTyhE45WbJEO//jQyUPj F0Gr2KVRQSBicyTI0pcN5dL4fbQIbzJy+oJppfL6ghC7tz8FpMScKK2rx9cTEzMaxrN/J1tXVcl SLS4CYezxwRj742CtXUQpYGOID4rHRVMANG6ToiCEWbnunJ7PrBJBLXekYKqYHt6EuCmju98yZh Vw3iK4ebFfaoQrjHO6R/2sGDt/k4dRtSLTIAu4LkwN+q7/k6MgJSmD+6FlzgkK/fjySF7Oq/BmV 85UOoQmmxuxZyd4RIqXvsQyK6O4pZr5cAuR16UWzMsDSsTXo05EZKJJ5mqCS0A1WR2i9QzWjHl9 3A9wFJpjqs79dyPseigZn2C5DhAOY7Mykk91YvHqusWW49FYntF//+isJVMO7G/9BjB6M1ksRGx hVxOZFd5w5Th4DXqD5i8oObbOqB4DIUuFA7KkLJpEuDcL8NKK/XnAwfkp3k0bo1Ghf/xnshIYLm ZWPN5sivMAuOPwgAN3F48CHlalH9yIvtKwM= 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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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