From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 151AECD3429 for ; Tue, 3 Sep 2024 11:39:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89D7E10E4F0; Tue, 3 Sep 2024 11:39:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="gAZVTy/P"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0481110E4F4 for ; Tue, 3 Sep 2024 11:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725363571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=B4mDjfLV7OAnvVKb4h3wcvxirCud+mre7CyjFzqqSY0=; b=gAZVTy/PewzD29qSBjRySZlI6OOEPft3D6i1WF7j2P3dPY5dOOW9tvg53wDpleiZzHFRBC i39kYnsamhhYodsxYsDpi0B7gMTKKfnEYn6tS+Y0KLgcNs/WkXHfI5rOboTnTMzlmILVs0 WvqrAuwG/CsYyv4Q/TKmTHUrkLtf9B8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-410-ifmmbLOXMmGKmlqJ6f-Gww-1; Tue, 03 Sep 2024 07:39:30 -0400 X-MC-Unique: ifmmbLOXMmGKmlqJ6f-Gww-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-374c3a31ebcso1595919f8f.1 for ; Tue, 03 Sep 2024 04:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725363569; x=1725968369; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B4mDjfLV7OAnvVKb4h3wcvxirCud+mre7CyjFzqqSY0=; b=e6raQok4V0udVU4iiOLXDlL9M2Rc75vfOCT56VbtGWI5Pt03sr2bmVVIroBD0OcxIg go7R8yUZX04EI7rt1qFY+1QwsEQULISI1Rw6bFbJtft+P9TFL7wYL7mq4wzcLlH332ja ppQwnwn0iYfIhbnSm4IEifKxbuw0aCnclbvYDI/K0cbvBkFMr3+byyQxaz68Cy3zmGvc 5SfwKU3uB1jFKnETy3SUW095zV2En0D4Gk7ZuKRYX7aE4RCw98hoKsx5TeHq85SJbJsC DKTLTNBUG/NTD+16saHdK9ZeHCOjZh/FOu/TSutF+2TwfHgQFZjihqJN7QK9/LgNESsk IDjQ== X-Forwarded-Encrypted: i=1; AJvYcCWtZ7kmeNRcZl/Q6ReN/IIl4ZGio2K+o8+SOztfbyiYGBLU4FkR4M2xJDgH+6/4qtUINPYfnDhKgZw=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yx28tGHzaxUsqrdtzjBYoebCmM3+QPdLJEBG8D/vi+g6IzpDqLg PeBZFZLnXkklA6jdxfRNpJWbZxPq8gW4dIJjB8Ir9YrAzldFo+KhR5lJah/Nwvt3tvkPziIA5mC 3ZXeJ+wSY8DdRQqK2NFtLypNXdKkf6kA3MqZt2vjcPkoE6HpRy3ehs2DylWLYAAVnMA== X-Received: by 2002:a5d:6e42:0:b0:374:c56c:fbc7 with SMTP id ffacd0b85a97d-376dd15a895mr357669f8f.15.1725363568988; Tue, 03 Sep 2024 04:39:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQSUDUfzSKG3LOW3MagIfuHvjKQDUVhkyVId3Miv17du6YGeJMV1X8eK/OXklKwkOqAbQaAQ== X-Received: by 2002:a5d:6e42:0:b0:374:c56c:fbc7 with SMTP id ffacd0b85a97d-376dd15a895mr357651f8f.15.1725363568458; Tue, 03 Sep 2024 04:39:28 -0700 (PDT) Received: from localhost (62-151-111-63.jazzfree.ya.com. [62.151.111.63]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3749eea50dasm14014489f8f.56.2024.09.03.04.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 04:39:28 -0700 (PDT) From: Javier Martinez Canillas To: Thomas Zimmermann , daniel@ffwll.ch, airlied@gmail.com, jfalempe@redhat.com Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org, Thomas Zimmermann Subject: Re: [PATCH v3 50/81] drm/fbdev-shmem: Support struct drm_driver.fbdev_probe In-Reply-To: <20240830084456.77630-51-tzimmermann@suse.de> References: <20240830084456.77630-1-tzimmermann@suse.de> <20240830084456.77630-51-tzimmermann@suse.de> Date: Tue, 03 Sep 2024 13:39:27 +0200 Message-ID: <87le09dl00.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Thomas Zimmermann writes: > Rework fbdev probing to support fbdev_probe in struct drm_driver > and reimplement the old fb_probe callback on top of it. Provide an > initializer macro for struct drm_driver that sets the callback > according to the kernel configuration. > > This change allows the common fbdev client to run on top of SHMEM- > based DRM drivers. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_fbdev_shmem.c | 60 ++++++++++++++++++------------- > include/drm/drm_fbdev_shmem.h | 11 ++++++ > 2 files changed, 47 insertions(+), 24 deletions(-) > > diff --git a/drivers/gpu/drm/drm_fbdev_shmem.c b/drivers/gpu/drm/drm_fbdev_shmem.c > index 0c785007f11b..3bca333917d1 100644 > --- a/drivers/gpu/drm/drm_fbdev_shmem.c > +++ b/drivers/gpu/drm/drm_fbdev_shmem.c > @@ -107,6 +107,40 @@ static struct page *drm_fbdev_shmem_get_page(struct fb_info *info, unsigned long > > static int drm_fbdev_shmem_helper_fb_probe(struct drm_fb_helper *fb_helper, > struct drm_fb_helper_surface_size *sizes) > +{ I was going to ask if this whould be static inline too but I guess is just a transition change and will be removed by a later patch, as was the case for the fbdev-dma setup function. So it doesn't really matter that much... Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat