From patchwork Fri Sep 17 07:27:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1529227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=Vq96TxiP; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H9lt61Pj6z9t0T; Fri, 17 Sep 2021 17:28:12 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mR8I1-0005Ml-Hb; Fri, 17 Sep 2021 07:28:05 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mR8I0-0005MZ-5Z for kernel-team@lists.ubuntu.com; Fri, 17 Sep 2021 07:28:04 +0000 Received: from HP-EliteBook-840-G7.. (1-171-209-135.dynamic-ip.hinet.net [1.171.209.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 0F8F241920 for ; Fri, 17 Sep 2021 07:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631863683; bh=jtkP6Uc89a5m4wS9XMkniRKGjbtXYvTyXPSmRkysBuE=; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Vq96TxiPAOjw7ukVzzOjJl0LsRAUN1I9SK9DsLyjKffaH9OSi1+EUlOSUnISLcM+a uatTHJrYdjmIziNRxdM4gA2w1/VA4aRvvn3BGI1qSCgY5HEf/vEGE1kfeTGbJ55hfM ecpQ8QRCa1fV+MNnb0yxiLzGEO/+HkruXRRSIyvfGM0Re6JKgL5v7K2PUAFZLesBPx LEw3+mC3vl0yi/O1JiOq6itNvuE2rS6vpY1PxlTczm7NS9WWzYrW1eoBLKeJxB77AO nqHE1t5YoCY8UDruALctAHpE5SbTOtQ4IcpjxsdWRw/FwWIenCMvaf1m8l0IMFtUTC T5VSL5F6ezQlQ== From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [SRU] [OEM-5.10] [PATCH 0/3] Fix i915 warnings on skl_dram_get_channel_info() Date: Fri, 17 Sep 2021 15:27:55 +0800 Message-Id: <20210917072758.706541-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1943923 [Impact] Kernel warning from i915's skl_dram_get_channel_info(). [Fix] Update how i915 gets DRAM information. [Test] No more kernel splat after the fix gets applied. Anything graphics related seems to work fine. [Where problems could occur] The change only applies to gen11 and gen12 gfx so the scope is limited. If the PCODE doesn't work as intended, this might cause regression. José Roberto de Souza (3): drm/i915: Nuke not needed members of dram_info drm/i915/gen11+: Only load DRAM information from pcode drm/i915: Rename is_16gb_dimm to wm_lv_0_adjust_needed drivers/gpu/drm/i915/display/intel_bw.c | 80 ++------------ drivers/gpu/drm/i915/i915_drv.c | 5 +- drivers/gpu/drm/i915/i915_drv.h | 6 +- drivers/gpu/drm/i915/intel_dram.c | 136 ++++++++++++++++-------- drivers/gpu/drm/i915/intel_pm.c | 2 +- 5 files changed, 108 insertions(+), 121 deletions(-) Acked-By: AceLan Kao