drm: Don't export internal module variables
Subsystems (4)
PATCH 1/1 drm: Don't export internal module variables
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
drm_debug is an exception since it's used in macros and inline functions.
v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)
drivers/gpu/drm/drm_stub.c +0 -4
@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip
drivers/gpu/drm/exynos/exynos_drm_drv.c +0 -4
@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;
@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev); - drm_vblank_offdelay =VBLANK_OFF_DELAY ; -platform_set_drvdata (dev->platformdev, dev);/* force connectors detection */
drivers/gpu/drm/exynos/exynos_drm_drv.h +0 -2
@@ -40,8 +40,6 @@ struct drm_device;struct exynos_drm_overlay ;struct drm_connector ; -extern unsigned int drm_vblank_offdelay; -/* this enumerates display type. */ enum exynos_drm_output_type {EXYNOS_DISPLAY_TYPE_NONE ,
Signature · 1 line
1.9.2
Quoted 4 lines · Daniel Vetter
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
Quoted 8 lines
drm_debugis an exception since it's used in macros and inline functions.v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
Cc Inki Dae <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 70 lines
--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/drm_stub.c +0
-4@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-4@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev); - drm_vblank_offdelay =VBLANK_OFF_DELAY ; -platform_set_drvdata (dev->platformdev, dev);/* force connectors detection */ drivers/gpu/drm/exynos/exynos_drm_drv.h +0
-3@@ -40,8 +40,6 @@ struct drm_device;struct exynos_drm_overlay ;struct drm_connector ; -extern unsigned int drm_vblank_offdelay; -/* this enumerates display type. */ enum exynos_drm_output_type {EXYNOS_DISPLAY_TYPE_NONE , --1.9.2
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi
Quoted 54 lines · Daniel Vetter
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
drm_debugis an exception since it's used in macros and inline functions.v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
Cc Inki Dae <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/drm_stub.c +0
-4@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-2@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;
drivers/gpu/drm/exynos/exynos_drm_drv.c static int exynos_drm_load(struct drm_device *dev, unsigned long flags) · line 112
Quoted 4 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev); - drm_vblank_offdelay =VBLANK_OFF_DELAY ;
You know that this is 5,000 by default and VBLANK_OFF_DELAY is 50,000? Not sure whether that was a typo or was explicitly set this way. If that change is intentional:
Thanks
David
Quoted 24 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1-platform_set_drvdata (dev->platformdev, dev);/* force connectors detection */ drivers/gpu/drm/exynos/exynos_drm_drv.h +0
-3@@ -40,8 +40,6 @@ struct drm_device;struct exynos_drm_overlay ;struct drm_connector ; -extern unsigned int drm_vblank_offdelay; -/* this enumerates display type. */ enum exynos_drm_output_type {EXYNOS_DISPLAY_TYPE_NONE , --1.9.2
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 60 lines · David Herrmann
Hi
Quoted 57 lines · Daniel Vetter
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
drm_debugis an exception since it's used in macros and inline functions.v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
Cc Inki Dae <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/drm_stub.c +0
-4@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-2@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev);
Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c static int exynos_drm_load(struct drm_device *dev, unsigned long flags) · line 112
Quoted 1 line
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1- drm_vblank_offdelay =VBLANK_OFF_DELAY ;You know that this is 5,000 by default and
VBLANK_OFF_DELAYis 50,000? Not sure whether that was a typo or was explicitly set this way. If that change is intentional:
Oops, didn't spot that, nice catch. git log says this was added to paper over a race in get/put_vblank in exynos. Wtf, imo even more reason to nuke this ... I've pimped the commit message a bit - still r-b? -Daniel
Quoted 30 lines
Reviewed-by David Herrmann <[email protected]>Thanks
DavidQuoted 24 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1-platform_set_drvdata (dev->platformdev, dev);/* force connectors detection */ drivers/gpu/drm/exynos/exynos_drm_drv.h +0
-3@@ -40,8 +40,6 @@ struct drm_device;struct exynos_drm_overlay ;struct drm_connector ; -extern unsigned int drm_vblank_offdelay; -/* this enumerates display type. */ enum exynos_drm_output_type {EXYNOS_DISPLAY_TYPE_NONE , --1.9.2
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
David Herrmann
Reviewed-byHi
Quoted 67 lines · Daniel Vetter
Quoted 60 lines · David Herrmann
Hi
Quoted 57 lines · Daniel Vetter
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
drm_debugis an exception since it's used in macros and inline functions.v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
Cc Inki Dae <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/drm_stub.c +0
-4@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-2@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev);Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c static int exynos_drm_load(struct drm_device *dev, unsigned long flags) · line 112
Quoted 1 line
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1- drm_vblank_offdelay =VBLANK_OFF_DELAY ;You know that this is 5,000 by default and
VBLANK_OFF_DELAYis 50,000? Not sure whether that was a typo or was explicitly set this way. If that change is intentional:
Quoted 3 lines
Oops, didn't spot that, nice catch. git log says this was added to paper over a race in get/put_vblank in exynos. Wtf, imo even more reason to nuke this ... I've pimped the commit message a bit - still r-b?
You mean:
commit 52c68814cd7f3592292a02b890b5b8625e9069a7
Author: Inki Dae <[email protected]> Date: Fri Dec 16 21:31:12 2011 +0900
drm/exynos: extend vblank off delay time.
Yeah, that one doesn't make any sense. So this is still:
Thanks
David
Quoted 76 lines · David Herrmann
Hi
Quoted 67 lines · Daniel Vetter
Quoted 60 lines · David Herrmann
Hi
Quoted 57 lines · Daniel Vetter
Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers.
drm_debugis an exception since it's used in macros and inline functions.v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee.
Cc Inki Dae <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/drm_stub.c +0
-4@@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */EXPORT_SYMBOL (drm_debug);unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes);/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ; -EXPORT_SYMBOL (drm_universal_planes);unsigned int drm_vblank_offdelay =5000 ;/* Default to 5000 msecs. */ -EXPORT_SYMBOL (drm_vblank_offdelay);unsigned int drm_timestamp_precision =20 ;/* Default to 20 usecs. */ -EXPORT_SYMBOL (drm_timestamp_precision);/* * Default to use monotonic timestamps for wait-for-vblank and page-flip drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-2@@ -38,8 +38,6 @@#define DRIVER_MAJOR 1#define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 -/* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev;@@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)/* setup possible_clones. */ exynos_drm_encoder_setup (dev);Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c static int exynos_drm_load(struct drm_device *dev, unsigned long flags) · line 112
Quoted 1 line
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-1- drm_vblank_offdelay =VBLANK_OFF_DELAY ;You know that this is 5,000 by default and
VBLANK_OFF_DELAYis 50,000? Not sure whether that was a typo or was explicitly set this way. If that change is intentional:Quoted 3 lines
Oops, didn't spot that, nice catch. git log says this was added to paper over a race in get/put_vblank in exynos. Wtf, imo even more reason to nuke this ... I've pimped the commit message a bit - still r-b?
You mean:
Quoted 7 lines
commit
52c68814cd7f3592292a02b890b5b8625e9069a7Author: Inki Dae <[email protected]> Date: Fri Dec 16 21:31:12 2011 +0900drm/exynos: extend vblank off delay time.
Yeah, that one doesn't make any sense. So this is still:
Yup.
Quoted 1 line
Reviewed-by David Herrmann <[email protected]>
Thanks, Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch