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 B0794C7EE22 for ; Mon, 15 May 2023 12:12:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A55710E1B4; Mon, 15 May 2023 12:12:22 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6B2CA10E1B4; Mon, 15 May 2023 12:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684152740; x=1715688740; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/tQXku2nSDWOQXYob0SDaOI/jjzVm1MPYEyd7ym45KA=; b=Z9ynp3oK5avR6MCUgYy8b+oZcrrKvF4rGCYEz9JCh2+Pba2fsFSCCqaJ WCSXgnW2iszoS5CH4Uco3VrEWv+2O342mLxzBJrIWFvuvxlEOQbiFwjrH rEc3xW5qibVaP6y907jzh37cFq+YTDuvo44cfBYBMbQTSf97vNzXOaA7R s5cLTbZOy44P7QDuRZr7KlQgtSuNNuTfq6VKPMo/4fiNTP+cwvpz5MULZ 86hSF2ctcniDKZYsLKFHmNSxekZQe7jUCSXOM9hKkiBgC1TZ0tRemAhZm XGtT0zPx+f4X3TGsazGi9QgkbhKHWCQZy0x+qkpB9jTEgwZ4b8YhHi5YO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="330802884" X-IronPort-AV: E=Sophos;i="5.99,276,1677571200"; d="scan'208";a="330802884" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2023 05:12:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="765899327" X-IronPort-AV: E=Sophos;i="5.99,276,1677571200"; d="scan'208";a="765899327" Received: from dkanafee-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.48.254]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2023 05:12:17 -0700 Date: Mon, 15 May 2023 14:12:14 +0200 From: Andi Shyti To: fei.yang@intel.com Message-ID: References: <20230512232825.1253644-1-fei.yang@intel.com> <20230512232825.1253644-3-fei.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512232825.1253644-3-fei.yang@intel.com> Subject: Re: [Intel-gfx] [PATCH v8 2/2] drm/i915: Allow user to set cache at BO creation 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: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , Matt Roper Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi Fei, On Fri, May 12, 2023 at 04:28:25PM -0700, fei.yang@intel.com wrote: > From: Fei Yang > > To comply with the design that buffer objects shall have immutable > cache setting through out their life cycle, {set, get}_caching ioctl's > are no longer supported from MTL onward. With that change caching > policy can only be set at object creation time. The current code > applies a default (platform dependent) cache setting for all objects. > However this is not optimal for performance tuning. The patch extends > the existing gem_create uAPI to let user set PAT index for the object > at creation time. > The new extension is platform independent, so UMD's can switch to using > this extension for older platforms as well, while {set, get}_caching are > still supported on these legacy paltforms for compatibility reason. > > IGT posted at https://patchwork.freedesktop.org/series/117695/ Test gem_create@create-ext-set-pat > Tested with https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22878 > > Tested-by: Jordan Justen we need here an explicit ack to have the paper work in place. So that I still have to ask Jordan and Mesa folks to give an ack if things look right. Thanks! Andi > Cc: Chris Wilson > Cc: Matt Roper > Cc: Andi Shyti > Signed-off-by: Fei Yang > Reviewed-by: Andi Shyti PS: nitnitnitpick: the tags need to come in chronological order. So that: - first you wrote it (Sob: Fei...) - then you sent it (Cc: ...) - then it has been reviewd (R-b) - finally tested (T-b) I see that many people put the "Cc:" before the "Sob:" and I consider it a matter of taste (which might mean "I first prepare the mail (Cc:) and then I send it (Sob:)"). But... don't mind too much at these things. Andi