Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3341410ybv; Mon, 24 Feb 2020 23:23:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzjj3MQ4ymf1u/IAedpQrO7VkqQF+t+z3MXDUTrPGLTDdekE3XhQyhLyXGYCUhx6PfiQDn1 X-Received: by 2002:a05:6830:11c8:: with SMTP id v8mr40002707otq.330.1582615399532; Mon, 24 Feb 2020 23:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582615399; cv=none; d=google.com; s=arc-20160816; b=NPZ/K15iLYuvYjEf6kXtCWi4sRAFABjKnibvr0HxKK6t2YnDO2H67jUQWeuo32y3HU GdMx1B1ssLjqQCVZ3D7m6gg4R40skqGmcjDGEQ6LcshUeUinlTcrChLjJHvgW1XDZDli n+WqK848bUgKdlHCuDoAsVsUlLa6HElQtHavyjdA6XEeWShpB3JFovnwS0m/UKZiF67V 9iUtmQvLGqUNYNH/i62WHRJ/iECYu5Q/UXjo8j2biFOysSzZQPw3zeOM0RvJw+Fhm5dn cvkrJKpR2QcqEEUkL3ZAmeCNqfOKHrmIyhz9/OoD2Bd0SGw3+sC+TN7H0smPvpJllDB3 v8Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=OMf7OjhPHZosZLKsIGl9gl3VQllz0fZbR2Ep2ni3iMQ=; b=rers9/iWm4PWdNGxCIQTEma8JLIDaji8WDlTc4ACXhqhbzpx4URzjmutTw2V+8mzQQ BQ+KF6QNjU5gY2lx2qBkDqdeZ5/PAinBL3xOzJHuFSdN3Dk+M/p3TOIjpwXl05QdymlV ZJlJuZMFJeKUhM1hGdQLyPKVlvLfjT6ckwbRu+7OuFxcKsdB34KrZFdcKlGCj9eIMl3D uuiBNCfjCEnoyjJw+y29l7+71CDYhdwDLmZ1BPUHJVbudAgRP4pX1JBfjkwNPv5tgbPX NIyOHRNfajBClKVzLHRP0LSTxvY1vJ/D+e3+QYNaZRsES19h9LjRnKsRnTs3RBJcnWQA cf8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b191si6571292oii.266.2020.02.24.23.23.05; Mon, 24 Feb 2020 23:23:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729183AbgBYHVv (ORCPT + 99 others); Tue, 25 Feb 2020 02:21:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:50670 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbgBYHVv (ORCPT ); Tue, 25 Feb 2020 02:21:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CB620AE3C; Tue, 25 Feb 2020 07:21:48 +0000 (UTC) Subject: Re: [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com References: <1582524112-5628-1-git-send-email-tiantao6@hisilicon.com> From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= mQEN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egUR5BkDfDg5O/FISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zb ehDda8lvhFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r 12+lqdsAEQEAAYkBPAQYAQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkD wmcAAAoJEGgNwR1TC3ojpfcIAInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2 h9ifw9Nf2TjCZ6AMvC3thAN0rFDj55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxU n+LSiRrOdywn6erjxRi9EYTVLCHcDhBEjKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uI aMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU2y3ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBW HE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/tsZvyEX6zN8CtirPdPWu/VXNRYAl/lat7lSI 3H26qrE= Message-ID: Date: Tue, 25 Feb 2020 08:21:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1582524112-5628-1-git-send-email-tiantao6@hisilicon.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sNTCz6iMWuEeEnKXWwJKxAq1gE0lp69ta" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sNTCz6iMWuEeEnKXWwJKxAq1gE0lp69ta Content-Type: multipart/mixed; boundary="29zXd6nu4MuRQxn3qbpBzJvLTMPqc18M6"; protected-headers="v1" From: Thomas Zimmermann To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com Message-ID: Subject: Re: [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware References: <1582524112-5628-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1582524112-5628-1-git-send-email-tiantao6@hisilicon.com> --29zXd6nu4MuRQxn3qbpBzJvLTMPqc18M6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 24.02.20 um 07:01 schrieb Tian Tao: > use the drm_fb_helper_remove_conflicting_pci_framebuffer to remove > the framebuffer initialized by fireware/bootloader to avoid resource > conflict. >=20 > Signed-off-by: Tian Tao >=20 > --- > v2: use the general API to remove the conflict resource instead of rol= ling > our own. Nit: the patch's version info is usually a part of the commit messages. It goes between the description and the Signed-off-by line. Acked-by: Thomas Zimmermann > --- > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/= gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > index 4a8a4cf..7518980 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > @@ -327,6 +327,11 @@ static int hibmc_pci_probe(struct pci_dev *pdev, > struct drm_device *dev; > int ret; > =20 > + ret =3D drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, > + "hibmcdrmfb"); > + if (ret) > + return ret; > + > dev =3D drm_dev_alloc(&hibmc_driver, &pdev->dev); > if (IS_ERR(dev)) { > DRM_ERROR("failed to allocate drm_device\n"); >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --29zXd6nu4MuRQxn3qbpBzJvLTMPqc18M6-- --sNTCz6iMWuEeEnKXWwJKxAq1gE0lp69ta Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl5UywsACgkQaA3BHVML eiPSEQgAh3FK+NW6XRP0xd2a35Hfj9hACFnZt2G1nYWFrMuNey3qg+4mw+0vVfLD 2q9Ji9D+nPtU4axZgnUHewB1r3fbmiyoiTI6x2MCrIhTBd5j/xXGNv4I1v3lO3df +Y439tdI+nDVzjdIAJFsxuuXeJHWqc/VTnDkhvlzWdGvDp8Qfyb3J7euJKiczHPY m5g4Kk3a5muHo559A7aWxD+HdNxmVPdoKt0OHI/VXca7jFugbW7A8v5DffVlcvc6 igwyrL4++uRt6u7efVCtO3hPZo7b4byo3arn6Q+hLgD/rNOD55py2/P3+nI3bh4F jeNPQBWWSGRXfdWB2adPEpCGl4QkNw== =q7D9 -----END PGP SIGNATURE----- --sNTCz6iMWuEeEnKXWwJKxAq1gE0lp69ta--