Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp673613lqo; Fri, 10 May 2024 11:03:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUigIC24TE6Qns+60NZaUOgzdmsYSrUIlkIOPZ5WBYv9R3XpnUdJCSPwGBHtFRoncEoMeZ6KR+4wN0ogkUbr3NxRtKcw42uk4PEMhTn5Q== X-Google-Smtp-Source: AGHT+IGU3ERYXsAF8I9g0ICUS3A1wItL52Y8Zza0l6v3jmQMcfc1tGTvbkKFHNnEqdezuHmt//Oz X-Received: by 2002:a05:622a:1344:b0:43b:4d2:48cc with SMTP id d75a77b69052e-43dfdd1961bmr46917741cf.46.1715364185756; Fri, 10 May 2024 11:03:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715364185; cv=pass; d=google.com; s=arc-20160816; b=e2cWUV+gdZtXCyvNUkaUGgCLnwj7v8x112LjR9ouxRwXPR1LM/xqnPdLhYHLundZrl TNCmXL7gTqSyHSNOu66ISv4i9CJc7N1w7NborRmG4bxUYk/2I2mysXbkrm+iWrShVmKH fKgFGezPp8nsVXTeR+qf3yBrCZUAmlSTigC0Ycu1Acy3RNF9GiuuP5ui1375i8u1rTpL M2fYSs+NTZnrZ3a5YsUHtvvRBw21II+bi+OL2KtMgYjpzM9QAZPhWQ2gfnKicnjvD9Ko xC+ASDVpkY1BYc3dwkR6e799F+yas0cVRqrWkx/yqNgwfdwzD679cR1P/yC2R5i8dfXe 00BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ElFboxhq5Mn4V6HoClPLbitGjO20T62uh+wRM77AIu8=; fh=0YSPPeKH/+wfzjy09zCxx6Uy2KpR06aR7C8/Kjaqado=; b=n7jr3weZJUYjoBGOrqVsJqE8wxt0/8IrhV7VyJUnB3c/qLSz010PiqdUzIYbcEQmjl /FoTo9pjeyGbrQda6dpHd4/v7Za3TDZJeWa6t+Em4znBJYCjuR08jM1wDvHaicYmcL8V TfA8CZ5w+M+M6Rn1wVOSfTfZviKu+Nu97jI72sEGTi42RYkJrNRPDOMo8/Qx+BoGEP9N 69CwrZR/YIo1JVBl9T6QVOfSft68FV+O+3ZtZQzsJ8KOfeU+ktcehhG1fWxKHUWHuwv8 qUa1rxqiVawlM+p5vocLGopIl7cOllY05/USQzup96j1/DnaI5a0IF0KCRHIdzWEMeNC CmFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COn0Xeyp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-176081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df54b4caasi39612471cf.198.2024.05.10.11.03.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 11:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COn0Xeyp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-176081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 84B6E1C20DB8 for ; Fri, 10 May 2024 18:02:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AB54208B6; Fri, 10 May 2024 18:02:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="COn0Xeyp" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 1F8781F954 for ; Fri, 10 May 2024 18:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715364129; cv=none; b=jJL3TlVpkls7RGbsMQDcGTdodmZIaX00Y+3Z2mcx/+AbVN8/NG+8LLAvZN+91Ml6jpuek+x+c0hwpaQLCqtjoktjNBeSjReHbkBN9zfTAtv8KXzjRHqle1Jk/VMN4gZzbufNpbu4IuaY3Hv1lFf7y6/6orPzgC98I6HmPRoA4GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715364129; c=relaxed/simple; bh=pX97IRND/hC0ZAHWMTHnJl4QulKVbMD/FL1DM3HCNs0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pLQGXGw3jcbuAH/XRi8K7hz3fwQE5Ntn7kCd9Fuz56vrjBEWZpL6vl/B9rbVaOHZIF/4Ja5Ilj0CHNz51YKSh0tt+DarTghJZOZ5N44doEmyCG41fw2pcHkuLKPtWeSYwhS63Cycqaxuz7aKEbonyvGZKl+BS/5jcJ3ctSZenSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=COn0Xeyp; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-51f174e316eso2790818e87.0 for ; Fri, 10 May 2024 11:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715364126; x=1715968926; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ElFboxhq5Mn4V6HoClPLbitGjO20T62uh+wRM77AIu8=; b=COn0XeypNm5HaP79nUZX82RjBpKRPvRBmEnThEVFTIcz6q0iCbw6CfxEi9YlvOHr0Q D2VVE8Xg/0zUa2O6hakzXiLspLaDHbD+ibAzBxL1C+/sRHNliveLdkmS+hMxu4fu0uNv GlE661l4arzKennGUv1Izq4GBs6+kArXjSGcAiuItGr8E+nkgktm8AhBrwHEWMHA+WR1 yD1THZn16mAT8JLpeSjFPExPQ0vz/4AKXoXWJTcX5rrhmEJegMmW2mzMdidrQnKFEN5b 7U5Ojtj/2wxhRtSj8sb04p4e2OIVT95/aLzYOT/MRJlugcHFIBg+qQdcxiiwhsw6fPN9 tqog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715364126; x=1715968926; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ElFboxhq5Mn4V6HoClPLbitGjO20T62uh+wRM77AIu8=; b=mKax9Qba24nV/nCc0mv4a6aF2a0dWLKNUy+ForyaJz2SqHgVhs4vLlPOAv85LtiQnh XYZSoy1yrV40KNLXNP//XiACLSa5n2WQdb8onDETCuR3j5h50zbLGh+LDiQUAbEGmo98 +e2B6ISbmj8nyeTwN9hFZuWuFGzVCZKB4RniAC+HJtHhCAfE5RKxsxcbmAmXoUNVcy8T Be//5CZBrWuSZC/N+yg44+QKXOSnoOS6Vun5YOYTit5fX4Dxs/S5sSJk4V9JR3DxP+hq LTgT8pGnR1kzNJ5jM+cwzb4rUqY7J2YEXSHeyIZLniOq7glugPXh2pHBa0+PXpRndiY+ RKmA== X-Forwarded-Encrypted: i=1; AJvYcCUHyrYQqVI6XL+0wwG1Fp7eC9lsuVasCpaJVor1HyqHJtExV/vFMkWYD0o6gFebWs97aCVroG0uyW/+o9LM0GhTjl9FdbfYfP4xsrWr X-Gm-Message-State: AOJu0YyUHwMX5DOqr+3xCCIJB3I7G2UukZeMgamzGnSr2tJzicnBAoGF FkR+Rrun7/xv1SPli6xKbSgO8+xeTAucsC4nWpzyDlqoNq6wSNE3wMBFYkM4cjg= X-Received: by 2002:a05:6512:2214:b0:519:33a5:973e with SMTP id 2adb3069b0e04-5220fa71886mr3182690e87.6.1715364126158; Fri, 10 May 2024 11:02:06 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f39d2c9asm761699e87.275.2024.05.10.11.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 11:02:05 -0700 (PDT) Date: Fri, 10 May 2024 21:02:04 +0300 From: Dmitry Baryshkov To: =?utf-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable Message-ID: References: <20240509-jdi-use-disable-v1-1-5c175b2ea1ee@gmail.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 10, 2024 at 09:10:34AM +0200, Barnabás Czémán wrote: > On Fri, May 10, 2024 at 8:46 AM Barnabás Czémán wrote: > > > > On Fri, May 10, 2024 at 2:56 AM Dmitry Baryshkov > > wrote: > > > > > > On Thu, May 09, 2024 at 08:14:07PM +0200, Barnabás Czémán wrote: > > > > Move DCS off commands from .unprepare to .disable so that they > > > > actually reach the DSI host. > > > > > > > > Signed-off-by: Barnabás Czémán > > > > --- > > > > drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 12 ++++++++++-- > > > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > > > I don't think this is correct. If the driver sends enable commands in > > > prepare, it should be able to send commands during unprepare too. > > > > > It cannot send commands in unprepare, there are multiple panel drivers > > what do the same. > > Every panel drivers which have DCS commands to be sent in unprepare > > has similar error messages with mdp5/dpu. > > > > [ 92.322564] panel-td4320-boeplus c994000.dsi.0: sending command > > 0x28 failed: -22 > > [ 92.322635] panel-td4320-boeplus c994000.dsi.0: Failed to > > un-initialize panel: -22 > > > > > Here is the error messages, these are comes from unprepare by every panel off: > [ 121.295290] panel-jdi-fhd-r63452 994000.dsi.0: transmit data failed: -22 > [ 121.295368] panel-jdi-fhd-r63452 994000.dsi.0: Failed to > un-initialize panel: -22 > [ 184.783019] panel-jdi-fhd-r63452 994000.dsi.0: transmit data failed: -22 > [ 184.783066] panel-jdi-fhd-r63452 994000.dsi.0: Failed to > un-initialize panel: -22 > with this patch these errors no more. > .prepare works because of this flag ctx->panel.prepare_prev_first = true; The flag should also invert the order of post_disable chain. It well might be that the drm/msm/dsi driver shuts down the DSI link too soon. Please consider fixing the MSM DSI driver instead. -- With best wishes Dmitry