From patchwork Fri Jun 28 16:44:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Imre Deak X-Patchwork-Id: 13716410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0508EC2BD09 for ; Fri, 28 Jun 2024 16:44:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6D2E910ECB4; Fri, 28 Jun 2024 16:44:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QzXnLCjS"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8048310EC8C; Fri, 28 Jun 2024 16:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719593085; x=1751129085; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Hrzx0tYKglsjJaaFBqrkA9aNoCKO/WLkAqjL0968RxI=; b=QzXnLCjSGrdVzGSy7mcJMb5IWuOS65O0U0mAvz85YpGa/TLtBB1+mGx/ hzEsIIimbsQdpaeBibNpmP0XsKxeNDpxcLVUh+6SP5Dy9nLlfUgbGd2DE GhNo6nA9aCZoRBi2qTD/OkOgEY8z2nsHxxb6KHpZtgHvlj3GG5VTG15+g yLZzLk3EOq7I1TxmrNQXBKV1S8uSegUVtJ4yc+nZFjifpjTqkSyvST0Sz UK1tHzYJ1u3TSzDqTRDc0StYX78OgXPpPM1wQ2DE7rtANIUOdQx5802+H 4FEBazBFryyu2TYTVh5tsuHE20DbAHBzzGSG/OhJA5d3mUxZoKF+vyGO6 Q==; X-CSE-ConnectionGUID: m++4BgnYR2izPZflaIMPDg== X-CSE-MsgGUID: EsY26W+lQKG4N8U/nEtnqg== X-IronPort-AV: E=McAfee;i="6700,10204,11117"; a="16620064" X-IronPort-AV: E=Sophos;i="6.09,169,1716274800"; d="scan'208";a="16620064" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2024 09:44:45 -0700 X-CSE-ConnectionGUID: 830SMrKRSfqy5FWt9/8D4g== X-CSE-MsgGUID: ngL2ajgNTZajG8Mh10xxTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,169,1716274800"; d="scan'208";a="75519907" Received: from ideak-desk.fi.intel.com ([10.237.72.78]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2024 09:44:44 -0700 From: Imre Deak To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Jani Nikula Subject: [PATCH v2 0/9] drm/i915: Dump DSC state to dmesg/debugfs Date: Fri, 28 Jun 2024 19:44:41 +0300 Message-ID: <20240628164451.1177612-1-imre.deak@intel.com> X-Mailer: git-send-email 2.43.3 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is v2 of [1], renaming the helpers from drm_x16 to fxp_q4 as suggested by Jani. [1] https://lore.kernel.org/all/20240614173911.3743172-1-imre.deak@intel.com Cc: Jani Nikula Imre Deak (9): drm: Add helpers for q4 fixed point values drm/display/dsc: Add a helper to dump the DSC configuration drm/i915: Replace to_bpp_x16() with fxp_q4_from_int() drm/i915: Replace to_bpp_int() with fxp_q4_to_int() drm/i915: Replace to_bpp_int_roundup() with fxp_q4_to_int_roundup() drm/i915: Replace to_bpp_frac() with fxp_q4_to_frac() drm/i915: Replace BPP_X16_FMT()/ARGS() with FXP_Q4_FMT()/ARGS() drm/i915: Dump DSC state to dmesg and debugfs/i915_display_info drm/i915: Remove DSC register dump drivers/gpu/drm/display/drm_dp_helper.c | 5 +- drivers/gpu/drm/display/drm_dsc_helper.c | 91 +++++++++++++++++++ drivers/gpu/drm/i915/display/icl_dsi.c | 9 +- drivers/gpu/drm/i915/display/intel_audio.c | 5 +- drivers/gpu/drm/i915/display/intel_bios.c | 5 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 5 +- .../drm/i915/display/intel_crtc_state_dump.c | 3 + drivers/gpu/drm/i915/display/intel_display.c | 7 +- .../drm/i915/display/intel_display_debugfs.c | 4 + .../drm/i915/display/intel_display_types.h | 23 ----- drivers/gpu/drm/i915/display/intel_dp.c | 51 ++++++----- drivers/gpu/drm/i915/display/intel_dp_mst.c | 26 +++--- drivers/gpu/drm/i915/display/intel_fdi.c | 6 +- drivers/gpu/drm/i915/display/intel_link_bw.c | 4 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 51 ++++++----- drivers/gpu/drm/i915/display/intel_vdsc.h | 4 + include/drm/display/drm_dsc_helper.h | 3 + include/drm/drm_fixed.h | 23 +++++ 18 files changed, 222 insertions(+), 103 deletions(-) Acked-by: Jani Nikula