Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp805772pxb; Tue, 3 Nov 2020 13:03:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdqS7yiQulkQgTJp6m3Vq5qM7ep4EtAPwdac5XZkjXEsFL84i0ZjD9e+ohpJgfLCo3Em9T X-Received: by 2002:a05:6402:1750:: with SMTP id v16mr22030196edx.241.1604437397886; Tue, 03 Nov 2020 13:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437397; cv=none; d=google.com; s=arc-20160816; b=gjib0hxxY4B4nVGSja/4hpNYmzhRTf93xwPhesFIDUNW3SIh2fK2SddNjo3B6pmSBT kqLc+tR7F/3GPXODgeQWi4skoOZw8kDRUFpRJRITUpKjDaviG9ys0GG0B+LJ0Ch34WoQ sNnXSFkxi0LG/m8o8SOs50VH+k2an3exaCh7R9EpRHr9uuNGcidMa9L6XrB2GSEuMeF+ Izns8EXcxjdRs+hz3TFWK+NT8Qj2fvv8fVwNeULt1Qdqpe2X+GcOSXt15ySgvIo0ubPT 5WFhbd90BFEbl4VevJyq9fAAnFkIZGOV0ww1kulLF/JPL4SoZCtSLrXLVs7ALCoGukGa et8A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l3fwnP3Q/jpGWy1bOfGHYaxCTtE6NMkKqXddhYfaz+A=; b=bWG/UBt3dSW7pLQ28sQYFI9y9B54EQrZPMqjqSXbDI7d8LCCsTCOSzOJdlq7Tu9pLl CKclPskFH7QnJnrjWouMUuVSmQ4gm+iV4OuVjbBhjD2UPcGxZAYQydEyzPKowlMDxaij I9bUzac889jR9lp2TVOcbqelbqTX/KyTRcBPTd+qrRfYo2ep4iDsWbY7onoHR66VIm60 RnSpnUOODIFMb2Xd2zDyNWHny68UqSd0XYacpJ+xRIpWD0tlCiMrFZm68lm5KBhgExHD mfW0/cZZ5UcMRwwGUmEWf2o9FwKlnreJdlexxA0RaKRAsHSa+IFb9BAQ1tsPa2N3gDLz pM+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zs+P9SBI; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si1459907edx.602.2020.11.03.13.02.55; Tue, 03 Nov 2020 13:03:17 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=zs+P9SBI; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731317AbgKCU7p (ORCPT + 99 others); Tue, 3 Nov 2020 15:59:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:35036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732560AbgKCU7o (ORCPT ); Tue, 3 Nov 2020 15:59:44 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 25FA1223BF; Tue, 3 Nov 2020 20:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437183; bh=NGI8kfOtgD+B03FqUS/r+/N6XslvOicZxXgEFEfwXSM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zs+P9SBI329CDIAbUKZB5+gh72w1J4ISn/HntqfHfh4j6/U7PS+MEO9ZErgs2zlua 7pIh18AndS3ghDfVmg4gI5hWgb9ixQGHO4f9d2DRZn7QirZ0MVIOhnDkajJWM0ROV4 RbtTscoXMNWY6jQzNASIWMkUEl6BylZsf9n87ftU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jay Cornwall , Felix Kuehling , Alex Deucher Subject: [PATCH 5.4 182/214] drm/amdkfd: Use same SQ prefetch setting as amdgpu Date: Tue, 3 Nov 2020 21:37:10 +0100 Message-Id: <20201103203307.760826744@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jay Cornwall commit d56b1980d7efe9ef08469e856fc0703d0cef65e4 upstream. 0 causes instruction fetch stall at cache line boundary under some conditions on Navi10. A non-zero prefetch is the preferred default in any case. Fixes soft hang in Luxmark. Signed-off-by: Jay Cornwall Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c @@ -58,8 +58,9 @@ static int update_qpd_v10(struct device_ /* check if sh_mem_config register already configured */ if (qpd->sh_mem_config == 0) { qpd->sh_mem_config = - SH_MEM_ALIGNMENT_MODE_UNALIGNED << - SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT; + (SH_MEM_ALIGNMENT_MODE_UNALIGNED << + SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT) | + (3 << SH_MEM_CONFIG__INITIAL_INST_PREFETCH__SHIFT); #if 0 /* TODO: * This shouldn't be an issue with Navi10. Verify.