[v2,02/34] drm/drm_mode_object: increase max objects to accommodate new color props
Message ID | 20230810160314.48225-3-mwen@igalia.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp535146vqi; Thu, 10 Aug 2023 09:25:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQkcnmTIL6/F576u0bMr8kUgfSDggAOeAt+CKj5VceRMDf7Z0tqzC11DeYFiD0EkgeJnRB X-Received: by 2002:a05:6a20:7f84:b0:140:61f8:53f6 with SMTP id d4-20020a056a207f8400b0014061f853f6mr3025938pzj.29.1691684703937; Thu, 10 Aug 2023 09:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691684703; cv=none; d=google.com; s=arc-20160816; b=YLtWgzi27+j5vD0UWQfVduE5neheLC0cbKwiaMxiJMNQOkusBes9vqy6to4o1MGBon zJzOZmV5Yu5x/AUikuphD3FLwvaBDrfnkUik67IXT0/bjurAkqHHXiaYV5U+TWPx51fC 1gE83bVAAknNTkozGiZ4tBv9pOdmksznT0vxSFPvVksLer85bOGKymRxe7aBbAh7+I5S HdE77byP/5ZT7zx3oZBUsaaWsY3Muibq8tmppgNSy2uEbiyOuVlZMJtjt3gL6DvRoU/D u62ZYgIXNVCukq8L23winzPIOl6GYd9XqxvaeCC9zlgUpWdCN8yzjTKI3FvNGACX9BSz DAqw== 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=rfx4tvW7R2KBhwKSd3k5sJd6oheAeA5m3drlsyYWwvQ=; fh=WUoJGlDRs3sy6P6Xi/GRsKK9XYo6wCLKvj+grjxEXaU=; b=QpKVryiefJkEaJpsivT/mp2wmgeMgsYsduVWLXPBgiRMMyK02VNsV4pwViukxwCDWd ZHugfrOiHHPBlBcv/EvZv5zODqg8XjNUDnJcNtDhVWGhunon/IipmQJ0iu/YIzTu2wnV l3kOKVRyHY+BybLTEDMWV/JDvO+STIJfj6g15qtu/jOv4qQhODjzeLiUJyrjdS9G6c5b Vdo9wyacmxKvvDet6pu1m9GkEROEJZohwpC8HG8aOu756+/9DxATvFiON8Ui0No6ZT5U LFDvuC4vpqJuxZIzpgS4QHfVasrrnoVURnIPYnr5ASObxt6G0CYqTvKSncr56amAyTn2 LoBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=EklayQgn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds3-20020a056a004ac300b00687533403dcsi1778120pfb.269.2023.08.10.09.24.49; Thu, 10 Aug 2023 09:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=EklayQgn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236445AbjHJQEV (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 12:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236337AbjHJQDy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 12:03:54 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CB43272C for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 09:03:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rfx4tvW7R2KBhwKSd3k5sJd6oheAeA5m3drlsyYWwvQ=; b=EklayQgnqv4aZqRf4oQ7Pvgf7D 9kDaI4BASQVTS4wGbfscgvm1ABNqft43eOB0y37NamOM/NdCfkRq+K2Vuo/TaZGLdSVfK7FRPa/aq oyL2GdnTYCn5g5dePjq6HK052v+EXwe35Ba8LN2/YUpcYUujURd9VvTJtO35pb6a6QmJXFQowqw5x R6KDSGVXsHMmf+PzYeAq5rOugvwqqJ5iAusHAXk/TtaKsMfRSW7R+2AKNNdVrZe/8WuJeQe7ZMJhw ZnVnO9H7aFK7+BKqwrGmH+ptq7WJ4fJDHgnN2rGInqzQKqsG7PufiKV+/06mnI+F3OvNZ38nSaEp0 4GG+4/2w==; Received: from [38.44.68.151] (helo=killbill.home) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qU88A-00GjYD-2a; Thu, 10 Aug 2023 18:03:22 +0200 From: Melissa Wen <mwen@igalia.com> To: amd-gfx@lists.freedesktop.org, Harry Wentland <harry.wentland@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>, sunpeng.li@amd.com, Alex Deucher <alexander.deucher@amd.com>, dri-devel@lists.freedesktop.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch Cc: Joshua Ashton <joshua@froggi.es>, Sebastian Wick <sebastian.wick@redhat.com>, Xaver Hugl <xaver.hugl@gmail.com>, Shashank Sharma <Shashank.Sharma@amd.com>, Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>, sungjoon.kim@amd.com, Alex Hung <alex.hung@amd.com>, Pekka Paalanen <pekka.paalanen@collabora.com>, Simon Ser <contact@emersion.fr>, kernel-dev@igalia.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/34] drm/drm_mode_object: increase max objects to accommodate new color props Date: Thu, 10 Aug 2023 15:02:42 -0100 Message-Id: <20230810160314.48225-3-mwen@igalia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230810160314.48225-1-mwen@igalia.com> References: <20230810160314.48225-1-mwen@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773859979917943737 X-GMAIL-MSGID: 1773859979917943737 |
Series |
drm/amd/display: add AMD driver-specific properties for color mgmt
|
|
Commit Message
Melissa Wen
Aug. 10, 2023, 4:02 p.m. UTC
DRM_OBJECT_MAX_PROPERTY limits the number of properties to be attached and we are increasing that value all time we add a new property (generic or driver-specific). In this series, we are adding 13 new KMS driver-specific properties for AMD color manage: - CRTC Gamma enumerated Transfer Function - Plane: Degamma LUT+size+TF, HDR multiplier, shaper LUT+size+TF, 3D LUT+size, blend LUT+size+TF (12) Therefore, just increase DRM_OBJECT_MAX_PROPERTY to a number (64) that accomodates these new properties and gives some room for others, avoiding change this number everytime we add a new KMS property. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Simon Ser <contact@emersion.fr> Signed-off-by: Melissa Wen <mwen@igalia.com> --- include/drm/drm_mode_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/drm/drm_mode_object.h b/include/drm/drm_mode_object.h index 912f1e415685..08d7a7f0188f 100644 --- a/include/drm/drm_mode_object.h +++ b/include/drm/drm_mode_object.h @@ -60,7 +60,7 @@ struct drm_mode_object { void (*free_cb)(struct kref *kref); }; -#define DRM_OBJECT_MAX_PROPERTY 24 +#define DRM_OBJECT_MAX_PROPERTY 64 /** * struct drm_object_properties - property tracking for &drm_mode_object */