* [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware
@ 2020-02-24 6:01 Tian Tao
2020-02-25 7:21 ` Thomas Zimmermann
2020-02-27 4:39 ` Xinliang Liu
0 siblings, 2 replies; 3+ messages in thread
From: Tian Tao @ 2020-02-24 6:01 UTC (permalink / raw)
To: puck.chen, airlied, daniel, tzimmermann, kraxel,
alexander.deucher, tglx, dri-devel, xinliang.liu, linux-kernel
Cc: linuxarm
use the drm_fb_helper_remove_conflicting_pci_framebuffer to remove
the framebuffer initialized by fireware/bootloader to avoid resource
conflict.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
v2: use the general API to remove the conflict resource instead of rolling
our own.
---
---
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +++++
1 file changed, 5 insertions(+)
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;
+ ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev,
+ "hibmcdrmfb");
+ if (ret)
+ return ret;
+
dev = drm_dev_alloc(&hibmc_driver, &pdev->dev);
if (IS_ERR(dev)) {
DRM_ERROR("failed to allocate drm_device\n");
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware
2020-02-24 6:01 [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware Tian Tao
@ 2020-02-25 7:21 ` Thomas Zimmermann
2020-02-27 4:39 ` Xinliang Liu
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Zimmermann @ 2020-02-25 7:21 UTC (permalink / raw)
To: Tian Tao, puck.chen, airlied, daniel, kraxel, alexander.deucher,
tglx, dri-devel, xinliang.liu, linux-kernel
Cc: linuxarm
[-- Attachment #1.1.1: Type: text/plain, Size: 1512 bytes --]
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.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
>
> ---
> v2: use the general API to remove the conflict resource instead of rolling
> 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 <tzimmermann@suse.de>
> ---
> ---
> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> 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;
>
> + ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev,
> + "hibmcdrmfb");
> + if (ret)
> + return ret;
> +
> dev = drm_dev_alloc(&hibmc_driver, &pdev->dev);
> if (IS_ERR(dev)) {
> DRM_ERROR("failed to allocate drm_device\n");
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware
2020-02-24 6:01 [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware Tian Tao
2020-02-25 7:21 ` Thomas Zimmermann
@ 2020-02-27 4:39 ` Xinliang Liu
1 sibling, 0 replies; 3+ messages in thread
From: Xinliang Liu @ 2020-02-27 4:39 UTC (permalink / raw)
To: Tian Tao
Cc: airlied, puck.chen, linux-kernel, dri-devel, linuxarm, kraxel,
tzimmermann, alexander.deucher, tglx
[-- Attachment #1.1: Type: text/plain, Size: 1298 bytes --]
Thanks for the patch.
Applied to drm-misc-next.
On Mon, 24 Feb 2020 at 14:02, Tian Tao <tiantao6@hisilicon.com> wrote:
> use the drm_fb_helper_remove_conflicting_pci_framebuffer to remove
> the framebuffer initialized by fireware/bootloader to avoid resource
> conflict.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
>
> ---
> v2: use the general API to remove the conflict resource instead of
> rolling
> our own.
> ---
> ---
> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> 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;
>
> + ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev,
> + "hibmcdrmfb");
> + if (ret)
> + return ret;
> +
> dev = drm_dev_alloc(&hibmc_driver, &pdev->dev);
> if (IS_ERR(dev)) {
> DRM_ERROR("failed to allocate drm_device\n");
> --
> 2.7.4
>
>
[-- Attachment #1.2: Type: text/html, Size: 1881 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-27 8:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24 6:01 [PATCH v2] drm/hisilicon: Fixed pcie resource conflict between drm and firmware Tian Tao
2020-02-25 7:21 ` Thomas Zimmermann
2020-02-27 4:39 ` Xinliang Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).