drm/radeon: Stop changing the drm_driver struct
Subsystems (64)
PATCH 1/5 drm/radeon: Stop changing the drm_driver struct
With only the kms driver left, we can fold this in. This means we need to move the ioctl table, which means one additional ioctl must be defined in headers.
Also there's a conflict between the radeon_init macro and the module init function, so rename the module functions to avoid that.
--- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 85 ++++++++++++++++++++--------- drivers/gpu/drm/radeon/radeon_kms.c | 49 +---------------- 3 files changed, 62 insertions(+), 73 deletions(-)
drivers/gpu/drm/radeon/radeon.h +1 -0
@@ -2244,6 +2244,7 @@ int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);int radeon_gem_get_tiling_ioctl (struct drm_device *dev,void *data,struct drm_file *filp); +int radeon_info_ioctl (struct drm_device *dev,void *data,struct drm_file *filp);/* VRAM scratch page for HDP bug, default vram page */ struct r600_vram_scratch {
drivers/gpu/drm/radeon/radeon_drv.c +60 -25
139 lines not on this page · raw message
drivers/gpu/drm/radeon/radeon_kms.c +1 -48
58 lines not on this page · raw message
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/5 drm: Compile out legacy chunks from struct drm_device
This means some very few #ifdef in code, but it allows us to enlist the compiler to make sure this stuff isn't used anymore.
More important, only legacy drivers change drm_device (for the legacy_dev_list shadow attach management), therefore this is prep to allow modern drivers to have a const driver struct. Which is nice, because there's a ton of function pointers in there.
--- drivers/gpu/drm/drm_file.c | 2 ++ drivers/gpu/drm/drm_vblank.c | 15 ++++++++++++--- include/drm/drm_drv.h | 2 ++ 3 files changed, 16 insertions(+), 3 deletions(-)
drivers/gpu/drm/drm_file.c +2 -0
@@ -258,9 +258,11 @@ void drm_file_free(struct drm_file *file) (long )old_encode_dev (file->minor->kdev->devt), atomic_read(&dev->open_count)); +#ifdef CONFIG_DRM_LEGACY if (drm_core_check_feature (dev,DRIVER_LEGACY ) && dev->driver->preclose) dev->driver->preclose (dev, file); +#endif if (drm_core_check_feature (dev,DRIVER_LEGACY ))drm_legacy_lock_release (dev, file->filp);
drivers/gpu/drm/drm_vblank.c +12 -3
@@ -210,9 +210,12 @@ static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->get_vblank_counter)return crtc->funcs->get_vblank_counter (crtc); - }else if (dev->driver->get_vblank_counter) { + } +#ifdef CONFIG_DRM_LEGACY + else if (dev->driver->get_vblank_counter) {return dev->driver->get_vblank_counter (dev, pipe); } +#endif return drm_vblank_no_hw_counter (dev, pipe); }
@@ -430,9 +433,12 @@ static void __disable_vblank(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->disable_vblank) crtc->funcs->disable_vblank (crtc); - }else { + } +#ifdef CONFIG_DRM_LEGACY + else { dev->driver->disable_vblank (dev, pipe); } +#endif }/*
@@ -1097,9 +1103,12 @@ static int __enable_vblank(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->enable_vblank)return crtc->funcs->enable_vblank (crtc); - }else if (dev->driver->enable_vblank) { + } +#ifdef CONFIG_DRM_LEGACY + else if (dev->driver->enable_vblank) {return dev->driver->enable_vblank (dev, pipe); } +#endif return -EINVAL ; }
include/drm/drm_drv.h +2 -0
@@ -498,6 +498,7 @@ struct drm_driver {*/ const struct file_operations *fops; +#ifdef CONFIG_DRM_LEGACY /* Everything below here is for legacy driver, never use! */ /* private: */
@@ -512,6 +513,7 @@ struct drm_driver {int (*enable_vblank)(struct drm_device *dev,unsigned int pipe);void (*disable_vblank)(struct drm_device *dev,unsigned int pipe);int dev_priv_size; +#endif }; void *__devm_drm_dev_alloc(struct device *parent, struct drm_driver *driver,
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/5] drm: Compile out legacy chunks from struct drm_device
Quoted 9 lines · Daniel Vetter
This means some very few #ifdef in code, but it allows us to enlist the compiler to make sure this stuff isn't used anymore.
More important, only legacy drivers change
drm_device(for thelegacy_dev_listshadow attach management), therefore this is prep to allow modern drivers to have a const driver struct. Which is nice, because there's a ton of function pointers in there.
Quoted 11 lines
Acked-by Maxime Ripard <[email protected]>Reviewed-by Sam Ravnborg <[email protected]>Review-by Thomas Zimmermann <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 91 lines
--- drivers/gpu/drm/drm_file.c | 2 ++ drivers/gpu/drm/drm_vblank.c | 15 ++++++++++++--- include/drm/drm_drv.h | 2 ++ 3 files changed, 16 insertions(+), 3 deletions(-)drivers/gpu/drm/drm_file.c +2
-0@@ -258,9 +258,11 @@ void drm_file_free(struct drm_file *file) (long )old_encode_dev (file->minor->kdev->devt), atomic_read(&dev->open_count)); +#ifdef CONFIG_DRM_LEGACY if (drm_core_check_feature (dev,DRIVER_LEGACY ) && dev->driver->preclose) dev->driver->preclose (dev, file); +#endif if (drm_core_check_feature (dev,DRIVER_LEGACY ))drm_legacy_lock_release (dev, file->filp);drivers/gpu/drm/drm_vblank.c +12
-3@@ -210,9 +210,12 @@ static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->get_vblank_counter)return crtc->funcs->get_vblank_counter (crtc); - }else if (dev->driver->get_vblank_counter) { + } +#ifdef CONFIG_DRM_LEGACY + else if (dev->driver->get_vblank_counter) {return dev->driver->get_vblank_counter (dev, pipe); } +#endif return drm_vblank_no_hw_counter (dev, pipe); }@@ -430,9 +433,12 @@ static void __disable_vblank(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->disable_vblank) crtc->funcs->disable_vblank (crtc); - }else { + } +#ifdef CONFIG_DRM_LEGACY + else { dev->driver->disable_vblank (dev, pipe); } +#endif }/* @@ -1097,9 +1103,12 @@ static int __enable_vblank(struct drm_device *dev, unsigned int pipe)if (crtc->funcs->enable_vblank)return crtc->funcs->enable_vblank (crtc); - }else if (dev->driver->enable_vblank) { + } +#ifdef CONFIG_DRM_LEGACY + else if (dev->driver->enable_vblank) {return dev->driver->enable_vblank (dev, pipe); } +#endif return -EINVAL ; }include/drm/drm_drv.h +2
-1@@ -498,6 +498,7 @@ struct drm_driver {*/ const struct file_operations *fops; +#ifdef CONFIG_DRM_LEGACY /* Everything below here is for legacy driver, never use! */ /* private: */ @@ -512,6 +513,7 @@ struct drm_driver {int (*enable_vblank)(struct drm_device *dev,unsigned int pipe);void (*disable_vblank)(struct drm_device *dev,unsigned int pipe);int dev_priv_size; +#endif }; void *__devm_drm_dev_alloc(struct device *parent, struct drm_driver *driver, --2.28.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/5 drm/amdgpu: Paper over the drm_driver mangling for virt
In reply to Daniel VetterPrep work to make drm_device->driver const.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -4
@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)
@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);
@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |
@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +11 -1
@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ; + adev->cg_flags =0 ; adev->pg_flags =0 ; }
Signature · 6 lines
2.28.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
[AMD Official Use Only - Internal Distribution Only]
What's the purpose of the patch sets
e.g.: what bug can those 5 patches fix or what feature provided
for this particular one (3/5) I didn't see how it helpful, could you give a background ?
thanks
_____________________________________
Monk Liu|GPU Virtualization Team |AMD
-----Original Message-----
From: Daniel Vetter <[email protected]>
Sent: Friday, October 30, 2020 6:11 PM
To: DRI Development <[email protected]>
Cc: Intel Graphics Development <[email protected]>; Daniel Vetter <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Quan, Evan <[email protected]>; Kuehling, Felix <[email protected]>; Zhang, Hawking <[email protected]>; Grodzovsky, Andrey <[email protected]>; Tuikov, Luben <[email protected]>; Thomas Zimmermann <[email protected]>; Liu, Monk <[email protected]>; Yintian Tao <[email protected]>; Li, Dennis <[email protected]>; Liu, Shaoyun <[email protected]>; Zhang, Bokun <[email protected]>; Yang, Stanley <[email protected]>; Sheng, Wenhui <[email protected]>; Gong, Curry <[email protected]>; Daniel Vetter <[email protected]>
Subject: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Prep work to make drm_device->driver const.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev, const struct pci_device_id *ent) @@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
if (ret)
return ret;
-adev = devm_drm_dev_alloc(&pdev->dev, &kms_driver, typeof(*adev), ddev); +adev = devm_drm_dev_alloc(&pdev->dev, &amdgpu_kms_driver, +typeof(*adev), ddev);
if (IS_ERR(adev))
return PTR_ERR(adev);
@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)
return 0;
}
-static struct drm_driver kms_driver = {
+struct drm_driver amdgpu_kms_driver = {
.driver_features =
DRIVER_ATOMIC |
DRIVER_GEM |
@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void)
goto error_fence;
DRM_INFO("amdgpu kernel modesetting enabled.\n");
-kms_driver.num_ioctls = amdgpu_max_kms_ioctl; +amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;
amdgpu_register_atpx_handler();
/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
index d0aea5e39531..dde4c449c284 100644
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +11 -2
@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ +amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ; + adev->cg_flags =0 ; adev->pg_flags =0 ; } --
2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 8 lines · Monk
[AMD Official Use Only - Internal Distribution Only]
What's the purpose of the patch sets
e.g.: what bug can those 5 patches fix or what feature provided
for this particular one (3/5) I didn't see how it helpful, could you give a background ?
It's good to make function tables const, so that they can be write protected. More resilience against exploits and all that. This patch here is needed to be able to make drm_device->driver const so that all other drivers can make their drm_driver structure const. Would be good to fully fix up amdgpu like in the comment, but I'm not going that in this series here.
-Daniel
Quoted 106 lines
thanks
_____________________________________
Monk Liu|GPU Virtualization Team |AMD-----Original Message-----
From: Daniel Vetter <[email protected]>
Sent: Friday, October 30, 2020 6:11 PM
To: DRI Development <[email protected]>
Cc: Intel Graphics Development <[email protected]>; Daniel Vetter <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Quan, Evan <[email protected]>; Kuehling, Felix <[email protected]>; Zhang, Hawking <[email protected]>; Grodzovsky, Andrey <[email protected]>; Tuikov, Luben <[email protected]>; Thomas Zimmermann <[email protected]>; Liu, Monk <[email protected]>; Yintian Tao <[email protected]>; Li, Dennis <[email protected]>; Liu, Shaoyun <[email protected]>; Zhang, Bokun <[email protected]>; Yang, Stanley <[email protected]>; Sheng, Wenhui <[email protected]>; Gong, Curry <[email protected]>; Daniel Vetter <[email protected]>
Subject: [PATCH 3/5] drm/amdgpu: Paper over thedrm_drivermangling for virtPrep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-1@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev, const struct pci_device_id *ent) @@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)
return ret;drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-3-adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); +adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver, +typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); -kms_driver.num_ioctls = amdgpu_max_kms_ioctl; +amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler (); /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.cindex
d0aea5e39531..dde4c449c284100644drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +11
-2@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ +amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ; + adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 10 lines · Daniel Vetter
Quoted 8 lines · Monk
[AMD Official Use Only - Internal Distribution Only]
What's the purpose of the patch sets
e.g.: what bug can those 5 patches fix or what feature provided
for this particular one (3/5) I didn't see how it helpful, could you give a background ?
Quoted 7 lines
It's good to make function tables const, so that they can be write protected. More resilience against exploits and all that. This patch here is needed to be able to make
drm_device->driverconst so that all other drivers can make theirdrm_driverstructure const. Would be good to fully fix up amdgpu like in the comment, but I'm not going that in this series here.
-Daniel
Hi Daniel,
I feel that that's a good change.
But if you can clarify this for me... Is this leading towards a single instance of a struct drm_driver per low-level driver, i.e. amdgpu?
And as such, being able to be defined as const?
So that we have many GPU devices driven by one low-level driver (amdgpu_drv), represented by one const drm_driver (and thus const)?
Which would imply that if varied devices can be handled by a single low-level driver, whose struct drm_driver settings cannot be shared among subset of devices (say very old and new), then the low-level driver
would have to create more than one "const" struct drm_driver?
Regards,
Luben
Quoted 99 lines
Quoted 99 lines
thanks
_____________________________________
Monk Liu|GPU Virtualization Team |AMD-----Original Message-----
From: Daniel Vetter <[email protected]>
Sent: Friday, October 30, 2020 6:11 PM
To: DRI Development <[email protected]>
Cc: Intel Graphics Development <[email protected]>; Daniel Vetter <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Quan, Evan <[email protected]>; Kuehling, Felix <[email protected]>; Zhang, Hawking <[email protected]>; Grodzovsky, Andrey <[email protected]>; Tuikov, Luben <[email protected]>; Thomas Zimmermann <[email protected]>; Liu, Monk <[email protected]>; Yintian Tao <[email protected]>; Li, Dennis <[email protected]>; Liu, Shaoyun <[email protected]>; Zhang, Bokun <[email protected]>; Yang, Stanley <[email protected]>; Sheng, Wenhui <[email protected]>; Gong, Curry <[email protected]>; Daniel Vetter <[email protected]>
Subject: [PATCH 3/5] drm/amdgpu: Paper over thedrm_drivermangling for virtPrep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-1@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev, const struct pci_device_id *ent) @@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)
return ret;drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-3-adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); +adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver, +typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); -kms_driver.num_ioctls = amdgpu_max_kms_ioctl; +amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler (); /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.cindex
d0aea5e39531..dde4c449c284100644drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +9
-1@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/
Quoted 10 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +2
-1+amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ; + adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 34 lines · Luben Tuikov
Quoted 10 lines · Daniel Vetter
Quoted 8 lines · Monk
[AMD Official Use Only - Internal Distribution Only]
What's the purpose of the patch sets
e.g.: what bug can those 5 patches fix or what feature provided
for this particular one (3/5) I didn't see how it helpful, could you give a background ?
Quoted 7 lines
It's good to make function tables const, so that they can be write protected. More resilience against exploits and all that. This patch here is needed to be able to make
drm_device->driverconst so that all other drivers can make theirdrm_driverstructure const. Would be good to fully fix up amdgpu like in the comment, but I'm not going that in this series here.
-DanielHi Daniel,
I feel that that's a good change.
But if you can clarify this for me... Is this leading towards a single instance of a struct
drm_driverper low-level driver, i.e. amdgpu?And as such, being able to be defined as const?
So that we have many GPU devices driven by one low-level driver (
amdgpu_drv), represented by one constdrm_driver(and thus const)?
Quoted 5 lines
Which would imply that if varied devices can be handled by a single low-level driver, whose struct
drm_driversettings cannot be shared among subset of devices (say very old and new), then the low-level driver
would have to create more than one "const" structdrm_driver?
This is already the case, minus the const. Which is why it's problemantic if you change that shared drm_driver instance at runtime from a specific driver, since you always change it for all instances. -Daniel
Quoted 114 lines
Regards,
LubenQuoted 109 lines
Quoted 107 lines
thanks
_____________________________________
Monk Liu|GPU Virtualization Team |AMD-----Original Message-----
From: Daniel Vetter <[email protected]>
Sent: Friday, October 30, 2020 6:11 PM
To: DRI Development <[email protected]>
Cc: Intel Graphics Development <[email protected]>; Daniel Vetter <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Quan, Evan <[email protected]>; Kuehling, Felix <[email protected]>; Zhang, Hawking <[email protected]>; Grodzovsky, Andrey <[email protected]>; Tuikov, Luben <[email protected]>; Thomas Zimmermann <[email protected]>; Liu, Monk <[email protected]>; Yintian Tao <[email protected]>; Li, Dennis <[email protected]>; Liu, Shaoyun <[email protected]>; Zhang, Bokun <[email protected]>; Yang, Stanley <[email protected]>; Sheng, Wenhui <[email protected]>; Gong, Curry <[email protected]>; Daniel Vetter <[email protected]>
Subject: [PATCH 3/5] drm/amdgpu: Paper over thedrm_drivermangling for virtPrep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-1@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev, const struct pci_device_id *ent) @@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)
return ret;drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-3-adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); +adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver, +typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); -kms_driver.num_ioctls = amdgpu_max_kms_ioctl; +amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler (); /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.cindex
d0aea5e39531..dde4c449c284100644drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +11
-2@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ +amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ; + adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
In reply to Daniel VetterQuoted 81 lines · Daniel Vetter
Prep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-4@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +2
-0@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ;
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) · line 63
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +8
-1adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two +* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ;
There is additional DRIVER_ATOMIC in amdgpu_pci_probe() for older chips without atomic support.
Alex
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1
-1+ adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 88 lines · Alex Deucher
Quoted 86 lines · Daniel Vetter
Prep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-4@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-1@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) · line 63
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-0+* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ;There is additional
DRIVER_ATOMICinamdgpu_pci_probe()for older chips without atomic support.
That would need to be fixed for making the amdgpu drm_driver structures constant, but that's not what I'm doing here. I'm only removing the usage of the drm_device->driver pointer, to allow that to become constant. Untangling the flow to make the amdgpu_kms_driver const looked a bit more involved than just a simple patch. -Daniel
Quoted 13 lines
Alex
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1
-1+ adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 99 lines · Daniel Vetter
Quoted 88 lines · Alex Deucher
Quoted 86 lines · Daniel Vetter
Prep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-4@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-1@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) · line 63
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-0+* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ;There is additional
DRIVER_ATOMICinamdgpu_pci_probe()for older chips without atomic support.
Quoted 5 lines
That would need to be fixed for making the amdgpu
drm_driverstructures constant, but that's not what I'm doing here. I'm only removing the usage of thedrm_device->driverpointer, to allow that to become constant. Untangling the flow to make theamdgpu_kms_driverconst looked a bit more involved than just a simple patch.
On second look, this changes the drm_device->driver_features flag, which was added to avoid having to change the drm_driver one. So that's actually all ok (and just the virt code here is broken). But amdgpu also updates num_ioctl and other stuff, and that's a fairly invasive patch.
I'm also not sure whether this code here can just be switched over from drm_driver->driver_features to drm_device->driver_features. So given all this, ok as-is and you guys figure out how to patch this properly, or want me to change something in this patch?
Cheers, Daniel
Quoted 21 lines
Quoted 14 lines
Alex
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1
-1+ adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 107 lines · Daniel Vetter
Quoted 99 lines · Daniel Vetter
Quoted 88 lines · Alex Deucher
Quoted 86 lines · Daniel Vetter
Prep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-4@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-1@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) · line 63
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-0+* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ;There is additional
DRIVER_ATOMICinamdgpu_pci_probe()for older chips without atomic support.Quoted 5 lines
That would need to be fixed for making the amdgpu
drm_driverstructures constant, but that's not what I'm doing here. I'm only removing the usage of thedrm_device->driverpointer, to allow that to become constant. Untangling the flow to make theamdgpu_kms_driverconst looked a bit more involved than just a simple patch.
Quoted 5 lines
On second look, this changes the
drm_device->driver_featuresflag, which was added to avoid having to change thedrm_driverone. So that's actually all ok (and just the virt code here is broken). But amdgpu also updatesnum_ioctland other stuff, and that's a fairly invasive patch.
We don't change the number of ioctls:
const int amdgpu_max_kms_ioctl = ARRAY_SIZE(amdgpu_ioctls_kms); So I think the only thing here is the driver features flag for the virt display code, or am I missing something?
Alex
Quoted 32 lines
I'm also not sure whether this code here can just be switched over from
drm_driver->driver_featurestodrm_device->driver_features. So given all this, ok as-is and you guys figure out how to patch this properly, or want me to change something in this patch?Cheers, Daniel
Quoted 17 lines
Quoted 14 lines
Alex
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1
-1+ adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-develQuoted 4 lines
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Quoted 4 lines
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/5] drm/amdgpu: Paper over the drm_driver mangling for virt
Quoted 114 lines · Alex Deucher
Quoted 107 lines · Daniel Vetter
Quoted 99 lines · Daniel Vetter
Quoted 88 lines · Alex Deucher
Quoted 86 lines · Daniel Vetter
Prep work to make
drm_device->driverconst.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc Evan Quan <[email protected]>Cc Felix Kuehling <[email protected]>Cc Hawking Zhang <[email protected]>Cc Andrey Grodzovsky <[email protected]>Cc Luben Tuikov <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc Monk Liu <[email protected]>Cc Yintian Tao <[email protected]>Cc Dennis Li <[email protected]>Cc shaoyunl <[email protected]>Cc Bokun Zhang <[email protected]>Cc "Stanley.Yang" <[email protected]>Cc Wenhui Sheng <[email protected]>Cc chen gong <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-4@@ -1093,7 +1093,7 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +struct drm_driver amdgpu_kms_driver;static int amdgpu_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent)@@ -1164,7 +1164,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,if (ret)return ret; - adev =devm_drm_dev_alloc (&pdev->dev, &kms_driver,typeof (*adev), ddev); + adev =devm_drm_dev_alloc (&pdev->dev, &amdgpu_kms_driver,typeof (*adev), ddev);if (IS_ERR (adev))return PTR_ERR (adev);@@ -1508,7 +1508,7 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)return 0 ; } -static struct drm_driver kms_driver = { +struct drm_driver amdgpu_kms_driver = { .driver_features =DRIVER_ATOMIC | DRIVER_GEM |@@ -1571,7 +1571,7 @@ static int __init amdgpu_init(void) goto error_fence;DRM_INFO ("amdgpu kernel modesetting enabled.\n" ); - kms_driver.num_ioctls = amdgpu_max_kms_ioctl; + amdgpu_kms_driver.num_ioctls = amdgpu_max_kms_ioctl;amdgpu_register_atpx_handler ();/* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-1@@ -45,13 +45,23 @@ bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)return RREG32_NO_KIQ (0xc040 ) ==0xffffffff ; } +extern struct drm_driver amdgpu_kms_driver; +void amdgpu_virt_init_setting (struct amdgpu_device *adev) {/* enable virtual display */ if (adev->mode_info.num_crtc ==0 ) adev->mode_info.num_crtc =1 ; adev->enable_virtual_display = true; -adev_to_drm (adev)->driver->driver_features &= ~DRIVER_ATOMIC ; + +/* +* FIXME: Either make virt support atomic or make sure you have two Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) · line 63
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +5
-0+* drm_driver structs, these kind of tricks are only ok when there's +* guaranteed only a single device per system. This should also be done +* before struct drm_device is initialized. +*/ + amdgpu_kms_driver.driver_features &= ~DRIVER_ATOMIC ;There is additional
DRIVER_ATOMICinamdgpu_pci_probe()for older chips without atomic support.Quoted 5 lines
That would need to be fixed for making the amdgpu
drm_driverstructures constant, but that's not what I'm doing here. I'm only removing the usage of thedrm_device->driverpointer, to allow that to become constant. Untangling the flow to make theamdgpu_kms_driverconst looked a bit more involved than just a simple patch.Quoted 5 lines
On second look, this changes the
drm_device->driver_featuresflag, which was added to avoid having to change thedrm_driverone. So that's actually all ok (and just the virt code here is broken). But amdgpu also updatesnum_ioctland other stuff, and that's a fairly invasive patch.
Quoted 4 lines
We don't change the number of ioctls:
const intamdgpu_max_kms_ioctl=ARRAY_SIZE(amdgpu_ioctls_kms); So I think the only thing here is the driver features flag for the virt display code, or am I missing something?
You set the num_ioctl at runtime, not compile time. That's enough to prevent constification. Moving that around to make it compile time means a _lot_ of code shuffling, much more than I felt was a good idea for me to do :-)
And for the virt case you could use drm_device->driver_flags instead to avoid this.
Note I don't really care for this series whether you're changing your drm_driver at runtime or not, I just want to make it possible for drivers to make it const, which means drm_device->driver must be a const pointer. Whether you want to make the amdgpu drm_driver const or not is up to you. -Daniel
Quoted 40 lines
Alex
Quoted 36 lines
I'm also not sure whether this code here can just be switched over from
drm_driver->driver_featurestodrm_device->driver_features. So given all this, ok as-is and you guys figure out how to patch this properly, or want me to change something in this patch?Cheers, Daniel
Quoted 17 lines
Quoted 14 lines
Alex
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1
-1+ adev->cg_flags =0 ; adev->pg_flags =0 ; } --2.28.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-develQuoted 4 lines
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/5 drm: Allow const struct drm_driver
In reply to Daniel VetterIt's nice if a big function/ioctl table like this is const. Only downside here is that we need a few more #ifdef to paper over the differences when CONFIG_DRM_LEGACY is enabled. Maybe provides more motivation to sunset that horror show :-)
v2:
- Fix super important checkpatch warning (Sam)
- Update the kerneldoc example too (Sam)
--- drivers/gpu/drm/drm_drv.c | 17 +++++++++++------ include/drm/drm_device.h | 4 ++++ include/drm/drm_drv.h | 5 +++-- 3 files changed, 18 insertions(+), 8 deletions(-)
drivers/gpu/drm/drm_drv.c +11 -6
@@ -284,7 +284,7 @@ void drm_minor_release(struct drm_minor *minor)* struct clk *pclk; * }; * -* static struct drm_driver driver_drm_driver = { +* static const struct drm_driver driver_drm_driver = { * [...] * }; *
@@ -574,7 +574,7 @@ static void drm_dev_init_release(struct drm_device *dev, void *res) }static int drm_dev_init (struct drm_device *dev, -struct drm_driver *driver, +const struct drm_driver *driver,struct device *parent) {int ret;
@@ -589,7 +589,11 @@ static int drm_dev_init(struct drm_device *dev,kref_init (&dev->ref); dev->dev =get_device (parent); +#ifdef CONFIG_DRM_LEGACY + dev->driver = (struct drm_driver *)driver; +#else dev->driver = driver; +#endif INIT_LIST_HEAD (&dev->managed.resources);spin_lock_init (&dev->managed.lock);
@@ -663,7 +667,7 @@ static void devm_drm_dev_init_release(void *data)static int devm_drm_dev_init (struct device *parent,struct drm_device *dev, -struct drm_driver *driver) +const struct drm_driver *driver) {int ret;
@@ -678,7 +682,8 @@ static int devm_drm_dev_init(struct device *parent,return ret; } -void *__devm_drm_dev_alloc (struct device *parent,struct drm_driver *driver, +void *__devm_drm_dev_alloc (struct device *parent, +const struct drm_driver *driver,size_t size,size_t offset) {void *container;
@@ -713,7 +718,7 @@ EXPORT_SYMBOL(__devm_drm_dev_alloc);* RETURNS: * Pointer to new DRM device, or ERR_PTR on failure. */ -struct drm_device *drm_dev_alloc (struct drm_driver *driver, +struct drm_device *drm_dev_alloc (const struct drm_driver *driver,struct device *parent) {struct drm_device *dev;
@@ -858,7 +863,7 @@ static void remove_compat_control_link(struct drm_device *dev)*/ int drm_dev_register (struct drm_device *dev,unsigned long flags) { -struct drm_driver *driver = dev->driver; +const struct drm_driver *driver = dev->driver;int ret;if (!driver->load)
include/drm/drm_device.h +4 -0
@@ -83,7 +83,11 @@ struct drm_device { } managed;/** @driver: DRM driver managing the device */ +#ifdef CONFIG_DRM_LEGACY struct drm_driver *driver; +#else +const struct drm_driver *driver; +#endif /** * @dev_private:
include/drm/drm_drv.h +3 -2
@@ -516,7 +516,8 @@ struct drm_driver {#endif }; -void *__devm_drm_dev_alloc (struct device *parent,struct drm_driver *driver, +void *__devm_drm_dev_alloc (struct device *parent, +const struct drm_driver *driver,size_t size,size_t offset);/**
@@ -549,7 +550,7 @@ void *__devm_drm_dev_alloc(struct device *parent, struct drm_driver *driver, ((type *)__devm_drm_dev_alloc (parent, driver,sizeof (type), \ offsetof(type, member))) -struct drm_device *drm_dev_alloc (struct drm_driver *driver, +struct drm_device *drm_dev_alloc (const struct drm_driver *driver,struct device *parent);int drm_dev_register (struct drm_device *dev,unsigned long flags);void drm_dev_unregister (struct drm_device *dev);
Signature · 6 lines
2.28.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 4/5] drm: Allow const struct drm_driver
Quoted 10 lines · Daniel Vetter
It's nice if a big function/ioctl table like this is const. Only downside here is that we need a few more #ifdef to paper over the differences when
CONFIG_DRM_LEGACYis enabled. Maybe provides more motivation to sunset that horror show :-)v2:
- Fix super important checkpatch warning (Sam)
- Update the kerneldoc example too (Sam)
Quoted 11 lines
Acked-by Maxime Ripard <[email protected]>Reviewed-by Sam Ravnborg <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Thomas Zimmermann <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 119 lines
--- drivers/gpu/drm/drm_drv.c | 17 +++++++++++------ include/drm/drm_device.h | 4 ++++ include/drm/drm_drv.h | 5 +++-- 3 files changed, 18 insertions(+), 8 deletions(-)drivers/gpu/drm/drm_drv.c +11
-6@@ -284,7 +284,7 @@ void drm_minor_release(struct drm_minor *minor)* struct clk *pclk; * }; * -* static struct drm_driver driver_drm_driver = { +* static const struct drm_driver driver_drm_driver = { * [...] * }; * @@ -574,7 +574,7 @@ static void drm_dev_init_release(struct drm_device *dev, void *res) }static int drm_dev_init (struct drm_device *dev, -struct drm_driver *driver, +const struct drm_driver *driver,struct device *parent) {int ret;@@ -589,7 +589,11 @@ static int drm_dev_init(struct drm_device *dev,kref_init (&dev->ref); dev->dev =get_device (parent); +#ifdef CONFIG_DRM_LEGACY + dev->driver = (struct drm_driver *)driver; +#else dev->driver = driver; +#endif INIT_LIST_HEAD (&dev->managed.resources);spin_lock_init (&dev->managed.lock);@@ -663,7 +667,7 @@ static void devm_drm_dev_init_release(void *data)static int devm_drm_dev_init (struct device *parent,struct drm_device *dev, -struct drm_driver *driver) +const struct drm_driver *driver) {int ret;@@ -678,7 +682,8 @@ static int devm_drm_dev_init(struct device *parent,return ret; } -void *__devm_drm_dev_alloc (struct device *parent,struct drm_driver *driver, +void *__devm_drm_dev_alloc (struct device *parent, +const struct drm_driver *driver,size_t size,size_t offset) {void *container;@@ -713,7 +718,7 @@ EXPORT_SYMBOL(__devm_drm_dev_alloc);* RETURNS: * Pointer to new DRM device, or ERR_PTR on failure. */ -struct drm_device *drm_dev_alloc (struct drm_driver *driver, +struct drm_device *drm_dev_alloc (const struct drm_driver *driver,struct device *parent) {struct drm_device *dev;@@ -858,7 +863,7 @@ static void remove_compat_control_link(struct drm_device *dev)*/ int drm_dev_register (struct drm_device *dev,unsigned long flags) { -struct drm_driver *driver = dev->driver; +const struct drm_driver *driver = dev->driver;int ret;if (!driver->load)include/drm/drm_device.h +4
-0@@ -83,7 +83,11 @@ struct drm_device { } managed;/** @driver: DRM driver managing the device */ +#ifdef CONFIG_DRM_LEGACY struct drm_driver *driver; +#else +const struct drm_driver *driver; +#endif /** * @dev_private: include/drm/drm_drv.h +3
-3@@ -516,7 +516,8 @@ struct drm_driver {#endif }; -void *__devm_drm_dev_alloc (struct device *parent,struct drm_driver *driver, +void *__devm_drm_dev_alloc (struct device *parent, +const struct drm_driver *driver,size_t size,size_t offset);/** @@ -549,7 +550,7 @@ void *__devm_drm_dev_alloc(struct device *parent, struct drm_driver *driver, ((type *)__devm_drm_dev_alloc (parent, driver,sizeof (type), \ offsetof(type, member))) -struct drm_device *drm_dev_alloc (struct drm_driver *driver, +struct drm_device *drm_dev_alloc (const struct drm_driver *driver,struct device *parent);int drm_dev_register (struct drm_device *dev,unsigned long flags);void drm_dev_unregister (struct drm_device *dev); --2.28.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/5 drm/<drivers>: Constify struct drm_driver
In reply to Daniel VetterOnly the following drivers aren't converted:
- amdgpu, because of the driver_feature mangling due to virt support
- nouveau, because DRIVER_ATOMIC uapi is still not the default on the platforms where it's supported (i.e. again driver_feature mangling)
- vc4, again because of driver_feature mangling
- qxl, because the ioctl table is somewhere else and moving that is maybe a bit too much, hence the num_ioctls assignment prevents a const driver structure.
- arcpgu, because that is stuck behind a pending tiny-fication series from me.
- legacy drivers, because legacy requires non-const drm_driver.
Note that for armada I also went ahead and made the ioctl array const.
Only cc'ing the driver people who've not been converted (everyone else is way too much).
v2: Fix one misplaced const static, should be static const (0day)
v3:
- Improve commit message (Sam)
--- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 +- drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- drivers/gpu/drm/arm/malidp_drv.c | 2 +- drivers/gpu/drm/armada/armada_drv.c | 7 +++---- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.h | 2 +- drivers/gpu/drm/ast/ast_main.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/bochs/bochs_drv.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 5 ++--- drivers/gpu/drm/gma500/psb_drv.c | 4 ++-- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h | 2 +- drivers/gpu/drm/i915/i915_drv.c | 4 ++-- drivers/gpu/drm/i915/selftests/mock_gem_device.c | 2 +- drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 +- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- drivers/gpu/drm/lima/lima_drv.c | 2 +- drivers/gpu/drm/mcde/mcde_drv.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/meson/meson_drv.c | 2 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_drv.c | 4 ++-- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 4 ++-- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 +- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- drivers/gpu/drm/tegra/drm.c | 5 ++--- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- drivers/gpu/drm/tiny/cirrus.c | 2 +- drivers/gpu/drm/tiny/gm12u320.c | 2 +- drivers/gpu/drm/tiny/hx8357d.c | 2 +- drivers/gpu/drm/tiny/ili9225.c | 2 +- drivers/gpu/drm/tiny/ili9341.c | 2 +- drivers/gpu/drm/tiny/ili9486.c | 2 +- drivers/gpu/drm/tiny/mi0283qt.c | 2 +- drivers/gpu/drm/tiny/repaper.c | 2 +- drivers/gpu/drm/tiny/st7586.c | 2 +- drivers/gpu/drm/tiny/st7735r.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 2 +- drivers/gpu/drm/udl/udl_drv.c | 2 +- drivers/gpu/drm/v3d/v3d_drv.c | 2 +- drivers/gpu/drm/vboxvideo/vbox_drv.c | 4 ++-- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c | 4 ++-- drivers/gpu/drm/vkms/vkms_drv.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +- drivers/gpu/drm/xen/xen_drm_front.c | 2 +- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- drivers/gpu/drm/zte/zx_drm_drv.c | 2 +- 63 files changed, 75 insertions(+), 78 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1 -1
@@ -58,7 +58,7 @@ static irqreturn_t komeda_kms_irq_handler(int irq, void *data)return status; } -static struct drm_driver komeda_kms_driver = { +static const struct drm_driver komeda_kms_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (komeda_gem_cma_dumb_create),
drivers/gpu/drm/arm/hdlcd_drv.c +1 -1
@@ -234,7 +234,7 @@ static void hdlcd_debugfs_init(struct drm_minor *minor)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver hdlcd_driver = { +static const struct drm_driver hdlcd_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = hdlcd_irq, .irq_preinstall = hdlcd_irq_preinstall,
drivers/gpu/drm/arm/malidp_drv.c +1 -1
@@ -564,7 +564,7 @@ static void malidp_debugfs_init(struct drm_minor *minor)#endif //CONFIG_DEBUG_FS -static struct drm_driver malidp_driver = { +static const struct drm_driver malidp_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (malidp_dumb_create), #ifdef CONFIG_DEBUG_FS
drivers/gpu/drm/armada/armada_drv.c +3 -4
@@ -27,7 +27,7 @@#include <drm/armada_drm.h> #include "armada_ioctlP.h" -static struct drm_ioctl_desc armada_ioctls[] = { +static const struct drm_ioctl_desc armada_ioctls[] = {DRM_IOCTL_DEF_DRV (ARMADA_GEM_CREATE , armada_gem_create_ioctl,0 ),DRM_IOCTL_DEF_DRV (ARMADA_GEM_MMAP , armada_gem_mmap_ioctl,0 ),DRM_IOCTL_DEF_DRV (ARMADA_GEM_PWRITE , armada_gem_pwrite_ioctl,0 ),
@@ -35,7 +35,7 @@ static struct drm_ioctl_desc armada_ioctls[] = {DEFINE_DRM_GEM_FOPS (armada_drm_fops); -static struct drm_driver armada_drm_driver = { +static const struct drm_driver armada_drm_driver = { .lastclose = drm_fb_helper_lastclose, .prime_handle_to_fd = drm_gem_prime_handle_to_fd, .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
@@ -48,6 +48,7 @@ static struct drm_driver armada_drm_driver = { .date = "20120730", .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, .ioctls = armada_ioctls, + .num_ioctls = ARRAY_SIZE(armada_ioctls), .fops = &armada_drm_fops, };
@@ -275,8 +276,6 @@ static int __init armada_drm_init(void) {int ret; - armada_drm_driver.num_ioctls =ARRAY_SIZE (armada_ioctls); - ret =platform_driver_register (&armada_lcd_platform_driver);if (ret)return ret;
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +1 -1
@@ -191,7 +191,7 @@ static void aspeed_gfx_unload(struct drm_device *drm)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver aspeed_gfx_driver = { +static const struct drm_driver aspeed_gfx_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &fops,
drivers/gpu/drm/ast/ast_drv.c +1 -1
@@ -49,7 +49,7 @@ module_param_named(modeset, ast_modeset, int, 0400);DEFINE_DRM_GEM_FOPS (ast_fops); -static struct drm_driver ast_driver = { +static const struct drm_driver ast_driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET ,
drivers/gpu/drm/ast/ast_drv.h +1 -1
@@ -159,7 +159,7 @@ static inline struct ast_private *to_ast_private(struct drm_device *dev) return container_of(dev, struct ast_private, base); } -struct ast_private *ast_device_create (struct drm_driver *drv, +struct ast_private *ast_device_create (const struct drm_driver *drv,struct pci_dev *pdev,unsigned long flags);
drivers/gpu/drm/ast/ast_main.c +1 -1
@@ -392,7 +392,7 @@ static void ast_device_release(void *data)ast_set_index_reg (ast,AST_IO_CRTC_PORT ,0xa1 ,0x04 ); } -struct ast_private *ast_device_create (struct drm_driver *drv, +struct ast_private *ast_device_create (const struct drm_driver *drv,struct pci_dev *pdev,unsigned long flags) {
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
@@ -712,7 +712,7 @@ static void atmel_hlcdc_dc_irq_uninstall(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver atmel_hlcdc_dc_driver = { +static const struct drm_driver atmel_hlcdc_dc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = atmel_hlcdc_dc_irq_handler, .irq_preinstall = atmel_hlcdc_dc_irq_uninstall,
drivers/gpu/drm/bochs/bochs_drv.c +1 -1
@@ -57,7 +57,7 @@ static int bochs_load(struct drm_device *dev)DEFINE_DRM_GEM_FOPS (bochs_fops); -static struct drm_driver bochs_driver = { +static const struct drm_driver bochs_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &bochs_fops, .name ="bochs-drm" ,
drivers/gpu/drm/etnaviv/etnaviv_drv.c +1 -1
@@ -480,7 +480,7 @@ static const struct file_operations fops = { .mmap = etnaviv_gem_mmap, }; -static struct drm_driver etnaviv_drm_driver = { +static const struct drm_driver etnaviv_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER , .open = etnaviv_open, .postclose = etnaviv_postclose,
drivers/gpu/drm/exynos/exynos_drm_drv.c +1 -1
@@ -113,7 +113,7 @@ static const struct file_operations exynos_drm_driver_fops = { .release = drm_release, }; -static struct drm_driver exynos_drm_driver = { +static const struct drm_driver exynos_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = exynos_drm_open,
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +2 -3
@@ -124,7 +124,7 @@ static irqreturn_t fsl_dcu_drm_irq(int irq, void *arg)DEFINE_DRM_GEM_CMA_FOPS (fsl_dcu_drm_fops); -static struct drm_driver fsl_dcu_drm_driver = { +static const struct drm_driver fsl_dcu_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .load = fsl_dcu_load, .unload = fsl_dcu_unload,
@@ -224,7 +224,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev)struct device *dev = &pdev->dev;struct resource *res;void __iomem *base; -struct drm_driver *driver = &fsl_dcu_drm_driver;struct clk *pix_clk_in;char pix_clk_name[32 ];const char *pix_clk_in_name;
@@ -294,7 +293,7 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) fsl_dev->tcon =fsl_tcon_init (dev); - drm =drm_dev_alloc (driver, dev); + drm =drm_dev_alloc (&fsl_dcu_drm_driver, dev);if (IS_ERR (drm)) { ret =PTR_ERR (drm); goto unregister_pix_clk;
drivers/gpu/drm/gma500/psb_drv.c +2 -2
@@ -34,7 +34,7 @@#include "psb_intel_reg.h" #include "psb_reg.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int psb_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent);/*
@@ -491,7 +491,7 @@ static const struct file_operations psb_gem_fops = { .read = drm_read, }; -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM , .lastclose = drm_fb_helper_lastclose,
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +1 -1
@@ -43,7 +43,7 @@ static irqreturn_t hibmc_drm_interrupt(int irq, void *arg)return IRQ_HANDLED ; } -static struct drm_driver hibmc_driver = { +static const struct drm_driver hibmc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &hibmc_fops, .name ="hibmc" ,
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +1 -1
@@ -918,7 +918,7 @@ static const struct drm_mode_config_funcs ade_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (ade_fops); -static struct drm_driver ade_driver = { +static const struct drm_driver ade_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ade_fops,DRM_GEM_CMA_DRIVER_OPS ,
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h +1 -1
@@ -40,7 +40,7 @@ struct kirin_drm_data {u32 num_planes;u32 prim_plane; -struct drm_driver *driver; +const struct drm_driver *driver;const struct drm_crtc_helper_funcs *crtc_helper_funcs;const struct drm_crtc_funcs *crtc_funcs;const struct drm_plane_helper_funcs *plane_helper_funcs;
drivers/gpu/drm/i915/i915_drv.c +2 -2
@@ -87,7 +87,7 @@#include "intel_sideband.h" #include "vlv_suspend.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int i915_get_bridge_dev (struct drm_i915_private *dev_priv) {
@@ -1759,7 +1759,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = { DRM_IOCTL_DEF_DRV(I915_GEM_VM_DESTROY, i915_gem_vm_destroy_ioctl, DRM_RENDER_ALLOW), }; -static struct drm_driver driver = { +static const struct drm_driver driver = {/* Don't use MTRRs here; the Xserver or userspace app should * deal with them for Intel hardware. */
drivers/gpu/drm/i915/selftests/mock_gem_device.c +1 -1
@@ -81,7 +81,7 @@ static void mock_device_release(struct drm_device *dev)i915_params_free (&i915->params); } -static struct drm_driver mock_driver = { +static const struct drm_driver mock_driver = { .name ="mock" , .driver_features =DRIVER_GEM , .release = mock_device_release,
drivers/gpu/drm/imx/dcss/dcss-kms.c +1 -1
@@ -26,7 +26,7 @@ static const struct drm_mode_config_funcs dcss_drm_mode_config_funcs = { .atomic_commit = drm_atomic_helper_commit, }; -static struct drm_driver dcss_kms_driver = { +static const struct drm_driver dcss_kms_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &dcss_cma_fops,
drivers/gpu/drm/imx/imx-drm-core.c +1 -1
@@ -143,7 +143,7 @@ static const struct drm_ioctl_desc imx_drm_ioctls[] = {/* none so far */ }; -static struct drm_driver imx_drm_driver = { +static const struct drm_driver imx_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .ioctls = imx_drm_ioctls,
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +1 -1
@@ -710,7 +710,7 @@ static void ingenic_drm_disable_vblank(struct drm_crtc *crtc)DEFINE_DRM_GEM_CMA_FOPS (ingenic_drm_fops); -static struct drm_driver ingenic_drm_driver_data = { +static const struct drm_driver ingenic_drm_driver_data = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name ="ingenic-drm" , .desc ="DRM module for Ingenic SoCs" ,
drivers/gpu/drm/lima/lima_drv.c +1 -1
@@ -261,7 +261,7 @@ DEFINE_DRM_GEM_FOPS(lima_drm_driver_fops);* - 1.1.0 - add heap buffer support */ -static struct drm_driver lima_drm_driver = { +static const struct drm_driver lima_drm_driver = { .driver_features =DRIVER_RENDER |DRIVER_GEM |DRIVER_SYNCOBJ , .open = lima_drm_driver_open, .postclose = lima_drm_driver_postclose,
drivers/gpu/drm/mcde/mcde_drv.c +1 -1
@@ -178,7 +178,7 @@ static int mcde_modeset_init(struct drm_device *drm)DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver mcde_drm_driver = { +static const struct drm_driver mcde_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose,
drivers/gpu/drm/mediatek/mtk_drm_drv.c +1 -1
@@ -321,7 +321,7 @@ struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,return drm_gem_prime_import_dev (dev, dma_buf, private->dma_dev); } -static struct drm_driver mtk_drm_driver = { +static const struct drm_driver mtk_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .dumb_create = mtk_drm_gem_dumb_create,
drivers/gpu/drm/meson/meson_drv.c +1 -1
@@ -90,7 +90,7 @@ static int meson_dumb_create(struct drm_file *file, struct drm_device *dev,DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver meson_driver = { +static const struct drm_driver meson_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,/* IRQ */
drivers/gpu/drm/mgag200/mgag200_drv.c +1 -1
@@ -28,7 +28,7 @@ module_param_named(modeset, mgag200_modeset, int, 0400);DEFINE_DRM_GEM_FOPS (mgag200_driver_fops); -static struct drm_driver mgag200_driver = { +static const struct drm_driver mgag200_driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET , .fops = &mgag200_driver_fops, .name =DRIVER_NAME ,
drivers/gpu/drm/msm/msm_drv.c +2 -2
@@ -393,7 +393,7 @@ static int msm_init_vram(struct drm_device *dev)return ret; } -static int msm_drm_init (struct device *dev,struct drm_driver *drv) +static int msm_drm_init (struct device *dev,const struct drm_driver *drv) {struct platform_device *pdev =to_platform_device (dev);struct drm_device *ddev;
@@ -984,7 +984,7 @@ static const struct file_operations fops = { .mmap = msm_gem_mmap, }; -static struct drm_driver msm_driver = { +static const struct drm_driver msm_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER | DRIVER_ATOMIC |
drivers/gpu/drm/mxsfb/mxsfb_drv.c +1 -1
@@ -289,7 +289,7 @@ static irqreturn_t mxsfb_irq_handler(int irq, void *data)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver mxsfb_driver = { +static const struct drm_driver mxsfb_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = mxsfb_irq_handler, .irq_preinstall = mxsfb_irq_disable,
drivers/gpu/drm/omapdrm/omap_drv.c +1 -1
@@ -534,7 +534,7 @@ static const struct file_operations omapdriver_fops = { .llseek = noop_llseek, }; -static struct drm_driver omap_drm_driver = { +static const struct drm_driver omap_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = dev_open,
drivers/gpu/drm/panfrost/panfrost_drv.c +1 -1
@@ -548,7 +548,7 @@ DEFINE_DRM_GEM_FOPS(panfrost_drm_driver_fops);* - 1.0 - initial interface * - 1.1 - adds HEAP and NOEXEC flags for CREATE_BO */ -static struct drm_driver panfrost_drm_driver = { +static const struct drm_driver panfrost_drm_driver = { .driver_features =DRIVER_RENDER |DRIVER_GEM |DRIVER_SYNCOBJ , .open = panfrost_open, .postclose = panfrost_postclose,
drivers/gpu/drm/pl111/pl111_drv.c +1 -1
@@ -213,7 +213,7 @@ pl111_gem_import_sg_table(struct drm_device *dev,DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver pl111_drm_driver = { +static const struct drm_driver pl111_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .ioctls =NULL ,
drivers/gpu/drm/radeon/radeon_drv.c +2 -2
@@ -297,7 +297,7 @@ static struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +static const struct drm_driver kms_driver;bool radeon_device_is_virtual (void );
@@ -629,7 +629,7 @@ static const struct drm_ioctl_desc radeon_ioctls_kms[] = { DRM_IOCTL_DEF_DRV(RADEON_GEM_USERPTR, radeon_gem_userptr_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), }; -static struct drm_driver kms_driver = { +static const struct drm_driver kms_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER |DRIVER_MODESET , .load = radeon_driver_load_kms,
drivers/gpu/drm/rcar-du/rcar_du_drv.c +1 -1
@@ -507,7 +507,7 @@ MODULE_DEVICE_TABLE(of, rcar_du_of_table);DEFINE_DRM_GEM_CMA_FOPS (rcar_du_fops); -static struct drm_driver rcar_du_driver = { +static const struct drm_driver rcar_du_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (rcar_du_dumb_create), .fops = &rcar_du_fops,
drivers/gpu/drm/rockchip/rockchip_drm_drv.c +2 -2
@@ -35,7 +35,7 @@#define DRIVER_MINOR 0static bool is_support_iommu = true; -static struct drm_driver rockchip_drm_driver; +static const struct drm_driver rockchip_drm_driver;/* * Attach a (component) device to the shared drm dma mapping from master drm
@@ -209,7 +209,7 @@ static const struct file_operations rockchip_drm_driver_fops = { .release = drm_release, }; -static struct drm_driver rockchip_drm_driver = { +static const struct drm_driver rockchip_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose, .dumb_create = rockchip_gem_dumb_create,
drivers/gpu/drm/shmobile/shmob_drm_drv.c +1 -1
@@ -128,7 +128,7 @@ static irqreturn_t shmob_drm_irq(int irq, void *arg)DEFINE_DRM_GEM_CMA_FOPS (shmob_drm_fops); -static struct drm_driver shmob_drm_driver = { +static const struct drm_driver shmob_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET , .irq_handler = shmob_drm_irq,DRM_GEM_CMA_DRIVER_OPS ,
drivers/gpu/drm/sti/sti_drv.c +1 -1
@@ -130,7 +130,7 @@ static void sti_mode_config_init(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (sti_driver_fops); -static struct drm_driver sti_driver = { +static const struct drm_driver sti_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .fops = &sti_driver_fops,DRM_GEM_CMA_DRIVER_OPS ,
drivers/gpu/drm/stm/drv.c +1 -1
@@ -53,7 +53,7 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,DEFINE_DRM_GEM_CMA_FOPS (drv_driver_fops); -static struct drm_driver drv_driver = { +static const struct drm_driver drv_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name ="stm" , .desc ="STMicroelectronics SoC DRM" ,
drivers/gpu/drm/sun4i/sun4i_drv.c +1 -1
@@ -40,7 +40,7 @@ static int drm_sun4i_gem_dumb_create(struct drm_file *file_priv,DEFINE_DRM_GEM_CMA_FOPS (sun4i_drv_fops); -static struct drm_driver sun4i_drv_driver = { +static const struct drm_driver sun4i_drv_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,/* Generic Operations */
drivers/gpu/drm/tegra/drm.c +2 -3
@@ -850,7 +850,7 @@ static void tegra_debugfs_init(struct drm_minor *minor) }#endif -static struct drm_driver tegra_drm_driver = { +static const struct drm_driver tegra_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = tegra_drm_open,
@@ -1084,12 +1084,11 @@ static bool host1x_drm_wants_iommu(struct host1x_device *dev)static int host1x_drm_probe (struct host1x_device *dev) { -struct drm_driver *driver = &tegra_drm_driver;struct tegra_drm *tegra;struct drm_device *drm;int err; - drm =drm_dev_alloc (driver, &dev->dev); + drm =drm_dev_alloc (&tegra_drm_driver, &dev->dev);if (IS_ERR (drm))return PTR_ERR (drm);
drivers/gpu/drm/tidss/tidss_drv.c +1 -1
@@ -108,7 +108,7 @@ static void tidss_release(struct drm_device *ddev)DEFINE_DRM_GEM_CMA_FOPS (tidss_fops); -static struct drm_driver tidss_driver = { +static const struct drm_driver tidss_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &tidss_fops, .release = tidss_release,
drivers/gpu/drm/tilcdc/tilcdc_drv.c +2 -2
@@ -166,7 +166,7 @@ static void tilcdc_fini(struct drm_device *dev)drm_dev_put (dev); } -static int tilcdc_init (struct drm_driver *ddrv,struct device *dev) +static int tilcdc_init (const struct drm_driver *ddrv,struct device *dev) {struct drm_device *ddev;struct platform_device *pdev =to_platform_device (dev);
@@ -452,7 +452,7 @@ static void tilcdc_debugfs_init(struct drm_minor *minor)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver tilcdc_driver = { +static const struct drm_driver tilcdc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = tilcdc_irq,DRM_GEM_CMA_DRIVER_OPS ,
drivers/gpu/drm/tiny/cirrus.c +1 -1
@@ -536,7 +536,7 @@ static int cirrus_mode_config_init(struct cirrus_device *cirrus)DEFINE_DRM_GEM_FOPS (cirrus_fops); -static struct drm_driver cirrus_driver = { +static const struct drm_driver cirrus_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name =DRIVER_NAME ,
drivers/gpu/drm/tiny/gm12u320.c +1 -1
@@ -600,7 +600,7 @@ static const uint64_t gm12u320_pipe_modifiers[] = {DEFINE_DRM_GEM_FOPS (gm12u320_fops); -static struct drm_driver gm12u320_drm_driver = { +static const struct drm_driver gm12u320_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name =DRIVER_NAME ,
drivers/gpu/drm/tiny/hx8357d.c +1 -1
@@ -193,7 +193,7 @@ static const struct drm_display_mode yx350hv15_mode = {DEFINE_DRM_GEM_CMA_FOPS (hx8357d_fops); -static struct drm_driver hx8357d_driver = { +static const struct drm_driver hx8357d_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &hx8357d_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/ili9225.c +1 -1
@@ -337,7 +337,7 @@ static const struct drm_display_mode ili9225_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9225_fops); -static struct drm_driver ili9225_driver = { +static const struct drm_driver ili9225_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9225_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/ili9341.c +1 -1
@@ -149,7 +149,7 @@ static const struct drm_display_mode yx240qv29_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9341_fops); -static struct drm_driver ili9341_driver = { +static const struct drm_driver ili9341_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9341_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/ili9486.c +1 -1
@@ -162,7 +162,7 @@ static const struct drm_display_mode waveshare_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9486_fops); -static struct drm_driver ili9486_driver = { +static const struct drm_driver ili9486_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9486_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/mi0283qt.c +1 -1
@@ -153,7 +153,7 @@ static const struct drm_display_mode mi0283qt_mode = {DEFINE_DRM_GEM_CMA_FOPS (mi0283qt_fops); -static struct drm_driver mi0283qt_driver = { +static const struct drm_driver mi0283qt_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &mi0283qt_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/repaper.c +1 -1
@@ -936,7 +936,7 @@ static const u8 repaper_e2271cs021_cs[] = { 0x00, 0x00, 0x00, 0x7f,DEFINE_DRM_GEM_CMA_FOPS (repaper_fops); -static struct drm_driver repaper_driver = { +static const struct drm_driver repaper_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &repaper_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/st7586.c +1 -1
@@ -277,7 +277,7 @@ static const struct drm_display_mode st7586_mode = {DEFINE_DRM_GEM_CMA_FOPS (st7586_fops); -static struct drm_driver st7586_driver = { +static const struct drm_driver st7586_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &st7586_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tiny/st7735r.c +1 -1
@@ -154,7 +154,7 @@ static const struct st7735r_cfg rh128128t_cfg = {DEFINE_DRM_GEM_CMA_FOPS (st7735r_fops); -static struct drm_driver st7735r_driver = { +static const struct drm_driver st7735r_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &st7735r_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,
drivers/gpu/drm/tve200/tve200_drv.c +1 -1
@@ -137,7 +137,7 @@ static int tve200_modeset_init(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver tve200_drm_driver = { +static const struct drm_driver tve200_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .ioctls =NULL , .fops = &drm_fops,
drivers/gpu/drm/udl/udl_drv.c +1 -1
@@ -34,7 +34,7 @@ static int udl_usb_resume(struct usb_interface *interface)DEFINE_DRM_GEM_FOPS (udl_driver_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET ,/* GEM hooks */
drivers/gpu/drm/v3d/v3d_drv.c +1 -1
@@ -194,7 +194,7 @@ static const struct drm_ioctl_desc v3d_drm_ioctls[] = { DRM_IOCTL_DEF_DRV(V3D_SUBMIT_CSD, v3d_submit_csd_ioctl, DRM_RENDER_ALLOW | DRM_AUTH), }; -static struct drm_driver v3d_drm_driver = { +static const struct drm_driver v3d_drm_driver = { .driver_features = (DRIVER_GEM |DRIVER_RENDER |DRIVER_SYNCOBJ ),
drivers/gpu/drm/vboxvideo/vbox_drv.c +2 -2
@@ -26,7 +26,7 @@ static int vbox_modeset = -1;MODULE_PARM_DESC (modeset,"Disable/Enable modesetting" );module_param_named (modeset, vbox_modeset, int,0400 ); -static struct drm_driver driver; +static const struct drm_driver driver;static const struct pci_device_id pciidlist[] = { {PCI_DEVICE (0x80ee ,0xbeef ) },
@@ -175,7 +175,7 @@ static struct pci_driver vbox_pci_driver = {DEFINE_DRM_GEM_FOPS (vbox_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,
drivers/gpu/drm/vgem/vgem_drv.c +1 -1
@@ -415,7 +415,7 @@ static const struct drm_gem_object_funcs vgem_gem_object_funcs = { .vm_ops = &vgem_gem_vm_ops, }; -static struct drm_driver vgem_driver = { +static const struct drm_driver vgem_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER , .open = vgem_open, .postclose = vgem_postclose,
drivers/gpu/drm/virtio/virtgpu_drv.c +2 -2
@@ -37,7 +37,7 @@#include "virtgpu_drv.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int virtio_gpu_modeset =-1 ;
@@ -190,7 +190,7 @@ MODULE_AUTHOR("Alon Levy");DEFINE_DRM_GEM_FOPS (virtio_gpu_driver_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_RENDER |DRIVER_ATOMIC , .open = virtio_gpu_driver_open, .postclose = virtio_gpu_driver_postclose,
drivers/gpu/drm/vkms/vkms_drv.c +1 -1
@@ -78,7 +78,7 @@ static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state)drm_atomic_helper_cleanup_planes (dev, old_state); } -static struct drm_driver vkms_driver = { +static const struct drm_driver vkms_driver = { .driver_features =DRIVER_MODESET |DRIVER_ATOMIC |DRIVER_GEM , .release = vkms_release, .fops = &vkms_driver_fops,
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +1 -1
@@ -1465,7 +1465,7 @@ static const struct file_operations vmwgfx_driver_fops = { .get_unmapped_area = vmw_get_unmapped_area, }; -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_RENDER |DRIVER_ATOMIC , .ioctls = vmw_ioctls,
drivers/gpu/drm/xen/xen_drm_front.c +1 -1
@@ -483,7 +483,7 @@ static const struct file_operations xen_drm_dev_fops = { .mmap = xen_drm_front_gem_mmap, }; -static struct drm_driver xen_drm_driver = { +static const struct drm_driver xen_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .release = xen_drm_drv_release, .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
drivers/gpu/drm/xlnx/zynqmp_dpsub.c +1 -1
@@ -76,7 +76,7 @@ static const struct drm_mode_config_funcs zynqmp_dpsub_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (zynqmp_dpsub_drm_fops); -static struct drm_driver zynqmp_dpsub_drm_driver = { +static const struct drm_driver zynqmp_dpsub_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,
drivers/gpu/drm/zte/zx_drm_drv.c +1 -1
@@ -34,7 +34,7 @@ static const struct drm_mode_config_funcs zx_drm_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (zx_drm_fops); -static struct drm_driver zx_drm_driver = { +static const struct drm_driver zx_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &zx_drm_fops,
Signature · 6 lines
2.28.0 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
Re: [PATCH 5/5] drm/<drivers>: Constify struct drm_driver
Quoted 32 lines · Daniel Vetter
Only the following drivers aren't converted:
- amdgpu, because of thedriver_featuremangling due to virt support
- nouveau, becauseDRIVER_ATOMICuapi is still not the default on the platforms where it's supported (i.e. againdriver_featuremangling)
- vc4, again because ofdriver_featuremangling
- qxl, because the ioctl table is somewhere else and moving that is maybe a bit too much, hence thenum_ioctlsassignment prevents a const driver structure.
- arcpgu, because that is stuck behind a pending tiny-fication series from me.
- legacy drivers, because legacy requires non-constdrm_driver.Note that for armada I also went ahead and made the ioctl array const.
Only cc'ing the driver people who've not been converted (everyone else is way too much).
v2: Fix one misplaced const static, should be static const (0day)
v3:
- Improve commit message (Sam)Acked-by Sam Ravnborg <[email protected]>Cc kernel test robot <[email protected]>Acked-by Maxime Ripard <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Dave Airlie <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Harry Wentland <[email protected]>
Quoted 8 lines
Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc Christian König <[email protected]>Cc Eric Anholt <[email protected]>Cc Maxime Ripard <[email protected]>Cc Ben Skeggs <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 1,017 lines
--- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 +- drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- drivers/gpu/drm/arm/malidp_drv.c | 2 +- drivers/gpu/drm/armada/armada_drv.c | 7 +++---- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.h | 2 +- drivers/gpu/drm/ast/ast_main.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/bochs/bochs_drv.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 5 ++--- drivers/gpu/drm/gma500/psb_drv.c | 4 ++-- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h | 2 +- drivers/gpu/drm/i915/i915_drv.c | 4 ++-- drivers/gpu/drm/i915/selftests/mock_gem_device.c | 2 +- drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 +- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- drivers/gpu/drm/lima/lima_drv.c | 2 +- drivers/gpu/drm/mcde/mcde_drv.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/meson/meson_drv.c | 2 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- drivers/gpu/drm/omapdrm/omap_drv.c | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_drv.c | 4 ++-- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 4 ++-- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 +- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- drivers/gpu/drm/tegra/drm.c | 5 ++--- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++-- drivers/gpu/drm/tiny/cirrus.c | 2 +- drivers/gpu/drm/tiny/gm12u320.c | 2 +- drivers/gpu/drm/tiny/hx8357d.c | 2 +- drivers/gpu/drm/tiny/ili9225.c | 2 +- drivers/gpu/drm/tiny/ili9341.c | 2 +- drivers/gpu/drm/tiny/ili9486.c | 2 +- drivers/gpu/drm/tiny/mi0283qt.c | 2 +- drivers/gpu/drm/tiny/repaper.c | 2 +- drivers/gpu/drm/tiny/st7586.c | 2 +- drivers/gpu/drm/tiny/st7735r.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 2 +- drivers/gpu/drm/udl/udl_drv.c | 2 +- drivers/gpu/drm/v3d/v3d_drv.c | 2 +- drivers/gpu/drm/vboxvideo/vbox_drv.c | 4 ++-- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c | 4 ++-- drivers/gpu/drm/vkms/vkms_drv.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +- drivers/gpu/drm/xen/xen_drm_front.c | 2 +- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- drivers/gpu/drm/zte/zx_drm_drv.c | 2 +- 63 files changed, 75 insertions(+), 78 deletions(-)drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1
-1@@ -58,7 +58,7 @@ static irqreturn_t komeda_kms_irq_handler(int irq, void *data)return status; } -static struct drm_driver komeda_kms_driver = { +static const struct drm_driver komeda_kms_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (komeda_gem_cma_dumb_create),drivers/gpu/drm/arm/hdlcd_drv.c +1
-1@@ -234,7 +234,7 @@ static void hdlcd_debugfs_init(struct drm_minor *minor)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver hdlcd_driver = { +static const struct drm_driver hdlcd_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = hdlcd_irq, .irq_preinstall = hdlcd_irq_preinstall,drivers/gpu/drm/arm/malidp_drv.c +1
-1@@ -564,7 +564,7 @@ static void malidp_debugfs_init(struct drm_minor *minor)#endif //CONFIG_DEBUG_FS -static struct drm_driver malidp_driver = { +static const struct drm_driver malidp_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (malidp_dumb_create), #ifdef CONFIG_DEBUG_FSdrivers/gpu/drm/armada/armada_drv.c +3
-4@@ -27,7 +27,7 @@#include <drm/armada_drm.h> #include "armada_ioctlP.h" -static struct drm_ioctl_desc armada_ioctls[] = { +static const struct drm_ioctl_desc armada_ioctls[] = {DRM_IOCTL_DEF_DRV (ARMADA_GEM_CREATE , armada_gem_create_ioctl,0 ),DRM_IOCTL_DEF_DRV (ARMADA_GEM_MMAP , armada_gem_mmap_ioctl,0 ),DRM_IOCTL_DEF_DRV (ARMADA_GEM_PWRITE , armada_gem_pwrite_ioctl,0 ),@@ -35,7 +35,7 @@ static struct drm_ioctl_desc armada_ioctls[] = {DEFINE_DRM_GEM_FOPS (armada_drm_fops); -static struct drm_driver armada_drm_driver = { +static const struct drm_driver armada_drm_driver = { .lastclose = drm_fb_helper_lastclose, .prime_handle_to_fd = drm_gem_prime_handle_to_fd, .prime_fd_to_handle = drm_gem_prime_fd_to_handle,@@ -48,6 +48,7 @@ static struct drm_driver armada_drm_driver = { .date = "20120730", .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, .ioctls = armada_ioctls, + .num_ioctls = ARRAY_SIZE(armada_ioctls), .fops = &armada_drm_fops, };@@ -275,8 +276,6 @@ static int __init armada_drm_init(void) {int ret; - armada_drm_driver.num_ioctls =ARRAY_SIZE (armada_ioctls); - ret =platform_driver_register (&armada_lcd_platform_driver);if (ret)return ret;drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +1
-1@@ -191,7 +191,7 @@ static void aspeed_gfx_unload(struct drm_device *drm)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver aspeed_gfx_driver = { +static const struct drm_driver aspeed_gfx_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &fops,drivers/gpu/drm/ast/ast_drv.c +1
-1@@ -49,7 +49,7 @@ module_param_named(modeset, ast_modeset, int, 0400);DEFINE_DRM_GEM_FOPS (ast_fops); -static struct drm_driver ast_driver = { +static const struct drm_driver ast_driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET ,drivers/gpu/drm/ast/ast_drv.h +1
-1@@ -159,7 +159,7 @@ static inline struct ast_private *to_ast_private(struct drm_device *dev) return container_of(dev, struct ast_private, base); } -struct ast_private *ast_device_create (struct drm_driver *drv, +struct ast_private *ast_device_create (const struct drm_driver *drv,struct pci_dev *pdev,unsigned long flags);drivers/gpu/drm/ast/ast_main.c +1
-1@@ -392,7 +392,7 @@ static void ast_device_release(void *data)ast_set_index_reg (ast,AST_IO_CRTC_PORT ,0xa1 ,0x04 ); } -struct ast_private *ast_device_create (struct drm_driver *drv, +struct ast_private *ast_device_create (const struct drm_driver *drv,struct pci_dev *pdev,unsigned long flags) {drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1
-1@@ -712,7 +712,7 @@ static void atmel_hlcdc_dc_irq_uninstall(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver atmel_hlcdc_dc_driver = { +static const struct drm_driver atmel_hlcdc_dc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = atmel_hlcdc_dc_irq_handler, .irq_preinstall = atmel_hlcdc_dc_irq_uninstall,drivers/gpu/drm/bochs/bochs_drv.c +1
-1@@ -57,7 +57,7 @@ static int bochs_load(struct drm_device *dev)DEFINE_DRM_GEM_FOPS (bochs_fops); -static struct drm_driver bochs_driver = { +static const struct drm_driver bochs_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &bochs_fops, .name ="bochs-drm" ,drivers/gpu/drm/etnaviv/etnaviv_drv.c +1
-1@@ -480,7 +480,7 @@ static const struct file_operations fops = { .mmap = etnaviv_gem_mmap, }; -static struct drm_driver etnaviv_drm_driver = { +static const struct drm_driver etnaviv_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER , .open = etnaviv_open, .postclose = etnaviv_postclose,drivers/gpu/drm/exynos/exynos_drm_drv.c +1
-1@@ -113,7 +113,7 @@ static const struct file_operations exynos_drm_driver_fops = { .release = drm_release, }; -static struct drm_driver exynos_drm_driver = { +static const struct drm_driver exynos_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = exynos_drm_open,drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +2
-3@@ -124,7 +124,7 @@ static irqreturn_t fsl_dcu_drm_irq(int irq, void *arg)DEFINE_DRM_GEM_CMA_FOPS (fsl_dcu_drm_fops); -static struct drm_driver fsl_dcu_drm_driver = { +static const struct drm_driver fsl_dcu_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .load = fsl_dcu_load, .unload = fsl_dcu_unload,@@ -224,7 +224,6 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev)struct device *dev = &pdev->dev;struct resource *res;void __iomem *base; -struct drm_driver *driver = &fsl_dcu_drm_driver;struct clk *pix_clk_in;char pix_clk_name[32 ];const char *pix_clk_in_name;@@ -294,7 +293,7 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev) fsl_dev->tcon =fsl_tcon_init (dev); - drm =drm_dev_alloc (driver, dev); + drm =drm_dev_alloc (&fsl_dcu_drm_driver, dev);if (IS_ERR (drm)) { ret =PTR_ERR (drm); goto unregister_pix_clk;drivers/gpu/drm/gma500/psb_drv.c +2
-2@@ -34,7 +34,7 @@#include "psb_intel_reg.h" #include "psb_reg.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int psb_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent);/* @@ -491,7 +491,7 @@ static const struct file_operations psb_gem_fops = { .read = drm_read, }; -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM , .lastclose = drm_fb_helper_lastclose,drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +1
-1@@ -43,7 +43,7 @@ static irqreturn_t hibmc_drm_interrupt(int irq, void *arg)return IRQ_HANDLED ; } -static struct drm_driver hibmc_driver = { +static const struct drm_driver hibmc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &hibmc_fops, .name ="hibmc" ,drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +1
-1@@ -918,7 +918,7 @@ static const struct drm_mode_config_funcs ade_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (ade_fops); -static struct drm_driver ade_driver = { +static const struct drm_driver ade_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ade_fops,DRM_GEM_CMA_DRIVER_OPS ,drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h +1
-1@@ -40,7 +40,7 @@ struct kirin_drm_data {u32 num_planes;u32 prim_plane; -struct drm_driver *driver; +const struct drm_driver *driver;const struct drm_crtc_helper_funcs *crtc_helper_funcs;const struct drm_crtc_funcs *crtc_funcs;const struct drm_plane_helper_funcs *plane_helper_funcs;drivers/gpu/drm/i915/i915_drv.c +2
-2@@ -87,7 +87,7 @@#include "intel_sideband.h" #include "vlv_suspend.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int i915_get_bridge_dev (struct drm_i915_private *dev_priv) {@@ -1759,7 +1759,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = { DRM_IOCTL_DEF_DRV(I915_GEM_VM_DESTROY, i915_gem_vm_destroy_ioctl, DRM_RENDER_ALLOW), }; -static struct drm_driver driver = { +static const struct drm_driver driver = {/* Don't use MTRRs here; the Xserver or userspace app should * deal with them for Intel hardware. */ drivers/gpu/drm/i915/selftests/mock_gem_device.c +1
-1@@ -81,7 +81,7 @@ static void mock_device_release(struct drm_device *dev)i915_params_free (&i915->params); } -static struct drm_driver mock_driver = { +static const struct drm_driver mock_driver = { .name ="mock" , .driver_features =DRIVER_GEM , .release = mock_device_release,drivers/gpu/drm/imx/dcss/dcss-kms.c +1
-1@@ -26,7 +26,7 @@ static const struct drm_mode_config_funcs dcss_drm_mode_config_funcs = { .atomic_commit = drm_atomic_helper_commit, }; -static struct drm_driver dcss_kms_driver = { +static const struct drm_driver dcss_kms_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &dcss_cma_fops,drivers/gpu/drm/imx/imx-drm-core.c +1
-1@@ -143,7 +143,7 @@ static const struct drm_ioctl_desc imx_drm_ioctls[] = {/* none so far */ }; -static struct drm_driver imx_drm_driver = { +static const struct drm_driver imx_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .ioctls = imx_drm_ioctls,drivers/gpu/drm/ingenic/ingenic-drm-drv.c +1
-1@@ -710,7 +710,7 @@ static void ingenic_drm_disable_vblank(struct drm_crtc *crtc)DEFINE_DRM_GEM_CMA_FOPS (ingenic_drm_fops); -static struct drm_driver ingenic_drm_driver_data = { +static const struct drm_driver ingenic_drm_driver_data = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name ="ingenic-drm" , .desc ="DRM module for Ingenic SoCs" ,drivers/gpu/drm/lima/lima_drv.c +1
-1@@ -261,7 +261,7 @@ DEFINE_DRM_GEM_FOPS(lima_drm_driver_fops);* - 1.1.0 - add heap buffer support */ -static struct drm_driver lima_drm_driver = { +static const struct drm_driver lima_drm_driver = { .driver_features =DRIVER_RENDER |DRIVER_GEM |DRIVER_SYNCOBJ , .open = lima_drm_driver_open, .postclose = lima_drm_driver_postclose,drivers/gpu/drm/mcde/mcde_drv.c +1
-1@@ -178,7 +178,7 @@ static int mcde_modeset_init(struct drm_device *drm)DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver mcde_drm_driver = { +static const struct drm_driver mcde_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose,drivers/gpu/drm/mediatek/mtk_drm_drv.c +1
-1@@ -321,7 +321,7 @@ struct drm_gem_object *mtk_drm_gem_prime_import(struct drm_device *dev,return drm_gem_prime_import_dev (dev, dma_buf, private->dma_dev); } -static struct drm_driver mtk_drm_driver = { +static const struct drm_driver mtk_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .dumb_create = mtk_drm_gem_dumb_create,drivers/gpu/drm/meson/meson_drv.c +1
-1@@ -90,7 +90,7 @@ static int meson_dumb_create(struct drm_file *file, struct drm_device *dev,DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver meson_driver = { +static const struct drm_driver meson_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,/* IRQ */ drivers/gpu/drm/mgag200/mgag200_drv.c +1
-1@@ -28,7 +28,7 @@ module_param_named(modeset, mgag200_modeset, int, 0400);DEFINE_DRM_GEM_FOPS (mgag200_driver_fops); -static struct drm_driver mgag200_driver = { +static const struct drm_driver mgag200_driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET , .fops = &mgag200_driver_fops, .name =DRIVER_NAME ,drivers/gpu/drm/msm/msm_drv.c +2
-2@@ -393,7 +393,7 @@ static int msm_init_vram(struct drm_device *dev)return ret; } -static int msm_drm_init (struct device *dev,struct drm_driver *drv) +static int msm_drm_init (struct device *dev,const struct drm_driver *drv) {struct platform_device *pdev =to_platform_device (dev);struct drm_device *ddev;@@ -984,7 +984,7 @@ static const struct file_operations fops = { .mmap = msm_gem_mmap, }; -static struct drm_driver msm_driver = { +static const struct drm_driver msm_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER | DRIVER_ATOMIC |drivers/gpu/drm/mxsfb/mxsfb_drv.c +1
-1@@ -289,7 +289,7 @@ static irqreturn_t mxsfb_irq_handler(int irq, void *data)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver mxsfb_driver = { +static const struct drm_driver mxsfb_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = mxsfb_irq_handler, .irq_preinstall = mxsfb_irq_disable,drivers/gpu/drm/omapdrm/omap_drv.c +1
-1@@ -534,7 +534,7 @@ static const struct file_operations omapdriver_fops = { .llseek = noop_llseek, }; -static struct drm_driver omap_drm_driver = { +static const struct drm_driver omap_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = dev_open,drivers/gpu/drm/panfrost/panfrost_drv.c +1
-1@@ -548,7 +548,7 @@ DEFINE_DRM_GEM_FOPS(panfrost_drm_driver_fops);* - 1.0 - initial interface * - 1.1 - adds HEAP and NOEXEC flags for CREATE_BO */ -static struct drm_driver panfrost_drm_driver = { +static const struct drm_driver panfrost_drm_driver = { .driver_features =DRIVER_RENDER |DRIVER_GEM |DRIVER_SYNCOBJ , .open = panfrost_open, .postclose = panfrost_postclose,drivers/gpu/drm/pl111/pl111_drv.c +1
-1@@ -213,7 +213,7 @@ pl111_gem_import_sg_table(struct drm_device *dev,DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver pl111_drm_driver = { +static const struct drm_driver pl111_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .ioctls =NULL ,drivers/gpu/drm/radeon/radeon_drv.c +2
-2@@ -297,7 +297,7 @@ static struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); -static struct drm_driver kms_driver; +static const struct drm_driver kms_driver;bool radeon_device_is_virtual (void );@@ -629,7 +629,7 @@ static const struct drm_ioctl_desc radeon_ioctls_kms[] = { DRM_IOCTL_DEF_DRV(RADEON_GEM_USERPTR, radeon_gem_userptr_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), }; -static struct drm_driver kms_driver = { +static const struct drm_driver kms_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER |DRIVER_MODESET , .load = radeon_driver_load_kms,drivers/gpu/drm/rcar-du/rcar_du_drv.c +1
-1@@ -507,7 +507,7 @@ MODULE_DEVICE_TABLE(of, rcar_du_of_table);DEFINE_DRM_GEM_CMA_FOPS (rcar_du_fops); -static struct drm_driver rcar_du_driver = { +static const struct drm_driver rcar_du_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (rcar_du_dumb_create), .fops = &rcar_du_fops,drivers/gpu/drm/rockchip/rockchip_drm_drv.c +2
-2@@ -35,7 +35,7 @@#define DRIVER_MINOR 0static bool is_support_iommu = true; -static struct drm_driver rockchip_drm_driver; +static const struct drm_driver rockchip_drm_driver;/* * Attach a (component) device to the shared drm dma mapping from master drm @@ -209,7 +209,7 @@ static const struct file_operations rockchip_drm_driver_fops = { .release = drm_release, }; -static struct drm_driver rockchip_drm_driver = { +static const struct drm_driver rockchip_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .lastclose = drm_fb_helper_lastclose, .dumb_create = rockchip_gem_dumb_create,drivers/gpu/drm/shmobile/shmob_drm_drv.c +1
-1@@ -128,7 +128,7 @@ static irqreturn_t shmob_drm_irq(int irq, void *arg)DEFINE_DRM_GEM_CMA_FOPS (shmob_drm_fops); -static struct drm_driver shmob_drm_driver = { +static const struct drm_driver shmob_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET , .irq_handler = shmob_drm_irq,DRM_GEM_CMA_DRIVER_OPS ,drivers/gpu/drm/sti/sti_drv.c +1
-1@@ -130,7 +130,7 @@ static void sti_mode_config_init(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (sti_driver_fops); -static struct drm_driver sti_driver = { +static const struct drm_driver sti_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .fops = &sti_driver_fops,DRM_GEM_CMA_DRIVER_OPS ,drivers/gpu/drm/stm/drv.c +1
-1@@ -53,7 +53,7 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,DEFINE_DRM_GEM_CMA_FOPS (drv_driver_fops); -static struct drm_driver drv_driver = { +static const struct drm_driver drv_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name ="stm" , .desc ="STMicroelectronics SoC DRM" ,drivers/gpu/drm/sun4i/sun4i_drv.c +1
-1@@ -40,7 +40,7 @@ static int drm_sun4i_gem_dumb_create(struct drm_file *file_priv,DEFINE_DRM_GEM_CMA_FOPS (sun4i_drv_fops); -static struct drm_driver sun4i_drv_driver = { +static const struct drm_driver sun4i_drv_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,/* Generic Operations */ drivers/gpu/drm/tegra/drm.c +2
-3@@ -850,7 +850,7 @@ static void tegra_debugfs_init(struct drm_minor *minor) }#endif -static struct drm_driver tegra_drm_driver = { +static const struct drm_driver tegra_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC |DRIVER_RENDER , .open = tegra_drm_open,@@ -1084,12 +1084,11 @@ static bool host1x_drm_wants_iommu(struct host1x_device *dev)static int host1x_drm_probe (struct host1x_device *dev) { -struct drm_driver *driver = &tegra_drm_driver;struct tegra_drm *tegra;struct drm_device *drm;int err; - drm =drm_dev_alloc (driver, &dev->dev); + drm =drm_dev_alloc (&tegra_drm_driver, &dev->dev);if (IS_ERR (drm))return PTR_ERR (drm);drivers/gpu/drm/tidss/tidss_drv.c +1
-1@@ -108,7 +108,7 @@ static void tidss_release(struct drm_device *ddev)DEFINE_DRM_GEM_CMA_FOPS (tidss_fops); -static struct drm_driver tidss_driver = { +static const struct drm_driver tidss_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &tidss_fops, .release = tidss_release,drivers/gpu/drm/tilcdc/tilcdc_drv.c +2
-2@@ -166,7 +166,7 @@ static void tilcdc_fini(struct drm_device *dev)drm_dev_put (dev); } -static int tilcdc_init (struct drm_driver *ddrv,struct device *dev) +static int tilcdc_init (const struct drm_driver *ddrv,struct device *dev) {struct drm_device *ddev;struct platform_device *pdev =to_platform_device (dev);@@ -452,7 +452,7 @@ static void tilcdc_debugfs_init(struct drm_minor *minor)DEFINE_DRM_GEM_CMA_FOPS (fops); -static struct drm_driver tilcdc_driver = { +static const struct drm_driver tilcdc_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .irq_handler = tilcdc_irq,DRM_GEM_CMA_DRIVER_OPS ,drivers/gpu/drm/tiny/cirrus.c +1
-1@@ -536,7 +536,7 @@ static int cirrus_mode_config_init(struct cirrus_device *cirrus)DEFINE_DRM_GEM_FOPS (cirrus_fops); -static struct drm_driver cirrus_driver = { +static const struct drm_driver cirrus_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name =DRIVER_NAME ,drivers/gpu/drm/tiny/gm12u320.c +1
-1@@ -600,7 +600,7 @@ static const uint64_t gm12u320_pipe_modifiers[] = {DEFINE_DRM_GEM_FOPS (gm12u320_fops); -static struct drm_driver gm12u320_drm_driver = { +static const struct drm_driver gm12u320_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .name =DRIVER_NAME ,drivers/gpu/drm/tiny/hx8357d.c +1
-1@@ -193,7 +193,7 @@ static const struct drm_display_mode yx350hv15_mode = {DEFINE_DRM_GEM_CMA_FOPS (hx8357d_fops); -static struct drm_driver hx8357d_driver = { +static const struct drm_driver hx8357d_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &hx8357d_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/ili9225.c +1
-1@@ -337,7 +337,7 @@ static const struct drm_display_mode ili9225_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9225_fops); -static struct drm_driver ili9225_driver = { +static const struct drm_driver ili9225_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9225_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/ili9341.c +1
-1@@ -149,7 +149,7 @@ static const struct drm_display_mode yx240qv29_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9341_fops); -static struct drm_driver ili9341_driver = { +static const struct drm_driver ili9341_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9341_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/ili9486.c +1
-1@@ -162,7 +162,7 @@ static const struct drm_display_mode waveshare_mode = {DEFINE_DRM_GEM_CMA_FOPS (ili9486_fops); -static struct drm_driver ili9486_driver = { +static const struct drm_driver ili9486_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &ili9486_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/mi0283qt.c +1
-1@@ -153,7 +153,7 @@ static const struct drm_display_mode mi0283qt_mode = {DEFINE_DRM_GEM_CMA_FOPS (mi0283qt_fops); -static struct drm_driver mi0283qt_driver = { +static const struct drm_driver mi0283qt_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &mi0283qt_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/repaper.c +1
-1@@ -936,7 +936,7 @@ static const u8 repaper_e2271cs021_cs[] = { 0x00, 0x00, 0x00, 0x7f,DEFINE_DRM_GEM_CMA_FOPS (repaper_fops); -static struct drm_driver repaper_driver = { +static const struct drm_driver repaper_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &repaper_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/st7586.c +1
-1@@ -277,7 +277,7 @@ static const struct drm_display_mode st7586_mode = {DEFINE_DRM_GEM_CMA_FOPS (st7586_fops); -static struct drm_driver st7586_driver = { +static const struct drm_driver st7586_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &st7586_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tiny/st7735r.c +1
-1@@ -154,7 +154,7 @@ static const struct st7735r_cfg rh128128t_cfg = {DEFINE_DRM_GEM_CMA_FOPS (st7735r_fops); -static struct drm_driver st7735r_driver = { +static const struct drm_driver st7735r_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .fops = &st7735r_fops,DRM_GEM_CMA_DRIVER_OPS_VMAP ,drivers/gpu/drm/tve200/tve200_drv.c +1
-1@@ -137,7 +137,7 @@ static int tve200_modeset_init(struct drm_device *dev)DEFINE_DRM_GEM_CMA_FOPS (drm_fops); -static struct drm_driver tve200_drm_driver = { +static const struct drm_driver tve200_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , .ioctls =NULL , .fops = &drm_fops,drivers/gpu/drm/udl/udl_drv.c +1
-1@@ -34,7 +34,7 @@ static int udl_usb_resume(struct usb_interface *interface)DEFINE_DRM_GEM_FOPS (udl_driver_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_ATOMIC |DRIVER_GEM |DRIVER_MODESET ,/* GEM hooks */ drivers/gpu/drm/v3d/v3d_drv.c +1
-1@@ -194,7 +194,7 @@ static const struct drm_ioctl_desc v3d_drm_ioctls[] = { DRM_IOCTL_DEF_DRV(V3D_SUBMIT_CSD, v3d_submit_csd_ioctl, DRM_RENDER_ALLOW | DRM_AUTH), }; -static struct drm_driver v3d_drm_driver = { +static const struct drm_driver v3d_drm_driver = { .driver_features = (DRIVER_GEM |DRIVER_RENDER |DRIVER_SYNCOBJ ),drivers/gpu/drm/vboxvideo/vbox_drv.c +2
-2@@ -26,7 +26,7 @@ static int vbox_modeset = -1;MODULE_PARM_DESC (modeset,"Disable/Enable modesetting" );module_param_named (modeset, vbox_modeset, int,0400 ); -static struct drm_driver driver; +static const struct drm_driver driver;static const struct pci_device_id pciidlist[] = { {PCI_DEVICE (0x80ee ,0xbeef ) },@@ -175,7 +175,7 @@ static struct pci_driver vbox_pci_driver = {DEFINE_DRM_GEM_FOPS (vbox_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,drivers/gpu/drm/vgem/vgem_drv.c +1
-1@@ -415,7 +415,7 @@ static const struct drm_gem_object_funcs vgem_gem_object_funcs = { .vm_ops = &vgem_gem_vm_ops, }; -static struct drm_driver vgem_driver = { +static const struct drm_driver vgem_driver = { .driver_features =DRIVER_GEM |DRIVER_RENDER , .open = vgem_open, .postclose = vgem_postclose,drivers/gpu/drm/virtio/virtgpu_drv.c +2
-2@@ -37,7 +37,7 @@#include "virtgpu_drv.h" -static struct drm_driver driver; +static const struct drm_driver driver;static int virtio_gpu_modeset =-1 ;@@ -190,7 +190,7 @@ MODULE_AUTHOR("Alon Levy");DEFINE_DRM_GEM_FOPS (virtio_gpu_driver_fops); -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_RENDER |DRIVER_ATOMIC , .open = virtio_gpu_driver_open, .postclose = virtio_gpu_driver_postclose,drivers/gpu/drm/vkms/vkms_drv.c +1
-1@@ -78,7 +78,7 @@ static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state)drm_atomic_helper_cleanup_planes (dev, old_state); } -static struct drm_driver vkms_driver = { +static const struct drm_driver vkms_driver = { .driver_features =DRIVER_MODESET |DRIVER_ATOMIC |DRIVER_GEM , .release = vkms_release, .fops = &vkms_driver_fops,drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +1
-1@@ -1465,7 +1465,7 @@ static const struct file_operations vmwgfx_driver_fops = { .get_unmapped_area = vmw_get_unmapped_area, }; -static struct drm_driver driver = { +static const struct drm_driver driver = { .driver_features =DRIVER_MODESET |DRIVER_RENDER |DRIVER_ATOMIC , .ioctls = vmw_ioctls,drivers/gpu/drm/xen/xen_drm_front.c +1
-1@@ -483,7 +483,7 @@ static const struct file_operations xen_drm_dev_fops = { .mmap = xen_drm_front_gem_mmap, }; -static struct drm_driver xen_drm_driver = { +static const struct drm_driver xen_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , .release = xen_drm_drv_release, .prime_handle_to_fd = drm_gem_prime_handle_to_fd,drivers/gpu/drm/xlnx/zynqmp_dpsub.c +1
-1@@ -76,7 +76,7 @@ static const struct drm_mode_config_funcs zynqmp_dpsub_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (zynqmp_dpsub_drm_fops); -static struct drm_driver zynqmp_dpsub_drm_driver = { +static const struct drm_driver zynqmp_dpsub_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC ,drivers/gpu/drm/zte/zx_drm_drv.c +1
-2@@ -34,7 +34,7 @@ static const struct drm_mode_config_funcs zx_drm_mode_config_funcs = {DEFINE_DRM_GEM_CMA_FOPS (zx_drm_fops); -static struct drm_driver zx_drm_driver = { +static const struct drm_driver zx_drm_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC ,DRM_GEM_CMA_DRIVER_OPS , .fops = &zx_drm_fops, --2.28.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
URL : https://patchwork.freedesktop.org/series/83262/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip db362a15426f drm/radeon: Stop changing the drm_driver struct -:60: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #60: FILE: drivers/gpu/drm/radeon/radeon_drv.c:587: + DRM_IOCTL_DEF_DRV(RADEON_CP_INIT, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY), ^
-:60: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #60: FILE: drivers/gpu/drm/radeon/radeon_drv.c:587:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_INIT, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:61: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #61: FILE: drivers/gpu/drm/radeon/radeon_drv.c:588:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_START, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:61: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #61: FILE: drivers/gpu/drm/radeon/radeon_drv.c:588:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_START, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:62: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #62: FILE: drivers/gpu/drm/radeon/radeon_drv.c:589:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_STOP, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:62: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #62: FILE: drivers/gpu/drm/radeon/radeon_drv.c:589:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_STOP, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:63: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #63: FILE: drivers/gpu/drm/radeon/radeon_drv.c:590:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_RESET, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:63: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #63: FILE: drivers/gpu/drm/radeon/radeon_drv.c:590:
+ DRM_IOCTL_DEF_DRV(RADEON_CP_RESET, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:74: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #74: FILE: drivers/gpu/drm/radeon/radeon_drv.c:601:
+ DRM_IOCTL_DEF_DRV(RADEON_INDIRECT, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:74: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #74: FILE: drivers/gpu/drm/radeon/radeon_drv.c:601:
+ DRM_IOCTL_DEF_DRV(RADEON_INDIRECT, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:81: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #81: FILE: drivers/gpu/drm/radeon/radeon_drv.c:608:
+ DRM_IOCTL_DEF_DRV(RADEON_INIT_HEAP, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:81: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #81: FILE: drivers/gpu/drm/radeon/radeon_drv.c:608:
+ DRM_IOCTL_DEF_DRV(RADEON_INIT_HEAP, drm_invalid_op, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
^
-:88: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #88: FILE: drivers/gpu/drm/radeon/radeon_drv.c:615:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_INFO, radeon_gem_info_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:89: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #89: FILE: drivers/gpu/drm/radeon/radeon_drv.c:616:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_CREATE, radeon_gem_create_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:90: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #90: FILE: drivers/gpu/drm/radeon/radeon_drv.c:617:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_MMAP, radeon_gem_mmap_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:91: WARNING:LONG_LINE: line length of 105 exceeds 100 columns #91: FILE: drivers/gpu/drm/radeon/radeon_drv.c:618:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_SET_DOMAIN, radeon_gem_set_domain_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
-:91: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV)
#91: FILE: drivers/gpu/drm/radeon/radeon_drv.c:618:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_SET_DOMAIN, radeon_gem_set_domain_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:94: WARNING:LONG_LINE: line length of 103 exceeds 100 columns #94: FILE: drivers/gpu/drm/radeon/radeon_drv.c:621:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_WAIT_IDLE, radeon_gem_wait_idle_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
-:94: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV)
#94: FILE: drivers/gpu/drm/radeon/radeon_drv.c:621:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_WAIT_IDLE, radeon_gem_wait_idle_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:95: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #95: FILE: drivers/gpu/drm/radeon/radeon_drv.c:622:
+ DRM_IOCTL_DEF_DRV(RADEON_CS, radeon_cs_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:96: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #96: FILE: drivers/gpu/drm/radeon/radeon_drv.c:623:
+ DRM_IOCTL_DEF_DRV(RADEON_INFO, radeon_info_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:97: WARNING:LONG_LINE: line length of 105 exceeds 100 columns #97: FILE: drivers/gpu/drm/radeon/radeon_drv.c:624:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_SET_TILING, radeon_gem_set_tiling_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
-:97: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV)
#97: FILE: drivers/gpu/drm/radeon/radeon_drv.c:624:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_SET_TILING, radeon_gem_set_tiling_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:98: WARNING:LONG_LINE: line length of 105 exceeds 100 columns #98: FILE: drivers/gpu/drm/radeon/radeon_drv.c:625:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_GET_TILING, radeon_gem_get_tiling_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
-:98: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV)
#98: FILE: drivers/gpu/drm/radeon/radeon_drv.c:625:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_GET_TILING, radeon_gem_get_tiling_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:99: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #99: FILE: drivers/gpu/drm/radeon/radeon_drv.c:626:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_BUSY, radeon_gem_busy_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:100: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #100: FILE: drivers/gpu/drm/radeon/radeon_drv.c:627:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_VA, radeon_gem_va_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:101: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #101: FILE: drivers/gpu/drm/radeon/radeon_drv.c:628:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_OP, radeon_gem_op_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
-:102: CHECK:SPACING: spaces preferred around that '|' (ctx:VxV) #102: FILE: drivers/gpu/drm/radeon/radeon_drv.c:629:
+ DRM_IOCTL_DEF_DRV(RADEON_GEM_USERPTR, radeon_gem_userptr_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
^
total: 0 errors, 4 warnings, 25 checks, 157 lines checked 6b2c552fa04e drm: Compile out legacy chunks from struct drm_device -:16: WARNING:BAD_SIGN_OFF: Non-standard signature: Review-by:
#16:
-:53: WARNING:BRACES: braces {} are not necessary for single statement blocks #53: FILE: drivers/gpu/drm/drm_vblank.c:214:
+ else if (dev->driver->get_vblank_counter) {
return dev->driver->get_vblank_counter(dev, pipe);
}
-:67: WARNING:BRACES: braces {} are not necessary for single statement blocks #67: FILE: drivers/gpu/drm/drm_vblank.c:437:
+ else {
dev->driver->disable_vblank(dev, pipe);
}
-:67: CHECK:BRACES: Unbalanced braces around else statement #67: FILE: drivers/gpu/drm/drm_vblank.c:437:
+ else {
-:81: WARNING:BRACES: braces {} are not necessary for single statement blocks #81: FILE: drivers/gpu/drm/drm_vblank.c:1107:
+ else if (dev->driver->enable_vblank) {
return dev->driver->enable_vblank(dev, pipe);
}
total: 0 errors, 4 warnings, 1 checks, 64 lines checkeda6a6d4e681a7 drm/amdgpu: Paper over the drm_driver mangling for virtbad424c02616 drm: Allow const struct drm_driveref249d5af7ed drm/<drivers>: Constify struct drm_driver
-:706: WARNING:OBSOLETE: drivers/gpu/drm/tiny/cirrus.c is marked as 'obsolete' in the MAINTAINERS hierarchy. No unnecessary modifications please.
-:709: WARNING:OBSOLETE: drivers/gpu/drm/tiny/cirrus.c is marked as 'obsolete' in the MAINTAINERS hierarchy. No unnecessary modifications please.
total: 0 errors, 2 warnings, 0 checks, 619 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
URL : https://patchwork.freedesktop.org/series/83262/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1367:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1367:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1367:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1368:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1368:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1368:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1427:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1427:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1427:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:262:16: error: incompatible types in comparison expression (different type sizes): +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:262:16: unsigned long * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:262:16: unsigned long long * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:274:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:275:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:330:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:330:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:330:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h:92:56: error: marked inline, but without a definition +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49:
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
URL : https://patchwork.freedesktop.org/series/83262/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9226 -> Patchwork_18812
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/index.html
New tests
---------
New tests have been introduced between CI_DRM_9226 and Patchwork_18812:
### New CI tests (1) ###
* boot:
- Statuses : 40 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_18812 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [PASS][1] -> [DMESG-WARN][2] ([i915#1982])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-byt-j1900/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-byt-j1900/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- fi-icl-u2: [PASS][3] -> [DMESG-WARN][4] ([i915#1982]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-icl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_module_load@reload:
- {fi-tgl-dsi}: [DMESG-WARN][5] ([i915#1982] / [k.org#205379]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-tgl-dsi/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-tgl-dsi/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-ehl-1}: [DMESG-WARN][7] ([i915#1982]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-ehl-1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-ehl-1/igt@[email protected]
- fi-bsw-kefka: [DMESG-WARN][9] ([i915#1982]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-bsw-kefka/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-bsw-kefka/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-kbl-guc: [FAIL][11] ([i915#579]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-kbl-guc/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-kbl-guc/igt@[email protected]
- fi-skl-lmem: [DMESG-WARN][13] -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-skl-lmem/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-skl-lmem/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- {fi-tgl-dsi}: [DMESG-FAIL][15] ([i915#2601]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-tgl-dsi/igt@i915_selftest@live@gt_heartbeat.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-tgl-dsi/igt@i915_selftest@live@gt_heartbeat.html
* igt@kms_busy@basic@flip:
- {fi-kbl-7560u}: [DMESG-WARN][17] ([i915#1982]) -> [PASS][18] +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-kbl-7560u/igt@kms_busy@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-kbl-7560u/igt@kms_busy@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-byt-j1900: [DMESG-WARN][19] ([i915#1982]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-byt-j1900/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-byt-j1900/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-before-cursor-atomic:
- fi-icl-u2: [DMESG-WARN][21] ([i915#1982]) -> [PASS][22] +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/fi-icl-u2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/fi-icl-u2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2601]: https://gitlab.freedesktop.org/drm/intel/issues/2601
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (43 -> 40)
------------------------------
Missing (3): fi-tgl-y fi-bsw-cyan fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_9226 -> Patchwork_18812
CI-20190529: 20190529
CI_DRM_9226: ef50f9f1eb113ab3cddec3ed9168b8092035fe2b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5828: db972bdaab8ada43b742bc9621bb0fc9d56a6fc6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18812: ef249d5af7ed690fcf319ae9452ae8170c67ce84 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
ef249d5af7ed drm/<drivers>: Constify struct drm_driver bad424c02616 drm: Allow const struct drm_driver a6a6d4e681a7 drm/amdgpu: Paper over the drm_driver mangling for virt 6b2c552fa04e drm: Compile out legacy chunks from struct drm_device db362a15426f drm/radeon: Stop changing the drm_driver struct
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/radeon: Stop changing the drm_driver struct
URL : https://patchwork.freedesktop.org/series/83262/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9226_full -> Patchwork_18812_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_18812_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_18812_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_18812_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_parallel@contexts@bcs0:
- shard-snb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-snb2/igt@gem_exec_parallel@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-snb7/igt@gem_exec_parallel@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_9226_full and Patchwork_18812_full:
### New CI tests (1) ###
* boot:
- Statuses : 175 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_18812_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [PASS][3] -> [DMESG-WARN][4] ([i915#1436] / [i915#716])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl10/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@[email protected]
* igt@i915_selftest@live@blt:
- shard-snb: [PASS][5] -> [DMESG-FAIL][6] ([i915#1409])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-snb5/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-snb4/igt@i915_selftest@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-180:
- shard-glk: [PASS][7] -> [FAIL][8] ([i915#1119])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-glk7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-glk1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-128x42-random:
- shard-skl: [PASS][9] -> [FAIL][10] ([i915#54]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl6/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-c-256x256-right-edge:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([i915#1635] / [i915#1982]) +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-apl3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-apl1/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-tglb: [PASS][13] -> [FAIL][14] ([i915#2346])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-tglb3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-tglb8/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-varying-size:
- shard-glk: [PASS][15] -> [DMESG-WARN][16] ([i915#1982]) +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-glk8/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-glk2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [PASS][17] -> [FAIL][18] ([i915#79]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl7/igt@kms_flip@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-panning-interruptible@a-edp1:
- shard-skl: [PASS][19] -> [DMESG-WARN][20] ([i915#1982]) +8 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl7/igt@kms_flip@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@c-edp1:
- shard-skl: [PASS][21] -> [FAIL][22] ([i915#2122])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl1/igt@kms_flip@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [PASS][23] -> [DMESG-FAIL][24] ([fdo#108145] / [i915#1982])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][25] -> [FAIL][26] ([fdo#108145] / [i915#265])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl7/igt@[email protected]
* igt@kms_psr@psr2_primary_blt:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109441]) +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-iclb2/igt@kms_psr@psr2_primary_blt.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-iclb3/igt@kms_psr@psr2_primary_blt.html
#### Possible fixes ####
* igt@gem_eio@kms:
- shard-skl: [DMESG-WARN][29] ([i915#1982]) -> [PASS][30] +5 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl1/igt@[email protected]
* {igt@gem_exec_capture@pi@rcs0}:
- shard-skl: [INCOMPLETE][31] -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl9/igt@gem_exec_capture@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl3/igt@gem_exec_capture@[email protected]
* {igt@kms_async_flips@alternate-sync-async-flip}:
- shard-kbl: [FAIL][33] ([i915#2521]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-kbl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-kbl6/igt@[email protected]
* {igt@kms_async_flips@async-flip-with-page-flip-events}:
- shard-apl: [FAIL][35] ([i915#1635] / [i915#2521]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-apl1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-apl3/igt@[email protected]
- shard-tglb: [FAIL][37] ([i915#2521]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-tglb7/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-tglb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-skl: [INCOMPLETE][39] ([i915#300]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl8/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl8/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-64x64-random:
- shard-skl: [FAIL][41] ([i915#54]) -> [PASS][42] +5 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl7/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [FAIL][43] ([i915#2346]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl10/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-crc-legacy:
- shard-tglb: [FAIL][45] ([i915#2346]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-tglb3/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-tglb8/igt@[email protected]
* igt@kms_cursor_legacy@short-flip-before-cursor-toggle:
- shard-glk: [DMESG-WARN][47] ([i915#1982]) -> [PASS][48] +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-glk5/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-glk1/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-ytiled:
- shard-apl: [DMESG-WARN][49] ([i915#1635] / [i915#1982]) -> [PASS][50] +2 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-apl8/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-apl1/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-dp1:
- shard-kbl: [DMESG-WARN][51] ([i915#1982]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-kbl1/igt@kms_flip@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-kbl3/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@a-edp1:
- shard-skl: [FAIL][53] ([i915#2122]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl6/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-wc:
- shard-iclb: [DMESG-WARN][55] ([i915#1982]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-wc.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-wc.html
* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][57] ([i915#1188]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl1/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-kbl: [DMESG-WARN][59] ([i915#180]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-kbl2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-kbl2/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-skl: [FAIL][61] ([i915#1036]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl6/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][63] ([fdo#108145] / [i915#265]) -> [PASS][64] +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl6/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][65] ([fdo#109441]) -> [PASS][66] +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-iclb6/igt@kms_psr@psr2_cursor_mmap_cpu.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
#### Warnings ####
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][67] ([i915#1226]) -> [SKIP][68] ([fdo#109349])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-iclb2/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-iclb3/igt@[email protected]
* igt@runner@aborted:
- shard-skl: [FAIL][69] ([i915#2439]) -> [FAIL][70] ([i915#1436])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9226/shard-skl9/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/shard-skl4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#1036]: https://gitlab.freedesktop.org/drm/intel/issues/1036
[i915#1119]: https://gitlab.freedesktop.org/drm/intel/issues/1119
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1226]: https://gitlab.freedesktop.org/drm/intel/issues/1226
[i915#1409]: https://gitlab.freedesktop.org/drm/intel/issues/1409
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2439]: https://gitlab.freedesktop.org/drm/intel/issues/2439
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_9226 -> Patchwork_18812
CI-20190529: 20190529
CI_DRM_9226: ef50f9f1eb113ab3cddec3ed9168b8092035fe2b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5828: db972bdaab8ada43b742bc9621bb0fc9d56a6fc6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18812: ef249d5af7ed690fcf319ae9452ae8170c67ce84 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18812/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Daniel Vetter
With only the kms driver left, we can fold this in. This means we need to move the ioctl table, which means one additional ioctl must be defined in headers.
Quoted 8 lines
Also there's a conflict between the
radeon_initmacro and the module init function, so rename the module functions to avoid that.Signed-off-by Daniel Vetter <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 234 lines
--- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 85 ++++++++++++++++++++--------- drivers/gpu/drm/radeon/radeon_kms.c | 49 +---------------- 3 files changed, 62 insertions(+), 73 deletions(-)drivers/gpu/drm/radeon/radeon.h +1
-0@@ -2244,6 +2244,7 @@ int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);int radeon_gem_get_tiling_ioctl (struct drm_device *dev,void *data,struct drm_file *filp); +int radeon_info_ioctl (struct drm_device *dev,void *data,struct drm_file *filp);/* VRAM scratch page for HDP bug, default vram page */ struct r600_vram_scratch {drivers/gpu/drm/radeon/radeon_drv.c +60
-25@@ -51,6 +51,7 @@#include <drm/radeon_drm.h> #include "radeon_drv.h" +#include "radeon.h" /* * KMS wrapper. @@ -129,8 +130,6 @@ extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, unsigned int crtc, ktime_t *stime, ktime_t *etime, const struct drm_display_mode *mode);extern bool radeon_is_px (struct drm_device *dev); -extern const struct drm_ioctl_desc radeon_ioctls_kms[]; -extern int radeon_max_kms_ioctl;int radeon_mmap (struct file *filp,struct vm_area_struct *vma); int radeon_mode_dumb_mmap(struct drm_file *filp, struct drm_device *dev,@@ -584,9 +583,55 @@ static const struct file_operations radeon_driver_kms_fops = {#endif }; +static const struct drm_ioctl_desc radeon_ioctls_kms[] = { +DRM_IOCTL_DEF_DRV (RADEON_CP_INIT , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_CP_START , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_CP_STOP , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_CP_RESET , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_CP_IDLE , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_CP_RESUME , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_RESET , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_FULLSCREEN , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_SWAP , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_CLEAR , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_VERTEX , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_INDICES , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_TEXTURE , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_STIPPLE , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_INDIRECT , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_VERTEX2 , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_CMDBUF , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_GETPARAM , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_FLIP , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_ALLOC , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_FREE , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_INIT_HEAP , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), +DRM_IOCTL_DEF_DRV (RADEON_IRQ_EMIT , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_IRQ_WAIT , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_SETPARAM , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_SURF_ALLOC , drm_invalid_op,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_SURF_FREE , drm_invalid_op,DRM_AUTH ), +/* KMS */ +DRM_IOCTL_DEF_DRV (RADEON_GEM_INFO , radeon_gem_info_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_CREATE , radeon_gem_create_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_MMAP , radeon_gem_mmap_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_SET_DOMAIN , radeon_gem_set_domain_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_PREAD , radeon_gem_pread_ioctl,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_PWRITE , radeon_gem_pwrite_ioctl,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_WAIT_IDLE , radeon_gem_wait_idle_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_CS , radeon_cs_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_INFO , radeon_info_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_SET_TILING , radeon_gem_set_tiling_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_GET_TILING , radeon_gem_get_tiling_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_BUSY , radeon_gem_busy_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_VA , radeon_gem_va_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_OP , radeon_gem_op_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (RADEON_GEM_USERPTR , radeon_gem_userptr_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), +}; +static struct drm_driver kms_driver = { .driver_features = -DRIVER_GEM |DRIVER_RENDER , +DRIVER_GEM |DRIVER_RENDER |DRIVER_MODESET , .load = radeon_driver_load_kms, .open = radeon_driver_open_kms, .postclose = radeon_driver_postclose_kms,@@ -597,6 +642,7 @@ static struct drm_driver kms_driver = { .irq_uninstall = radeon_driver_irq_uninstall_kms, .irq_handler = radeon_driver_irq_handler_kms, .ioctls = radeon_ioctls_kms, + .num_ioctls = ARRAY_SIZE(radeon_ioctls_kms), .dumb_create = radeon_mode_dumb_create, .dumb_map_offset = radeon_mode_dumb_mmap, .fops = &radeon_driver_kms_fops,@@ -613,9 +659,6 @@ static struct drm_driver kms_driver = { .patchlevel = KMS_DRIVER_PATCHLEVEL, }; -static struct drm_driver *driver; -static struct pci_driver *pdriver; -static struct pci_driver radeon_kms_pci_driver = { .name =DRIVER_NAME , .id_table = pciidlist,@@ -625,41 +668,33 @@ static struct pci_driver radeon_kms_pci_driver = { .driver.pm = &radeon_pm_ops, }; -static int __init radeon_init (void ) +static int __init radeon_module_init (void ) {if (vgacon_text_force () && radeon_modeset ==-1 ) {DRM_INFO ("VGACON disable radeon kernel modesetting.\n" ); radeon_modeset =0 ; } -/* set to modesetting by default if not nomodeset */ -if (radeon_modeset ==-1 ) - radeon_modeset =1 ; - -if (radeon_modeset ==1 ) { -DRM_INFO ("radeon kernel modesetting enabled.\n" ); - driver = &kms_driver; - pdriver = &radeon_kms_pci_driver; - driver->driver_features |=DRIVER_MODESET ; - driver->num_ioctls = radeon_max_kms_ioctl; -radeon_register_atpx_handler (); - - }else { + +if (radeon_modeset ==0 ) {DRM_ERROR ("No UMS support in radeon module!\n" );return -EINVAL ; } -return pci_register_driver (pdriver); +DRM_INFO ("radeon kernel modesetting enabled.\n" ); +radeon_register_atpx_handler (); + +return pci_register_driver (&radeon_kms_pci_driver); } -static void __exit radeon_exit(void) +static void __exit radeon_module_exit(void) { -pci_unregister_driver (pdriver); +pci_unregister_driver (&radeon_kms_pci_driver);radeon_unregister_atpx_handler ();mmu_notifier_synchronize (); } -module_init (radeon_init); -module_exit (radeon_exit); +module_init (radeon_module_init); +module_exit (radeon_module_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );drivers/gpu/drm/radeon/radeon_kms.c +1
-49@@ -221,7 +221,7 @@ static void radeon_set_filp_rights(struct drm_device *dev,* etc. (all asics). * Returns 0 on success, -EINVAL on failure. */ -static int radeon_info_ioctl (struct drm_device *dev,void *data,struct drm_file *filp) +int radeon_info_ioctl (struct drm_device *dev,void *data,struct drm_file *filp) {struct radeon_device *rdev = dev->dev_private;struct drm_radeon_info *info = data;@@ -866,50 +866,3 @@ void radeon_disable_vblank_kms(struct drm_crtc *crtc)radeon_irq_set (rdev);spin_unlock_irqrestore (&rdev->irq.lock, irqflags); } - -const struct drm_ioctl_desc radeon_ioctls_kms[] = { -DRM_IOCTL_DEF_DRV (RADEON_CP_INIT , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_CP_START , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_CP_STOP , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_CP_RESET , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_CP_IDLE , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_CP_RESUME , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_RESET , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_FULLSCREEN , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_SWAP , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_CLEAR , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_VERTEX , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_INDICES , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_TEXTURE , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_STIPPLE , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_INDIRECT , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_VERTEX2 , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_CMDBUF , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_GETPARAM , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_FLIP , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_ALLOC , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_FREE , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_INIT_HEAP , drm_invalid_op,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (RADEON_IRQ_EMIT , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_IRQ_WAIT , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_SETPARAM , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_SURF_ALLOC , drm_invalid_op,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_SURF_FREE , drm_invalid_op,DRM_AUTH ), -/* KMS */ -DRM_IOCTL_DEF_DRV (RADEON_GEM_INFO , radeon_gem_info_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_CREATE , radeon_gem_create_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_MMAP , radeon_gem_mmap_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_SET_DOMAIN , radeon_gem_set_domain_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_PREAD , radeon_gem_pread_ioctl,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_PWRITE , radeon_gem_pwrite_ioctl,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_WAIT_IDLE , radeon_gem_wait_idle_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_CS , radeon_cs_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_INFO , radeon_info_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_SET_TILING , radeon_gem_set_tiling_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_GET_TILING , radeon_gem_get_tiling_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_BUSY , radeon_gem_busy_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_VA , radeon_gem_va_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_OP , radeon_gem_op_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (RADEON_GEM_USERPTR , radeon_gem_userptr_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), -}; -int radeon_max_kms_ioctl =ARRAY_SIZE (radeon_ioctls_kms); --2.28.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [1/5] drm/radeon: Stop changing the drm_driver struct (rev2)
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: series starting with [1/5] drm/radeon: Stop changing the drm_driver struct (rev2)
URL : https://patchwork.freedesktop.org/series/83262/
State : failure
== Summary ==
Applying: drm/radeon: Stop changing the drm_driver struct
Applying: drm: Compile out legacy chunks from struct drm_device
Applying: drm/amdgpu: Paper over the drm_driver mangling for virt
error: corrupt patch at line 10
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0003 drm/amdgpu: Paper over the drm_driver mangling for virt When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx