Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1709848pxb; Mon, 8 Mar 2021 04:37:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1ab3wXQ/pXDRoUaQWnbw/vT3QjOtQ8hRpPjye4Sz4NZz2d4+Nw3nCAYEnCySiDrpC58WU X-Received: by 2002:a17:906:9386:: with SMTP id l6mr14487711ejx.455.1615207043389; Mon, 08 Mar 2021 04:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615207043; cv=none; d=google.com; s=arc-20160816; b=CoCk0r6k2xUzMwOqNQcu6ZrVdbBdU+OQRY9RAOy6QfpavgxAHODbumLpjhlrMVdzZw wEzUM8R//p8zrPY5UuA3yxph/yk1P73YcBqFamwR24fWTx7OjfD92PP0j8OxTiyfH0Aq JoTZ2AolD/UfxuWcbvieGcukygTxA6aqtZ3P27eWD6zNxzmq0ZSdtUA2KIx1xB6VgsvP DDwG8qkEwXvbb70iw06kocGZ8W3iUpNQzj43TtpFND0pDgP+ac9RvBlevQxCObSM/pFg j0gNOf8DE15i/0/QLkWF5rj7KEpuI8CFLfqmUJswLvEVRTdon38nO1uybqIhh9F+ewro bHVg== 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=u4JErAU0nG9f0shyFlFZxqgP6cMCmfwIPf5MPqCoNVU=; b=XUkihq9iiEP3J4axVjxQay+rZqBl8uyqfKEiZ/R7m0V77lv74w7nTeA93DP7AosZA5 AC85H+7rOiVybfYct0M88/pvTeHt1auUBBgAn9W4HAaG6T22ov6WJ6b9WprYQGvd1dtm TYLJp0aE0hg1d2a4Jti9aDgCZG2SjhVKATEMB6Kvoaplz4WU0rB1gnv7R/T3qkIBjLef MKON4vPfjPuTzlxHk8v1qzUAMXcaR6raLI7zkkCK9DA1wBKAeNCXdMf9tUclFHisobNv GMzI0Puzq1kTpgGlx8vazazX1QDx/WC2kFVKhctt2Vyh0SKNqPwqAuJwI6PgEHubA8Qf N0wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cPaPgIIz; 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=pass (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 ca23si3088987edb.133.2021.03.08.04.37.00; Mon, 08 Mar 2021 04:37:23 -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=@linuxfoundation.org header.s=korg header.b=cPaPgIIz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbhCHMff (ORCPT + 99 others); Mon, 8 Mar 2021 07:35:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:44200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbhCHMfH (ORCPT ); Mon, 8 Mar 2021 07:35:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90A95651C9; Mon, 8 Mar 2021 12:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615206907; bh=LzbW4j5Qgv6KG8N46KH0GEZepSQlTDjEDLa1GjY9YKQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cPaPgIIzgS+pY58SFAUcLbSM4M8WaLw7+n1B12CCqElM/SOqf7C8y8CGA1g/wAmFj YZXgrfumel8SFN/41cHFGrqneJs6eFmv+1Q5wL1OIqwrEUJwJyVqe/hwdmAZ3iXrUM QWZW7shHpaqVeL2RXF6zskxZLQxXsbMhiVo8SyRM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guchun Chen , "Asher.Song" , Alex Deucher Subject: [PATCH 5.10 21/42] drm/amdgpu:disable VCN for Navi12 SKU Date: Mon, 8 Mar 2021 13:30:47 +0100 Message-Id: <20210308122719.171442111@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308122718.120213856@linuxfoundation.org> References: <20210308122718.120213856@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: Asher.Song commit 0c61ac8134ffc851681ce5d4bd60d97c3d5aed27 upstream. Navi12 0x7360/C7 SKU has no video support, so remove it. Reviewed-by: Guchun Chen Signed-off-by: Asher.Song Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/nv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -459,7 +459,8 @@ static bool nv_is_headless_sku(struct pc { if ((pdev->device == 0x731E && (pdev->revision == 0xC6 || pdev->revision == 0xC7)) || - (pdev->device == 0x7340 && pdev->revision == 0xC9)) + (pdev->device == 0x7340 && pdev->revision == 0xC9) || + (pdev->device == 0x7360 && pdev->revision == 0xC7)) return true; return false; } @@ -524,7 +525,8 @@ int nv_set_ip_blocks(struct amdgpu_devic if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT && !amdgpu_sriov_vf(adev)) amdgpu_device_ip_block_add(adev, &smu_v11_0_ip_block); - amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block); + if (!nv_is_headless_sku(adev->pdev)) + amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block); if (!amdgpu_sriov_vf(adev)) amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block); break;