From nobody Sun Feb 8 03:02:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 3C9611F9413; Mon, 26 May 2025 11:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748258263; cv=none; b=Q1bJH+bLALlZmoLPmlA/88hzphNR/cWtU9Ht6mR/bhDax2v6xrDFLs+h+IbGqJ79fIaaUWc7L7wCPl4D1NUTPyawSxLNfwvMZbgk9jdH62l8PJr5KreVm4QwbflMAl40ZXWr3I/Vskgw65UpTbBBV+KCqNuFyaw7Gf5X4hnmpaM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748258263; c=relaxed/simple; bh=SFHPQkB/Mt4aGlD1gas9fY5CYz3PxckINfIH0EnFEI0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B1xNukO/NU6Oy5UAMihgTXonCAV8k+5qeVb0TFC2muCON2wt0TihjiLP9OecoaAQykzZQHJOWCyNj6swZIT4pZyXgLF5s9PLp74lMreZcLUeBzDDxyoGADtlSYLPgEYF2KMwGMfBHqntBxHk/g9IJJvRXwL4Nh/E9wh0VOfis2U= 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=VrvX8wJ9; arc=none smtp.client-ip=198.175.65.20 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="VrvX8wJ9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1748258262; x=1779794262; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SFHPQkB/Mt4aGlD1gas9fY5CYz3PxckINfIH0EnFEI0=; b=VrvX8wJ9/AyFiVrKEAyxDgKTPNarZc/lqMTDP7HsfXqZ86ofvWGrTcGP mNKqTnOok1b+uWMWv+QERvcofISBANniht9hGjQHqWwQA9HaAJCTmldPz BQJAwJqKdX+oyQ7PS4K/igajLVa3YvoQ8cw2je1xk3U4OaCeK67KDtv0n TOJbfH8ILK1wb6u9Ig428fIUx64QhltSt7VQw58THNVjbKL6NC+y79B7Q X92umFvreeQE/CQ1GsOcrvIBcSw6VmYVOMtazrQnwlZTY3ilMOcyDfFHI zQ65p8nfV25L7gurQg/Cj1oC7ZubOMHTrWMjdrPBXW7Ski+1TxVyHIHRs g==; X-CSE-ConnectionGUID: FR2qtRvQRsqPPrtmX7BTnA== X-CSE-MsgGUID: S9eMi6ljRd2EYKKQnNGzJg== X-IronPort-AV: E=McAfee;i="6700,10204,11444"; a="49935355" X-IronPort-AV: E=Sophos;i="6.15,315,1739865600"; d="scan'208";a="49935355" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2025 04:17:39 -0700 X-CSE-ConnectionGUID: V8Ku9zXnSOq9uaCER7WLfA== X-CSE-MsgGUID: qvMUM5vPSKOEGkJYjRLqEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,315,1739865600"; d="scan'208";a="142273287" Received: from smoticic-mobl1.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.125]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2025 04:17:35 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id C293511F7E3; Mon, 26 May 2025 14:17:32 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1uJVpk-0022kq-2J; Mon, 26 May 2025 14:17:32 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo From: Sakari Ailus To: linux-doc@vger.kernel.org Cc: Jonathan Corbet , Greg Kroah-Hartman , Madhavan Srinivasan , Haren Myneni , Bagas Sanjaya , Andrew Donnellan , Michael Ellerman , Akshay Gupta , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Mauro Carvalho Chehab , Lee Jones Subject: [PATCH 1/2] Documentation: Bump media IOCTL reserved numbers Date: Mon, 26 May 2025 14:17:31 +0300 Message-Id: <20250526111732.487229-2-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250526111732.487229-1-sakari.ailus@linux.intel.com> References: <20250526111732.487229-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Media Controller uses IOCTL numbers up to 0x81. Given that nothing appears to be using them for other purposes, even in the samples allocation (checked with $ git grep "#define.*_IO.*'|'"), just reassign the numbers up to 0x8f to linux/media.h and bump the samples allocation by 0x10. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart --- Documentation/userspace-api/ioctl/ioctl-number.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst b/Documenta= tion/userspace-api/ioctl/ioctl-number.rst index bc91756bde73..6b3be3fb0b15 100644 --- a/Documentation/userspace-api/ioctl/ioctl-number.rst +++ b/Documentation/userspace-api/ioctl/ioctl-number.rst @@ -312,8 +312,8 @@ Code Seq# Include File = Comments 'z' 40-7F CAN b= us card conflict! 'z' 10-4F drivers/s390/crypto/zcrypt_api.h confl= ict! -'|' 00-7F linux/media.h -'|' 80-9F samples/ Any s= ample and example drivers +'|' 00-8F linux/media.h +'|' 90-AF samples/ Any s= ample and example drivers 0x80 00-1F linux/fb.h 0x81 00-1F linux/vduse.h 0x89 00-06 arch/x86/include/asm/sockios.h --=20 2.39.5 From nobody Sun Feb 8 03:02:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 BD4C51F75A6; Mon, 26 May 2025 11:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748258263; cv=none; b=jPgbElGgazTDn4YoSRWmdy/Z8yRLBDuG2KHeATAHz3r8TZj1lPwB69tFdIcEXYcaf5IG7ZSmuM1oq/3Tym3ND7OG4s9dqypiK2tJTsKCnx2KXQC5z5s0BXqIORLw2wIFygaInwc5xpdLcVO165EDln1z3RXt6UDtvCRubkLZsjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748258263; c=relaxed/simple; bh=m8YQVofkJCtwe20yeLll70xpn3T43Wc4zSl6gncAeOI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ngvhRNNu1IwMEcVTeZ0jOAn/1cXKrmrk2xXssXoVFy5knFpo/NWv93FiRKFCiS5H1GRw7L3U5HgNKCYghJ4DHbnb/Scvj8fqYzrLBL92JH8ghqO2TV0BiPFS61jGuudhZmIMettAwCdJbzSWjUOa4Gz5HucuXC5TXAfv2KMXWQI= 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=M6A4FA0/; arc=none smtp.client-ip=198.175.65.20 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="M6A4FA0/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1748258262; x=1779794262; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=m8YQVofkJCtwe20yeLll70xpn3T43Wc4zSl6gncAeOI=; b=M6A4FA0/VvkG7RT1UrreLy7w6qUr78ccAEnIFutU8GbCZxIVAVLotVXH 6TFStSRq7Z4or4I5iIMc5WOunpyc3iEWJ2SsVzH6Z81cbLS4k5krLBBhE oNRvCZWVRq+RJsRAC3Y+uDjeGF+2PrYvVozduEBU25iYG8yNoLh1/WqM2 ChuJsMaCx9gKWv3itTU5dmhZ17jO0b2vtX+MetkPhZyzFWYo7aqFmj0Qm bgyZmGOjkABxRUT+Lw4/OwOeqHFCluijlEaV7w7hn01ONjEvr3l9KJYuI vublpa7bFTdYSLIV/LeKk70kBJj1xBul9Q/JEf0CUBQbdds/0cYGGNO0a w==; X-CSE-ConnectionGUID: tDMKyG+zSPKiL/ybljjD7A== X-CSE-MsgGUID: wnK7a0GSShGWvtiqkQO6LQ== X-IronPort-AV: E=McAfee;i="6700,10204,11444"; a="49935373" X-IronPort-AV: E=Sophos;i="6.15,315,1739865600"; d="scan'208";a="49935373" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2025 04:17:39 -0700 X-CSE-ConnectionGUID: upL2KudERTeStd7qkOas0w== X-CSE-MsgGUID: SCCraYAhSlecBQ5miMJAfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,315,1739865600"; d="scan'208";a="142273288" Received: from smoticic-mobl1.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.125]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2025 04:17:35 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id C26C211F743; Mon, 26 May 2025 14:17:32 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1uJVpk-0022ku-2O; Mon, 26 May 2025 14:17:32 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo From: Sakari Ailus To: linux-doc@vger.kernel.org Cc: Jonathan Corbet , Greg Kroah-Hartman , Madhavan Srinivasan , Haren Myneni , Bagas Sanjaya , Andrew Donnellan , Michael Ellerman , Akshay Gupta , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Mauro Carvalho Chehab , Lee Jones Subject: [PATCH 2/2] media: uapi: Document IOCTL number assignment Date: Mon, 26 May 2025 14:17:32 +0300 Message-Id: <20250526111732.487229-3-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250526111732.487229-1-sakari.ailus@linux.intel.com> References: <20250526111732.487229-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document MC IOCTL number assignment in linux/media.h. In the past the assignment up to 0x7f was missed so to prevent that from happening again, document the value here as well. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart --- include/uapi/linux/media.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 1c80b1d6bbaf..2808132fcf49 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -381,6 +381,10 @@ struct media_v2_topology { */ #define MEDIA_REQUEST_IOC_QUEUE _IO('|', 0x80) #define MEDIA_REQUEST_IOC_REINIT _IO('|', 0x81) +/* + * Don't allocate new IOCTL numbers past 0x8f, MC IOCTL number assignment = ends + * there! + */ =20 #ifndef __KERNEL__ =20 --=20 2.39.5