Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2727110rwl; Fri, 6 Jan 2023 10:08:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3xkkxAXXn2hyEzbr8ixoCn7yQe7aDZguR1h7dATID7NbNU10/vF/+xH+gVn1YwCgZp4dD X-Received: by 2002:a05:6402:481:b0:497:233d:3ef5 with SMTP id k1-20020a056402048100b00497233d3ef5mr2282183edv.23.1673028497185; Fri, 06 Jan 2023 10:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673028497; cv=none; d=google.com; s=arc-20160816; b=DR9ymMFCc6qYVTJ7VeMZqMhNuzzAVx8wNSFA9jJS0N7HEzVGOP4nY1Qxjp7hj6KTWv En5GXsI1ywYy4/5+Og1/0i2ENWWxkQpYXfGkqTwetwvLX1IRX2vSHU7Fn3TQHFA31wdB /ik3w18aut6riUbAqJOvvt+8v4d6w/1vQTYLQoY9Gxh2WKiRF+gtzdyb4mt/U5bEhBlW JFbjaagijE5oaYFWrEzHrcsNCL3TJWnTU7S+n45OjqXtRMz3aj+83P1XuMUw7CBZxXKv NGECt7u/4LzWQ8vgQxdAZ5Yv+PoFbpOhUUS0mlBHzl5sO0pSz6ekXbS6nGi7aNGd0LET fuCQ== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MEWcai/0BTUSDXzlv/9ZnddHBUgd9q90oSNrTCd/iAE=; b=k++InZalUoMtJDi71e0Jyp84JYCT/B7b3lcsXfW06lhGpG+xnmvGTFPwhigfo5Dykn KYdig7kkvTJaIwtdtstZRQ+apTy/QYjkObb+vuIHRP8am2u0+xbdwDVNI6+7GGjqXGyq dv5u6NKfM7LdK6PDW0GYnYuH1lEhUJ5ykDS5/gPqno4lUR23lF17xTcPXtUjF7a0EdWv Hnko8Itrp7mm6hEIqX6FElvG5N4rj0TM+7WognZluqtWAUPwYV5e08XYBPpfGCrAQiih oFwu6aTp6NGtsgSRP7rDD+yXhVtQ/Mi8KUo/NaNOv/MWSLechgMRh5Cl5ms95KjG34TM idAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="hkasdKR/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eg46-20020a05640228ae00b0045d27c0ba90si1969343edb.577.2023.01.06.10.08.04; Fri, 06 Jan 2023 10:08:17 -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=@ffwll.ch header.s=google header.b="hkasdKR/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235500AbjAFRuE (ORCPT + 54 others); Fri, 6 Jan 2023 12:50:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235373AbjAFRuB (ORCPT ); Fri, 6 Jan 2023 12:50:01 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3293687BD for ; Fri, 6 Jan 2023 09:50:00 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id d17so1970148wrs.2 for ; Fri, 06 Jan 2023 09:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=MEWcai/0BTUSDXzlv/9ZnddHBUgd9q90oSNrTCd/iAE=; b=hkasdKR/OrqmQwA/oOWmPJTk7z6ETkOAnL/+a1hwca7i4k8ududHCU7HQbUMGoP+qW Uw1kYQ2NTYX+GOukmMyi/bR5ErlLtQqAnJdJ2bagG5WkAe3w1XbjORO4Qr+yOgg+9g3Q Mf1s4J2Xy6cIj76SMWXp0VGHGG3zAIgDoQ+Mo= 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 :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MEWcai/0BTUSDXzlv/9ZnddHBUgd9q90oSNrTCd/iAE=; b=3NvRlhOMJZeULN3mTvMtKIThKCwcv+N1JZEysMmNioWWWjZgbcHVfYCMOmYwuY93tc EX3erRKmcAQgtQmkKRU7fC/khPlonu+8mDsFfU1xNO43KDU4QOvJyeMhnkqaffWn5oq6 PZv0cqAMPLpLTC/Q/OOU21BhZyIJsIEJkc8APqrWOK0bxGq5wdnrzN1q2GPxyWyb1CXO 202FASw4gk2DhZl424Z6H8WWhiPRxS16Pbkj8h3twyeXTCBmRgSJeKAqNFCQBG1Wr7ce iSBSk6g6sXNTuVYPfsDwSmoN+scydXe2iSxeopoTBur08bldn1jkAfnR1PjkTK/ltkBE a3rw== X-Gm-Message-State: AFqh2kpkIuMzyQAeWgMxHk0wO/x9ievmaCHy+foMthYk7/49Gt9cqjkZ MtMDB7Eb2gwmTqHnV3MknYszQw== X-Received: by 2002:adf:f4c1:0:b0:27e:7f5:6634 with SMTP id h1-20020adff4c1000000b0027e07f56634mr26567517wrp.60.1673027399535; Fri, 06 Jan 2023 09:49:59 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id o12-20020adfe80c000000b0024258722a7fsm1710958wrm.37.2023.01.06.09.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 09:49:58 -0800 (PST) Date: Fri, 6 Jan 2023 18:49:56 +0100 From: Daniel Vetter To: Greg KH Cc: Brian Norris , Michel =?iso-8859-1?Q?D=E4nzer?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandy Huang , linux-rockchip@lists.infradead.org, Sean Paul , stable@vger.kernel.org Subject: Re: [PATCH 1/2] drm/atomic: Allow vblank-enabled + self-refresh "disable" Message-ID: Mail-Followup-To: Greg KH , Brian Norris , Michel =?iso-8859-1?Q?D=E4nzer?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandy Huang , linux-rockchip@lists.infradead.org, Sean Paul , stable@vger.kernel.org References: <20230105174001.1.I3904f697863649eb1be540ecca147a66e42bfad7@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.19.0-2-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 08:04:19AM +0100, Greg KH wrote: > On Thu, Jan 05, 2023 at 05:40:17PM -0800, Brian Norris wrote: > > The self-refresh helper framework overloads "disable" to sometimes mean > > "go into self-refresh mode," and this mode activates automatically > > (e.g., after some period of unchanging display output). In such cases, > > the display pipe is still considered "on", and user-space is not aware > > that we went into self-refresh mode. Thus, users may expect that > > vblank-related features (such as DRM_IOCTL_WAIT_VBLANK) still work > > properly. > > > > However, we trigger the WARN_ONCE() here if a CRTC driver tries to leave > > vblank enabled here. > > > > Add a new exception, such that we allow CRTCs to be "disabled" (with > > self-refresh active) with vblank interrupts still enabled. > > > > Cc: # dependency for subsequent patch > > "subsequent" doesn't mean much when it is committed, give it a name > perhaps? It also looks a bit funny tbh, and a bit much like duct-tape. I need to think through how this is supposed to work really. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch