All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: use adev_to_drm to get drm_device pointer
@ 2021-12-13  4:08 Guchun Chen
  2021-12-13 15:06 ` Deucher, Alexander
  0 siblings, 1 reply; 2+ messages in thread
From: Guchun Chen @ 2021-12-13  4:08 UTC (permalink / raw)
  To: amd-gfx, alexander.deucher, christian.koenig, xinhui.pan, lang.yu
  Cc: Guchun Chen

Updated for consistency when accessing drm_device from amdgpu driver.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 48aeca3b8f16..b2c3892e8e7f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5705,7 +5705,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
 void amdgpu_device_halt(struct amdgpu_device *adev)
 {
 	struct pci_dev *pdev = adev->pdev;
-	struct drm_device *ddev = &adev->ddev;
+	struct drm_device *ddev = adev_to_drm(adev);
 
 	drm_dev_unplug(ddev);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu: use adev_to_drm to get drm_device pointer
  2021-12-13  4:08 [PATCH] drm/amdgpu: use adev_to_drm to get drm_device pointer Guchun Chen
@ 2021-12-13 15:06 ` Deucher, Alexander
  0 siblings, 0 replies; 2+ messages in thread
From: Deucher, Alexander @ 2021-12-13 15:06 UTC (permalink / raw)
  To: Chen, Guchun, amd-gfx, Koenig, Christian, Pan, Xinhui, Yu, Lang

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

[AMD Official Use Only]

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
________________________________
From: Chen, Guchun <Guchun.Chen@amd.com>
Sent: Sunday, December 12, 2021 11:08 PM
To: amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>; Pan, Xinhui <Xinhui.Pan@amd.com>; Yu, Lang <Lang.Yu@amd.com>
Cc: Chen, Guchun <Guchun.Chen@amd.com>
Subject: [PATCH] drm/amdgpu: use adev_to_drm to get drm_device pointer

Updated for consistency when accessing drm_device from amdgpu driver.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 48aeca3b8f16..b2c3892e8e7f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5705,7 +5705,7 @@ void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
 void amdgpu_device_halt(struct amdgpu_device *adev)
 {
         struct pci_dev *pdev = adev->pdev;
-       struct drm_device *ddev = &adev->ddev;
+       struct drm_device *ddev = adev_to_drm(adev);

         drm_dev_unplug(ddev);

--
2.17.1


[-- Attachment #2: Type: text/html, Size: 2504 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13  4:08 [PATCH] drm/amdgpu: use adev_to_drm to get drm_device pointer Guchun Chen
2021-12-13 15:06 ` Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.