From patchwork Tue May 29 04:50:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Xu X-Patchwork-Id: 10429781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2EFD360327 for ; Mon, 28 May 2018 04:48:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20E2428B5E for ; Mon, 28 May 2018 04:48:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15D3D28B6F; Mon, 28 May 2018 04:48:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_24_48, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D42FF28B5E for ; Mon, 28 May 2018 04:48:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED07D6E12C; Mon, 28 May 2018 04:48:08 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3EB2D6E115 for ; Mon, 28 May 2018 04:48:08 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2018 21:48:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,450,1520924400"; d="scan'208";a="52786917" Received: from coxu-arch-shz.sh.intel.com ([10.239.160.25]) by FMSMGA003.fm.intel.com with ESMTP; 27 May 2018 21:48:07 -0700 From: colin.xu@intel.com To: jani.nikula@intel.com, intel-gfx@lists.freedesktop.org Date: Tue, 29 May 2018 12:50:38 +0800 Message-Id: <20180529045038.31397-3-colin.xu@intel.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529045038.31397-1-colin.xu@intel.com> References: <20180529045038.31397-1-colin.xu@intel.com> Subject: [Intel-gfx] [PATCH 2/2] drm/i915: Assign PCH_NONE for BXT in virtualization X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Xu On BXT platform, guest kernel request PCH_NONE to initialize display correctly. Signed-off-by: Colin Xu --- drivers/gpu/drm/i915/i915_drv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 637ba86104be..a09516a348e1 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -245,6 +245,10 @@ intel_virt_update_pch(struct drm_i915_private *dev_priv) id = INTEL_PCH_CNP_DEVICE_ID_TYPE; pch_type = intel_pch_type(dev_priv, id); DRM_DEBUG_KMS("Assuming CannonPoint PCH id %04x\n", id); + } else if (IS_BROXTON(dev_priv)) { + id = 0; + pch_type = intel_pch_type(dev_priv, id); + DRM_DEBUG_KMS("Assuming no PCH\n"); } else { id = 0; pch_type = PCH_NOP;