From mboxrd@z Thu Jan 1 00:00:00 1970 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 A3170C433F5 for ; Thu, 6 Oct 2022 16:32:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1CED710E650; Thu, 6 Oct 2022 16:32:27 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id DDEEC10E470 for ; Thu, 6 Oct 2022 16:32:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665073939; x=1696609939; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Oy8gXIrU+t3C4ecOsFKK4F72hseOo2fprafS/1DEQmU=; b=lexfSnTX3U0ONoVQvowe1BoFdeqJ20C0rS5s13DDMz3XilSqqnpg0nGp hU2ID0QDpYHR7BIGxJSpDjDLGzbFgtwXhjgcYQHIXjzz3sineYGknTU+d dzNO4x+GlcwWuOdvxcmNlwcL3DBhdUQ2MXSWXw78VDlnSjmLQKg3/KfVv tOPFxoaHCZC89TxN95z2HYHvQYJVhDf0zoXaDn9sYZ3D3hF89prHA3qmX uhh60Va3C6QOtQIysZ8keOziqsUwuyHwB7JkrjItMnNKZMDXdbZ80txTE wJhUsCg9LQzGUo2xwuykndZGZFdEMYetsGFupoP3JmL+0/9j6zP/OO1DC g==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="303473841" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="303473841" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 09:32:19 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="799951417" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="799951417" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 09:32:17 -0700 From: Andrzej Hajda To: intel-gfx@lists.freedesktop.org Date: Thu, 6 Oct 2022 18:31:56 +0200 Message-Id: <20221006163200.2803722-1-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH v2 0/4] Simplify uncore register updates X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi , Andrzej Hajda , Rodrigo Vivi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" This patchset should not modify behaviour of the code (except patch 3). It just replaces sequence of uncore read/modify/write with single call. Moreover it replaces nested pointers with alias if there is one. All patches except 3rd, were generated using coccinelle (quite ugly) and adjusted in some cases by hand. v2: - addressed comments by Andi, Jani and lkp, - despite Jani objections Ive left 1st patch with hope he will change his mind, if not it can be safely ignored :), - converted few more read/modifiy/write sequences in last patch, - style adjustements to make checkpatch happy. Regards Andrzej Andrzej Hajda (4): drm/i915/display: Use drm_device alias if defined drm/i915/display: Use intel_uncore alias if defined drm/i915: make intel_uncore_rmw() write unconditionally drm/i915: use proper helper for register updates drivers/gpu/drm/i915/display/icl_dsi.c | 4 +- drivers/gpu/drm/i915/display/intel_display.c | 3 +- .../drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/intel_hotplug.c | 2 +- drivers/gpu/drm/i915/display/intel_lvds.c | 13 +- drivers/gpu/drm/i915/display/intel_opregion.c | 2 +- drivers/gpu/drm/i915/display/intel_tc.c | 9 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 237 +++++++----------- drivers/gpu/drm/i915/intel_pm.c | 60 ++--- drivers/gpu/drm/i915/intel_uncore.h | 8 +- drivers/gpu/drm/i915/vlv_suspend.c | 28 +-- 12 files changed, 133 insertions(+), 237 deletions(-) -- 2.34.1