Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3983934pxb; Mon, 4 Oct 2021 14:25:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsJhQ73RxvDk5sKQJW4Yto6SnjyF4+3hi9k8hFHCAwKf/dZnoA5jZN7e9MqOUWKxezx/pX X-Received: by 2002:a50:8d51:: with SMTP id t17mr21029404edt.205.1633382705227; Mon, 04 Oct 2021 14:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633382705; cv=none; d=google.com; s=arc-20160816; b=tgJMPX5iUZeFvg1F/17gVXXcROS5haiarEGCA3NI1y30TJVR7xsANYPEqE63/Z39nu hfbT7bczoF6KtJXsTnLJfZOYWia4EDwa+fKHT++eU5Y+oOKHyGS1StdOUXZECvsH1C5I Mie/DB24Co2SAcgkUUjfWYIcBtIY+Qo8GwJ7R+TYhjvggj4p9sC1BcO3+L4j2DL1WJQ1 ZmEHkSquymT7tbbZJ9gbPjmSf57YpnG5zZqFyUm0ZYjddAVLxHYX567kf9GllNhjWmaK ar1V2MGpurIUlzcnOYP6J4pKqZWi6ZDdw30Hj+bXxWpvqI3AoA9TGEy/GUZH6lOter+4 HCIw== 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=F24kUErF8lkAwSlOb1jQDEAG+wtOdZOb31+j/iDAB9A=; b=vCie/eMlOnQ0uVU3bhIuHSJWYGyU5+P29sLujpo2DZUf6JW8bRXItiVd7bSYyBAkey KIthM6JPU+02aVtwZXhW9G2Sqi/LQer0/loRTr9TPeySYsRvId1KPxhScB6uBmyLOvOE LRFQSwag0QBpSBxlV/k3mZoDL+5cdbf5wDaGbB1xYMyo781mG4u2g+HFZVhlj9VdeY/d tSDwANLLRFyXFG+J5lzc4SVLb+5F3BzmH0uDGY6mFeV6ICYwJE0zorBoV0EcFdKiNtix VvnnZrhlPEyKoGVbCd1y3oJrN1ZZp8gXoSadlbyrJkNGKgixLgsHiCP2vgNuwG39iqAk m1eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zY9JMVzJ; 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 qq20si805928ejb.694.2021.10.04.14.24.41; Mon, 04 Oct 2021 14:25:05 -0700 (PDT) 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=zY9JMVzJ; 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 S237608AbhJDNej (ORCPT + 99 others); Mon, 4 Oct 2021 09:34:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:43772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237461AbhJDNc3 (ORCPT ); Mon, 4 Oct 2021 09:32:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AFB9563221; Mon, 4 Oct 2021 13:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353284; bh=tmGiThP31HXkGg+WqBTjIxvSxgtWW1HESu9FfhnoEFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zY9JMVzJ/gMetdZ9lrW+9g5j077yqLXcs8cobSlhBTvOvkpBWkEVhVWZMMKeVemb9 h/BlrUB6jh7Qi+eBZEr1NvMaqp+ex9MGsdyKcA5XglsjIgisf+mj2CtXqpcA0B+tjF Jeq5FC3LpLVTo5tu2WWdQHAvcGfPC5yGzfg1CBGU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhan Liu , Anson Jacob , Charlene Liu , Daniel Wheeler , Alex Deucher Subject: [PATCH 5.14 068/172] drm/amd/display: Pass PCI deviceid into DC Date: Mon, 4 Oct 2021 14:51:58 +0200 Message-Id: <20211004125047.187531102@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@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: Charlene Liu commit d942856865c733ff60450de9691af796ad71d7bc upstream. [why] pci deviceid not passed to dal dc, without proper break, dcn2.x falls into dcn3.x code path [how] pass in pci deviceid, and break once dal_version initialized. Reviewed-by: Zhan Liu Acked-by: Anson Jacob Signed-off-by: Charlene Liu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1117,6 +1117,7 @@ static int amdgpu_dm_init(struct amdgpu_ init_data.asic_id.pci_revision_id = adev->pdev->revision; init_data.asic_id.hw_internal_rev = adev->external_rev_id; + init_data.asic_id.chip_id = adev->pdev->device; init_data.asic_id.vram_width = adev->gmc.vram_width; /* TODO: initialize init_data.asic_id.vram_type here!!!! */