Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2389504imm; Thu, 27 Sep 2018 12:01:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV623lfDE6dWplLBuzMcObXLoCieoZ9ODY4eZnqdsydUv73qZd4fSLld3I4p4NmkL76s7w9th X-Received: by 2002:a17:902:50e3:: with SMTP id c32-v6mr12535631plj.194.1538074877817; Thu, 27 Sep 2018 12:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538074877; cv=none; d=google.com; s=arc-20160816; b=d/fGMkmUF2gp1l4xGdcnggDR32wFc2gNQr4O6QZ6SVCdGf8oUeF7n29X0jt6KlXnPk hfra6de+520rQC6Z5JJg8/0bLl29CF62vluNDbmxyu8AD6FOQQCWu4aRrW/gPSQowNE1 HQX7xJb7azSZwACOr/hjIA8hsJC7WJz67BFEcvZDgz6PuvlD2Cq3YE4uAvl7qZYHuGdL 6QFjWP+VIRUiQ0IXrGt7ndpAxOc8X1CyU8pj1+4CijsicCXgb3MtKe7HvWkdebcQG6S5 /OD+P8YsTn0KaVHl+pvsh1yM/w7INlS6/nqbszre9RakVOv/ZscEU1siDPqKGk4hA7uY D6lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=G8sIJ6lpY9ph8SlxGFxGNF1ll4It9J+IXjg6K7Q6caI=; b=r0yFz8StzVvDN4ZXkv5b7mrB+cBb2I2oQ65G16rPqOH0M2ZiGO+8F4z58WiVE81i3O +ob5VByBZaHNnDC4P/ey2BC0ZzG8Hgu71Cb2MhMDCHH2+5rD3JNeBXykhBglKIsIKBlp oeYPwRZLHFVaLqSJZgzkFORplBxWfEWRkWM4Gl6RqPPmPVBVtg83Dy0IEdnr4Wv5PPdG YVfCI6+c8btIeV1ZFJDpvPuocokVhsGieSB+sEGrfSk45L1S9dKPaSmbbFq9W0Y6xzgP +FuXoit8w+uMCmPF73cGm8QV8cyW2xcxYPG/UKBPzGewCf0J1u8Zvkqnv/EhfXDVTd1o Jggg== ARC-Authentication-Results: i=1; mx.google.com; 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 q4-v6si2612880pfh.34.2018.09.27.12.01.01; Thu, 27 Sep 2018 12:01:17 -0700 (PDT) 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; 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 S1728658AbeI1BUU (ORCPT + 99 others); Thu, 27 Sep 2018 21:20:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbeI1BUT (ORCPT ); Thu, 27 Sep 2018 21:20:19 -0400 Received: from localhost (unknown [89.188.5.116]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3DADC1018; Thu, 27 Sep 2018 19:00:37 +0000 (UTC) Date: Thu, 27 Sep 2018 21:00:34 +0200 From: Greg Kroah-Hartman To: Holger =?iso-8859-1?Q?Hoffst=E4tte?= Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Lyude Paul , Daniel Vetter , Sean Paul Subject: Re: [PATCH 4.18 74/88] drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation Message-ID: <20180927190034.GA1895@kroah.com> References: <20180927090300.631426620@linuxfoundation.org> <20180927090309.614592493@linuxfoundation.org> <42cbbf9c-3076-0c49-36c2-b6fd09628694@applied-asynchrony.com> <20180927123706.GA23563@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 27, 2018 at 03:26:37PM +0200, Holger Hoffst?tte wrote: > On 09/27/18 14:37, Greg Kroah-Hartman wrote: > > On Thu, Sep 27, 2018 at 12:43:33PM +0200, Holger Hoffst?tte wrote: > > > On 09/27/18 11:03, Greg Kroah-Hartman wrote: > > > > 4.18-stable review patch. If anyone has any objections, please let me know. > > > > > > > > ------------------ > > > > > > > > From: Lyude Paul > > > > > > > > commit 3c499ea0c662e2f38aafbd4f516b08aab8cfa0e5 upstream. > > > > > > > > As pointed out by Daniel Vetter, we should be usinng > > > > drm_drv_uses_atomic_modeset() for determining whether or not we want to > > > > make the debugfs nodes for atomic instead of checking DRIVER_ATOMIC, as > > > > the former isn't an accurate representation of whether or not the driver > > > > is actually using atomic modesetting internally (even though it might > > > > not be exposing atomic capabilities). > > > > > > > > Signed-off-by: Lyude Paul > > > > Cc: Daniel Vetter > > > > Cc: stable@vger.kernel.org > > > > Reviewed-by: Sean Paul > > > > Link: https://patchwork.freedesktop.org/patch/msgid/20180917173733.21293-1-lyude@redhat.com > > > > Signed-off-by: Greg Kroah-Hartman > > > > > > This patch breaks switching the console to high resolution during boot on my > > > workstation with a Radeon card; it worked fine with 4.18.10 and reverting it > > > fixes the problem: > > > > Is 4.19-rc5 also a problem? > > > > No, 4.19-rc5 with the same config works fine and properly switches the > console during boot. > > Interestingly another machine with i915 chip seemed to work fine with this > patch included (rebooted that one first), so it might well be related to > different motherboard/chipset or the Radeon card (an admittedly old, but > otherwise completely functional fanless r600). > > I'll try to find more clues, but for now that's all I got. Ok, I'll go delete this, but this implies a much deeper problem with the code here. No logic should ever change based on a debugfs file creation failing or succeeding. The error checks here are all not needed at all. I'll work on a patch to clean it up for future kernels... thanks, greg k-h