From patchwork Mon Dec 5 10:27:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ander Conselvan de Oliveira X-Patchwork-Id: 9460791 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 1F6D36022E for ; Mon, 5 Dec 2016 10:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1961026419 for ; Mon, 5 Dec 2016 10:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E1E426E82; Mon, 5 Dec 2016 10:27:23 +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=-4.2 required=2.0 tests=BAYES_00, 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 9930426419 for ; Mon, 5 Dec 2016 10:27:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 38E666E116; Mon, 5 Dec 2016 10:27:20 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id DBCCC6E116 for ; Mon, 5 Dec 2016 10:27:18 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 05 Dec 2016 02:27:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,747,1477983600"; d="scan'208";a="13728580" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP; 05 Dec 2016 02:27:18 -0800 Received: from localhost (aconselv-mobl3.fi.intel.com [10.237.66.52]) by linux.intel.com (Postfix) with ESMTP id 8DCDC6A4080; Mon, 5 Dec 2016 02:26:32 -0800 (PST) From: Ander Conselvan de Oliveira To: intel-gfx@lists.freedesktop.org Date: Mon, 5 Dec 2016 12:27:14 +0200 Message-Id: <1480933634-23906-1-git-send-email-ander.conselvan.de.oliveira@intel.com> X-Mailer: git-send-email 2.5.5 Cc: Ander Conselvan de Oliveira Subject: [Intel-gfx] [PATCH xf86-video-intel] Add Geminialke PCI IDs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 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 Same ids from kernel's commit 8363e3c3947d0e22955f94a6a87e4f17ce5087b4 Author: Ander Conselvan de Oliveira Date: Thu Nov 10 17:23:08 2016 +0200 drm/i915/glk: Add Geminilake PCI IDs Signed-off-by: Ander Conselvan de Oliveira --- src/i915_pciids.h | 4 ++++ src/intel_module.c | 6 ++++++ src/sna/gen9_render.c | 12 ++++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/i915_pciids.h b/src/i915_pciids.h index 33466bf..e1f46bb 100644 --- a/src/i915_pciids.h +++ b/src/i915_pciids.h @@ -336,4 +336,8 @@ INTEL_KBL_GT3_IDS(info), \ INTEL_KBL_GT4_IDS(info) +#define INTEL_GLK_IDS(info) \ + INTEL_VGA_DEVICE(0x3184, info), \ + INTEL_VGA_DEVICE(0x3185, info) + #endif /* _I915_PCIIDS_H */ diff --git a/src/intel_module.c b/src/intel_module.c index e443c9e..68ec9fe 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -134,6 +134,10 @@ static const struct intel_device_info intel_kabylake_info = { .gen = 0112, }; +static const struct intel_device_info intel_geminilake_info = { + .gen = 0113, +}; + static const SymTabRec intel_chipsets[] = { {PCI_CHIP_I810, "i810"}, {PCI_CHIP_I810_DC100, "i810-dc100"}, @@ -335,6 +339,8 @@ static const struct pci_id_match intel_device_match[] = { INTEL_KBL_IDS(&intel_kabylake_info), + INTEL_GLK_IDS(&intel_geminilake_info), + INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info), #endif diff --git a/src/sna/gen9_render.c b/src/sna/gen9_render.c index 56c1b8d..b408746 100644 --- a/src/sna/gen9_render.c +++ b/src/sna/gen9_render.c @@ -240,6 +240,11 @@ static const struct gt_info kbl_gt_info = { .urb = { .max_vs_entries = 960 }, }; +static const struct gt_info glk_gt_info = { + .name = "Geminilake (gen9)", + .urb = { .max_vs_entries = 320 }, +}; + static bool is_skl(struct sna *sna) { return sna->kgem.gen == 0110; @@ -255,6 +260,11 @@ static bool is_kbl(struct sna *sna) return sna->kgem.gen == 0112; } +static bool is_glk(struct sna *sna) +{ + return sna->kgem.gen == 0113; +} + static inline bool too_large(int width, int height) { @@ -4012,6 +4022,8 @@ static bool gen9_render_setup(struct sna *sna) state->info = &bxt_gt_info; if (is_kbl(sna)) state->info = &kbl_gt_info; + if (is_glk(sna)) + state->info = &glk_gt_info; sna_static_stream_init(&general);