Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5955694pxb; Thu, 27 Jan 2022 03:23:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwq1s6DoqVbnPxJeypxe5y/zHZmPu+VgcBblGtVGG8XzlggH9/YMDCYnjCZaKt2Rz653dCz X-Received: by 2002:a17:902:7d8c:: with SMTP id a12mr3055839plm.75.1643282608090; Thu, 27 Jan 2022 03:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643282608; cv=none; d=google.com; s=arc-20160816; b=gcmzYavvPxSLOO2WIYs6uvrBtSwPwzmrsPK90t7rgIX88Z3abLQECvMgWodq20oJEr rkkGFX/ZPrFth1FRRUHcwXVs4P2yei9FE0gCf1dgJthQShE+ug7AL8ZTs3QfgpWz4/Vr 9zMtFpEYZcpkiJOo6sHz3fF+9S7yKcrrBQSI4ojbRt4Fvy8Rz/Cs6UuL9tM5Wi3i93MO k+RpMHE6A+1GYO0eb1M3jgn/YCD78k5RdYUdHigSzIWftVeuMAyj6ZsJpSspj0ZyZAqY gfw34rdIXLYgDSPWEd0jBx+HDTv3+XvMv3toy9zwp8Z/NT2tC4SYAqSZ+55daATbaIPt cUTg== 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=UXgGm9s9WWnJocR1csEpEoFP0RYkPEhnyAgndhDwtjc=; b=rdsn8mphX4U4aCUYpAJMp332UgKBBrSvg+kwL5PKeuWtSZGqtOrkKoT1wWhQOnl7IS aSvZraqIHADuR3WlzcdQKpXMpbnXwvugg6yt1/w2adNnBfd+XLPe9tOKB+CMvf37eBwM x3xUhTZ1YwCCIBsXc8/RDEtQW5+tc6jx8cI+GOXy8VscW6pm7eMCiXNmBNbo7IYX95ii QGacVzc4V7Au14GPwJq9Ru3fdO5/vBII8KIorLlwD3pJHCGSt+aeUuCeOP1t2XmGsySf 82lTao521zPvJT8oqfr1fPdv3Yvk7yagAJHmPu0qVkMqNHliOJWuXOPudWqhbMJA/Y8+ mGWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=O4KjoPSu; 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 130si1994290pga.65.2022.01.27.03.23.16; Thu, 27 Jan 2022 03:23:28 -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=O4KjoPSu; 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 S235585AbiA0D0S (ORCPT + 99 others); Wed, 26 Jan 2022 22:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235734AbiA0D0Q (ORCPT ); Wed, 26 Jan 2022 22:26:16 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECE5C06173B for ; Wed, 26 Jan 2022 19:26:16 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id v3so1121191pgc.1 for ; Wed, 26 Jan 2022 19:26:16 -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=UXgGm9s9WWnJocR1csEpEoFP0RYkPEhnyAgndhDwtjc=; b=O4KjoPSuQDZNGBWdQmitA/kZxO0YlbnND4cNyWdlyu4NQbK+BjberWp7inGyjYEFJK V6JfMoxtuIZkIBnyKTfo0YDRqThLerNVvqa+K1pSkgZZvEcRMTgu3/Fla5GeW5IktNNn Bijtm9oz/pYUb5wZ8jBAPSSs4k9N9koKFTfDDcGFPBvT1f6aT69SbDPqjCIOCXPuxmTu 3zWG6DCftxpuLhT0mrnB7Ni8jRvM2RLA+4slw5oHeDn0lLA7Qm21MGiq0iFX+UpbBapn fzZcajgCC/wg3/Mw4zbuNAa0nNAWO80t/e4VHG2oUY2aJnDbWbkuoV/5ZDfxq5gVqZdt hdmg== 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=UXgGm9s9WWnJocR1csEpEoFP0RYkPEhnyAgndhDwtjc=; b=yJMyuIQZXWQX+6N+SqRwP6mvp96GBP9nWlBiNFbo3w5mj9Ek9lLLGv6MXGHOixUkJA YdRCcaYnliYZOqlbi1OswZWzMpABpVdwcBLWkWdaDDMwZDnJO/uz2Kihr7xBngYRPM4t pKUb43SkbEJvJYyGgta47Mk8Q+YjcFh0zasJREYeivySyHxHtsg+50bSwJ4dzX3mHWLp 5/htD5N/4Mrq0EJLshucfKN6nU55ZHWTzcR9xsPcd32bUzV2t81cUAZ0/Tk58STO5Fe5 QzinZweYhBLMZ0KZH/BVSVwd1kT/T2RR9w3HZDer4rfr9v2hUOrHFlzGFuNB6QlLSVP7 t4Hg== X-Gm-Message-State: AOAM532wr2UkfqxvHejYa9eeJ2Lk7fnAN2JOZLvVHvXml78RAWtfTGk+ tpVAMqfZZqTAK/vptH2LRlE7wg== X-Received: by 2002:a63:2c07:: with SMTP id s7mr1356397pgs.181.1643253975979; Wed, 26 Jan 2022 19:26:15 -0800 (PST) Received: from aqua.hq.igel.co.jp (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id t15sm4203111pjy.17.2022.01.26.19.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 19:26:15 -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 v5 3/3] drm: remove allow_fb_modifiers Date: Thu, 27 Jan 2022 12:25:39 +0900 Message-Id: <20220127032539.9929-4-etom@igel.co.jp> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127032539.9929-1-etom@igel.co.jp> References: <20220127032539.9929-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. Signed-off-by: Tomohito Esaki --- 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