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 7E9E4CD3420 for ; Tue, 3 Sep 2024 11:39:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 40C8110E4EE; 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 D143610E4F3 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-346-alxZi3ZtOHGBHFybBaTUCw-1; Tue, 03 Sep 2024 07:39:30 -0400 X-MC-Unique: alxZi3ZtOHGBHFybBaTUCw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-37496a7daf2so3533293f8f.2 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=FpHDoI85djj+Lse7GbnHq9SabXHI3C5pDWQqju+aefpepQv4r43BWFfqEwpENgqoyg 1UzTAsIMi2A/7LtUDG8ahPvCdiBS4o0I53SBx9JUTlQvmlH9YXDmQOz18vQ3hpqo0Qkh lQymLyORLwEqOxgGlCGTbVKZ1T8aDIuMmFV/yi/JJ+PpI8SjRKwPzsjE0DthYM0nut2J QpM5AAMlVIeC3Qf9kPCRBvIl6794ELQz7kY/YU8LEfzGcWdCFXHZShcgbaAmaiAeOj85 b0L74W+SsnSnO0fOpnadt61+S7JsSSs5cl2IwUkCqGe8wPNrut/Sb/AI+zytLZFMdwc4 ry2Q== X-Forwarded-Encrypted: i=1; AJvYcCVof/6YZxd1NOE+klFhvvkpoygPd5KD9wMIR577+yJrF6IZeojPn2sR1+/qRhfXaVWcTNhFoocMYA==@lists.freedesktop.org X-Gm-Message-State: AOJu0YyrRW1cDZ2OdENnTBDd80zuhNVs4Tg8PgZ26Us+9jN+NmtVI4pl nKnBaRL7YhF00Fpd2UqA8EV/TPlwPFll3SfXqBX1Q7mzWkXBgniA+SFQGDJZjvDf2rMLDWOECrx nXTh2nRg2h2qQVrkR05r5vAUesneVJsqBpz+qzHwo0tcYwhJdZqxc1TlT8QJ/grgS X-Received: by 2002:a5d:6e42:0:b0:374:c56c:fbc7 with SMTP id ffacd0b85a97d-376dd15a895mr357672f8f.15.1725363568989; 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-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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