From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AG47ELvmZR9jz5qp1xZmtzJIPCpSh7ecV9yun/M4oIfIOh9BSVZi/fHXVsXV3B2kN5r0wvtpEV1T ARC-Seal: i=1; a=rsa-sha256; t=1521214066; cv=none; d=google.com; s=arc-20160816; b=isfkNLMoep5n6PzHJOQXvbgQytn3TZYBc29GO0t+euPklR1/7iFvmADjvkKHzRn04L gKr/YdckBu+sbJXR3rttkZsUWOuaFDlmH5ngmx/mw51gREN6BSQ6gFh+oH4tDn6SzsB9 SV7LM7+mn+sNoVpz9m233O807+h9E4YtgBDFy7yoECSIpB4qHn84s0OmVMkrtgmziRqh NZTsfZ+Qkf34euJxx7oR4Wc3CdFmJWnt67ZyI15f+aqdWkMus9iPFeyIR6hoZoCkax77 YBpBFWeJ9L+3pQMGUMp7Z/Jfpjdtu8ax4H4tvDZSYhlp9SFhWURfnOkKuT1MIQYdf7ke 2SBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=0BPwhYdhdEcHNREXdTluTowHDuV3+GjnAEJQtJzvc2Y=; b=AOLEQnRA2U/E3I/QoXlS+8s1XotuxWO7GNUCv8SPuaopybAPEW7wRSDxE8vCXfU9CE HuHscTCmluHjpvRKo7Ta/43Z1gPqyVFTY6hOmSX4TT9Bv3fyxZzl8XT2s6zd9fhM+Ut8 dQkfeDfIS+5uxMo9ija7ErTptgBLueTpxFw/tUc0b1xd7CR+jWjr4s8J33GzPSJl0imh dA8AxmmP6+6KcsPP8RfCxjKqAtNczH2cE5FSzudhJ+O3C3sJvyLkoqXbqtkrgFHUbW4p NPeLOfv23pZ8Mzy6pAz9v+DXYhzQ3PIdmaIqnv8GII/kKXsuBDSWfzcG5jK7a7Zolx2v jEbg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher Subject: [PATCH 4.4 11/63] drm/radeon: fix KV harvesting Date: Fri, 16 Mar 2018 16:22:43 +0100 Message-Id: <20180316152301.331346683@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1595108561510314044?= X-GMAIL-MSGID: =?utf-8?q?1595108561510314044?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.4-stable 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 Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- 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 @@ -3599,35 +3599,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;