From patchwork Sun Apr 23 14:10:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melissa Wen X-Patchwork-Id: 86752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2231371vqo; Sun, 23 Apr 2023 07:48:48 -0700 (PDT) X-Google-Smtp-Source: AKy350Y07AgCHZs61tnTkf26S5k33Hg38jiWSO6rwm9svSaBKB6iebZNlVwSY9MkKhC71wFEr0LB X-Received: by 2002:a05:6a20:ab98:b0:f0:ac6b:379f with SMTP id da24-20020a056a20ab9800b000f0ac6b379fmr11476283pzb.15.1682261327746; Sun, 23 Apr 2023 07:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682261327; cv=none; d=google.com; s=arc-20160816; b=QAfCgEZp605yuByn/8PXP5LDciXampB4V88uSFjg4iNH4c5wKTkI0pECNm6kBqOja9 vvAkC1PJuTkBbkfU6+6+rQXV0AzdcCya9b/vv3+uMXbJcyNsDLlosSFarC4fFSBnhEIK rJUm6eFeNgWKqNKxINB30YbgLqDlf9WPgP+YOFat7hExqIVyOyBRtBE+pdSa0DOMTOg4 5sXsoV5DZdUQPnDxrOYNuEuyB+1jtVv4riDQWqJIRmopPskoSdhgbyEO5hqMKLpF1iMB ybKdv9Pv/fJyYOO94KPs7K/AStfnw/RpN9m1u7r/EEbU6HoQJQgRX+hOGclLen6l84Hd SGrw== 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=61KSS5+ykrC2EpBhN11Qk1hbuXSnyOrLMv+gxM8XJiM=; b=n7LkHcyxE3M4+CctstdnuWlZqJdTnqtpLe577VTlCnHJQry5KBvsfZHfpFHa4jX2Ty q/GPPv1ZWsx26OazPoblrxorq5WipqE2A2Zl+/LrzAUjOOaCJe7cgUN6lRlgxUXmQV4a tMCZuC0MzW5S3kT3NjpJc10tdtdSNhBvBhvx8mt+3+Enc0LJvuJLLKq05PcsV04tBngJ qf6GWRZz+mFP7FaZK+RjL/eTD0yBGsZy25cbALzGYOLkhIrvLqOUgI+A2hsQ+99dbYoW jOo6lTvfSgp8owtiMtm1MsfAdOjk2yIW/PdG7eUvPS7qkXZZoZCt5yYhifA5vj4W7lqd 5ejg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=EBlbem39; 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 137-20020a63078f000000b00513a68ca71asi4508689pgh.742.2023.04.23.07.48.33; Sun, 23 Apr 2023 07:48:47 -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=EBlbem39; 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 S230239AbjDWOMk (ORCPT + 99 others); Sun, 23 Apr 2023 10:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjDWOMc (ORCPT ); Sun, 23 Apr 2023 10:12:32 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE04F1FD6 for ; Sun, 23 Apr 2023 07:12:22 -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=61KSS5+ykrC2EpBhN11Qk1hbuXSnyOrLMv+gxM8XJiM=; b=EBlbem39+WObZkXT6cpRxHLypm sJSX69u+V+8TBPnkSJlNRH2ttHSacdtg9acvMnz/55ocsu8Koe3dKdyxugqLT+mOC+NnTEXXt1dKz RQs6n6CDGQW0lJ4r5DOh133lEtV+qPnPSEb2hr3uCJwGA7ijCsDz4soKbSIEA5RuAU4DiUkw5i0dT O/9CYFrOesSGjOPUk+BYFj7ICUN1USFkiHw3SF4VfEQd0TcILVY+Z/HCIPUWv9oiqI9adixNsMslC 98FsXi0h9xA9AnU7MEcxaBA7ThvHTt0mcpwcSl7oVDiU0IQdpNRCRkou3+Tb8FUuwPUOoU8eSQauZ HTuMR28Q==; Received: from nat-wifi.fi.muni.cz ([147.251.43.9] helo=killbill.fi.muni.cz) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pqaRh-00ANVs-QW; Sun, 23 Apr 2023 16:12:05 +0200 From: Melissa Wen To: amd-gfx@lists.freedesktop.org, Harry Wentland , Rodrigo Siqueira , sunpeng.li@amd.com, Alex Deucher , 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 , Sebastian Wick , Xaver Hugl , Shashank Sharma , Nicholas Kazlauskas , sungjoon.kim@amd.com, Alex Hung , Melissa Wen , linux-kernel@vger.kernel.org Subject: [RFC PATCH 04/40] drm/drm_mode_object: increase max objects to accommodate new color props Date: Sun, 23 Apr 2023 13:10:16 -0100 Message-Id: <20230423141051.702990-5-mwen@igalia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230423141051.702990-1-mwen@igalia.com> References: <20230423141051.702990-1-mwen@igalia.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763978854128391817?= X-GMAIL-MSGID: =?utf-8?q?1763978854128391817?= In the next patches we are adding 17 new properties for color correction: - CRTC: 3D LUT+size, shaper LUT+size, regamma TF (5) - Plane: Degamma LUT+size+TF, HDR multiplier, shaper LUT+size+TF, 3D LUT+size, blend LUT+size+TF (12) We still need to detach driver-private counter from DRM/KMS-generic, by now, increase max objs to 41. Signed-off-by: Melissa Wen --- 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..7e4fb7536c6a 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 47 /** * struct drm_object_properties - property tracking for &drm_mode_object */