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 CE6F0C636CC for ; Fri, 3 Feb 2023 11:42:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1202510E772; Fri, 3 Feb 2023 11:42:10 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95AFC10E772; Fri, 3 Feb 2023 11:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675424527; x=1706960527; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/TJdfuhHzwwZC8jfNXGomL7lXzwyjjw9qDmY1EfurPI=; b=eFwMnrw8Ej+NOrZ55YJgPk1V95nl3uHxQzn+wFR9kj6TYLzbtJoGlZcd +5NszqwW7sLrGxfiC0T5yjErg47NIMqd2eALFyIdDJ0mkuoX+73P27Inz eII2UNUIOTCI0G0kzGlTuZimc+vBeULGzSEkgZS3Z5LltvfhoVA5drHmP epszI0vOHecwCcq6nC5aFMcZxjqlre5UxBDoF5hHgcajatk9iITNDcwRw rUgANgdx+pluCnjg0mnANIx/hyYKYwoC1Uq9ui+AAX3LbQ/2tGADOFLD2 Wto5Vwo8ovNmf2yFUMkRREXsirPhD8sQuhbwL9qYImBRJXJIsfIY9CNDd w==; X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="330858232" X-IronPort-AV: E=Sophos;i="5.97,270,1669104000"; d="scan'208";a="330858232" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2023 03:42:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="789664613" X-IronPort-AV: E=Sophos;i="5.97,270,1669104000"; d="scan'208";a="789664613" Received: from aravind-dev.iind.intel.com ([10.145.162.80]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2023 03:42:05 -0800 From: Aravind Iddamsetty To: intel-gfx@lists.freedesktop.org Date: Fri, 3 Feb 2023 17:27:13 +0530 Message-Id: <20230203115713.4023991-1-aravind.iddamsetty@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" Obj flags for shmem objects is not being set correctly. Cc: Matthew Auld Signed-off-by: Aravind Iddamsetty --- 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; -- 2.25.1