From mboxrd@z Thu Jan 1 00:00:00 1970 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 AE90DC61DA4 for ; Fri, 3 Feb 2023 12:10:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 29D1010E778; Fri, 3 Feb 2023 12:10:52 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D51610E777; Fri, 3 Feb 2023 12:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675426250; x=1706962250; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=GUd5ghcV4B849P0Jv1saFNNxJOa82j5PkQ3L6yuJxrc=; b=WzPkxMw7usBor6ETq5EqmokGsc3bwJ3qsJANK1RDNq5cgcD83OWQJB65 oAqyC/GtlKKaXw8r0xjxkOgsPN4MZp/fgftqRzh6iKwFjuGEV8j0FooAG 3rskrqAnmnEaZOb1Ef/VchjvTKaGb7Uw1+kydWr6kGoZonAbh/LSdC5fT Py5FLKmzbzBCKwfJUDS/WUANBCVQ3J5x3XDHQTcvk5X8op1QejX+C4Zar x1fXuxkRuS70hWTimSCWulBBm6NuAjHkHEC9fqx2WTZ2QHqLPROMQfdaI pTRT+uhqPmi1raJwWpOfMG8MMd6UhJEKs0Ml5YK3w+5Mh6424XQT22oCO A==; X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="312388969" X-IronPort-AV: E=Sophos;i="5.97,270,1669104000"; d="scan'208";a="312388969" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2023 04:10:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="615695421" X-IronPort-AV: E=Sophos;i="5.97,270,1669104000"; d="scan'208";a="615695421" Received: from lhime-mobl1.ger.corp.intel.com (HELO [10.213.220.100]) ([10.213.220.100]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2023 04:10:48 -0800 Message-ID: <30fec9fc-8d67-519e-b2e8-25af7187b3df@linux.intel.com> Date: Fri, 3 Feb 2023 12:10:45 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: Aravind Iddamsetty , intel-gfx@lists.freedesktop.org References: <20230203115713.4023991-1-aravind.iddamsetty@intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc In-Reply-To: <20230203115713.4023991-1-aravind.iddamsetty@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Intel-gfx] [PATCH] Initialize the obj flags for shmem objects 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: Matthew Auld , dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 03/02/2023 11:57, Aravind Iddamsetty wrote: > Obj flags for shmem objects is not being set correctly. > > Cc: Matthew Auld > Signed-off-by: Aravind Iddamsetty Could even be: Fixes: 13d29c823738 ("drm/i915/ehl: unconditionally flush the pages on acquire") Cc: # v5.15+ ? Regards, Tvrtko > --- > drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > index 114443096841..37d1efcd3ca6 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c > @@ -596,7 +596,7 @@ static int shmem_object_init(struct intel_memory_region *mem, > mapping_set_gfp_mask(mapping, mask); > GEM_BUG_ON(!(mapping_gfp_mask(mapping) & __GFP_RECLAIM)); > > - i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, 0); > + i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, flags); > obj->mem_flags |= I915_BO_FLAG_STRUCT_PAGE; > obj->write_domain = I915_GEM_DOMAIN_CPU; > obj->read_domains = I915_GEM_DOMAIN_CPU;