Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1803294pxb; Fri, 22 Oct 2021 07:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpading+QQfCL+bfBC1j9M9t/+RZDwd5UnRsLy3XP6/EGLsMcXObjQuGQ7pt9RWDesZFU3 X-Received: by 2002:a17:906:c302:: with SMTP id s2mr42881ejz.499.1634914762271; Fri, 22 Oct 2021 07:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634914762; cv=none; d=google.com; s=arc-20160816; b=cAM6VBLyUaIDhWU+5e3K7RAbo/FLXXaZI7yaRcj2jRA7A+hqm/Rtt/Th8OTRq5UKYM xt2fI0xX38kPHESJkPVD/7g9SxuDYYhVyXG16DTMG0eZrGONEAnHoDTUEqmpUg8IZCqy Ef33vgw9xdIdRCwO8Un8QBotVPNaN5tvg+UVy5bcgEoVHs003c07+A3HsVkfWl04HskG fKHV90tUFZdBbbwpMAXaeLPsK+M8McwC9YoiYbGRLijGOagq6qpXFli3nOn0iR720lYd 6M9J9eewgyqVc49eecBPc9wyd/iGZ17yqjRgdiBiEqk/0blKj8vAXUH960UM+EBPjRsN Ielg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xJta1LgbGikUaHeLMB8kAoU0t7xQlrmtTQ9nyeUNTBQ=; b=dSz46ivofxTKb3NoyKc0PYu6O7YPvKJffamylSj/BrayBV2k1Wr72rq5TjOrMlb8Q0 osdct/qayGkFopxyHxxZjaHXkwk3MyIZrjB9He03IodlVu8aEIXHGWZvtA/A2ljR/Jpb 8ZCeTIkTyjl334XNkhfpCltB0kyghXuq1Z1H4EE2j36JZj/i5yhTntM/Qc8ZmS+GBXQZ OAwxp/yMRg27PnJQ7928Nlaa97xEzbNcoX2TlbjVI3PMfkJnYD8kNOoYfSoMgOnQ68Ra JyAsaex2g1faAziG2o8u1TPvTlKEGV0gQq8pKOENsSB019oavw68Yh5rkokMwM5jzmZG Gd1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pSvSBNfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si15515459edl.569.2021.10.22.07.58.40; Fri, 22 Oct 2021 07:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pSvSBNfO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233065AbhJVO7N (ORCPT + 99 others); Fri, 22 Oct 2021 10:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbhJVO7L (ORCPT ); Fri, 22 Oct 2021 10:59:11 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED7DC061764 for ; Fri, 22 Oct 2021 07:56:53 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 67so7574908yba.6 for ; Fri, 22 Oct 2021 07:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xJta1LgbGikUaHeLMB8kAoU0t7xQlrmtTQ9nyeUNTBQ=; b=pSvSBNfOJuEMbAhhFhVbSuj2ODm9tTRno/unAAt1EDe971a40kvDf5akrEHB3AatmF MXCSYedNalukwZoghqjacHYTzadBTdcUq2EiIjwRaua/RBMz4KCnYzI3FFj106IQ+ATq UKkZVhQO+z2SQOUrW4SJgas/9zcVpdQE8bA2vyAAtTpdl2kWn8fbgxDhiANE+d5dhfo3 KE+4WfzV6L6SlDfmahgxygwV/a1HKnKz9HjPT3yMlUqnG+DMl53JRunr4J3BkazZPTgO 3U1DJLFcaIg0Xv16Om2brTyC0TgF7veIAtKz5xDfWaFa142KaJQVh61HxGp6VVcNpd14 eJ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xJta1LgbGikUaHeLMB8kAoU0t7xQlrmtTQ9nyeUNTBQ=; b=j7tSZsnwSw5MYr4pTcJ1GNc1JlaB2QtO6eEvPFJiHRK6+1+A5VTzLHKc4SHBy96eUE N093noRwu9XQC7zsmv/mUhMYy8mmOHBR5I7+r7RCN2tTX4qywxu8DoYpIySr0IQ7+7uo d3OQx/LL06oFuyBS6+3DvYanPD/vtTMHwfBL1L3SaeZmWgS7V8pylwRlcsNhNCj1sSK8 Of/HscjKdZIuLC5eDavBnDMoQJ5azj5UyJQxty7+sINCIp8SNGOYyvBtQn9iHGx+cDdf q7wi2JPVbfJoSSrxJ801j1blLZC2nXhrSElGyXUtlUG2RFWlRQrCp4aFed7FPd5gtn+V VVlQ== X-Gm-Message-State: AOAM530UNw2YQjE8cer5p/wRZlLHRnvUjiMrGWRYKJShKeSSjiiS2DXA NwQEJH3eieWhYjO2SWsBRZ02Qa8VkB2tLeJXVcw= X-Received: by 2002:a05:6902:701:: with SMTP id k1mr280979ybt.298.1634914612428; Fri, 22 Oct 2021 07:56:52 -0700 (PDT) MIME-Version: 1.0 References: <20211022144040.3418284-1-javierm@redhat.com> In-Reply-To: <20211022144040.3418284-1-javierm@redhat.com> From: Neal Gompa Date: Fri, 22 Oct 2021 10:56:16 -0400 Message-ID: Subject: Re: [RFC PATCH] drm/aperture: Add param to disable conflicting framebuffers removal To: Javier Martinez Canillas Cc: Linux Kernel Mailing List , Thomas Zimmermann , Peter Robinson , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 22, 2021 at 10:40 AM Javier Martinez Canillas wrote: > > The simpledrm driver allows to use the frame buffer that was set-up by th= e > firmware. This gives early video output before the platform DRM driver is > probed and takes over. > > But it would be useful to have a way to disable this take over by the rea= l > DRM drivers. For example, there may be bugs in the DRM drivers that could > cause the display output to not work correctly. > > For those cases, it would be good to keep the simpledrm driver instead an= d > at least get a working display as set-up by the firmware. > > Let's add a drm.remove_fb boolean kernel command line parameter, that whe= n > set to false will prevent the conflicting framebuffers to being removed. > > Since the drivers call drm_aperture_remove_conflicting_framebuffers() ver= y > early in their probe callback, this will cause the drivers' probe to fail= . > > Thanks to Neal Gompa for the suggestion and Thomas Zimmermann for the ide= a > on how this could be implemented. > > Suggested-by: Neal Gompa > Signed-off-by: Javier Martinez Canillas > --- > Hello, > > I'm sending this as an RFC because I wasn't sure about the correct name f= or > this module parameter, and also if 'remove_fb=3D0' is intitutive or inste= ad a > parameter that's enabled is preferred (i.e: 'disable_fb_removal=3D1'). > In general, I think the patch is fine, but it might make sense to name the parameter after the *effect* rather than the *action*. That is, the effect of this option is that we don't probe and hand over to a more appropriate hardware DRM driver. Since the effect (in DRM terms) is that we don't use platform DRM modules, perhaps we could name the option one of these: * drm.noplatformdrv * drm.simpledrv * drm.force_simple I'm inclined to say we should use the drm.* namespace for the cmdline option because that makes it clear what subsystem it affects. The legacy "nomodeset" option kind of sucked because it didn't really tell you what that meant, and I'd rather not repeat that mistake. -- =E7=9C=9F=E5=AE=9F=E3=81=AF=E3=81=84=E3=81=A4=E3=82=82=E4=B8=80=E3=81=A4=EF= =BC=81/ Always, there's only one truth!