Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2433118imm; Thu, 7 Jun 2018 10:28:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLzG7Kojmb4iZxER122uXgoNv1gCBMla1p0ANctP+LaqjymrCIGYIMbW9+WEQ4nzZ1XwWUw X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr2866046plq.215.1528392538878; Thu, 07 Jun 2018 10:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528392538; cv=none; d=google.com; s=arc-20160816; b=kPexY+i5HlO/qqVV0gKdUhmVSi3PkquXFFxa0I5lM+frnwJhks9LQDQ+gkyRo1zCCS dst7RGhscBMdsKm/qJogXuoa91N8FMp2mf3lXyJGaeH+vRyEXvL3Sudz+AuQQXjbpQ5g GYtmW7cmGjtsoY6mtC7GaI/+kMMUtUD23qNMvDqlfXbgIK01Oza4lqNzVN6M96+79AxG vkhqXuusB+2CcWMljPgNPg3QyfANdx8pBrOCmr5U3+OWq20hUWN4KfpXNOhaZJUIJcbW y1LF6w3Z1WCGhMwhCeD9vKdxmTwihBBso2DF8DFLF0lMLczccGxsD+wnj7caA3u1ROk7 WM5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=Q6tXurxS47T6dLmGTCSgNoYg6r5MpMoBNlTCkwEsgx0=; b=Pgvs7Ci8OgWvLUTlexcyjVIIfULnoUGMIthrYfjjK6Zox4HfzWHrY3jy1AvLCiV7vs g3l+tpB94Zq3bD48eGURv8KX+AvzG6zWk8C8LmzDORn8fgVLbP/QHud+L9jq4QwBMyof Oq6UfrkgCoj7QNtSBWEwm75bA2GCvDnLuiwgPwn3LA5JGkQQKV/AtdI/FMn3427uRDkz 8mmMserFvUkJIn+zagf6Saeeo07V5/ZWhtaom+6ddXiTdhWv9kYn1VLxjlNtGt6VCQR8 zWmVVmwyNnzhKyTJe2zM+Ug8JSJEAoakrof/Gxbp85Q5TSud/3hrqzvYd00fNqKvqdxU VNWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si5912006pfh.119.2018.06.07.10.28.44; Thu, 07 Jun 2018 10:28:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933899AbeFGOes (ORCPT + 99 others); Thu, 7 Jun 2018 10:34:48 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40360 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933760AbeFGOep (ORCPT ); Thu, 7 Jun 2018 10:34:45 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbS-0005hK-7p; Thu, 07 Jun 2018 15:09:26 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvbC-0003CP-2g; Thu, 07 Jun 2018 15:09:10 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Alex Deucher" , "Christian =?UTF-8?Q?K=C3=B6nig?=" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 333/410] drm/radeon: fix KV harvesting In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Alex Deucher commit 0b58d90f89545e021d188c289fa142e5ff9e708b upstream. Always set the graphics values to the max for the asic type. E.g., some 1 RB chips are actually 1 RB chips, others are actually harvested 2 RB chips. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99353 Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Ben Hutchings --- drivers/gpu/drm/radeon/cik.c | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -3299,35 +3299,8 @@ static void cik_gpu_init(struct radeon_d case CHIP_KAVERI: rdev->config.cik.max_shader_engines = 1; rdev->config.cik.max_tile_pipes = 4; - if ((rdev->pdev->device == 0x1304) || - (rdev->pdev->device == 0x1305) || - (rdev->pdev->device == 0x130C) || - (rdev->pdev->device == 0x130F) || - (rdev->pdev->device == 0x1310) || - (rdev->pdev->device == 0x1311) || - (rdev->pdev->device == 0x131C)) { - rdev->config.cik.max_cu_per_sh = 8; - rdev->config.cik.max_backends_per_se = 2; - } else if ((rdev->pdev->device == 0x1309) || - (rdev->pdev->device == 0x130A) || - (rdev->pdev->device == 0x130D) || - (rdev->pdev->device == 0x1313) || - (rdev->pdev->device == 0x131D)) { - rdev->config.cik.max_cu_per_sh = 6; - rdev->config.cik.max_backends_per_se = 2; - } else if ((rdev->pdev->device == 0x1306) || - (rdev->pdev->device == 0x1307) || - (rdev->pdev->device == 0x130B) || - (rdev->pdev->device == 0x130E) || - (rdev->pdev->device == 0x1315) || - (rdev->pdev->device == 0x1318) || - (rdev->pdev->device == 0x131B)) { - rdev->config.cik.max_cu_per_sh = 4; - rdev->config.cik.max_backends_per_se = 1; - } else { - rdev->config.cik.max_cu_per_sh = 3; - rdev->config.cik.max_backends_per_se = 1; - } + rdev->config.cik.max_cu_per_sh = 8; + rdev->config.cik.max_backends_per_se = 2; rdev->config.cik.max_sh_per_se = 1; rdev->config.cik.max_texture_channel_caches = 4; rdev->config.cik.max_gprs = 256;