* [PATCH] Update generation checks to provide basic support for Ivybridge.
@ 2012-02-08 20:05 Kenneth Graunke
2012-02-08 20:25 ` Ben Widawsky
2012-02-08 20:38 ` Daniel Vetter
0 siblings, 2 replies; 3+ messages in thread
From: Kenneth Graunke @ 2012-02-08 20:05 UTC (permalink / raw)
To: intel-gfx
There may be some updates required, but assuming Ivybridge is similar to
Sandybridge is a decent start; previously it fell through to the Gen2/3
case and nothing worked.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
---
lib/intel_reg_map.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/intel_reg_map.c b/lib/intel_reg_map.c
index 86cf9a6..0c8d49c 100644
--- a/lib/intel_reg_map.c
+++ b/lib/intel_reg_map.c
@@ -128,14 +128,15 @@ struct intel_register_map
intel_get_register_map(uint32_t devid)
{
struct intel_register_map map;
+ const int gen = intel_gen(devid);
- if (IS_GEN6(devid)) {
+ if (gen >= 6) {
map.map = gen6_gt_register_map;
map.top = 0x180000;
} else if (IS_BROADWATER(devid) || IS_CRESTLINE(devid)) {
map.map = gen_bwcl_register_map;
map.top = 0x80000;
- } else if (IS_GEN4(devid) || IS_GEN5(devid)) {
+ } else if (gen >= 4) {
map.map = gen4_register_map;
map.top = 0x80000;
} else {
--
1.7.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] Update generation checks to provide basic support for Ivybridge.
2012-02-08 20:05 [PATCH] Update generation checks to provide basic support for Ivybridge Kenneth Graunke
@ 2012-02-08 20:25 ` Ben Widawsky
2012-02-08 20:38 ` Daniel Vetter
1 sibling, 0 replies; 3+ messages in thread
From: Ben Widawsky @ 2012-02-08 20:25 UTC (permalink / raw)
To: Kenneth Graunke; +Cc: intel-gfx
On 02/08/2012 09:05 PM, Kenneth Graunke wrote:
> There may be some updates required, but assuming Ivybridge is similar to
> Sandybridge is a decent start; previously it fell through to the Gen2/3
> case and nothing worked.
I didn't think anyone actually used this register map... so I never
bothered to update it myself :-).
For the record, I bet if I did this someone would yell at me that this
should be two patches, since you also moved to the new intel_gen stuff.
But you're definitely cooler than me.
>
> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
> ---
> lib/intel_reg_map.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/lib/intel_reg_map.c b/lib/intel_reg_map.c
> index 86cf9a6..0c8d49c 100644
> --- a/lib/intel_reg_map.c
> +++ b/lib/intel_reg_map.c
> @@ -128,14 +128,15 @@ struct intel_register_map
> intel_get_register_map(uint32_t devid)
> {
> struct intel_register_map map;
> + const int gen = intel_gen(devid);
>
> - if (IS_GEN6(devid)) {
> + if (gen >= 6) {
> map.map = gen6_gt_register_map;
> map.top = 0x180000;
> } else if (IS_BROADWATER(devid) || IS_CRESTLINE(devid)) {
> map.map = gen_bwcl_register_map;
> map.top = 0x80000;
> - } else if (IS_GEN4(devid) || IS_GEN5(devid)) {
> + } else if (gen >= 4) {
> map.map = gen4_register_map;
> map.top = 0x80000;
> } else {
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Update generation checks to provide basic support for Ivybridge.
2012-02-08 20:05 [PATCH] Update generation checks to provide basic support for Ivybridge Kenneth Graunke
2012-02-08 20:25 ` Ben Widawsky
@ 2012-02-08 20:38 ` Daniel Vetter
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2012-02-08 20:38 UTC (permalink / raw)
To: Kenneth Graunke; +Cc: intel-gfx
On Wed, Feb 08, 2012 at 12:05:05PM -0800, Kenneth Graunke wrote:
> There may be some updates required, but assuming Ivybridge is similar to
> Sandybridge is a decent start; previously it fell through to the Gen2/3
> case and nothing worked.
>
> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
intel_reg_read/write don't use this facility and everything that does
probably only access regs that aren't prohibited. We might want to kill
this eventually, I'm not really sold on it's value. Anyway, for the time
being, slurped into i-g-t. Thanks for the patch&review.
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-08 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 20:05 [PATCH] Update generation checks to provide basic support for Ivybridge Kenneth Graunke
2012-02-08 20:25 ` Ben Widawsky
2012-02-08 20:38 ` Daniel Vetter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.