Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2847488pxk; Mon, 28 Sep 2020 01:19:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/CLrmOBTpjT7fGhOrJAR+0teDMVsp0w7eLRm1KmqkTYE/gvj1DqioEs88yu9b8BMTVRvM X-Received: by 2002:a17:906:eb11:: with SMTP id mb17mr517297ejb.255.1601281198589; Mon, 28 Sep 2020 01:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601281198; cv=none; d=google.com; s=arc-20160816; b=qy3pKjHgwJxAE68v3BSxFovrbK4UPZRxWKUIwldT/CwZdJrK57fWJWj+wvb/7Efyxv WUFWCSuGNVKrOzEhfmmSzM+5hLWyBOAgbSK4QuXVPKHENhUyhhdb+uigZwkP4l9gViwP B79DKDIMX9QbPb7pJevjmCoxn0j7CoiJiIyujCzpxMyHCirFwmVbD21kmsePUEJx+Dp8 CNlARkLHVT8uO9n9gsLUAKR/uhLCEPUhBgxBiiSH9o3Lm1P3EYJac40/46qLIaEhNwh6 Isqr+cW2doJcP/uotVfN9wiFrf3HnI9zV2TtBxzmr5+3QnJFiDkVva/ld9BtRwvOjjAL QjaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from:ironport-sdr :ironport-sdr; bh=YkeIVnDc6Mj/dIxGScf3Lg9WCuqEAnoRG5dbTn8hCkc=; b=CHhe0/l2GCA1Sz6ISLbLXu7ht+DASOOgK7CBt073DMCB0UjQuFAHlQ78lIr0Wvjqfg yEpj1bwBThZz39B6Na4Ue4XZ3l8Pxt1au93aTrP0kHFOMbxgp3csoEsIgGLqclBHljWr pOE3hLvjJDLmNzEiTe1LceWqBOkDapa1xFrBJTSA7kLcJiufuz1M3EKF+tJM/Rv84KdL P1EXF42zlrf7zBkvan1dSbYXu+HlAh9is+rWtE4jikAFYDdYxjpa3zUpjHyfeUA8AHxi fty+qy6UVuOFi6Xl4fLYn9+L911zmfGB0qAoIa2Qpn8jJgfrl3f22c2hP2Fl52ue9JaF P26Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id co12si130890edb.104.2020.09.28.01.19.34; Mon, 28 Sep 2020 01:19:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726597AbgI1IRg (ORCPT + 99 others); Mon, 28 Sep 2020 04:17:36 -0400 Received: from mga18.intel.com ([134.134.136.126]:49004 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgI1IRg (ORCPT ); Mon, 28 Sep 2020 04:17:36 -0400 IronPort-SDR: 1y8XAFWAcSxU9hRQRo9RlRWIrKbPSjU8Q2Bs5/6qXHWiMacdxX5vTqvB0F4lujzjBS+IZ4ZQtX UNHv7LLoz+Qw== X-IronPort-AV: E=McAfee;i="6000,8403,9757"; a="149731283" X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="149731283" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 01:17:36 -0700 IronPort-SDR: gC6A3jfNWYw/d3dWfdxfoqC4PSbcBVb8mlUx3c36RhZGMEYdjKZNSZzmKOF2Zzw93ubX1S7jf7 Y3f+ShMA7LMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="414908903" Received: from tejas-system-product-name.iind.intel.com ([10.145.162.130]) by fmsmga001.fm.intel.com with ESMTP; 28 Sep 2020 01:17:32 -0700 From: Tejas Upadhyay To: rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, james.ausmus@intel.com, matthew.d.roper@intel.com, jose.souza@intel.com, ville.syrjala@linux.intel.com, lucas.demarchi@intel.com, hariom.pandey@intel.com Subject: [PATCH 1/2] drm/i915/jsl: Split EHL/JSL platform info and PCI ids Date: Mon, 28 Sep 2020 13:39:30 +0530 Message-Id: <20200928080931.246347-2-tejaskumarx.surendrakumar.upadhyay@intel.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200928080931.246347-1-tejaskumarx.surendrakumar.upadhyay@intel.com> References: <20200928080931.246347-1-tejaskumarx.surendrakumar.upadhyay@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Split the basic platform definition, macros, and PCI IDs to differentiate between EHL and JSL platforms. Signed-off-by: Tejas Upadhyay --- drivers/gpu/drm/i915/i915_drv.h | 4 +++- drivers/gpu/drm/i915/i915_pci.c | 9 +++++++++ drivers/gpu/drm/i915/intel_device_info.c | 1 + drivers/gpu/drm/i915/intel_device_info.h | 1 + include/drm/i915_pciids.h | 9 ++++++--- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 72a9449b674e..4f20acebb038 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1417,7 +1417,9 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915, #define IS_COMETLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_COMETLAKE) #define IS_CANNONLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_CANNONLAKE) #define IS_ICELAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_ICELAKE) -#define IS_ELKHARTLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_ELKHARTLAKE) +#define IS_ELKHARTLAKE(dev_priv) (IS_PLATFORM(dev_priv, INTEL_ELKHARTLAKE) || \ + IS_PLATFORM(dev_priv, INTEL_JASPERLAKE)) +#define IS_JASPERLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_JASPERLAKE) #define IS_TIGERLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_TIGERLAKE) #define IS_ROCKETLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_ROCKETLAKE) #define IS_DG1(dev_priv) IS_PLATFORM(dev_priv, INTEL_DG1) diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c index 366ddfc8df6b..8690b69fcf33 100644 --- a/drivers/gpu/drm/i915/i915_pci.c +++ b/drivers/gpu/drm/i915/i915_pci.c @@ -846,6 +846,14 @@ static const struct intel_device_info ehl_info = { .ppgtt_size = 36, }; +static const struct intel_device_info jsl_info = { + GEN11_FEATURES, + PLATFORM(INTEL_JASPERLAKE), + .require_force_probe = 1, + .platform_engine_mask = BIT(RCS0) | BIT(BCS0) | BIT(VCS0) | BIT(VECS0), + .ppgtt_size = 36, +}; + #define GEN12_FEATURES \ GEN11_FEATURES, \ GEN(12), \ @@ -985,6 +993,7 @@ static const struct pci_device_id pciidlist[] = { INTEL_CNL_IDS(&cnl_info), INTEL_ICL_11_IDS(&icl_info), INTEL_EHL_IDS(&ehl_info), + INTEL_JSL_IDS(&jsl_info), INTEL_TGL_12_IDS(&tgl_info), INTEL_RKL_IDS(&rkl_info), {0, 0, 0} diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c index adc836f15fde..e67cec8fa2aa 100644 --- a/drivers/gpu/drm/i915/intel_device_info.c +++ b/drivers/gpu/drm/i915/intel_device_info.c @@ -62,6 +62,7 @@ static const char * const platform_names[] = { PLATFORM_NAME(CANNONLAKE), PLATFORM_NAME(ICELAKE), PLATFORM_NAME(ELKHARTLAKE), + PLATFORM_NAME(JASPERLAKE), PLATFORM_NAME(TIGERLAKE), PLATFORM_NAME(ROCKETLAKE), PLATFORM_NAME(DG1), diff --git a/drivers/gpu/drm/i915/intel_device_info.h b/drivers/gpu/drm/i915/intel_device_info.h index 6a3d607218aa..d92fa041c700 100644 --- a/drivers/gpu/drm/i915/intel_device_info.h +++ b/drivers/gpu/drm/i915/intel_device_info.h @@ -79,6 +79,7 @@ enum intel_platform { /* gen11 */ INTEL_ICELAKE, INTEL_ELKHARTLAKE, + INTEL_JASPERLAKE, /* gen12 */ INTEL_TIGERLAKE, INTEL_ROCKETLAKE, diff --git a/include/drm/i915_pciids.h b/include/drm/i915_pciids.h index 7eeecb07c9a1..1b5e09cfa11e 100644 --- a/include/drm/i915_pciids.h +++ b/include/drm/i915_pciids.h @@ -579,15 +579,18 @@ INTEL_VGA_DEVICE(0x8A51, info), \ INTEL_VGA_DEVICE(0x8A5D, info) -/* EHL/JSL */ +/* EHL */ #define INTEL_EHL_IDS(info) \ INTEL_VGA_DEVICE(0x4500, info), \ INTEL_VGA_DEVICE(0x4571, info), \ INTEL_VGA_DEVICE(0x4551, info), \ INTEL_VGA_DEVICE(0x4541, info), \ - INTEL_VGA_DEVICE(0x4E71, info), \ INTEL_VGA_DEVICE(0x4557, info), \ - INTEL_VGA_DEVICE(0x4555, info), \ + INTEL_VGA_DEVICE(0x4555, info) + +/* JSL */ +#define INTEL_JSL_IDS(info) \ + INTEL_VGA_DEVICE(0x4E71, info), \ INTEL_VGA_DEVICE(0x4E61, info), \ INTEL_VGA_DEVICE(0x4E57, info), \ INTEL_VGA_DEVICE(0x4E55, info), \ -- 2.25.1