Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2894673rwl; Fri, 6 Jan 2023 12:21:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+ika6ixumwed1GfPiY3Cqn6BlbYzD7/NaiHJz6i2T9mAzlT+VTMLevzsPbYnJIHdBIngb X-Received: by 2002:a17:907:1710:b0:7c0:c36d:f5df with SMTP id le16-20020a170907171000b007c0c36df5dfmr61173480ejc.70.1673036474890; Fri, 06 Jan 2023 12:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673036474; cv=none; d=google.com; s=arc-20160816; b=i02jbugdGM/9iDNx/VCDtUngoQxBC4nyx8msvF4f5hdfZqsWmxJ4Z9gYZJEer38xMJ sFzb1kqRts1kjURrl9bwT6Gww0vr2IGoWyIc+/Ll+QifzzQu9NSf7nsvLGZCOvkyyjRE IEOqQsK4euPxJ0aj1UtTPyenIwfteVV29dc33F7b2kscuVr3lO39xZKeDjzgEOtA9LPH 60vXmgfK3q4uLX//QrfiRL7Qy5Ub85dmRoCxMR3thD9EMO6F4BlLo2HTTbjK4L6cXzUv /uWP5WHHZeyo2u9kAONFHuHebkJrNHT4SdeWMHBjU2HUHmAR6MoH9gmQy+spJ6+o+bip 3Hsw== 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:to:from:date:dkim-signature; bh=uxQq5OsPBQFav8FuAajxIExQ+FkVdz7c0EkTv5l/tRI=; b=MzxisLrOZwQ9/g2CN+kX0w+I+TVK5GXA8NzyBHiUYbO8YlPi5SAuT/BXX5/ohmG2lE ZKeMq/Cxn+9VvmSAQRmscYYRrzQSqiaM+FkgDoutaWCyNA8ox2UeCZL163fo5k9uFyFI huAqBi8cnU5aJZHRJwB29Kghj9GC4A8LdNJiUr7lR/D690pWpwQpIJjvD+wEhIOwLl/R D97DX5x5QAL0r+e3ZUL3LTanOqzDJbWNCWNFfFmdyn0Q0F0AtBCth/IX19FcY/FpHngU 6y4zkEZ2fxZth+bcRg7D6x2jRxCoCVkITNL7d9O1r7oVwW27uh6eP6ZrRMfMeHll6VRC bdhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LBNZFQBW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr16-20020a1709073f9000b0084ca065fa4bsi2546961ejc.100.2023.01.06.12.21.01; Fri, 06 Jan 2023 12:21:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LBNZFQBW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjAFTZ7 (ORCPT + 54 others); Fri, 6 Jan 2023 14:25:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235500AbjAFTZq (ORCPT ); Fri, 6 Jan 2023 14:25:46 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D824F131 for ; Fri, 6 Jan 2023 11:25:44 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso6134572pjp.4 for ; Fri, 06 Jan 2023 11:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=uxQq5OsPBQFav8FuAajxIExQ+FkVdz7c0EkTv5l/tRI=; b=LBNZFQBWQjoz3m56JhOuWZSRkZ6sIJyW0+zkls88KNVqx6ueQlB1fEgi//LPGqbeFu 3uzdbxVriLfz6MURcwOgECHpl5gtBtkGKFfV4FAMveAObnIJwuMgM7tdFFtOQDp1nIsc tg6qNQRddwXCNeg7f6GFTM5Fd4jGQ4XejdT0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uxQq5OsPBQFav8FuAajxIExQ+FkVdz7c0EkTv5l/tRI=; b=cf6M0XP2YhXb7dzk3QTN/lp71NfwkamD/0Q3MDjt9znxspQDPMvs8FmxXdyLqCrp0Z yZ06pDJ7DLnvP3726vyEDk5mU58U2KulHv4h3swr0w1On174btJztxVDUpJEs6AEWqWJ 2KFYpqSgMoua+eLUtZFSRjsymZPGX7O79bseEC6wkc/KmOoOOLGdeFpPca1pJj30CgS+ N51oSQp84VyBmXJQl3AqTaZb4WaYh6ckcLd9BF9cBH9feIXnzrMcFya+jLOGC61bzubf Z2V3CemIJsP8FoicHwSBIZSaJvxjson0iBdiE0gNW7LBwG65ndQV5XH5vHHwzoIaYUOx +JJQ== X-Gm-Message-State: AFqh2kqWQkzpFMg6OBy5tMnyA/jW9ds+Grn3evLRYWyXm5V6ukDzM4H7 qOORc1VMLJljTglrigCTLnI1xA== X-Received: by 2002:a05:6a21:999c:b0:ac:6d11:1ec7 with SMTP id ve28-20020a056a21999c00b000ac6d111ec7mr86001378pzb.17.1673033143884; Fri, 06 Jan 2023 11:25:43 -0800 (PST) Received: from google.com ([2620:15c:9d:2:bc4e:2cc9:68b3:15dc]) by smtp.gmail.com with ESMTPSA id 22-20020a621816000000b00577c5915138sm1442698pfy.128.2023.01.06.11.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 11:25:43 -0800 (PST) Date: Fri, 6 Jan 2023 11:25:41 -0800 From: Brian Norris To: Heiko =?iso-8859-1?Q?St=FCbner?= , Sean Paul , Michel =?iso-8859-1?Q?D=E4nzer?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandy Huang , linux-rockchip@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] drm/atomic: Allow vblank-enabled + self-refresh "disable" Message-ID: References: <20230105174001.1.I3904f697863649eb1be540ecca147a66e42bfad7@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06, 2023 at 07:20:40PM +0100, Daniel Vetter wrote: > On Fri, Jan 06, 2023 at 10:08:53AM -0800, Brian Norris wrote: > > OK! Then that sounds like it at least ACKs my general idea for this > > series. (Michel and I poked at a few ideas in the thread at [1] and > > landed on approx. this solution, or else a fake/timer like you suggest.) > > Yeah once I stopped looking at this the wrong way round it does make sense > what you're doing. See my other reply, I think with just this series here > the vblanks still stall out? Or does your hw actually keep generating > vblank irq with the display off? I might not be understanding all of the IGT tests that I've run through, but the display is not actually off -- it's sitting on a still frame. But yes, IRQs still come, and I see no hangs. This is also ref'd in patch 2: bed030a49f3e drm/rockchip: Don't fully disable vop on self refresh So, we're not even doing that much to power-down the CRTC/VOP. That's probably why IRQs are still active, contrary to your expectation? NB: this is how Rockchip Chromebooks implemented PSR from essentially day 1. > > On Fri, Jan 06, 2023 at 06:53:49PM +0100, Daniel Vetter wrote: > > > We might need a few more helpers. Also, probably more igt, or is this > > > something igt testing has uncovered? If so, please cite the igt testcase > > > which hits this. > > > > The current patch only fixes a warning that comes when I try to do the > > second patch. The second patch is a direct product of an IGT test > > failure (a few of kms_vblank's subtests), and I linked [1] the KernelCI > > report there. > > Ah yeah that makes sense. Would be good to cite that in this patch too, > because I guess the same kms_vblank tests can also hit this warning here? Well, before this series: no, those tests don't hit this warning. The warning is only uncovered after patch 2. If I do just patch 2, it's super-trivial to hit the warning. You just have to turn the display on and go idle long enough for PSR to activate once. I suppose that can count as "caught by a test", with a little stretch of the imagination. At any rate, I'll improve this description to refer precisely to the "next patch" (as Greg suggested already), and that might involve describing this test case a little. Brian