Message ID | 20230111154112.90575-6-daniel.vetter@ffwll.ch |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3391399wrt; Wed, 11 Jan 2023 07:42:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOUeLAZyND3vhUYhhD3fSB2O6GT8epHke9hXctEGgYB12cMlkWn7F+X7z/B0rCNzRGQ5hc X-Received: by 2002:a05:6a00:438c:b0:582:9f43:2c7b with SMTP id bt12-20020a056a00438c00b005829f432c7bmr33672024pfb.17.1673451743558; Wed, 11 Jan 2023 07:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673451743; cv=none; d=google.com; s=arc-20160816; b=tK4lEd/J5pBB1ghpPHDKYJJ6bKNfTpFdy3bL4Z/fE58WGkY0D4FBBHqAy4Dcg7gmCH BntwS4gynFZcMpRfA9/8VcgeqZ6GwNrT5c6MLuVmHGBp6ReRwN+PVla3EE3tItvPAUDm q6C2soIejb6RrGIoKgVP9+nEYl+p8zvBdGjJPiHS8PCYv6OdpD0cRri+HIxGSOQrqUxs yOoNLNodi+y3VT7AuHhyUWQ9oGEaajk+HNGPK499kGA7QWqAsDZSnewvZES6zNs92SxA C9293MO95++bitnLIJ33xVhVADg6/Ot8jdkD1V3R1nKaDDbHSjLlvljkhVYHVluLRGu4 tJ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uA+tPLir+1X4c7NIGPD8fbGsyIZBKsPUjYPi9h9kAc8=; b=j2GiwhnFAlIqkI+BOtYJoqGMypCs/dup1WD6M7V8mf990PlpZAOYrQ35ZDx4IJz+1f eynQYkr2NQlrc/rKbVZCWh1dCNmR/UE5RAqm4Bd3u+bSWO5KeG2lgjfgYns21dTcoc8e P11sYIgAzY366QgaLak2EAYQaZNirQ/RUcLeM1fTT7CNbrbEmWIvHWG+Hd1mvea/sUWm w5qCLBT8JOXZx+0J7GFgm0jraHuG8Hj74P38qL3AxcmG+RQFuYcRlzRnvmi6uZja5nHQ amwH0/eeJyQGgd1Hy0TPgIVL8bNKPwaXy24vjaCWMnwRAUK5b+jo8jizFzpEI+894nOZ E3aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=eNQu3m5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00150f00b00576950b449asi13416435pfu.351.2023.01.11.07.42.10; Wed, 11 Jan 2023 07:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=eNQu3m5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238128AbjAKPlx (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Wed, 11 Jan 2023 10:41:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235054AbjAKPl3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Jan 2023 10:41:29 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C6B7D49 for <linux-kernel@vger.kernel.org>; Wed, 11 Jan 2023 07:41:28 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id p1-20020a05600c1d8100b003d8c9b191e0so12970581wms.4 for <linux-kernel@vger.kernel.org>; Wed, 11 Jan 2023 07:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uA+tPLir+1X4c7NIGPD8fbGsyIZBKsPUjYPi9h9kAc8=; b=eNQu3m5MBYcJ4ir7wnU2uKSOdOlTVnwwoNbl7ndwmx7pL0oaymY4tJ+VPavmH4gWu3 ctX/ciqpqll+Gi0G39VkzdIVV+zIy+55w4NRmQ48GvAAagPpdV92t11x9dtuCypNqs8x VKs1+2qNooBYEQ/WTCaaYQDd8eQZXRMv5YgkU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uA+tPLir+1X4c7NIGPD8fbGsyIZBKsPUjYPi9h9kAc8=; b=l8uxN7DnE+uvTiAP3Efp3ZBjGg5WOMuCHWUP248q2M89Zfkvht2XRqOpw7uHoxjdCs n81rPFiq6CC3O3EHpfrEt2OM2Usbwn7QCIgvJ4jESzByaLaEAs60h2rbU0dN8mKoCvA9 C0+Ecvtvzd2XiIhm8IMVVCraJs6Tn2dzct/dfDjnqx9HUrZYD3AbhGJM3Aw/KaM4CIwR XeMBsA0iAlj3/72IpN6Q9Y8T8ZI57HnBk7fyK3yNj1NxjECfXWj0IEdlPM3Np4oZlpO4 4XR4v/3WPo68o1/oKLWKMP/++69veIEOYbD1rW+QjcoUV2gTQmdDe+mirVTXJ8ZAKEyX o+wA== X-Gm-Message-State: AFqh2kq6/b4CjNx/p1TR12oQVelFvfrhZD2mvOz+OV3rJVR1gZaoqj8x dh6/uxr9LCtNd9ZODG6ePl9SuapCh3cXvR+z X-Received: by 2002:a05:600c:4f83:b0:3d2:3f55:f73f with SMTP id n3-20020a05600c4f8300b003d23f55f73fmr53421615wmq.8.1673451688237; Wed, 11 Jan 2023 07:41:28 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id t9-20020a05600c198900b003d9e74dd9b2sm15936149wmq.9.2023.01.11.07.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 07:41:27 -0800 (PST) From: Daniel Vetter <daniel.vetter@ffwll.ch> To: DRI Development <dri-devel@lists.freedesktop.org> Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>, LKML <linux-kernel@vger.kernel.org>, Daniel Vetter <daniel.vetter@ffwll.ch>, Daniel Vetter <daniel.vetter@intel.com>, Sudip Mukherjee <sudipm.mukherjee@gmail.com>, Teddy Wang <teddy.wang@siliconmotion.com>, linux-fbdev@vger.kernel.org Subject: [PATCH 06/11] staging/lynxfb: Use pci aperture helper Date: Wed, 11 Jan 2023 16:41:07 +0100 Message-Id: <20230111154112.90575-6-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111154112.90575-1-daniel.vetter@ffwll.ch> References: <20230111154112.90575-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754741335124039727?= X-GMAIL-MSGID: =?utf-8?q?1754741335124039727?= |
Series |
[01/11] drm/ast: Use drm_aperture_remove_conflicting_pci_framebuffers
|
|
Commit Message
Daniel Vetter
Jan. 11, 2023, 3:41 p.m. UTC
It exists! Note that since this is an exact copy, there shouldn't be
any functional difference here.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Cc: linux-fbdev@vger.kernel.org
---
drivers/staging/sm750fb/sm750.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
Comments
Hi Am 11.01.23 um 16:41 schrieb Daniel Vetter: > It exists! Note that since this is an exact copy, there shouldn't be > any functional difference here. > > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> > Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> > Cc: Teddy Wang <teddy.wang@siliconmotion.com> > Cc: linux-fbdev@vger.kernel.org > --- > drivers/staging/sm750fb/sm750.c | 16 +--------------- > 1 file changed, 1 insertion(+), 15 deletions(-) > > diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c > index effc7fcc3703..22ace3168723 100644 > --- a/drivers/staging/sm750fb/sm750.c > +++ b/drivers/staging/sm750fb/sm750.c > @@ -989,20 +989,6 @@ static int sm750fb_framebuffer_alloc(struct sm750_dev *sm750_dev, int fbidx) > return err; > } > > -static int lynxfb_kick_out_firmware_fb(struct pci_dev *pdev) > -{ > - resource_size_t base = pci_resource_start(pdev, 0); > - resource_size_t size = pci_resource_len(pdev, 0); > - bool primary = false; > - > -#ifdef CONFIG_X86 > - primary = pdev->resource[PCI_ROM_RESOURCE].flags & > - IORESOURCE_ROM_SHADOW; > -#endif > - > - return aperture_remove_conflicting_devices(base, size, primary, "sm750_fb1"); This still had the primary argument, it needs to be handled in an early patch in some way. > -} > - > static int lynxfb_pci_probe(struct pci_dev *pdev, > const struct pci_device_id *ent) > { > @@ -1011,7 +997,7 @@ static int lynxfb_pci_probe(struct pci_dev *pdev, > int fbidx; > int err; > > - err = lynxfb_kick_out_firmware_fb(pdev); > + err = aperture_remove_conflicting_pci_devices(pdev, "sm750_fb1"); > if (err) > return err; > -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index effc7fcc3703..22ace3168723 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -989,20 +989,6 @@ static int sm750fb_framebuffer_alloc(struct sm750_dev *sm750_dev, int fbidx) return err; } -static int lynxfb_kick_out_firmware_fb(struct pci_dev *pdev) -{ - resource_size_t base = pci_resource_start(pdev, 0); - resource_size_t size = pci_resource_len(pdev, 0); - bool primary = false; - -#ifdef CONFIG_X86 - primary = pdev->resource[PCI_ROM_RESOURCE].flags & - IORESOURCE_ROM_SHADOW; -#endif - - return aperture_remove_conflicting_devices(base, size, primary, "sm750_fb1"); -} - static int lynxfb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { @@ -1011,7 +997,7 @@ static int lynxfb_pci_probe(struct pci_dev *pdev, int fbidx; int err; - err = lynxfb_kick_out_firmware_fb(pdev); + err = aperture_remove_conflicting_pci_devices(pdev, "sm750_fb1"); if (err) return err;