* [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
@ 2018-05-03 21:27 Chris Wilson
2018-05-03 21:29 ` Chris Wilson
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Chris Wilson @ 2018-05-03 21:27 UTC (permalink / raw)
To: intel-gfx; +Cc: Ville Syrjälä, Matthew Auld
Following commit f773568b6ff8 ("drm/i915: nuke the duplicated stolen
discovery"), the if-else-chain for determining the GTT size is redundant
with the !chv branches all being the same.
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel>
References: f773568b6ff8 ("drm/i915: nuke the duplicated stolen discovery")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel>
---
drivers/gpu/drm/i915/i915_gem_gtt.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index e9d828324f67..786bf5dd35dc 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -3322,14 +3322,10 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)
DRM_ERROR("Can't set DMA mask/consistent mask (%d)\n", err);
pci_read_config_word(pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
-
- if (INTEL_GEN(dev_priv) >= 9) {
- size = gen8_get_total_gtt_size(snb_gmch_ctl);
- } else if (IS_CHERRYVIEW(dev_priv)) {
+ if (IS_CHERRYVIEW(dev_priv))
size = chv_get_total_gtt_size(snb_gmch_ctl);
- } else {
+ else
size = gen8_get_total_gtt_size(snb_gmch_ctl);
- }
ggtt->base.total = (size / sizeof(gen8_pte_t)) << PAGE_SHIFT;
ggtt->base.cleanup = gen6_gmch_remove;
--
2.17.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
2018-05-03 21:27 [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() Chris Wilson
@ 2018-05-03 21:29 ` Chris Wilson
2018-05-04 9:52 ` Joonas Lahtinen
2018-05-03 21:48 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2) Patchwork
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2018-05-03 21:29 UTC (permalink / raw)
To: intel-gfx; +Cc: Matthew Auld
Following commit f773568b6ff8 ("drm/i915: nuke the duplicated stolen
discovery"), the if-else-chain for determining the GTT size is redundant
with the !chv branches all being the same.
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
References: f773568b6ff8 ("drm/i915: nuke the duplicated stolen discovery")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
Resend to fix Ville's email address.
-Chris
---
drivers/gpu/drm/i915/i915_gem_gtt.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index e9d828324f67..786bf5dd35dc 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -3322,14 +3322,10 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)
DRM_ERROR("Can't set DMA mask/consistent mask (%d)\n", err);
pci_read_config_word(pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
-
- if (INTEL_GEN(dev_priv) >= 9) {
- size = gen8_get_total_gtt_size(snb_gmch_ctl);
- } else if (IS_CHERRYVIEW(dev_priv)) {
+ if (IS_CHERRYVIEW(dev_priv))
size = chv_get_total_gtt_size(snb_gmch_ctl);
- } else {
+ else
size = gen8_get_total_gtt_size(snb_gmch_ctl);
- }
ggtt->base.total = (size / sizeof(gen8_pte_t)) << PAGE_SHIFT;
ggtt->base.cleanup = gen6_gmch_remove;
--
2.17.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 6+ messages in thread
* ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
2018-05-03 21:27 [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() Chris Wilson
2018-05-03 21:29 ` Chris Wilson
@ 2018-05-03 21:48 ` Patchwork
2018-05-03 22:04 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-04 2:14 ` ✓ Fi.CI.IGT: " Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2018-05-03 21:48 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
URL : https://patchwork.freedesktop.org/series/42662/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
37171cccb14b drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
-:14: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit f773568b6ff8 ("drm/i915: nuke the duplicated stolen discovery")'
#14:
References: f773568b6ff8 ("drm/i915: nuke the duplicated stolen discovery")
total: 1 errors, 0 warnings, 0 checks, 16 lines checked
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* ✓ Fi.CI.BAT: success for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
2018-05-03 21:27 [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() Chris Wilson
2018-05-03 21:29 ` Chris Wilson
2018-05-03 21:48 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2) Patchwork
@ 2018-05-03 22:04 ` Patchwork
2018-05-04 2:14 ` ✓ Fi.CI.IGT: " Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2018-05-03 22:04 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
URL : https://patchwork.freedesktop.org/series/42662/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4135 -> Patchwork_8904 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42662/revisions/2/mbox/
== Known issues ==
Here are the changes found in Patchwork_8904 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_module_reload@basic-reload-inject:
fi-bsw-n3050: PASS -> DMESG-FAIL (fdo#106373)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-ivb-3520m: PASS -> DMESG-WARN (fdo#106084)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
fi-cnl-psr: PASS -> DMESG-WARN (fdo#104951)
==== Possible fixes ====
igt@drv_module_reload@basic-reload:
fi-bsw-n3050: DMESG-FAIL (fdo#106373) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-cnl-psr: DMESG-WARN (fdo#104951) -> PASS
fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951
fdo#106084 https://bugs.freedesktop.org/show_bug.cgi?id=106084
fdo#106373 https://bugs.freedesktop.org/show_bug.cgi?id=106373
== Participating hosts (39 -> 37) ==
Missing (2): fi-ilk-m540 fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4135 -> Patchwork_8904
CI_DRM_4135: 266fa55ff4e1d3b7ab86deccf5709ee79c79f5dc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4460: f772d9a910130b3aec8efa4f09ed723618fae656 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8904: 37171cccb14b53091dc0b53eb2da7ede859b1d1d @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4460: f74d92e704849610364b4474a2c67ea2008c14e0 @ git://anongit.freedesktop.org/piglit
== Linux commits ==
37171cccb14b drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8904/issues.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* ✓ Fi.CI.IGT: success for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
2018-05-03 21:27 [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() Chris Wilson
` (2 preceding siblings ...)
2018-05-03 22:04 ` ✓ Fi.CI.BAT: success " Patchwork
@ 2018-05-04 2:14 ` Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2018-05-04 2:14 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2)
URL : https://patchwork.freedesktop.org/series/42662/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4135_full -> Patchwork_8904_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_8904_full need to be verified
manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_8904_full, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42662/revisions/2/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_8904_full:
=== IGT changes ===
==== Warnings ====
igt@gem_mocs_settings@mocs-rc6-bsd2:
shard-kbl: PASS -> SKIP
== Known issues ==
Here are the changes found in Patchwork_8904_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
shard-hsw: PASS -> FAIL (fdo#104873)
igt@kms_flip@2x-flip-vs-expired-vblank:
shard-hsw: PASS -> FAIL (fdo#102887)
igt@kms_flip@2x-plain-flip-fb-recreate:
shard-hsw: PASS -> FAIL (fdo#103928) +2
igt@kms_flip@flip-vs-wf_vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#100368)
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
shard-kbl: PASS -> DMESG-WARN (fdo#105345) +1
igt@kms_rotation_crc@sprite-rotation-270:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#105602) +9
igt@kms_setmode@basic:
shard-glk: PASS -> FAIL (fdo#99912)
==== Possible fixes ====
igt@drv_selftest@live_contexts:
shard-kbl: INCOMPLETE (fdo#103665) -> PASS
igt@gem_exec_store@cachelines-bsd:
shard-hsw: FAIL (fdo#100007) -> PASS
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: FAIL (fdo#105707) -> PASS
igt@kms_flip@modeset-vs-vblank-race-interruptible:
shard-hsw: FAIL (fdo#103060) -> PASS
igt@kms_flip@plain-flip-fb-recreate:
shard-hsw: FAIL (fdo#100368) -> PASS
igt@kms_rotation_crc@sprite-rotation-270:
shard-apl: FAIL (fdo#103925) -> PASS
igt@kms_setmode@basic:
shard-kbl: FAIL (fdo#99912) -> PASS
igt@pm_rpm@universal-planes:
shard-kbl: DMESG-WARN (fdo#103558, fdo#105602, fdo#103313) -> PASS +1
fdo#100007 https://bugs.freedesktop.org/show_bug.cgi?id=100007
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103313 https://bugs.freedesktop.org/show_bug.cgi?id=103313
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#104873 https://bugs.freedesktop.org/show_bug.cgi?id=104873
fdo#105345 https://bugs.freedesktop.org/show_bug.cgi?id=105345
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105707 https://bugs.freedesktop.org/show_bug.cgi?id=105707
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (6 -> 6) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4135 -> Patchwork_8904
CI_DRM_4135: 266fa55ff4e1d3b7ab86deccf5709ee79c79f5dc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4460: f772d9a910130b3aec8efa4f09ed723618fae656 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_8904: 37171cccb14b53091dc0b53eb2da7ede859b1d1d @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4460: f74d92e704849610364b4474a2c67ea2008c14e0 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8904/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
2018-05-03 21:29 ` Chris Wilson
@ 2018-05-04 9:52 ` Joonas Lahtinen
0 siblings, 0 replies; 6+ messages in thread
From: Joonas Lahtinen @ 2018-05-04 9:52 UTC (permalink / raw)
To: Chris Wilson, intel-gfx; +Cc: Matthew Auld
Quoting Chris Wilson (2018-05-04 00:29:56)
> Following commit f773568b6ff8 ("drm/i915: nuke the duplicated stolen
> discovery"), the if-else-chain for determining the GTT size is redundant
> with the !chv branches all being the same.
>
> Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> References: f773568b6ff8 ("drm/i915: nuke the duplicated stolen discovery")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Regards, Joonas
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-05-04 9:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 21:27 [PATCH] drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() Chris Wilson
2018-05-03 21:29 ` Chris Wilson
2018-05-04 9:52 ` Joonas Lahtinen
2018-05-03 21:48 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe() (rev2) Patchwork
2018-05-03 22:04 ` ✓ Fi.CI.BAT: success " Patchwork
2018-05-04 2:14 ` ✓ Fi.CI.IGT: " Patchwork
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.