Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp220485imw; Fri, 8 Jul 2022 01:29:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skuSlMpzmtXgXTeaTwA4QTVu9qXPqGQj/ovuoJiZEeWjoeWPAJ4QaGmH9/iE4mVyHPPuTm X-Received: by 2002:a17:902:b184:b0:168:a310:3eb0 with SMTP id s4-20020a170902b18400b00168a3103eb0mr2410664plr.9.1657268989892; Fri, 08 Jul 2022 01:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657268989; cv=none; d=google.com; s=arc-20160816; b=j/rL6QbbB+rt6bKhOOj4u/hXulcfT4LAvUvDd3IgKbDNDTgxG8NaYqpHXW1SzwgKqJ ZEwEa6MHynUz9G+7WJto30Qpo66F/u852++DYQlkfeMZa2+vBFN7ZtPiroCK8Gd/FzTs jA6GhinSGEBW0NEyK3Nv/CSH4+vlg/lm1tq5HVzpiBAZ0JE/SkNGImQn4C18VZpCvEmz 5T57CqNENX+XSDA5y9fszdBoy3uCZwL6+DlEHV1I10biabaO6p+VaMj6OK/ixV741xLr 4Mhld78aVDFaeY4PRC3N0SXMEOcXhkXH9MKp+hoDiGJsmzUPfeYH6bp49Edw/dCHyR2W /qKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qiafxHoH23uWUQq+6icw8gc5bP2ffYqFshj8Q2qugs0=; b=zMY4cRLSLTxwFmoJBpPc4xNY0UQfe+qfdJHIQBHzcefAhHneJ7m0GP9IncYmZu/bM0 tL2nuziokUBH5HzQjb/vFOB42nP8GjZkjEzcT0eH3jROskNFmcEaZl64bto58QwcGR3q 74g57p32UYKNUMzcE4GI85VDxXL9YakgxGdIXnLtsTTcsDpVuk/zHLqWplxa9lpJYqLU +FnJd8pyjVKbT80RkusdodxHOv03JPtqVm3nc6Z0uj9hv2lKC5w3z3XM/W5AQvG5J/vR enQC7JufglCQgMT5ON7LOELYFDb75JJQtbihu1boPSnVr95mo/hO+yuDfnt5eyT6HUE9 nVtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HKz3qwxD; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f186-20020a636ac3000000b0041160e3dfc5si40467123pgc.379.2022.07.08.01.29.30; Fri, 08 Jul 2022 01:29:49 -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=HKz3qwxD; 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 S237493AbiGHHx4 (ORCPT + 99 others); Fri, 8 Jul 2022 03:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237490AbiGHHxt (ORCPT ); Fri, 8 Jul 2022 03:53:49 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD82D2CE01 for ; Fri, 8 Jul 2022 00:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657266828; x=1688802828; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=226n02MK38Ht0X6q4rCIPnDL++KJz3PSWDz7ZAUD+1w=; b=HKz3qwxDYMVMqAhWITTPB116RJrukIagwdJys6K0Xqndjd24hAPG2SoK Bhx37uQnTAbwNC2AsB+p1RNgR0lWYmmN2wRjLQe+SW2RxYFS+kgIxuAEb RyNtoA7F7kMDSTCt2AS+f1eD7ZCWZ0Ln+y8hVTO5X7TW6zxyXbdyRcC4c 4KCoTinxLK8l3Yh5rezZmcbyl7HQXF+1MpRFebpeCMeKZ8oxpElkbrWU7 AOMnWPYjxy/tV1RWo4zlXaxfa+qSCaqrDonQ4d2WHle50xsY/FAiNreC8 xZtgL4fq1Xtwz1UMjCBMGTd4+obER5DRy45NTY6f9VhOzYKcPNjhnX8US g==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="282974159" X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="282974159" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 00:53:47 -0700 X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="661691042" Received: from cmchugh-mobl.ger.corp.intel.com (HELO [10.213.229.21]) ([10.213.229.21]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 00:53:45 -0700 Message-ID: <6e387f90-dce3-486d-83e9-26a975777265@intel.com> Date: Fri, 8 Jul 2022 08:53:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: [PATCH v10 04/11] drm/i915/gem: selftest should not attempt mmap of private regions Content-Language: en-GB To: Robert Beckett , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Cc: kernel@collabora.com, =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , linux-kernel@vger.kernel.org References: <20220707200230.1657555-1-bob.beckett@collabora.com> <20220707200230.1657555-5-bob.beckett@collabora.com> From: Matthew Auld In-Reply-To: <20220707200230.1657555-5-bob.beckett@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2022 21:02, Robert Beckett wrote: > During testing make can_mmap consider whether the region is private. Do we still need this with: 938d2fd17d17 ("drm/i915/selftests: skip the mman tests for stolen") ? > > Signed-off-by: Robert Beckett > Reviewed-by: Thomas Hellström > --- > drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c > index 5bc93a1ce3e3..76181e28c75e 100644 > --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c > +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c > @@ -869,6 +869,9 @@ static bool can_mmap(struct drm_i915_gem_object *obj, enum i915_mmap_type type) > struct drm_i915_private *i915 = to_i915(obj->base.dev); > bool no_map; > > + if (obj->mm.region && obj->mm.region->private) > + return false; > + > if (obj->ops->mmap_offset) > return type == I915_MMAP_TYPE_FIXED; > else if (type == I915_MMAP_TYPE_FIXED)