Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp714734pxb; Fri, 14 Jan 2022 14:48:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJw05jXO1oSEfKvq2WQEb3tZRGwcDnneY8GBRuwkMrXnDSE4mvvIrEDykE2V7afXBCZIULrx X-Received: by 2002:a05:6402:10:: with SMTP id d16mr10261921edu.301.1642200523183; Fri, 14 Jan 2022 14:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200523; cv=none; d=google.com; s=arc-20160816; b=gQrbkg7rDKT6rsXdpJbV9RsZie9MeO8OBulCpP5hhnC1Qk32ijd1AOdopxyHx1sdce 7ixdo8S/WLS652pgAY21EtZwp/43u2mBs/mcYtPQ4nEqRQMI3vG4yjZWMFU9t7acJKFA j9DK+JQDJU1BTceZuY7XCNUEIE+JXBCpftISAi9nlbs16iwi68BwwtL8I6okMMrICHuF j8wwEzysQBSGICUBXLhu8vWkh8RqEqT9/r7OZ41DTkrFHEHO3PwfTxVD9a8fC+Q5vrGu s1FL5jjLzjcNNzppy3RJvQEno8e2Dl+tzzB869iSvYiKqbK/V92fjfjOV3+tNyx2GLjB Az/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sqBX3LvTWPUB1Q7lzkSTG/nq0ZlLDxLfIYOFjEiJ6ng=; b=ZBFv08A1456JbBpHeMfX6+Wkw0c7agphrzAP3i2lkNmdPW2V/UulYBBvKejLOXMcJ1 LhZmm37tTyBIkIXQy43h0OsCCI5Czypyq1sT4MHAZBjohQZ7dY4WKYpTnsWuoKNGGtm2 yWNqmlNNNE7utBquGozEBmRy50RBeOGdl5m76NZb2J7+7c/e9fLJg9NBvUSKXgadwwgZ vKv1aDVB5rxWHDumONzFkgP83RhWwaQmV+BOv3uep67nALrnl0VJRmW7p7AsjvM03+9x uFl6Ly+U0QqN3vriH0XHK1Mo0cWDO2Da3nj863KgqddZnR61PnhiLABEe5gqSH+cruss UteQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kt6s+rNL; spf=pass (google.com: 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si3829768edj.135.2022.01.14.14.48.18; Fri, 14 Jan 2022 14:48:43 -0800 (PST) Received-SPF: pass (google.com: 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=@intel.com header.s=Intel header.b=kt6s+rNL; spf=pass (google.com: 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243144AbiANQKU (ORCPT + 99 others); Fri, 14 Jan 2022 11:10:20 -0500 Received: from mga01.intel.com ([192.55.52.88]:62406 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbiANQKT (ORCPT ); Fri, 14 Jan 2022 11:10:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642176619; x=1673712619; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VuM59CA5P02uN+pfSy6KjURQRN07fGepNkmo2Y2bY9w=; b=kt6s+rNLj+6pfqoqgFXdFhIr/AUsPc0oEeIBpvObr2sZ6grpgay/+IXV C3T7VCvQ4WbxEwp8vIu+hZ/Uqr9Ei6L3Hyt1nhT35HqDjGzSA6uighgUr epalW+YAD+2nR7trjI0QX86yCB+FntkbA6qmkvGAEsD4s1AW+cWmIKQbh 3Qr0uyt02UWXn5cYEqZvERHSmEQFmLHkq0qg6r6ddX1e9cMzkWU9bOKZf 0rEgtr8xmJw1QovY/NrleIC9l3JkZNge/Jom8w1teXlgVu8Y21JIeZZsV PXwuL/iDl6XpwofmREMItY2j3Pe5LIUrRwFVpSs02y8F4FBo6vavWZsB7 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10226"; a="268637630" X-IronPort-AV: E=Sophos;i="5.88,289,1635231600"; d="scan'208";a="268637630" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 08:10:19 -0800 X-IronPort-AV: E=Sophos;i="5.88,289,1635231600"; d="scan'208";a="577316857" Received: from smile.fi.intel.com ([10.237.72.61]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 08:10:12 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1n8P6O-00AiC0-2o; Fri, 14 Jan 2022 18:06:56 +0200 Date: Fri, 14 Jan 2022 18:06:55 +0200 From: Andy Shevchenko To: Simon Ser Cc: Tomohito Esaki , dri-devel@lists.freedesktop.org, Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Ben Skeggs , Michel =?iso-8859-1?Q?D=E4nzer?= , Qingqing Zhuo , Bas Nieuwenhuizen , Mark Yacoub , Sean Paul , Evan Quan , Petr Mladek , Sakari Ailus , Lee Jones , Abhinav Kumar , Dmitry Baryshkov , Rob Clark , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, Daniel Stone , Laurent Pinchart , Damian Hobson-Garcia , Takanari Hayama Subject: Re: [RFC PATCH v3 2/3] drm: add support modifiers for drivers whose planes only support linear layout Message-ID: References: <20220114101753.24996-1-etom@igel.co.jp> <20220114101753.24996-3-etom@igel.co.jp> <7eljcd3F4aWL2jjBRwr3DISmyt0XPWFIH1_kebFGqZTJXLZRx0bm_8c8yaIuEuH8rS0MaJhU6SY1y-fc6U_zCLaKgoLM124nZpr0H91nSjw=@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 03:42:54PM +0000, Simon Ser wrote: > On Friday, January 14th, 2022 at 16:17, Andy Shevchenko wrote: > > > On Fri, Jan 14, 2022 at 03:07:21PM +0000, Simon Ser wrote: > > > On Friday, January 14th, 2022 at 15:16, Andy Shevchenko wrote: > > > > > > > Why not enum? > > > > > > There is no enum for DRM format modifiers. > > > > I'm not sure how this prevents to use enum in the code instead of const u64. > > Any specific reason for that? > > I'm not sure how one would use an enum as the array item type, when there is no > defined enum type. > > Moreover, all the rest of DRM uses uint64 for modifiers. Ah, I see now. This is an array that filled by predefined values. Thanks for explanation. -- With Best Regards, Andy Shevchenko