Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 230D8C4361B for ; Mon, 14 Dec 2020 13:04:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC658207AC for ; Mon, 14 Dec 2020 13:04:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC658207AC Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D023D89FC5; Mon, 14 Dec 2020 13:04:36 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 482C489FC5 for ; Mon, 14 Dec 2020 13:04:35 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BED4EBo047810; Mon, 14 Dec 2020 07:04:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607951054; bh=GPQSZ1HIC0UpWOR6A9KWam3f5VDkmwaKzrkrer1E3DM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=qJ98sHdLI1d9Fw3XyyV1fWHi7NpE02UbFaqEqQyjyJbs0tqSO9SJxYnGVLgVgnECB adQUtxmd4kLV4jjbWLCEWYrNw6SIiG4eDILHvvzI/J09uJWC5xAqI+KPMt6j2vrTRO izI+2Tq1pudtgU6SuboXZlv6p97wdduxPaJ3Z5wc= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BED4Eo6107778 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Dec 2020 07:04:14 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 14 Dec 2020 07:04:14 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 14 Dec 2020 07:04:13 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BED4A6L004970; Mon, 14 Dec 2020 07:04:10 -0600 Subject: Re: [PATCH v4 1/2] drm: automatic legacy gamma support To: Laurent Pinchart , , Daniel Vetter References: <20201211114237.213288-1-tomi.valkeinen@ti.com> <20201211114237.213288-2-tomi.valkeinen@ti.com> From: Tomi Valkeinen Message-ID: Date: Mon, 14 Dec 2020 15:04:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yannick Fertre , Philippe Cornu , David Airlie , Maxime Coquelin , Russell King , Sandy Huang , Paul Cercueil , Thomas Zimmermann , Matthias Brugger , Vincent Abriou , Alexandre Torgue Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 11/12/2020 13:50, Laurent Pinchart wrote: > Hi Tomi, > > Thank you for the patch. > > On Fri, Dec 11, 2020 at 01:42:36PM +0200, Tomi Valkeinen wrote: >> To support legacy gamma ioctls the drivers need to set >> drm_crtc_funcs.gamma_set either to a custom implementation or to >> drm_atomic_helper_legacy_gamma_set. Most of the atomic drivers do the >> latter. >> >> We can simplify this by making the core handle it automatically. >> >> Move the drm_atomic_helper_legacy_gamma_set() functionality into >> drm_color_mgmt.c to make drm_mode_gamma_set_ioctl() use >> drm_crtc_funcs.gamma_set if set or GAMMA_LUT property if not. >> >> Signed-off-by: Tomi Valkeinen > > Reviewed-by: Laurent Pinchart Thanks Laurent! If there are no objections, I'd like to push these to drm-misc-next tomorrow (along with the omapdrm gamma + CTM patches). Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel