Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DD1D75809 for ; Wed, 20 Mar 2024 18:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710959447; cv=none; b=mO9PEJ5Vc8Wxcx1u/qG1y+Ay3J3rSFuOlK8QrEJ3trpWnfnWSVt7uZZ+PgiyUr0V/hpjpPJc2FLIQhqsyCKRpcFENCacNxW2pRN4kJYVgpWjzr1A7MlQkpiUrcEOVfpmB936M4ZD7Av/uiQj9Prp3LJsYkionEXP+PFnLsZDsN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710959447; c=relaxed/simple; bh=pIMvEZlWIVtjNJitQfBbhwqYFC5rypTGNigzi89FX0w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qLH2XqpjfyoBMHUF7Z9NFrOG4lHP1sbyeudTZdf/gpidbygV2FwmNinRalQzAK6/B7pJ8R8UOehgacO1ugsSea6HxWwK2de3d/NxkWjsiFl43vO5GE4ZoOys/ObONmZmlyoYzgMSzgdWx6p9563rSxH4yl21ipIiJu8vA76fr9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WTN+vqMP; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WTN+vqMP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710959446; x=1742495446; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pIMvEZlWIVtjNJitQfBbhwqYFC5rypTGNigzi89FX0w=; b=WTN+vqMPzTJM/kWoh0KwasBgygzr2cTheP6jKAuS+ePKwDeZZWa/LNwR BxGp7XllMF35Im02i9smL7gip40BELnnHwr4KR6MlaXT8miioaAjNm0kw yDTJTkWSENwhf2RekBmllFCYxZUMeEKm7oSy6PPzcHk3q81gCPmfdoYlZ wjRK906FkLiTUWZRU/D5zA8TFyd9Kml7ArkQhPP56J99hSBnEQR6eYj2p i24lIWfOpUvMTTIUTgdn3sve7me/4EzlbeGe1dhsHPFtLNxSnQLGqsFnT MnGwxgmjv0a1MGupRnPpVFIpfzZjp55/bYqPMVnYEUl4J+XbZaAx5eyZ+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,11019"; a="5754536" X-IronPort-AV: E=Sophos;i="6.07,140,1708416000"; d="scan'208";a="5754536" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 11:30:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,140,1708416000"; d="scan'208";a="14303213" Received: from unknown (HELO intel.com) ([10.247.118.186]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 11:30:33 -0700 Date: Wed, 20 Mar 2024 19:30:25 +0100 From: Andi Shyti To: "Mrozek, Michal" Cc: Andi Shyti , Nirmoy Das , "Landwerlin, Lionel G" , intel-gfx , dri-devel , Andi Shyti , "Hajda, Andrzej" , Chris Wilson , "Das, Nirmoy" , "stable@vger.kernel.org" Subject: Re: [PATCH] drm/i915/gt: Report full vm address range Message-ID: References: <20240313193907.95205-1-andi.shyti@linux.intel.com> <46ab1d25-5d16-4610-8b8f-2ee07064ec2e@intel.com> <35df0767-384f-49f2-806a-f83765ca7c4c@linux.intel.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Michal, On Mon, Mar 18, 2024 at 05:21:54AM +0000, Mrozek, Michal wrote: > > > Lionel, Michal, thoughts? > Compute UMD needs to know exact GTT total size. the problem is that we cannot apply the workaround without reserving one page from the GTT total size and we need to apply the workaround. If we provide the total GTT size we will have one page that will be contended between kernel and userspace and, if userspace is unaware that the page belongs to the kernel, we might step on each other toe. The ask here from kernel side is to relax the check on the maxNBitValue() in userspace and take what the kernel provides. Thanks, Andi