From: Chris Wilson Subject: Re: [PATCH 01/12] drm/i915: Reorganize the overclock code Date: Thu, 20 Mar 2014 07:23:28 +0000 Message-ID: <20140320072328.GD4890@nuc-i3427.alporthouse.com> References: <1392692512-2268-1-git-send-email-benjamin.widawsky@intel.com> <1395279079-12704-1-git-send-email-benjamin.widawsky@intel.com> <1395279079-12704-2-git-send-email-benjamin.widawsky@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id DBDCD891F8 for ; Thu, 20 Mar 2014 00:23:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1395279079-12704-2-git-send-email-benjamin.widawsky@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ben Widawsky Cc: Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Wed, Mar 19, 2014 at 06:31:08PM -0700, Ben Widawsky wrote: > The existing code (which I changed last) was very convoluted. I believe > it was attempting to skip the overclock portion if the previous pcode > write failed. When I last touched the code, I was preserving this > behavior. There is some benefit to doing it that way in that if the > first pcode access fails, the later is likely invalid. > > Having a bit more confidence in my understanding of how things work, I > now feel it's better to have clear, readable, code than to try to skip > over this one operation in an unusual case. > > Signed-off-by: Ben Widawsky Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre