Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1833108rwr; Fri, 28 Apr 2023 02:26:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YYPlFxZIBP1Na8MflqH4xjJMurSzaXJ+LADhGVh3RHVe0+hGu0XHDjvIeFF6/FYEoU8+8 X-Received: by 2002:a17:902:f7c5:b0:19e:2fb0:a5d9 with SMTP id h5-20020a170902f7c500b0019e2fb0a5d9mr8169444plw.32.1682673971656; Fri, 28 Apr 2023 02:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682673971; cv=none; d=google.com; s=arc-20160816; b=0GSnWOHGIT8dmhKLNJGcspoKHqASkInnQrwn6iId/mHQkD6k5Mngi+AaXzlITuH55x CZiaLY7YEbEq7aGoL9z/khM/MZbL0VV0KaYvezSBdJx4L2Z4GWwyxeK8pY3m0WnKaD8Y sPrY+BAx2rtWtzfaKejfoMaBOUfvDQt/d/nkQBVD1bd4yvpMAhmvL4at7CGcGLkiW2Ci KXoH/mCU7BK52fMnWGj6o9hiWhHQckJL2fe8beSzgZ6VjDiVQxwo1Q9e7ZvTYwv/ouE5 jtM/6js7VN2nA//QaHXStZ2eESpA7WNRk/FSqYr5x0Bu2rUz38k5juRly3G0gWOovKd8 kFCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=awKysEfOKFtscas05pQMY2XWJsT0gGA2z3xQjV4cPIk=; b=jMKKbayPytUMAJGuC3o4zbXzhVi2In+2nQ9qtMttcQkVZXRBdggJME40/v4QCwotKG NL1PEcFw2vJ5zRJvPDCnJs9Gqn9p91OpA05MRUF+2eZqA56YiGpi/hqF5niydYV0YW6w gQ+xu3M69ys2urM7z852Hh8VmdqNI9+ClhlhdBMZt3q/Oc7ICRmmHSPlygYtzQ+Igt+S Wr7vb1by9sZ2xcVF7n2NvvOmmSnBEe5C6YITmpSl/gJGfkZuYC424koBoGJB4MaKV/A0 mll+pDpI5lDMaLJnj+sym84kMoXSCysXwqDewojHJr4Dj8syPei75BbL9SyEAsCMk0YL khVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jOG0kANj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902f64500b001a96b56099bsi14559355plg.356.2023.04.28.02.25.59; Fri, 28 Apr 2023 02:26:11 -0700 (PDT) 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=jOG0kANj; 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 S1345663AbjD1JIO (ORCPT + 99 others); Fri, 28 Apr 2023 05:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345675AbjD1JIG (ORCPT ); Fri, 28 Apr 2023 05:08:06 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53EDA468C for ; Fri, 28 Apr 2023 02:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682672876; x=1714208876; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6TJUkTvdrEYkbGsK6S0/HtOdmSBnybS0AaWaNHFMuvU=; b=jOG0kANjFvhACMNIvlDe+VeKT9WLDHVZWSrDlXtKuNcnXHIat/yAnRh6 p6hcK6aoq2BJmhMD80Ukn7ePRPT5Ej85FtBthSMYhEmIbAScDMtKVt92v 34A3HC1gt1zORK2OwYSOjiugHcYw8Rv6WQ60miQl8T+cXc1Bv/kBYcvpG r7bGw4A7dp/cx4DTOdrCYizlBrxHBTp2LkRa+tfjIkaZrx5NMtYfeXwHI B37WIqPIIPlIwXCBqNszfREl3u3eYO/mwuG13Cez4qD3Pd1Pe9KXcV13z vayvY9jfSq4iczLS1T7GpEWbnF7cFya9aOO/6sRPyGUsrybkoUyuBb6Nz w==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="332001158" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="332001158" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 02:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="727464277" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="727464277" Received: from ahermans-mobl1.ger.corp.intel.com (HELO intel.com) ([10.252.35.91]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 02:07:46 -0700 Date: Fri, 28 Apr 2023 11:07:43 +0200 From: Andi Shyti To: Andrzej Hajda Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jonathan Cavitt , Matthew Auld Subject: Re: [Intel-gfx] [PATCH v8 2/2] drm/i915: Use correct huge page manager for MTL Message-ID: References: <20230425-hugepage-migrate-v8-0-7868d54eaa27@intel.com> <20230425-hugepage-migrate-v8-2-7868d54eaa27@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425-hugepage-migrate-v8-2-7868d54eaa27@intel.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,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 Hi Andrzej, > MTL currently uses gen8_ppgtt_insert_huge when managing huge pages. > This is because MTL reports as not supporting 64K pages, or more > accurately, the system that reports whether a platform has 64K pages > reports false for MTL. This is only half correct, as the 64K page support > reporting system only cares about 64K page support for LMEM, which MTL > doesn't have. > > MTL should be using xehpsdv_ppgtt_insert_huge. However, simply changing > over to using that manager doesn't resolve the issue because MTL is > expecting the virtual address space for the page table to be flushed after > initialization, so we must also add a flush statement there. > > Signed-off-by: Jonathan Cavitt > Reviewed-by: Matthew Auld > Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti Andi