From: Damien Lespiau Subject: [PATCH 0/6] Kill IS_ULT() in favour of the per-product variant Date: Wed, 1 Oct 2014 20:04:12 +0100 Message-ID: <1412190258-4152-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E29E6E129 for ; Wed, 1 Oct 2014 12:04:33 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org A few reasons why I'd like to do that: - IS_ULT() started as a HSW-only macro but has grown to mean IS_BDW_ULT/ULX as well. That means a few usages of IS_ULT() were slightly out of place (because we really meant checking for IS_HSW_ULT()). - Being a ULT/ULX package doesn't mean anything specific in term of functionnality when looking across HSW/BDW/SKL, it's more about the TDP of that SKU. So it doesn't make a lot of sense to continue growing IS_ULT() to encompass SKL. - The SPT detection code was using IS_ULT() for consistency with HSW and then, because the current IS_ULT() macro didn't know about SKL, we were triggering a warning. We now know that the pairing is a 1:1 relationship between the ULT/ULX SKUs and the LP PCHs, so we don't strickly need this check there and there's nothing needing a ULT/ULX check on SKL at the moment, so just discarded it in the PCH detection code. -- Damien Damien Lespiau (6): drm/i915: Use IS_HSW_ULT() in a HSW specific code path drm/i915: Use IS_HSW_ULT() in HAS_IPS() drm/i915: Spell out IS_HSW/BDW_ULT() in intel_crt_present() drm/i915: Use IS_HSW_ULT() in HSW CDCLK clock read-out drm/i915/skl: Don't check for ULT/ULX when detecting the PCH drm/i915: Remove IS_ULT() drivers/gpu/drm/i915/i915_drv.c | 6 ++---- drivers/gpu/drm/i915/i915_drv.h | 3 +-- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) -- 1.8.3.1