Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4578599ybb; Tue, 14 Apr 2020 09:59:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKGgGql7Tri8oG6rk6vOspk0aa5AQXyUFqa2cy1VbtikOXzq/xPr9pO/xyNau4mx+f6zJAN X-Received: by 2002:aa7:c688:: with SMTP id n8mr22083843edq.120.1586883588689; Tue, 14 Apr 2020 09:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586883588; cv=none; d=google.com; s=arc-20160816; b=0BbwI3kYtlZFVW5TMQcQpCZeoYNRLH329PuUZLoElOVVG4U0Lyyo0ltaQ34dsTPSsh em4RbsACxx6a+HyHYqTbBfB0aMF0Pt0SMIkXa4xV92G0rLloUkJqJ6W0m+KjMVSWf7c2 8aOlToiEKVuOkH6EGFx2niVhR10imWi8an/fXDhCA1SYCLt2TyEk7jPPchMPDgEW9On4 RCKJeBEKYR6g1MsiAC9731+LWDTPlvwRNdIoHwG/2uDYMfjMqMRNWOurVsNexgbuXwCi 5BZNvKXigYsGP8TpXYcb/JnUc6MUy2ZCZimenwnoW6UBPwnBfdwgFl1ubUIzU9zrk18F JdTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3JhmuD9Dm/VD+Fu6DpdAx3bGt58615TeofB4Ea6gVCM=; b=rc/q3pBSsrPO+4KTPftW7qw2JUadm/u1fQf//pNl3fjfFx5HszNT5NlN4Pup8EEMrb XsxaaYXKyevWL7exGkuQxQ6fjQpI9Jl18ghMhx/oyt+2Qy9NEF1UqF/mqvIbkOry5TB/ De7VQMfUAg2U819AU1ZiPTYdXWwK8k72u9bURUu5Ir8iVV/oQR7oQbQ8OG0mFLXX+0DI YrS/3kQ+ZDGjPfKqTN6nx0bN/+bBTsvQIbOU1mDSERg7usf8GWLNqzso6Mq7iQ/hVnA+ M4CAi8TLThZfUMRN2jQ91l8r2D5aorOgjBQGcOoQaUoYxX/N+juN1+CWcpORSI/EEDaF MVkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ntlI9LgX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si8402454ejm.451.2020.04.14.09.59.24; Tue, 14 Apr 2020 09:59:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ntlI9LgX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440436AbgDNQuG (ORCPT + 99 others); Tue, 14 Apr 2020 12:50:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:55214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440480AbgDNQtj (ORCPT ); Tue, 14 Apr 2020 12:49:39 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 726472137B; Tue, 14 Apr 2020 16:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586882978; bh=UvXZ+IxoIeeey089XnZGi/88/VdiyQwT0ComwzdImDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntlI9LgX+ytnJs8ED0kZgkN/4SxtCotaGpTTagmvYyUzw9VuyZOjcFC4OWpxPYu1j PyM9busMDB2J46H57wrdQm6DdxXKm2+PdfrwwQA7WgwKCAMc/feIm2fS3KauJoXLWz Fkktld+KsUlX6EcBCvBCkky93zcvXROOdIzzWXfU= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , Chris Wilson Subject: [PATCH 12/15] tools headers UAPI: Sync drm/i915_drm.h with the kernel sources Date: Tue, 14 Apr 2020 13:48:51 -0300 Message-Id: <20200414164854.26026-13-acme@kernel.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200414164854.26026-1-acme@kernel.org> References: <20200414164854.26026-1-acme@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo To pick the change in: 88be76cdafc7 ("drm/i915: Allow userspace to specify ringsize on construction") That don't result in any changes in tooling, just silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h' diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h Cc: Adrian Hunter Cc: Chris Wilson Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/uapi/drm/i915_drm.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/include/uapi/drm/i915_drm.h b/tools/include/uapi/drm/i915_drm.h index 829c0a48577f..2813e579b480 100644 --- a/tools/include/uapi/drm/i915_drm.h +++ b/tools/include/uapi/drm/i915_drm.h @@ -1619,6 +1619,27 @@ struct drm_i915_gem_context_param { * By default, new contexts allow persistence. */ #define I915_CONTEXT_PARAM_PERSISTENCE 0xb + +/* + * I915_CONTEXT_PARAM_RINGSIZE: + * + * Sets the size of the CS ringbuffer to use for logical ring contexts. This + * applies a limit of how many batches can be queued to HW before the caller + * is blocked due to lack of space for more commands. + * + * Only reliably possible to be set prior to first use, i.e. during + * construction. At any later point, the current execution must be flushed as + * the ring can only be changed while the context is idle. Note, the ringsize + * can be specified as a constructor property, see + * I915_CONTEXT_CREATE_EXT_SETPARAM, but can also be set later if required. + * + * Only applies to the current set of engine and lost when those engines + * are replaced by a new mapping (see I915_CONTEXT_PARAM_ENGINES). + * + * Must be between 4 - 512 KiB, in intervals of page size [4 KiB]. + * Default is 16 KiB. + */ +#define I915_CONTEXT_PARAM_RINGSIZE 0xc /* Must be kept compact -- no holes and well documented */ __u64 value; -- 2.21.1