Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp435231rdb; Thu, 2 Nov 2023 07:56:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTgtLPz4Swvf4OYvRs2KjpgJwyjQ4itHYS2ywlGU7VVGviEoQDpMbl1Vx7/Spy85KI2bd6 X-Received: by 2002:a05:6a20:7489:b0:174:2286:81f4 with SMTP id p9-20020a056a20748900b00174228681f4mr18209275pzd.14.1698936990749; Thu, 02 Nov 2023 07:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698936990; cv=none; d=google.com; s=arc-20160816; b=Nr+d8RQRhKF400iJd5t2utu9AOa7nw2hsDfMTvv4pUI+iTh3pfs5dcp5O5F/ByTQ5H aysWRRNzqfSNGPa65F/70CIYXCaMlMOuGJ9SHxp39bTEjrL2gHGLXcCvjCtq0aQV24Vy RgMgurp+2C/sHe6/c7psscOyfpCJac+YUX/Eh4Sbt9AyjP4mb30caB5pGKTUxn1WPRFF W3K5KexYP8SjMbh+l2iiAFNQ94AcyHX7Pzzo1IV3a3vBvE1f9TDICtSQVnS2Tb7el8Ma RsIo5WJq0/q2Vu41z3FiqsoFiPKky6aGc5hLEMprKia69L0F23awt3P73mEuHqk/pahi cV2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=h4eEsSq8VYpnuMMIgS+pRWyA8WA5l2sztJB0W2K9v2U=; fh=J4R+yFcrSNw/+vb5MuVBEXQlFUZGy7lRsCxGXGko88Q=; b=ptDXB00KN17tEGCeT4w28/oNRFxzx5YHtdQAGyWTHNSBvviY8Vb9BKaI1jveF8tWFr FS7uXqRs4SW3BN7ksKVc72p1r0XmtZGTvfuxVpn/IQEuR/H8qaXSyVQ67Wtn6J52fPOk VRFgZiPfkUPJCzapZB0rhQw7IxLE8TLk8aL70H8B4bVqmdxQzZ+PavS7+vK97l8PsAlm n6tv4rAZocxJ2UgREXDAYLvu/ldnmmSuxpMVY9fdmOyYFguNzUMwYprdn7zxr+6aGm4f z9++CX0iqO65ZNRXjw1ZPwTQAs3i8c8B6KPHr/sb5g4TNJIk7G/96UqcMd5pxZ/5um+H UWNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j20-20020a056a00235400b006be1c26af7dsi3695097pfj.236.2023.11.02.07.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 07:56:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 50ED38022C5E; Thu, 2 Nov 2023 07:56:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbjKBO4I (ORCPT + 99 others); Thu, 2 Nov 2023 10:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbjKBO4F (ORCPT ); Thu, 2 Nov 2023 10:56:05 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486FD187 for ; Thu, 2 Nov 2023 07:56:03 -0700 (PDT) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 53AC1207BF; Thu, 2 Nov 2023 15:56:01 +0100 (CET) Date: Thu, 2 Nov 2023 15:55:59 +0100 From: Francesco Dolcini To: Tomi Valkeinen Cc: Aradhya Bhatia , Devarsh Thakkar , Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart Subject: Re: [PATCH 10/10] drm/tidss: Fix atomic_flush check Message-ID: References: <20231101-tidss-probe-v1-0-45149e0f9415@ideasonboard.com> <20231101-tidss-probe-v1-10-45149e0f9415@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231101-tidss-probe-v1-10-45149e0f9415@ideasonboard.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 07:56:28 -0700 (PDT) On Wed, Nov 01, 2023 at 11:17:47AM +0200, Tomi Valkeinen wrote: > tidss_crtc_atomic_flush() checks if the crtc is enabled, and if not, > returns immediately as there's no reason to do any register changes. > > However, the code checks for 'crtc->state->enable', which does not > reflect the actual HW state. We should instead look at the > 'crtc->state->active' flag. > > This causes the tidss_crtc_atomic_flush() to proceed with the flush even > if the active state is false, which then causes us to hit the > WARN_ON(!crtc->state->event) check. > > Fix this by checking the active flag, and while at it, fix the related > debug print which had "active" and "needs modeset" wrong way. Candidate for stable? Add a Fixes tag? Francesco