dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/gma500: Remove useless define
@ 2013-07-31  0:23 Stéphane Marchesin
  2013-07-31  0:23 ` [PATCH 2/3] drm/i915: " Stéphane Marchesin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stéphane Marchesin @ 2013-07-31  0:23 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/gma500/cdv_intel_display.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c
index 82430ad..d691a3a 100644
--- a/drivers/gpu/drm/gma500/cdv_intel_display.c
+++ b/drivers/gpu/drm/gma500/cdv_intel_display.c
@@ -52,8 +52,6 @@ struct cdv_intel_clock_t {
 	int p;
 };
 
-#define INTEL_P2_NUM		      2
-
 struct cdv_intel_limit_t {
 	struct cdv_intel_range_t dot, vco, n, m, m1, m2, p, p1;
 	struct cdv_intel_p2_t p2;
-- 
1.8.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* [PATCH 2/3] drm/i915: Remove useless define
  2013-07-31  0:23 [PATCH 1/3] drm/gma500: Remove useless define Stéphane Marchesin
@ 2013-07-31  0:23 ` Stéphane Marchesin
  2013-08-05  6:20   ` Daniel Vetter
  2013-07-31  0:23 ` [PATCH 3/3] drm: Remove drm_mode_validate_clocks Stéphane Marchesin
  2013-07-31  6:51 ` [Intel-gfx] [PATCH 1/3] drm/gma500: Remove useless define Patrik Jakobsson
  2 siblings, 1 reply; 7+ messages in thread
From: Stéphane Marchesin @ 2013-07-31  0:23 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/i915/intel_display.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 5fb3058..37b33c9 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -54,7 +54,6 @@ typedef struct {
 	int	p2_slow, p2_fast;
 } intel_p2_t;
 
-#define INTEL_P2_NUM		      2
 typedef struct intel_limit intel_limit_t;
 struct intel_limit {
 	intel_range_t   dot, vco, n, m, m1, m2, p, p1;
-- 
1.8.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* [PATCH 3/3] drm: Remove drm_mode_validate_clocks
  2013-07-31  0:23 [PATCH 1/3] drm/gma500: Remove useless define Stéphane Marchesin
  2013-07-31  0:23 ` [PATCH 2/3] drm/i915: " Stéphane Marchesin
@ 2013-07-31  0:23 ` Stéphane Marchesin
  2013-08-02 16:40   ` David Herrmann
  2013-08-05  6:21   ` Daniel Vetter
  2013-07-31  6:51 ` [Intel-gfx] [PATCH 1/3] drm/gma500: Remove useless define Patrik Jakobsson
  2 siblings, 2 replies; 7+ messages in thread
From: Stéphane Marchesin @ 2013-07-31  0:23 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/drm_modes.c | 37 -------------------------------------
 include/drm/drm_crtc.h      |  3 ---
 2 files changed, 40 deletions(-)

diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index a6729bf..504a602 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -923,43 +923,6 @@ void drm_mode_validate_size(struct drm_device *dev,
 EXPORT_SYMBOL(drm_mode_validate_size);
 
 /**
- * drm_mode_validate_clocks - validate modes against clock limits
- * @dev: DRM device
- * @mode_list: list of modes to check
- * @min: minimum clock rate array
- * @max: maximum clock rate array
- * @n_ranges: number of clock ranges (size of arrays)
- *
- * LOCKING:
- * Caller must hold a lock protecting @mode_list.
- *
- * Some code may need to check a mode list against the clock limits of the
- * device in question.  This function walks the mode list, testing to make
- * sure each mode falls within a given range (defined by @min and @max
- * arrays) and sets @mode->status as needed.
- */
-void drm_mode_validate_clocks(struct drm_device *dev,
-			      struct list_head *mode_list,
-			      int *min, int *max, int n_ranges)
-{
-	struct drm_display_mode *mode;
-	int i;
-
-	list_for_each_entry(mode, mode_list, head) {
-		bool good = false;
-		for (i = 0; i < n_ranges; i++) {
-			if (mode->clock >= min[i] && mode->clock <= max[i]) {
-				good = true;
-				break;
-			}
-		}
-		if (!good)
-			mode->status = MODE_CLOCK_RANGE;
-	}
-}
-EXPORT_SYMBOL(drm_mode_validate_clocks);
-
-/**
  * drm_mode_prune_invalid - remove invalid modes from mode list
  * @dev: DRM device
  * @mode_list: list of modes to check
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index fa12a2f..32e0820 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -930,9 +930,6 @@ extern void drm_mode_list_concat(struct list_head *head,
 extern void drm_mode_validate_size(struct drm_device *dev,
 				   struct list_head *mode_list,
 				   int maxX, int maxY, int maxPitch);
-extern void drm_mode_validate_clocks(struct drm_device *dev,
-				     struct list_head *mode_list,
-				     int *min, int *max, int n_ranges);
 extern void drm_mode_prune_invalid(struct drm_device *dev,
 				   struct list_head *mode_list, bool verbose);
 extern void drm_mode_sort(struct list_head *mode_list);
-- 
1.8.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [Intel-gfx] [PATCH 1/3] drm/gma500: Remove useless define
  2013-07-31  0:23 [PATCH 1/3] drm/gma500: Remove useless define Stéphane Marchesin
  2013-07-31  0:23 ` [PATCH 2/3] drm/i915: " Stéphane Marchesin
  2013-07-31  0:23 ` [PATCH 3/3] drm: Remove drm_mode_validate_clocks Stéphane Marchesin
@ 2013-07-31  6:51 ` Patrik Jakobsson
  2 siblings, 0 replies; 7+ messages in thread
From: Patrik Jakobsson @ 2013-07-31  6:51 UTC (permalink / raw)
  To: Stéphane Marchesin; +Cc: intel-gfx, dri-devel

On Wed, Jul 31, 2013 at 2:23 AM, Stéphane Marchesin
<marcheu@chromium.org> wrote:
> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
> ---
>  drivers/gpu/drm/gma500/cdv_intel_display.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c
> index 82430ad..d691a3a 100644
> --- a/drivers/gpu/drm/gma500/cdv_intel_display.c
> +++ b/drivers/gpu/drm/gma500/cdv_intel_display.c
> @@ -52,8 +52,6 @@ struct cdv_intel_clock_t {
>         int p;
>  };
>
> -#define INTEL_P2_NUM                 2
> -
>  struct cdv_intel_limit_t {
>         struct cdv_intel_range_t dot, vco, n, m, m1, m2, p, p1;
>         struct cdv_intel_p2_t p2;
> --
> 1.8.3

Hi Stéphane

I have already removed that define in my gma500-next branch. You can check the
official repo at: git://github.com/patjak/drm-gma500 gma500-next

Thanks
Patrik Jakobsson

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

* Re: [PATCH 3/3] drm: Remove drm_mode_validate_clocks
  2013-07-31  0:23 ` [PATCH 3/3] drm: Remove drm_mode_validate_clocks Stéphane Marchesin
@ 2013-08-02 16:40   ` David Herrmann
  2013-08-05  6:21   ` Daniel Vetter
  1 sibling, 0 replies; 7+ messages in thread
From: David Herrmann @ 2013-08-02 16:40 UTC (permalink / raw)
  To: Stéphane Marchesin
  Cc: Intel Graphics Development, dri-devel@lists.freedesktop.org

Hi

On Wed, Jul 31, 2013 at 2:23 AM, Stéphane Marchesin
<marcheu@chromium.org> wrote:
> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>

Something like "unused" in the commit message makes "git log
[--oneline]" much more verbose without the need to read the patch.
Apart from that:
  Reviewed-by: David Herrmann <dh.herrmann@gmail.com>

I also did a short "grep MODE_CLOCK_RANGE" and radeon/i915 tv-helpers
are the last users. All others use MODE_BAD. But I guess
MODE_CLOCK_RANGE is more verbose so there is no need to remove it.

Regards
David

> ---
>  drivers/gpu/drm/drm_modes.c | 37 -------------------------------------
>  include/drm/drm_crtc.h      |  3 ---
>  2 files changed, 40 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
> index a6729bf..504a602 100644
> --- a/drivers/gpu/drm/drm_modes.c
> +++ b/drivers/gpu/drm/drm_modes.c
> @@ -923,43 +923,6 @@ void drm_mode_validate_size(struct drm_device *dev,
>  EXPORT_SYMBOL(drm_mode_validate_size);
>
>  /**
> - * drm_mode_validate_clocks - validate modes against clock limits
> - * @dev: DRM device
> - * @mode_list: list of modes to check
> - * @min: minimum clock rate array
> - * @max: maximum clock rate array
> - * @n_ranges: number of clock ranges (size of arrays)
> - *
> - * LOCKING:
> - * Caller must hold a lock protecting @mode_list.
> - *
> - * Some code may need to check a mode list against the clock limits of the
> - * device in question.  This function walks the mode list, testing to make
> - * sure each mode falls within a given range (defined by @min and @max
> - * arrays) and sets @mode->status as needed.
> - */
> -void drm_mode_validate_clocks(struct drm_device *dev,
> -                             struct list_head *mode_list,
> -                             int *min, int *max, int n_ranges)
> -{
> -       struct drm_display_mode *mode;
> -       int i;
> -
> -       list_for_each_entry(mode, mode_list, head) {
> -               bool good = false;
> -               for (i = 0; i < n_ranges; i++) {
> -                       if (mode->clock >= min[i] && mode->clock <= max[i]) {
> -                               good = true;
> -                               break;
> -                       }
> -               }
> -               if (!good)
> -                       mode->status = MODE_CLOCK_RANGE;
> -       }
> -}
> -EXPORT_SYMBOL(drm_mode_validate_clocks);
> -
> -/**
>   * drm_mode_prune_invalid - remove invalid modes from mode list
>   * @dev: DRM device
>   * @mode_list: list of modes to check
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index fa12a2f..32e0820 100644
> --- a/include/drm/drm_crtc.h
> +++ b/include/drm/drm_crtc.h
> @@ -930,9 +930,6 @@ extern void drm_mode_list_concat(struct list_head *head,
>  extern void drm_mode_validate_size(struct drm_device *dev,
>                                    struct list_head *mode_list,
>                                    int maxX, int maxY, int maxPitch);
> -extern void drm_mode_validate_clocks(struct drm_device *dev,
> -                                    struct list_head *mode_list,
> -                                    int *min, int *max, int n_ranges);
>  extern void drm_mode_prune_invalid(struct drm_device *dev,
>                                    struct list_head *mode_list, bool verbose);
>  extern void drm_mode_sort(struct list_head *mode_list);
> --
> 1.8.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH 2/3] drm/i915: Remove useless define
  2013-07-31  0:23 ` [PATCH 2/3] drm/i915: " Stéphane Marchesin
@ 2013-08-05  6:20   ` Daniel Vetter
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-08-05  6:20 UTC (permalink / raw)
  To: Stéphane Marchesin; +Cc: intel-gfx, dri-devel

On Tue, Jul 30, 2013 at 05:23:52PM -0700, Stéphane Marchesin wrote:
> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

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

* Re: [PATCH 3/3] drm: Remove drm_mode_validate_clocks
  2013-07-31  0:23 ` [PATCH 3/3] drm: Remove drm_mode_validate_clocks Stéphane Marchesin
  2013-08-02 16:40   ` David Herrmann
@ 2013-08-05  6:21   ` Daniel Vetter
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-08-05  6:21 UTC (permalink / raw)
  To: Stéphane Marchesin; +Cc: intel-gfx, dri-devel

On Tue, Jul 30, 2013 at 05:23:53PM -0700, Stéphane Marchesin wrote:
> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>

Ben originally picked this up into his danvet-on-vactaion tree, but since
it's for core drm it needs to go in through Dave's tree.
-Daniel

> ---
>  drivers/gpu/drm/drm_modes.c | 37 -------------------------------------
>  include/drm/drm_crtc.h      |  3 ---
>  2 files changed, 40 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
> index a6729bf..504a602 100644
> --- a/drivers/gpu/drm/drm_modes.c
> +++ b/drivers/gpu/drm/drm_modes.c
> @@ -923,43 +923,6 @@ void drm_mode_validate_size(struct drm_device *dev,
>  EXPORT_SYMBOL(drm_mode_validate_size);
>  
>  /**
> - * drm_mode_validate_clocks - validate modes against clock limits
> - * @dev: DRM device
> - * @mode_list: list of modes to check
> - * @min: minimum clock rate array
> - * @max: maximum clock rate array
> - * @n_ranges: number of clock ranges (size of arrays)
> - *
> - * LOCKING:
> - * Caller must hold a lock protecting @mode_list.
> - *
> - * Some code may need to check a mode list against the clock limits of the
> - * device in question.  This function walks the mode list, testing to make
> - * sure each mode falls within a given range (defined by @min and @max
> - * arrays) and sets @mode->status as needed.
> - */
> -void drm_mode_validate_clocks(struct drm_device *dev,
> -			      struct list_head *mode_list,
> -			      int *min, int *max, int n_ranges)
> -{
> -	struct drm_display_mode *mode;
> -	int i;
> -
> -	list_for_each_entry(mode, mode_list, head) {
> -		bool good = false;
> -		for (i = 0; i < n_ranges; i++) {
> -			if (mode->clock >= min[i] && mode->clock <= max[i]) {
> -				good = true;
> -				break;
> -			}
> -		}
> -		if (!good)
> -			mode->status = MODE_CLOCK_RANGE;
> -	}
> -}
> -EXPORT_SYMBOL(drm_mode_validate_clocks);
> -
> -/**
>   * drm_mode_prune_invalid - remove invalid modes from mode list
>   * @dev: DRM device
>   * @mode_list: list of modes to check
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index fa12a2f..32e0820 100644
> --- a/include/drm/drm_crtc.h
> +++ b/include/drm/drm_crtc.h
> @@ -930,9 +930,6 @@ extern void drm_mode_list_concat(struct list_head *head,
>  extern void drm_mode_validate_size(struct drm_device *dev,
>  				   struct list_head *mode_list,
>  				   int maxX, int maxY, int maxPitch);
> -extern void drm_mode_validate_clocks(struct drm_device *dev,
> -				     struct list_head *mode_list,
> -				     int *min, int *max, int n_ranges);
>  extern void drm_mode_prune_invalid(struct drm_device *dev,
>  				   struct list_head *mode_list, bool verbose);
>  extern void drm_mode_sort(struct list_head *mode_list);
> -- 
> 1.8.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

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

end of thread, other threads:[~2013-08-05  6:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31  0:23 [PATCH 1/3] drm/gma500: Remove useless define Stéphane Marchesin
2013-07-31  0:23 ` [PATCH 2/3] drm/i915: " Stéphane Marchesin
2013-08-05  6:20   ` Daniel Vetter
2013-07-31  0:23 ` [PATCH 3/3] drm: Remove drm_mode_validate_clocks Stéphane Marchesin
2013-08-02 16:40   ` David Herrmann
2013-08-05  6:21   ` Daniel Vetter
2013-07-31  6:51 ` [Intel-gfx] [PATCH 1/3] drm/gma500: Remove useless define Patrik Jakobsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).