From patchwork Wed Mar 8 15:39:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 66317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp411318wrd; Wed, 8 Mar 2023 07:50:27 -0800 (PST) X-Google-Smtp-Source: AK7set8AvPu1claeChEF4Fa7CGWy3064VnZspLWoKKfAHYufK0vMTatnPe96/QXrTgxC0pNxJ1B3 X-Received: by 2002:a17:90b:1a87:b0:236:84a:8da0 with SMTP id ng7-20020a17090b1a8700b00236084a8da0mr18620703pjb.13.1678290627053; Wed, 08 Mar 2023 07:50:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678290627; cv=none; d=google.com; s=arc-20160816; b=lpbSZmRD3LoGo7FSQzGLo3FtPIWYQyxWB8Du3rcXcZQ+d0aBRkYtzWihnWQd7yXqIZ S76KjeWFe5LkU4cxM/bDGZQnnnxlHkJKzNlCvDuzD8TWfNnCPiW39ehVWNd3S37NWCOM uOTLw5Z1PxOqkaG/+sPIzi4Xbis8c/qQ+wiojq4V36dTxRCZERFPzvy4dqBjg6c4DEQa KXsuIYqoZtW7kSrGj+4x3b/gVTqQGCDC5lLJzZSrZ4EBbaT4E9F05DuZaIDyZrTCJS5U i8abZz9kvNRqx5asERFUtL/jPSiDTRYd/lw4aQCLiwzFY74CHsbbtHGphS0ggs0gUDDM FSYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=8q2V1mJUY2JHzcCJqb5EYybUNkiedqyhG1rA9asKfOA=; b=gcPkV5tRrUA7NMWdRvDdp6GLeld0vB2mLNBpyEiueaaN+02xZFs1pee5LiOoCtN8tn UMf3K4mxq4C2Xtyq8gSetSs9TvL+1BiN5W8zVCovof+pqoSucpuE5h7WvQksE1OSZ17l tNkVUwguvLtJujepQb2EJFZSS11zZwCa042C7WSVdDzxFliRBdQqz5xTz2WX6DjsTNOt i3+XeF/KM5LH9OIb4PmJDnNbWLdnwiNZL5oPgSTZbhG+wT8q8tJ716GdYtJqmLniY2+F RWMQf7/L5UWgShx4uNz4l03JV+5tCd/86b2tHLKQc8akGU8w+oH2844YxXIFoCl2BWFf /kwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ifRZDgdu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh6-20020a17090b4ac600b00223facc5d2csi17560780pjb.162.2023.03.08.07.50.10; Wed, 08 Mar 2023 07:50:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ifRZDgdu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbjCHPkn (ORCPT + 99 others); Wed, 8 Mar 2023 10:40:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbjCHPkN (ORCPT ); Wed, 8 Mar 2023 10:40:13 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C576238667 for ; Wed, 8 Mar 2023 07:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678289991; x=1709825991; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=Se/biot0lVFjHYoy6HUt2Ws+mFr0uN1AGnXhhRrqKoQ=; b=ifRZDgduRD7frqZ+g68XDawNtJbLPkzR8BvZFhHMvMMvaoHdXUNyE96j 8PpL68NuKDPYiOfMF2os9kqA3hJWWOraIFYnqFLcxBqUWj0ZZjMFPdVG0 5pSWNkqKQWbQestNRibo89Ks4Vs1M1Xi0EcUstYZgA9hJU16q2iAcwjR7 bW3zLp6QA9rjAbOhcLTxZHXOnr/qC8gWCaWPz/BLcVU259YGGuXehFdrK RkQLhXLT+/P/s8QiPpBotHcFswtB30Jb1gcHrNqtNFdtOAxle7KUo1iTu qF4xJWHYmKHmUq5h+eVle5HTq0fkZXh3lue26BBDz8rADObHGwdVVJsFs Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="337703559" X-IronPort-AV: E=Sophos;i="5.98,244,1673942400"; d="scan'208";a="337703559" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 07:39:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="787160261" X-IronPort-AV: E=Sophos;i="5.98,244,1673942400"; d="scan'208";a="787160261" Received: from lab-ah.igk.intel.com ([10.102.42.211]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 07:39:46 -0800 From: Andrzej Hajda Date: Wed, 08 Mar 2023 16:39:04 +0100 Subject: [PATCH v5 2/4] drm/i915/display: use nop_clear_range instead of local function MIME-Version: 1.0 Message-Id: <20230308-guard_error_capture-v5-2-6d1410d13540@intel.com> References: <20230308-guard_error_capture-v5-0-6d1410d13540@intel.com> In-Reply-To: <20230308-guard_error_capture-v5-0-6d1410d13540@intel.com> To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Andi Shyti , Chris Wilson , Nirmoy Das , Andrzej Hajda X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759815272387069054?= X-GMAIL-MSGID: =?utf-8?q?1759815272387069054?= Since nop_clear_range is visible it can be used here. Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti --- drivers/gpu/drm/i915/display/intel_dpt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c index ad1a37b515fb1c..eb9d1a6cbfb9dd 100644 --- a/drivers/gpu/drm/i915/display/intel_dpt.c +++ b/drivers/gpu/drm/i915/display/intel_dpt.c @@ -73,11 +73,6 @@ static void dpt_insert_entries(struct i915_address_space *vm, gen8_set_pte(&base[i++], pte_encode | addr); } -static void dpt_clear_range(struct i915_address_space *vm, - u64 start, u64 length) -{ -} - static void dpt_bind_vma(struct i915_address_space *vm, struct i915_vm_pt_stash *stash, struct i915_vma_resource *vma_res, @@ -291,7 +286,7 @@ intel_dpt_create(struct intel_framebuffer *fb) i915_address_space_init(vm, VM_CLASS_DPT); vm->insert_page = dpt_insert_page; - vm->clear_range = dpt_clear_range; + vm->clear_range = nop_clear_range; vm->insert_entries = dpt_insert_entries; vm->cleanup = dpt_cleanup;