From patchwork Thu Feb 15 18:13:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Perttunen X-Patchwork-Id: 874038 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=kapsi.fi header.i=@kapsi.fi header.b="Dfp9WECd"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zj4D70M1fz9t2f for ; Fri, 16 Feb 2018 05:14:15 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163798AbeBOSOM (ORCPT ); Thu, 15 Feb 2018 13:14:12 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:45229 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163671AbeBOSOK (ORCPT ); Thu, 15 Feb 2018 13:14:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Message-Id:Date:Subject:Cc:To:From; bh=Afumgal8ZJgxkSdfIAJXfMUGGPIXedjEac0RjULWmws=; b=Dfp9WECd1R/aTqzaDhFcivE7+SvSfa7VIAvgo/7cIB/DVI2/dRuVDsTAOsDQk9223fuF2PmBKjK/WMwOIU7a3oXnmvVIQ8Wtxa2OUcvKJI6DbSOOKK6t4gRuhRr8Vm6ROWszHBbJ7JSpvT50dNoaZxRRQRnhhoAdYiDGL07Kfq48cvPPQNoj+WxbZrwdnUYpIadb5qDR6Z1oSepFcIhg/BbWI2XYPs8g9aZY8HHk8SKbVZPYkjKhwPRT/OB/8SxPm351vSOmpM2vxyTEDVz7WSNXV+mwniZ49PHra/L8QIb6t2jnXsyOpInE5m8eE02njgSxx31442QU7aGju7K8oQ==; Received: from dsl-hkibng22-54f8db-42.dhcp.inet.fi ([84.248.219.42] helo=localhost.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1emO2m-00016X-FH; Thu, 15 Feb 2018 20:14:04 +0200 From: Mikko Perttunen To: kherbst@redhat.com Cc: mesa-dev@lists.freedesktop.org, linux-tegra@vger.kernel.org, Mikko Perttunen Subject: [PATCH] nvc0: Use GP100_COMPUTE_CLASS on GP10B Date: Thu, 15 Feb 2018 20:13:20 +0200 Message-Id: <20180215181320.17589-1-cyndis@kapsi.fi> X-Mailer: git-send-email 2.16.1 X-SA-Exim-Connect-IP: 84.248.219.42 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Mikko Perttunen GP10B requires the use of GP100_COMPUTE_CLASS instead of GP104_COMPUTE_CLASS as is used for other non-GP100 chips. Signed-off-by: Mikko Perttunen --- src/gallium/drivers/nouveau/nvc0/nve4_compute.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c index f641f47..28460f8 100644 --- a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c +++ b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c @@ -59,7 +59,8 @@ nve4_screen_compute_setup(struct nvc0_screen *screen, obj_class = GM200_COMPUTE_CLASS; break; case 0x130: - obj_class = dev->chipset == 0x130 ? GP100_COMPUTE_CLASS : GP104_COMPUTE_CLASS; + obj_class = (dev->chipset == 0x130 || dev->chipset == 0x13b) ? + GP100_COMPUTE_CLASS : GP104_COMPUTE_CLASS; break; default: NOUVEAU_ERR("unsupported chipset: NV%02x\n", dev->chipset);