Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 734A2C433EF for ; Sat, 4 Dec 2021 13:11:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385009AbhLDNOe (ORCPT ); Sat, 4 Dec 2021 08:14:34 -0500 Received: from mail.sig21.net ([217.197.84.222]:43621 "EHLO mail.sig21.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbhLDNOd (ORCPT ); Sat, 4 Dec 2021 08:14:33 -0500 X-Greylist: delayed 1753 seconds by postgrey-1.27 at vger.kernel.org; Sat, 04 Dec 2021 08:14:33 EST Received: from localhorst ([127.0.0.1]) by mail.sig21.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtULv-0001cO-Gx ; Sat, 04 Dec 2021 13:41:19 +0100 Received: from js by abc.local with local (Exim 4.95) (envelope-from ) id 1mtULp-0005XL-2J; Sat, 04 Dec 2021 13:41:13 +0100 Date: Sat, 4 Dec 2021 13:41:13 +0100 From: Johannes Stezenbach To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Daniel Vetter , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2] Revert "drm/fb-helper: improve DRM fbdev emulation device names" Message-ID: References: <20211020165740.3011927-1-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211020165740.3011927-1-javierm@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Oct 20, 2021 at 06:57:40PM +0200, Javier Martinez Canillas wrote: > This reverts commit b3484d2b03e4c940a9598aa841a52d69729c582a. > > That change attempted to improve the DRM drivers fbdev emulation device > names to avoid having confusing names like "simpledrmdrmfb" in /proc/fb. > > But unfortunately, there are user-space programs such as pm-utils that > match against the fbdev names and so broke after the mentioned commit. > > Since the names in /proc/fb are used by tools that consider it an uAPI, > let's restore the old names even when this lead to silly names like the > one mentioned above. I would like to ask about the fate of this patch. It doesn't seem to have been picked up by anyone, does it? Thanks, Johannes > Fixes: b3484d2b03e4 ("drm/fb-helper: improve DRM fbdev emulation device names") > Reported-by: Johannes Stezenbach > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Ville Syrj?l? > --- > > Changes in v2: > - Add a comment explaining that the current /proc/fb names are an uAPI. > - Add a Fixes: tag so it can be cherry-picked by stable kernels. > - Add Ville Syrj?l?'s Reviewed-by tag. > > drivers/gpu/drm/drm_fb_helper.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c > index 8e7a124d6c5a..22bf690910b2 100644 > --- a/drivers/gpu/drm/drm_fb_helper.c > +++ b/drivers/gpu/drm/drm_fb_helper.c > @@ -1743,7 +1743,13 @@ void drm_fb_helper_fill_info(struct fb_info *info, > sizes->fb_width, sizes->fb_height); > > info->par = fb_helper; > - snprintf(info->fix.id, sizeof(info->fix.id), "%s", > + /* > + * The DRM drivers fbdev emulation device name can be confusing if the > + * driver name also has a "drm" suffix on it. Leading to names such as > + * "simpledrmdrmfb" in /proc/fb. Unfortunately, it's an uAPI and can't > + * be changed due user-space tools (e.g: pm-utils) matching against it. > + */ > + snprintf(info->fix.id, sizeof(info->fix.id), "%sdrmfb", > fb_helper->dev->driver->name); > > } > -- > 2.31.1 > >