Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3430105imu; Mon, 24 Dec 2018 01:36:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN62A6SjibeRq4mAlmBOde8JHoyRnEExnh8/gizd3Tq640DFmO3Rot2TfLEhXAnKorKnGkYT X-Received: by 2002:a63:374e:: with SMTP id g14mr11994761pgn.59.1545644193426; Mon, 24 Dec 2018 01:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545644193; cv=none; d=google.com; s=arc-20160816; b=e9ENl5F7zpjGolAU89tO5WKVd2qZVvV16tloUaAckjExcEnPdBe8/vtm/YwpeYCbG6 w60wuVbvBwnFAUskNONKO3q8apTeT7bYxy8h1L6/Niv42CgoFpvNrbJ7n9PDSwBeyoUd +3qFlaFfSCk7x3lXpYJaN3UpJrbUBH2noJx0gKFE5PibQ0ao6UvQRz1pDbML+JS2E8+E 7r81Q6Nl4u8YxvSGsF6c1KmxyR+ixB+9knOU1rw05P1OqAazjB6TpXxM4prnTWU4/0YL AL53jHhapag5WogmtrCS+HcJ1kBRwLbgX1AZjJNRx02FO+JRB6O7A/xFbzK4xk557tyZ LQYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sfwfirg7JSi9HR8TrUFqb3quyQ+igREC1Q0mQhKFKA8=; b=DspJngqlXiXg6rkYBvb1ybXMYKP7+iY0wWWFmvgrDAOXETDajf/UmpNP3+mA+e51R7 5/I9xn4XnM/63voeHJc9heRCEWKj8esLqbqbE4rUGwUVhZWX6PUXK2RTSgIpBb6eY642 +jJ3JzmGbFaIXvXXd8M3OZN198gqh5iQ/BkWWj1E+F2hX4WGy1XCGojYbeoKJOOPs5LX Io08aFhyT0E8scsRh+QTsjgDXlMntUkMPJnOGsot0THTQi7n7wrLYjWrQ7E6xcU/Pud4 y3HOwU5V9efvvbcFUpTcZBe5mXfXPRiITJdTT7AoRNEYle+TtqFxHKePfs0RJYIljEwC PgHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=CcYQoBmd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k186si28419471pgc.576.2018.12.24.01.36.18; Mon, 24 Dec 2018 01:36:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=CcYQoBmd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725806AbeLXJfW (ORCPT + 99 others); Mon, 24 Dec 2018 04:35:22 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:34462 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbeLXJfV (ORCPT ); Mon, 24 Dec 2018 04:35:21 -0500 Received: by mail-it1-f193.google.com with SMTP id x124so21180514itd.1 for ; Mon, 24 Dec 2018 01:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sfwfirg7JSi9HR8TrUFqb3quyQ+igREC1Q0mQhKFKA8=; b=CcYQoBmd2uxz8jWaxv79i3KQnqlhNKcflwSj81LBZfHhCNUG4JlZvctfL41Ea9XELK RPZC0gL5LVqoJhXn+8BVjlFW9uv6L/aqlKkJS1K5yBA9kKtK+jDY+FjIUrMQntIt0Sf1 YcteY47QZObtzogVo0E6+oKXGYzs65vLbQReE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sfwfirg7JSi9HR8TrUFqb3quyQ+igREC1Q0mQhKFKA8=; b=p2uiEPxGqKg63G3PReML4VVCBPSYf0OK28gNGQ3iu7jr2yXaSX8uvryDN9nU4F7327 Yz8ir6r8c6no7UJpuRrTaADXYBLx7xjKjAUoN8i1aFdR2f7GWc1JKNR97gwsVYwQS0Fd uzFrMklA5ie30FStJNgU0pms5Mzbjng1O8yhqUkBoP5RtmExnTt94BCkmtfGARt3VwWy R+1/GbQp4NYMATrNMKgV+IuSyEyCLrmMVH7Tp2s/lIh2tInM2TS7ZqkThUO7mdDYf8Nb 9gA3sxr87yl860bDzdqh8TtVJ4IRbkBgK/AXn6xas8y/lTVxMUOdVqn9QXo4s+BHMAN2 MHTw== X-Gm-Message-State: AA+aEWYeAokOb7m45zjV46Qap+4G0Wg/EAUY8Z0HDisheRQAaejgF57f NRoJWLyT6GuKjlqqdHWMR/SUnG9SSgWBzHX6R8g+Ag== X-Received: by 2002:a02:781e:: with SMTP id p30mr8318941jac.85.1545644120882; Mon, 24 Dec 2018 01:35:20 -0800 (PST) MIME-Version: 1.0 References: <20181221172305.195943-1-zwisler@google.com> <147663805b9a1ba7aa3bf4686090af27fbaad040.camel@intel.com> <20181221195318.GA6483@google.com> In-Reply-To: <20181221195318.GA6483@google.com> From: Daniel Vetter Date: Mon, 24 Dec 2018 10:35:09 +0100 Message-ID: Subject: Re: [PATCH] drm/i915/psr: simplify enable_psr handling To: Ross Zwisler Cc: Dhinakaran Pandiyan , Linux Kernel Mailing List , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , dri-devel , intel-gfx , Jon Flatley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 21, 2018 at 8:53 PM Ross Zwisler wrote: > > On Fri, Dec 21, 2018 at 11:23:07AM -0800, Dhinakaran Pandiyan wrote: > > On Fri, 2018-12-21 at 10:23 -0700, Ross Zwisler wrote: > > > The following commit: > > > > > > commit 2bdd045e3a30 ("drm/i915/psr: Check if VBT says PSR can be > > > enabled.") > > > > > > added some code with no usable functionality. Regardless of how the > > > psr > > > default is set up in the BDB_DRIVER_FEATURES section, if the > > > enable_psr > > > module parameter isn't specified it defaults to 0. > > Right, that was intentional and the commit message even makes a note of > > it > > " Note: The feature currently remains disabled by default for all > > platforms irrespective of what VBT says." > > > > > > Anyway, we've enabled the feature by default now and the current code > > should take into account the VBT flag if the module parameter is left > > to a default value. Please check git://anongit.freedesktop.org/drm-tip > > drm-tip. > > Fair enough. It's a bad pattern to introduce dead code as a placeholder for > some future work, though. This code has been in the tree for three major > kernel releases (v4.{18,19,20}) without providing any useful functionality. Getting PSR enabled by default on at least a few platforms took years. Insisting that we do not ever merge such code also doesn't work. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch