m/radeon: remove load callback from kms_driver")
Tested-by: Hans de Goede
Suggested-by: Christophe Leroy
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/atombios_dp.c | 9 ++---
drivers/gpu/drm/radeon/radeon_connectors.c | 17 +
2 files changed, 19 insertions(
stered after
'drm_dev_register' automatically.
Please help testing thank you.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/atombios_dp.c | 9 ++---
drivers/gpu/drm/radeon/radeon_connectors.c | 17 +
2 files changed, 19 insertions(+), 7 deletions(-)
diff --gi
devm_drm_dev_alloc"
is now allocating "radeon_device", allocation inside "radeon_driver_load_kms"
has to be
removed.
In "radeon_device_init", it originally assigned "rdev->dev" etc. However it is
already
done right after "devm_drm_dev_alloc&q
This patch changes the way "drm_device" is accessed. It uses "rdev_to_drm(rdev)"
instead of accessing the struct member directly.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +-
drivers/gpu/drm/radeon/cik.c | 14 ++--
dr
In the probe function of amdgpu, it uses "ddev" as the name of "struct
drm_device *",
so I suggest renaming it to be consistent.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_drv.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff
The ".load" callback in "struct drm_driver" is deprecated. In order to remove
the callback, we have to manually call "radeon_driver_load_kms" instead.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_drv.c | 5 -
1 file changed, 4 insertions(+
.load and drm_dev_alloc are deprecated. These patch series aims to
remove them.
v3: Both v1 and v2 sucks. v3 improves greatly on readability.
Wu Hoi Pok (6):
drm/radeon: change variable name "dev" to "ddev" for consistency
drm/radeon: remove load callback from kms_driv
Add helper rdev_to_drm(rdev), similar to amdgpu, most function should
access the "drm_device" with "rdev_to_drm(rdev)" instead, where amdgpu has
"adev_to_drm(adev)". It also makes changing from "*drm_device" to "drm_device"
in "rade
To be consistent with amdgpu driver, use "flags" as the parameter because
it is already assigned as "ent->driver_data".
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/r300.c | 6 +++---
drivers/gpu/drm/radeon/r420.c | 6 +++---
drivers/gpu/drm/radeon/r520.c | 2 +-
drivers/gpu/drm/radeon/r600.c | 12 ++--
drivers/gpu/drm/radeon/r600_cs.c | 2 +-
drivers
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_device.c | 19 +++
drivers/gpu/drm/radeon/radeon_display.c | 74 -
drivers/gpu/drm/radeon/radeon_fbdev.c | 26 -
drivers/gpu/drm/radeon/radeon_fence.c | 8 +--
drivers
Remove ".load" callback form "kms_driver", and move "struct drm_device"
into radeon_device. Patch 2 to 7 follows up with changing the way of
accessing drm_device, from "rdev->ddev" to "rdev_to_drm(rdev)" which is
"&rdev->ddev&q
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +-
drivers/gpu/drm/radeon/cik.c | 14 ++---
drivers/gpu/drm/radeon/dce6_afmt.c | 2 +-
drivers/gpu/drm/radeon/evergreen.c | 12 +--
drivers/gpu
Changes between v1 and v3:
1. add "ddev->dev_private = rdev;"
2. include a cover letter
Wu Hoi Pok (7):
drm/radeon: remove load callback
drm/radeon: rdev->ddev to rdev_to_drm(rdev) 1
drm/radeon: rdev->ddev to rdev_to_drm(rdev) 2
drm/radeon: rdev->ddev to rdev_to_dr
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/rs400.c | 6 +++---
drivers/gpu/drm/radeon/rs600.c | 14 +++---
drivers/gpu/drm/radeon/rs690.c | 2 +-
drivers/gpu/drm/radeon/rv515.c | 4 ++--
drivers/gpu/drm/radeon/rv770.c | 2 +-
drivers/gpu/drm/radeon
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_ib.c | 2 +-
drivers/gpu/drm/radeon/radeon_irq_kms.c | 12 ++--
drivers/gpu/drm/radeon/radeon_object.c | 2 +-
drivers/gpu/drm/radeon/radeon_pm.c | 20 ++--
drivers/gpu/drm
Please refer to patch 1.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/r600_hdmi.c | 2 +-
drivers/gpu/drm/radeon/radeon_acpi.c | 10 +-
drivers/gpu/drm/radeon/radeon_agp.c | 2 +-
drivers/gpu/drm/radeon/radeon_atombios.c | 2 +-
drivers/gpu/drm/radeon
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +-
drivers/gpu/drm/radeon/cik.c | 14 ++---
drivers/gpu/drm/radeon/dce6_afmt.c | 2 +-
drivers/gpu/drm/radeon/evergreen.c | 12
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_ib.c | 2 +-
drivers/gpu/drm/radeon/radeon_irq_kms.c | 12 ++--
drivers/gpu/drm/radeon/radeon_object.c | 2 +-
drivers/gpu/drm/radeon/radeon_pm.c | 20
uot; to suit
Patch v2 1/7.
Please be aware that these 7 patches depends on each other.
Thank you.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon.h | 11 ---
drivers/gpu/drm/radeon/radeon_drv.c | 27 ++-
drivers/gpu/drm/radeon/radeo
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/rs400.c | 6 +++---
drivers/gpu/drm/radeon/rs600.c | 14 +++---
drivers/gpu/drm/radeon/rs690.c | 2 +-
drivers/gpu/drm/radeon/rv515.c | 4 ++--
drivers/gpu/drm/radeon/rv770.c | 2 +-
drivers
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/radeon_device.c | 19 +++
drivers/gpu/drm/radeon/radeon_display.c | 74 -
drivers/gpu/drm/radeon/radeon_fbdev.c | 26 -
drivers/gpu/drm/radeon/radeon_fence.c | 8
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/r300.c | 6 +++---
drivers/gpu/drm/radeon/r420.c | 6 +++---
drivers/gpu/drm/radeon/r520.c | 2 +-
drivers/gpu/drm/radeon/r600.c | 12 ++--
drivers/gpu/drm/radeon/r600_cs.c | 2
Please see Patch v2 1/7 for details.
Signed-off-by: Wu Hoi Pok
---
drivers/gpu/drm/radeon/r600_hdmi.c | 2 +-
drivers/gpu/drm/radeon/radeon_acpi.c | 10 +-
drivers/gpu/drm/radeon/radeon_agp.c | 2 +-
drivers/gpu/drm/radeon/radeon_atombios.c | 2 +-
drivers/gpu/drm
you are free and have a gcn1 gcn2 card please do so.
Signed-off-by: wu hoi pok
---
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +-
drivers/gpu/drm/radeon/cik.c | 14 ++--
drivers/gpu/drm/radeon/dce6_afmt.c | 2 +-
drivers/gpu/drm/radeon/evergreen.c | 12 ++--
driv
25 matches
Mail list logo