Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp711472pxb; Fri, 14 Jan 2022 14:42:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+bz9xxWbnEQTfdwCFSbVih2ZL0snvQ0FCQ2DnjILWdICPkqdoDO3iTS6100owiChzKeGZ X-Received: by 2002:a17:906:456:: with SMTP id e22mr9003229eja.203.1642200163602; Fri, 14 Jan 2022 14:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200163; cv=none; d=google.com; s=arc-20160816; b=qBwy8XMw3CjmrRPb0OdPoPz3dI1fBrHy0tQX8JFFHky0V/u8vbP/cl4K0FIZ7dzC11 66wJ89gam2n0VQno245dSHXK3o6NpN1Nl/Ln0obyHSK6GK4qKWWpKdL7GP0fpRexYzFs CdzdhIcyoiJjv72L39e2qXJ/RsOPMPJsKDQVQG+Qk5wOSSpmIag0NYSrzJ2SdeGdKKx7 AXKBYhNn/IXNEBUBs85drrG1M3RSRmVhmhxfouAhkzaGi6TctgaeD/YSBq6kRBik37ug 3FcHEnogkcupIShrz2lErcpAa0DruYPNdqhytHwzSUDA2mAGColkQcLkWL/ng6j/jyEU HsYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=EDKmMDpJ4aF8Jp9f8mriWffkkG6VIvSJs4wR/AP+ggA=; b=edgXeqGrtYemLjche4LNnXR/J26RDw7zcn0nk7O/Y+WblR5tqlXH2aTJ5elR6MqEW3 b1839KDaWw2eYCJt/5qmNLo9HMMMVVajyjFNZl6ovF8M9Wgvxl53b+oYVxDwmrMXo2j5 T9t6Smrsi6L2677/B8SBQt6buPGiA/Fx7PM27cBH5R7uh0hQYcYjRHx22100ObYd5g2F 8XwDwZIFTI3h34InxVhT9OovsJo9l4mYomEfvqVtdO16tbWZ0e+ESTlGS3Zv3M5VjVt2 wMRBPnB5vClM8p8u2pG1RS+ugj6s2bCw3ifvrCPPITIfKtZ+YxP+Dg4RylK5JIfU/INR M8Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail header.b=m5aL4UXJ; 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=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si3519660ejd.655.2022.01.14.14.42.19; Fri, 14 Jan 2022 14:42: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=@emersion.fr header.s=protonmail header.b=m5aL4UXJ; 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=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242490AbiANPm5 (ORCPT + 99 others); Fri, 14 Jan 2022 10:42:57 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:59659 "EHLO mail-4323.proton.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiANPm5 (ORCPT ); Fri, 14 Jan 2022 10:42:57 -0500 Date: Fri, 14 Jan 2022 15:42:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1642174975; bh=EDKmMDpJ4aF8Jp9f8mriWffkkG6VIvSJs4wR/AP+ggA=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=m5aL4UXJkpjG0FRD9uFetuEs+xpH+kXIMKqxUSkXtD9HMRy8geRSGttKTRj9N6qHf sUfn1Sip08X5dbDnVeC3bHDbv0dIsUXfFMs70iR6N1s+DPNEQCS1S1IPJny7HNDnz0 CbgAp5WmoKrU2W2dF20PQYvmFTHaYgx9S+o4NP/suE1AAOnoZ5la2zx3F1sjzzBIYL mNTPnhJK7tzj0E6324hNyzhxEnE42IUE6Y2ORoHzfZs0zze3CVghcaxDAiDfrtt38M K442F2rVZkm8DcV0ikY1XLCz3MMuc5av/OizhUhgJRh2Lm/6RcHyIWgMiniuxCcIz5 ZqRULRIgThSXg== To: Andy Shevchenko From: Simon Ser Cc: Tomohito Esaki , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Ben Skeggs , =?utf-8?Q?Michel_D=C3=A4nzer?= , 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 Reply-To: Simon Ser Subject: Re: [RFC PATCH v3 2/3] drm: add support modifiers for drivers whose planes only support linear layout Message-ID: In-Reply-To: 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=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 u= 64. > Any specific reason for that? I'm not sure how one would use an enum as the array item type, when there i= s no defined enum type. Moreover, all the rest of DRM uses uint64 for modifiers.