Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1124283imm; Wed, 20 Jun 2018 12:01:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJCr/BxTEVHR6i+YrXzsYE/7ZeNXF29Y3dfcPWe55+gCuirJtHlc5Z/HM8COZ3liq7reNy8 X-Received: by 2002:a62:b612:: with SMTP id j18-v6mr24229249pff.199.1529521299225; Wed, 20 Jun 2018 12:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529521299; cv=none; d=google.com; s=arc-20160816; b=uFZ/dmREpd+WHOTkjtyuor4WSTopOwJKEsQ01MgxBPa3ckalI8QRtlym9yoBWn1ij0 8APJnNx+m7/QTOSXYnXsJGRfjUBxuVVbqvNRtSwv8fSN1LNWFsK02BGKuilQ8JrvcOGn kNUiLu7dXuMeY13RKKBPrkGi5zG9TTMqFXwBXe1lo6kDG1FArLrM2nfuvum7GtYpCvwh u1tsPc/x6IPQ1x7X67Go0coPYCCRw44HZ1PIxK/HgRZBuaVAaknLNR6QBMVrJ2zoVoN3 7AuzxJX/QOImIUmdI5eRpSkATNfPdq9UGB3BnoUFZoUG/88d3js1BbaDwWCracONE9fN N63Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=X9sSoCyS+qXTdj4CFmTPYHFZo4/JUy/V41Px9Aolg/I=; b=Q/rGum8v9mRtetFd1SOGJS6eqrEVhkvl+n7h5YHX0pidwhX0y7TYlFRn2JzoTl+B5p GZyDeRuAw71A4G5GUMmwtrAFtWA3QvCM6W/927uAy0G+WaXx+DGkUlM1KdFC5EAmOKjA FM2jveypLtLG7s4opmxljWJwQotfwlCAYNWHLRuibNBNPY0TzuE3V//AwsXhTKQAV1H+ qlVhQkFsRQe2s91GiWlwtn0vi+mfqph/PHFxPjcBI3IjK1RbuzZzOLi1dx71074CRPwg bhquTtJDhahw5RldPaUNBheGw0fujvWt5GT2wm330ISGvgajPmX9A2ZK/Bzc/Bt6IIJA b9sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg1-v6si2884902plb.359.2018.06.20.12.01.13; Wed, 20 Jun 2018 12:01:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932501AbeFTTAC (ORCPT + 99 others); Wed, 20 Jun 2018 15:00:02 -0400 Received: from mga02.intel.com ([134.134.136.20]:28836 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932365AbeFTTAA (ORCPT ); Wed, 20 Jun 2018 15:00:00 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2018 11:59:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,248,1526367600"; d="scan'208";a="50920813" Received: from rdvivi-vienna.jf.intel.com (HELO intel.com) ([10.7.196.88]) by orsmga008.jf.intel.com with ESMTP; 20 Jun 2018 11:59:59 -0700 Date: Wed, 20 Jun 2018 11:59:56 -0700 From: Rodrigo Vivi To: Colin King Cc: Jani Nikula , Joonas Lahtinen , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] drm/i915/psr: fix copy-paste error with setting of tp2_wakeup_time_us Message-ID: <20180620185956.GB8258@intel.com> References: <20180620132543.28092-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180620132543.28092-1-colin.king@canonical.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 02:25:43PM +0100, Colin King wrote: > From: Colin Ian King > > Currently for the psr_table->tp2_tp3_wakeup_time case 3 there appears > to be a copy-paste error from the previous switch statement where > dev_priv->vbt.psr.tp1_wakeup_time_us is being assigned and I believe > it should be dev_priv->vbt.psr.tp2_tp3_wakeup_time_us that should be > assigned instead. > > Detected by CoverityScan, CID#1470105 ("Copy-paste error") > > Fixes: 77312ae8f071 ("drm/i915/psr: vbt change for psr") > Signed-off-by: Colin Ian King Reviewed-by: Rodrigo Vivi pushing to dinq now. thanks for the patch. > --- > drivers/gpu/drm/i915/intel_bios.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c > index 03f04b472394..e0a14be1080a 100644 > --- a/drivers/gpu/drm/i915/intel_bios.c > +++ b/drivers/gpu/drm/i915/intel_bios.c > @@ -740,7 +740,7 @@ parse_psr(struct drm_i915_private *dev_priv, const struct bdb_header *bdb) > dev_priv->vbt.psr.tp2_tp3_wakeup_time_us = 100; > break; > case 3: > - dev_priv->vbt.psr.tp1_wakeup_time_us = 0; > + dev_priv->vbt.psr.tp2_tp3_wakeup_time_us = 0; > break; > default: > DRM_DEBUG_KMS("VBT tp2_tp3 wakeup time value %d is outside range[0-3], defaulting to max value 2500us\n", > -- > 2.17.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel