Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1573452pxb; Sat, 29 Jan 2022 09:57:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPftkeveROdAhnX2lWp1seUwNhm6eDdFL0MYTcp3KOEgVItnQfnyGTaptarCanu/H+MXNf X-Received: by 2002:a17:907:1b13:: with SMTP id mp19mr11115926ejc.531.1643479045818; Sat, 29 Jan 2022 09:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643479045; cv=none; d=google.com; s=arc-20160816; b=OHC8cx3ofm4T9QjLYorCeElAzu+o4iT+D8wiISOo64zlEBpJd6rpesvKSizkIPGsPB lqbXCmOvzt+doSzsHZdNJ5nV2jc5CKRm0mLXv17PfLfwOS0g7xuAcERWLrrlOEo1XsaG t6G0mO6wzNsyC1lM4686YD3/8wYkDGV6hMBRIpTcWUHnnBEWaMLIHwaAS23F/bI0ebnx DRtqE4+ytC5HUNwYp5MAmSIX1BMyYnhwAR/MozlpCKKpUZs8JImjtaK2YyOtq/xg0jK6 tqCUi6pBYUDVHwJsE2drXWcrW7e5DpCtIhUdO5fVlKD+nFi99+tTJObeRYQPwsWQzIhc rnHw== 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:date:subject:cc:to:from :dkim-signature; bh=xmJUYGxVIOq2ikN9W5Sr7Lz0nyJ9BNBmKrBR0wxwPTE=; b=kquaj2wLO16ObNpDDIhabFUZCQeccyLbwAwtBdEzFguhBtUxtKlrPKy1xCvxjTJv7t U9IgFfEZmw8j5+juI7HrsyDfZU91WWep/pJStF1y5vgm7kw0q7yIw7EE0XLnfB82mV+r q65+6fmQtzK6nyWht5ftDv4AzzRtxYFl4NjCTwzMqpsEK1gS39SUnvq/ms4MYiFb1K/v 14Smgoe0nB2pFKZ6AGL1WjCPbP6GVG3Ffkep+dCzHlUJAjEiqLv5yvmcDCR8Nzr1Le6b QnJJBoYJvtBcPDesxixy4QEzqkT7xyBfEIWFx04IN4uStemwO3R0+r9EwZ4WybVeR45W qLtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=n52ktlUg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si6396945edz.444.2022.01.29.09.57.00; Sat, 29 Jan 2022 09:57:25 -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=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=n52ktlUg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346319AbiA1GJU (ORCPT + 99 others); Fri, 28 Jan 2022 01:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346238AbiA1GJS (ORCPT ); Fri, 28 Jan 2022 01:09:18 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 582CEC061714 for ; Thu, 27 Jan 2022 22:09:18 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id a8so5223704pfa.6 for ; Thu, 27 Jan 2022 22:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xmJUYGxVIOq2ikN9W5Sr7Lz0nyJ9BNBmKrBR0wxwPTE=; b=n52ktlUg3l4qy9m/0Ni0lzQNBoCvDxm+h9y9p5dLfgPUj79JmomeClnGajJBRNzxmI RmTKQGeWberRRjud4XfI5FwJ3M1dW6UAT93DdcwU8iUFTJe8cxoE/1go74mWnbYA2rpN ObgaBv5dxtL/9CfjgaLbkoUzx2YeVR33SLUsBgiGdJY8219auHHuheS18uX7ZVc5tBRI bpCSqfPY4bFEciUcFhrRSRUX2LSAQoAJQgDeyd8SUQkxbTue8yeDx4555WEmKd3iTQ6Z JZdNEHmylYt+bZujgRFF1PZ2l7EVhnbCQDbsk2dLaq4Nwn9fseH3PMqlbu9taC0UJtSe fD7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xmJUYGxVIOq2ikN9W5Sr7Lz0nyJ9BNBmKrBR0wxwPTE=; b=1ayTbl4XJDOGx6iqL/8W5rE9ah5oFldvU0UfWOt3gXnl2Ygt02rrczBdo+rhyOF8nk zVYSt0UU6pWhq4NfIzZSSBjowu4JVBz0m3mRALsDHbNpvb0IKhbN+bayfAIe9JDlXaWr qfH9dG1tcodBjv0xFxAOCAKvs3/zNToL86Z2E7cf/HCkyXNiUHl1wvDMSqKUQmrPh6Uz aC4wd9cAm0uqy/eEJyB+1fzbXGfiLtdFDXR3iyQ7z3a6RdEHnMdsTf0KkWHC2Pdj7c/2 HMdZtDMejkwSV8ifD3zRmI0zlcaoCQPhAliN4AJ7wj6UEzZN3ULWbEOsko3zcMzOUE0T Isqg== X-Gm-Message-State: AOAM532VaLMn9SwNzjEM+h6sitms7/iC9Mo9ZDpAdPU/Nx6vIqcS+k0X ZmG8KMr+sV6HK17eWmOXCS639w== X-Received: by 2002:a63:6342:: with SMTP id x63mr5500830pgb.148.1643350157903; Thu, 27 Jan 2022 22:09:17 -0800 (PST) Received: from aqua.hq.igel.co.jp (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id h5sm7743182pfi.111.2022.01.27.22.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 22:09:17 -0800 (PST) From: Tomohito Esaki To: dri-devel@lists.freedesktop.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Ben Skeggs , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Simon Ser , Qingqing Zhuo , Bas Nieuwenhuizen , Mark Yacoub , Sean Paul , Evan Quan , Andy Shevchenko , 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 , Tomohito Esaki , Damian Hobson-Garcia , Takanari Hayama Subject: [RFC PATCH v6 3/3] drm: remove allow_fb_modifiers Date: Fri, 28 Jan 2022 15:08:36 +0900 Message-Id: <20220128060836.11216-4-etom@igel.co.jp> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220128060836.11216-1-etom@igel.co.jp> References: <20220128060836.11216-1-etom@igel.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The allow_fb_modifiers flag is unnecessary since it has been replaced with fb_modifiers_not_supported flag. v3: - change the order as follows: 1. add fb_modifiers_not_supported flag 2. add default modifiers 3. remove allow_fb_modifiers flag v5: - keep a sanity check in plane init func Signed-off-by: Tomohito Esaki Reviewed-by: Andy Shevchenko Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/selftests/test-drm_framebuffer.c | 1 - include/drm/drm_mode_config.h | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/drivers/gpu/drm/selftests/test-drm_framebuffer.c b/drivers/gpu/drm/selftests/test-drm_framebuffer.c index 61b44d3a6a61..f6d66285c5fc 100644 --- a/drivers/gpu/drm/selftests/test-drm_framebuffer.c +++ b/drivers/gpu/drm/selftests/test-drm_framebuffer.c @@ -323,7 +323,6 @@ static struct drm_device mock_drm_device = { .max_width = MAX_WIDTH, .min_height = MIN_HEIGHT, .max_height = MAX_HEIGHT, - .allow_fb_modifiers = true, .funcs = &mock_config_funcs, }, }; diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index 4a93dac91cf9..6b5e01295348 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h @@ -917,22 +917,6 @@ struct drm_mode_config { */ bool async_page_flip; - /** - * @allow_fb_modifiers: - * - * Whether the driver supports fb modifiers in the ADDFB2.1 ioctl call. - * Note that drivers should not set this directly, it is automatically - * set in drm_universal_plane_init(). - * - * IMPORTANT: - * - * If this is set the driver must fill out the full implicit modifier - * information in their &drm_mode_config_funcs.fb_create hook for legacy - * userspace which does not set modifiers. Otherwise the GETFB2 ioctl is - * broken for modifier aware userspace. - */ - bool allow_fb_modifiers; - /** * @fb_modifiers_not_supported: * -- 2.25.1