Message ID | 20230425-hugepage-migrate-v7-0-fa6605a986c9@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp323662vqo; Wed, 26 Apr 2023 08:23:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvljlKjplhwP7PDgozD8ge1hGV2NkMTUeZavZSy39DoSokUWT0syMtaOdds7sxzGiYF8pa X-Received: by 2002:a17:902:f707:b0:1a4:fe07:49e9 with SMTP id h7-20020a170902f70700b001a4fe0749e9mr20320114plo.63.1682522609243; Wed, 26 Apr 2023 08:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682522609; cv=none; d=google.com; s=arc-20160816; b=XtrMhJ/gJWetYKOVwaMc75e9MkbB/9po7XWCjkr+AKq3TijycnXMqCF1SnKJJUA89d 9Ay2mtuTAbJJAp3MLCf3+JDAGDCYAhrUbG8XSs+nGcUoqQDZgSBdiCA0i0b9ICWfI74j fboJhEQQYtj7cxqpMjX1Wkze/ef2ytB1iJv1V7RS5OINC3p+yxAqzKH8awMIB/f9AIpR wCq+khs2dOKO3p6TfxjdRIZPIrv1jQZSXaViBZUDLRHH9ngG/azT5sisfBKy5UA/pC0b u+lUSHwg26qjWGzKM7Z4BzO6no/8rPWvSottRcww1kbJ4N4YeQeDQIGbRNEQkNrb57f4 GWnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=tdjNAYxoLMelk+M7WRjtM7F4tgMaCZVsYhJSMonvFak=; b=p7Nm8uwOMYcBSaEX4kPDEbH6yPcFGn8uHaJeANb9lZCPPzKHbupE50botv4ThhTDm3 7Ba5hwCLL3jvO2zc0p6UadJyb9HwPcONLuDR3SDi5vngUVUKNlxfV++RjNRWuwELR+Lq LdQMjtl2dpYmzkSaE97+Kbm4TKIbTVu4qPLMT8QAIqjlstO5XSu3EKD4d9yBbRVBdfUw K2A7/deQjLWslDBQsniPbbz6YwiG6erWWnNKonTkE5DhKoWtumHgGqX2Z8V0bdnQFnIA 3wQdTIfMEIDYiCKOlEJmmSuJ/zgeoB4z7faWBphANgFwUxWnltfuymbi6oh0zTd35Oe2 A1/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T+VTCqas; 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 q13-20020a17090311cd00b001a6db2bef14si17377774plh.157.2023.04.26.08.22.54; Wed, 26 Apr 2023 08:23:29 -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=T+VTCqas; 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 S241276AbjDZPOy (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Wed, 26 Apr 2023 11:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241280AbjDZPOs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Apr 2023 11:14:48 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E83F54C1E for <linux-kernel@vger.kernel.org>; Wed, 26 Apr 2023 08:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682522087; x=1714058087; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to; bh=a4tnm3fwJS5ag19L8vGA9PFPuKrEXPbjh7N3g3Z0zMY=; b=T+VTCqasEg4m73b5bXyMHq62RPL5g6fiwudIv/2n8B9GqC3UvnscifYk 45z4DTsxiZn99zuBBfafDsrnWuzUYCGPqXKBWOW0OXp4LjytKwlsLTnU7 xiF45+OzoG6z5J5Ju9sqCLyooHfUx2zan2wYU/vDZZDcrfNhkGdQh4HIy +Wd1dQC6dPihf0dj94Gi5wzLLe7xtE1Jk4NZ0UnjaJbq0hmPB90llVbtI VNGtttTJ17raQA4M3Z7ULWGp+MI9zvi9G+ZFkbnnVJQ0Fyy4ImzfEEBsF QNsTK3khXGBYDExx1JSwuCGGl9S3+hpuXYONvh7bqoKXodOy+fBxYvu/n A==; X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="412444652" X-IronPort-AV: E=Sophos;i="5.99,228,1677571200"; d="scan'208";a="412444652" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 08:14:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="671366410" X-IronPort-AV: E=Sophos;i="5.99,228,1677571200"; d="scan'208";a="671366410" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 08:14:29 -0700 From: Andrzej Hajda <andrzej.hajda@intel.com> Subject: [PATCH v7 0/2] drm/i915: Hugepage manager and test for MTL Date: Wed, 26 Apr 2023 17:14:10 +0200 Message-Id: <20230425-hugepage-migrate-v7-0-fa6605a986c9@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMI/SWQC/02Nyw6CMBBFf4V0bZs+FMWV/2FcDDDQSaCQaTEYw r9bXLk89+bkbCIiE0ZxLzbB+KZIU8hwPRWi8RB6lNRmFlZbp8/2Iv3S4wx5H6lnSCjNrawAOmeg bEXWaogoa4bQ+ENseZSJ5uOZGTtaf7HnK3PHU/48I/wljLXGaX1TlalKp6WVEFpS0X8SPQYKy6o oJBxUM41i379z622EwQAAAA== To: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jonathan Cavitt <jonathan.cavitt@intel.com>, Andrzej Hajda <andrzej.hajda@intel.com>, Matthew Auld <matthew.auld@intel.com> X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-4.6 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_H2,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764252827902020903?= X-GMAIL-MSGID: =?utf-8?q?1764252827902020903?= |
Series |
drm/i915: Hugepage manager and test for MTL
|
|
Message
Andrzej Hajda
April 26, 2023, 3:14 p.m. UTC
This patchset patches sent by Jonathan and Andi, with addressed CI failures: 1. Fixed checking alignment of 64K pages on both Pre-Gen12 and Gen12. 2. Fixed start alignment of 2M pages. Regards Andrzej Jonathan Cavitt (2): drm/i915: Migrate platform-dependent mock hugepage selftests to live drm/i915: Use correct huge page manager for MTL .../gpu/drm/i915/gem/selftests/huge_pages.c | 88 +++++++++++++++---- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- 2 files changed, 71 insertions(+), 20 deletions(-) Cc: intel-gfx@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: Jonathan Cavitt <jonathan.cavitt@intel.com> Cc: Andrzej Hajda <andrzej.hajda@intel.com> Cc: Matthew Auld <matthew.auld@intel.com>
Comments
-----Original Message----- From: Hajda, Andrzej <andrzej.hajda@intel.com> Sent: Wednesday, April 26, 2023 8:14 AM To: intel-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; Cavitt, Jonathan <jonathan.cavitt@intel.com>; Hajda, Andrzej <andrzej.hajda@intel.com>; Auld, Matthew <matthew.auld@intel.com> Subject: [PATCH v7 0/2] drm/i915: Hugepage manager and test for MTL > >This patchset patches sent by Jonathan and Andi, with >addressed CI failures: >1. Fixed checking alignment of 64K pages on both Pre-Gen12 and Gen12. >2. Fixed start alignment of 2M pages. > >Regards >Andrzej > >Jonathan Cavitt (2): > drm/i915: Migrate platform-dependent mock hugepage selftests to live > drm/i915: Use correct huge page manager for MTL > >.../gpu/drm/i915/gem/selftests/huge_pages.c | 88 +++++++++++++++---- > drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- > 2 files changed, 71 insertions(+), 20 deletions(-) > >Cc: intel-gfx@lists.freedesktop.org >Cc: linux-kernel@vger.kernel.org >Cc: Jonathan Cavitt <jonathan.cavitt@intel.com> >Cc: Andrzej Hajda <andrzej.hajda@intel.com> >Cc: Matthew Auld <matthew.auld@intel.com> >-- >2.39.2 > >--- >Jonathan Cavitt (2): > drm/i915: Migrate platform-dependent mock hugepage selftests to live > drm/i915: Use correct huge page manager for MTL > > drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 105 ++++++++++++++++++------ > drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- > 2 files changed, 82 insertions(+), 26 deletions(-) >--- >base-commit: 4d0066a1c0763d50b6fb017e27d12b081ce21b57 >change-id: 20230425-hugepage-migrate-1869aaf31a6d > >Best regards, >-- >Andrzej Hajda <andrzej.hajda@intel.com> Just reviewed the changes proper. It's been a while, so I don't remember everything about the prior version, but I think I recognized what was changed: - I wasn't aware a 21 bit alignment was required for 2M page sizes. I'm glad you caught that. - The extra debugging/error information will be helpful in the case of a failure. - Grabbing the per-context VM instead of the ppgtt vm sounds good to me. Everything here looks amenable. Acked-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Though, given I'm also one of the signed-off-bys, I don't know if me acking it is exactly above-board. -Jonathan Cavitt >
On 26.04.2023 17:31, Cavitt, Jonathan wrote: > -----Original Message----- > From: Hajda, Andrzej <andrzej.hajda@intel.com> > Sent: Wednesday, April 26, 2023 8:14 AM > To: intel-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; Cavitt, Jonathan <jonathan.cavitt@intel.com>; Hajda, Andrzej <andrzej.hajda@intel.com>; Auld, Matthew <matthew.auld@intel.com> > Subject: [PATCH v7 0/2] drm/i915: Hugepage manager and test for MTL >> This patchset patches sent by Jonathan and Andi, with >> addressed CI failures: >> 1. Fixed checking alignment of 64K pages on both Pre-Gen12 and Gen12. >> 2. Fixed start alignment of 2M pages. >> >> Regards >> Andrzej >> >> Jonathan Cavitt (2): >> drm/i915: Migrate platform-dependent mock hugepage selftests to live >> drm/i915: Use correct huge page manager for MTL >> >> .../gpu/drm/i915/gem/selftests/huge_pages.c | 88 +++++++++++++++---- >> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- >> 2 files changed, 71 insertions(+), 20 deletions(-) >> >> Cc: intel-gfx@lists.freedesktop.org >> Cc: linux-kernel@vger.kernel.org >> Cc: Jonathan Cavitt <jonathan.cavitt@intel.com> >> Cc: Andrzej Hajda <andrzej.hajda@intel.com> >> Cc: Matthew Auld <matthew.auld@intel.com> >> -- >> 2.39.2 >> >> --- >> Jonathan Cavitt (2): >> drm/i915: Migrate platform-dependent mock hugepage selftests to live >> drm/i915: Use correct huge page manager for MTL >> >> drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 105 ++++++++++++++++++------ >> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- >> 2 files changed, 82 insertions(+), 26 deletions(-) >> --- >> base-commit: 4d0066a1c0763d50b6fb017e27d12b081ce21b57 >> change-id: 20230425-hugepage-migrate-1869aaf31a6d >> >> Best regards, >> -- >> Andrzej Hajda <andrzej.hajda@intel.com> > > Just reviewed the changes proper. It's been a while, so I don't remember everything > about the prior version, but I think I recognized what was changed: > > - I wasn't aware a 21 bit alignment was required for 2M page sizes. I'm glad you caught that. > - The extra debugging/error information will be helpful in the case of a failure. > - Grabbing the per-context VM instead of the ppgtt vm sounds good to me. > > Everything here looks amenable. > Acked-by: Jonathan Cavitt <jonathan.cavitt@intel.com> > Though, given I'm also one of the signed-off-bys, I don't know if me acking it is exactly above-board. > -Jonathan Cavitt Thanks for looking at it. CI spotted another issue: 2M pages are preferred over old-64K, if former are available. Fixed version sent. Regarding tags, I've kept your authorship, s-o-b, and added my Co-developed, if it is OK to you I will keep it this way. If you prefer otherwise let me know. Regards Andrzej >
-----Original Message----- From: Hajda, Andrzej <andrzej.hajda@intel.com> Sent: Wednesday, April 26, 2023 2:37 PM To: Cavitt, Jonathan <jonathan.cavitt@intel.com>; intel-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; Auld, Matthew <matthew.auld@intel.com> Subject: Re: [PATCH v7 0/2] drm/i915: Hugepage manager and test for MTL > >On 26.04.2023 17:31, Cavitt, Jonathan wrote: >> -----Original Message----- >> From: Hajda, Andrzej <andrzej.hajda@intel.com> >> Sent: Wednesday, April 26, 2023 8:14 AM >> To: intel-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; Cavitt, Jonathan <jonathan.cavitt@intel.com>; Hajda, Andrzej <andrzej.hajda@intel.com>; Auld, Matthew <matthew.auld@intel.com> >> Subject: [PATCH v7 0/2] drm/i915: Hugepage manager and test for MTL >>> This patchset patches sent by Jonathan and Andi, with >>> addressed CI failures: >>> 1. Fixed checking alignment of 64K pages on both Pre-Gen12 and Gen12. >>> 2. Fixed start alignment of 2M pages. >>> >>> Regards >>> Andrzej >>> >>> Jonathan Cavitt (2): >>> drm/i915: Migrate platform-dependent mock hugepage selftests to live >>> drm/i915: Use correct huge page manager for MTL >>> >>> .../gpu/drm/i915/gem/selftests/huge_pages.c | 88 +++++++++++++++---- >>> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- >>> 2 files changed, 71 insertions(+), 20 deletions(-) >>> >>> Cc: intel-gfx@lists.freedesktop.org >>> Cc: linux-kernel@vger.kernel.org >>> Cc: Jonathan Cavitt <jonathan.cavitt@intel.com> >>> Cc: Andrzej Hajda <andrzej.hajda@intel.com> >>> Cc: Matthew Auld <matthew.auld@intel.com> >>> -- >>> 2.39.2 >>> >>> --- >>> Jonathan Cavitt (2): >>> drm/i915: Migrate platform-dependent mock hugepage selftests to live >>> drm/i915: Use correct huge page manager for MTL >>> >>> drivers/gpu/drm/i915/gem/selftests/huge_pages.c | 105 ++++++++++++++++++------ >>> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +- >>> 2 files changed, 82 insertions(+), 26 deletions(-) >>> --- >>> base-commit: 4d0066a1c0763d50b6fb017e27d12b081ce21b57 >>> change-id: 20230425-hugepage-migrate-1869aaf31a6d >>> >>> Best regards, >>> -- >>> Andrzej Hajda <andrzej.hajda@intel.com> >> >> Just reviewed the changes proper. It's been a while, so I don't remember everything >> about the prior version, but I think I recognized what was changed: >> >> - I wasn't aware a 21 bit alignment was required for 2M page sizes. I'm glad you caught that. >> - The extra debugging/error information will be helpful in the case of a failure. >> - Grabbing the per-context VM instead of the ppgtt vm sounds good to me. >> >> Everything here looks amenable. >> Acked-by: Jonathan Cavitt <jonathan.cavitt@intel.com> >> Though, given I'm also one of the signed-off-bys, I don't know if me acking it is exactly above-board. >> -Jonathan Cavitt > >Thanks for looking at it. CI spotted another issue: 2M pages are >preferred over old-64K, if former are available. >Fixed version sent. >Regarding tags, I've kept your authorship, s-o-b, and added my >Co-developed, if it is OK to you I will keep it this way. >If you prefer otherwise let me know. That is entirely acceptable! Thank you for your time. -Jonathan Cavitt > >Regards >Andrzej > >> > >