From patchwork Mon May 2 08:48:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 12833963 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 5BE17C433FE for ; Mon, 2 May 2022 08:49:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377818AbiEBIwc (ORCPT ); Mon, 2 May 2022 04:52:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244543AbiEBIwb (ORCPT ); Mon, 2 May 2022 04:52:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FF772B18B for ; Mon, 2 May 2022 01:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651481342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=g1EGMUSX4uhdpumN1AqArSCJZUMcx2qk+SIJN7jkMXI=; b=R200hlisoA5GgcTQu43l+PIwa36cGpcqSHJpA8hWYupIDl55WTqiRBahErCJjjgvBrqZvz aYiRElhf6dZhG6kZrEQM4f6Migga5+TeZ4DjZjDgk/EUmGsLpgX/lcC85tumb7z09Lq8k8 dk+wOUrNNdlrbH1jkBCB27k6oR5l0ls= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-622-kX8CrvNWNYaCwhmQKLZDuA-1; Mon, 02 May 2022 04:49:01 -0400 X-MC-Unique: kX8CrvNWNYaCwhmQKLZDuA-1 Received: by mail-wm1-f69.google.com with SMTP id g3-20020a7bc4c3000000b0039409519611so4276961wmk.9 for ; Mon, 02 May 2022 01:49:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=g1EGMUSX4uhdpumN1AqArSCJZUMcx2qk+SIJN7jkMXI=; b=1ZkiDnc7GlMeZG3TL0UxrpGA5p7uYuRXo2WJdf/1/JuydP26rSgVRT/LNbMrTrAy7e 2vQJDzgv+GUDoCwSD+rJD63AxYNBwuruXHvg2YKhSHZTzIlRWlJrHZbSSomxkSRJdUqu cB1TAi0aeS6su0NRv+b9uqa0SOSfl+pqKglJEUsG43eReN1zLhjQmqDpsa+x6N9f+IGi FQxZh7k50V4PjSyTM0Dx246J0tqHhBVPpxnvQqCbcbJdNm1I1lgj77WuGOnAwQ6wmRty OVqxpCCloMvGa9jw3RNlu2vJgFv10Sg4JDTdnEnHBjBeH+ijHTrQ0M8dmBvQ3YRLrEV7 IrWQ== X-Gm-Message-State: AOAM5316N8Pj0z+Sq415ynbhSTajBuJk0TGoqtghkjiKQN/o3HMatOcv XWYwpDiOf0ADTQHca70XIpVgzVQ41d4RmJPDm/9lrDNXvBe/HLd04CZCIwtECcpElBaAPzOgFY6 MWTSRDUkS9b/sbOcI+1gha/q1JnUXsZQ= X-Received: by 2002:a1c:7512:0:b0:394:16ee:ab9b with SMTP id o18-20020a1c7512000000b0039416eeab9bmr9917247wmc.176.1651481339935; Mon, 02 May 2022 01:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1HDOH0L0J59jWzQqe8OCc8OrGCpxEDekTc2b0ViBR9lVxUT3tRNZw5Yfr7Gkyc9Gu0hnOLg== X-Received: by 2002:a1c:7512:0:b0:394:16ee:ab9b with SMTP id o18-20020a1c7512000000b0039416eeab9bmr9917168wmc.176.1651481339590; Mon, 02 May 2022 01:48:59 -0700 (PDT) Received: from minerva.. ([90.167.94.74]) by smtp.gmail.com with ESMTPSA id i14-20020adfa50e000000b0020c5253d8c6sm8032307wrb.18.2022.05.02.01.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 01:48:59 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , Javier Martinez Canillas , Alain Volmat , Alex Deucher , Alexandre Belloni , Alexandre Torgue , Alexey Brodkin , Alison Wang , Andrew Jeffery , Andrey Grodzovsky , Boris Brezillon , Brian Starkey , Chen Feng , Chen-Yu Tsai , Chia-I Wu , =?utf-8?q?Chri?= =?utf-8?q?stian_K=C3=B6nig?= , Chun-Kuang Hu , Claudiu Beznea , Daniel Vetter , Dave Airlie , David Airlie , Emma Anholt , Evan Quan , Fabio Estevam , Gerd Hoffmann , Greg Kroah-Hartman , Gurchetan Singh , Hans de Goede , Hao Fang , Hyun Kwon , Jernej Skrabec , Jerome Brunet , Joel Stanley , John Stultz , Jyri Sarha , Kevin Hilman , Kieran Bingham , Laurent Pinchart , Laurentiu Palcu , Linus Walleij , Liviu Dudau , Lucas De Marchi , Lucas Stach , Maarten Lankhorst , Marek Vasut , Mario Limonciello , Martin Blumenstingl , Matthias Brugger , Maxime Coquelin , Maxime Ripard , Michal Simek , NXP Linux Team , Neil Armstrong , Nicolas Ferre , Nirmoy Das , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , "Pan, Xinhui" , Paul Cercueil , Pengutronix Kernel Team , Philipp Zabel , Philippe Cornu , Raphael Gallais-Pou , Sam Ravnborg , Samuel Holland , Sascha Hauer , Shawn Guo , Solomon Chiu , Stefan Agner , Tian Tao , Tomi Valkeinen , Xinliang Liu , Xinwei Kong , Yannick Fertre , Yong Wu , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, spice-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org Subject: [PATCH 0/3] drm: Allow simpledrm to setup its emulated FB as firmware provided Date: Mon, 2 May 2022 10:48:27 +0200 Message-Id: <20220502084830.285639-1-javierm@redhat.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hello, This series contain patches suggested by Thomas Zimmermannas a feedback for "[RFC PATCH v4 00/11] Fix some race between sysfb device registration and drivers probe" [0]. Since other changes in [0] were more controversial, I decided to just split this part in a new patch-set and revisit the rest of the patches later. Patch #1 is just a cleanup since when working on this noticed that some DRM drivers were passing as preferred bits per pixel to drm_fbdev_generic_setup() the value that is the default anyways. Patch #2 renames the 'preferred_bpp' drm_fbdev_generic_setup() parameter to 'options', and make this a multi field parameter so that it can be extended later to pass other options as well. Patch #3 finally adds the new DRM_FB_FW option and makes simpledrm to use it so that the registered framebuffer device is also marked as firmware provided. [0]: https://lore.kernel.org/lkml/20220429084253.1085911-1-javierm@redhat.com/ Javier Martinez Canillas (3): drm: Remove superfluous arg when calling to drm_fbdev_generic_setup() drm/fb-helper: Rename preferred_bpp drm_fbdev_generic_setup() parameter drm: Allow simpledrm to setup its emulated FB as firmware provided drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 +++-- drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- drivers/gpu/drm/arm/malidp_drv.c | 2 +- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/drm_drv.c | 2 +- drivers/gpu/drm/drm_fb_helper.c | 25 ++++++++++++++++--- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 +- drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 +- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- drivers/gpu/drm/mcde/mcde_drv.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/meson/meson_drv.c | 2 +- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_drv.c | 2 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tiny/arcpgu.c | 2 +- drivers/gpu/drm/tiny/bochs.c | 2 +- drivers/gpu/drm/tiny/cirrus.c | 2 +- drivers/gpu/drm/tiny/simpledrm.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 2 +- drivers/gpu/drm/vboxvideo/vbox_drv.c | 2 +- drivers/gpu/drm/vc4/vc4_drv.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c | 2 +- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- include/drm/drm_fb_helper.h | 22 ++++++++++++++++ 36 files changed, 80 insertions(+), 39 deletions(-) Reviewed-by: Thomas Zimmermann