From: Dan Carpenter <dan.carpenter@oracle.com>
To: ander.conselvan.de.oliveira@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: drm/i915: Unify modeset and flip paths of intel_crtc_set_config()
Date: Tue, 12 May 2015 21:08:39 +0300 [thread overview]
Message-ID: <20150512180839.GB5672@mwanda> (raw)
Hello Ander Conselvan de Oliveira,
The patch bb5466235066: "drm/i915: Unify modeset and flip paths of
intel_crtc_set_config()" from Apr 21, 2015, leads to the following
static checker warning:
drivers/gpu/drm/i915/intel_display.c:12711 intel_crtc_set_config()
warn: we tested 'ret' before and it was 'false'
drivers/gpu/drm/i915/intel_display.c
12714 ret = intel_set_mode_with_config(set->crtc, pipe_config);
12715
12716 if (ret == 0 &&
^^^^^^^^
Test.
12717 pipe_config->base.enable &&
12718 pipe_config->base.planes_changed &&
12719 !needs_modeset(&pipe_config->base)) {
12720 struct intel_crtc *intel_crtc = to_intel_crtc(set->crtc);
12721
12722 /*
12723 * We need to make sure the primary plane is re-enabled if it
12724 * has previously been turned off.
12725 */
12726 if (ret == 0 && !primary_plane_was_visible &&
^^^^^^^^
Duplicate test.
12727 primary_plane_visible(set->crtc)) {
12728 WARN_ON(!intel_crtc->active);
12729 intel_post_enable_primary(set->crtc);
12730 }
12731
12732 /*
12733 * In the fastboot case this may be our only check of the
12734 * state after boot. It would be better to only do it on
12735 * the first update, but we don't have a nice way of doing that
12736 * (and really, set_config isn't used much for high freq page
12737 * flipping, so increasing its cost here shouldn't be a big
12738 * deal).
12739 */
12740 if (i915.fastboot && ret == 0)
^^^^^^^^
Another one.
12741 intel_modeset_check_state(set->crtc->dev);
12742 }
12743
12744 if (ret) {
12745 DRM_DEBUG_KMS("failed to set mode on [CRTC:%d], err = %d\n",
12746 set->crtc->base.id, ret);
12747 }
regards,
dan carpenter
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
reply other threads:[~2015-05-12 18:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150512180839.GB5672@mwanda \
--to=dan.carpenter@oracle.com \
--cc=ander.conselvan.de.oliveira@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox