From patchwork Wed Jan 26 15:21:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Auld X-Patchwork-Id: 12725242 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 A3221C28CF5 for ; Wed, 26 Jan 2022 15:22:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0651310E5DD; Wed, 26 Jan 2022 15:22:07 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9293D10E5DD; Wed, 26 Jan 2022 15:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643210526; x=1674746526; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dndPtOYPqTOwezjdRbI7YJ3xH5ITLRnkk+dRRTMDA+8=; b=UNy4eDegL9rK133I/ZWqLCn5b21EQa6hYL0UvHY1U4yXom2DEuDaGwXY 6v8p9HPpAXYelrw8MzE9zzfnXe6weturP7qFluEZVwFlp4I4j5XTSAE12 DI7KOI+KKV8LrDZNWfAfq4LiI03Xym3DZlfnCnMYXZ7Oy+NtyVEUh6nZw I5qPnD9FsVqMy8T0jqG7Cer+MkdKOrVMA8dh1IiMVquhId4aVZDdsvPgS fJLTAm4H6FR2JbKvlPA/0nmqeLt7cNgHopdBeisw3AzwI3lult0hFS+17 w2nQFjUi8se4gEmlnOArwPvA3nrXVcYooOX48oeinQwQTbcUHHvaL6KIC Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="309885186" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="309885186" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 07:22:04 -0800 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="674386213" Received: from jamesstx-mobl.ger.corp.intel.com (HELO mwauld-desk1.intel.com) ([10.213.247.182]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 07:22:03 -0800 From: Matthew Auld To: intel-gfx@lists.freedesktop.org Date: Wed, 26 Jan 2022 15:21:35 +0000 Message-Id: <20220126152155.3070602-1-matthew.auld@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 00/20] Initial support for small BAR recovery 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: dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Starting from DG2 we will have resizable BAR support for device local-memory, but in some cases the final BAR size might still be smaller than the total local-memory size. In such cases only part of local-memory will be CPU accessible, while the remainder is only accessible via the GPU. This series adds the basic enablers needed to ensure that the entire local-memory range is usable. Patches 1-3 are taken directly from Arun' in-progress series[1], which reworks part of the allocator, and for example, allows us to allocate memory within a sub-range, and is needed when allocating mappable memory. These patches are only included here for the benefit of CI testing. [1] https://patchwork.freedesktop.org/series/98979/