Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1445306pxx; Fri, 30 Oct 2020 10:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye/e2HgOarphbnbqLt7eSiCzu9ghp23GLMQW5LvDPE9OdWsJzuPi6G0/F1mpewr/8aq795 X-Received: by 2002:a17:906:4e19:: with SMTP id z25mr3624514eju.44.1604077624310; Fri, 30 Oct 2020 10:07:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1604077624; cv=pass; d=google.com; s=arc-20160816; b=GNhz0DUEp+FQsPElMnNmCsNXgDAPv+OvnUDSnAyQIqYtsIE5qJNQ13g5LYsGrgW8bU SvjoTijynwthLhShN0p0ZlMCZjOtc9x3XvyMMNLqf4cGz9SbVfZ2lYMVTTJJsLbYzCL3 G8kMQaSyp6xazFjw+ATT/euULHbub0usdqb5zTekZoE5n5GOQnebLlzt3nXIaL1df7nl 89+I+OCDYbuoQXrEj886qDMMDNT48X01NN40eEksuiYpfvaVm21io20R+v0XB99+pd0m qT2JU1VX+S79bemVHYiGJLujHrWdlAn43+S+TA8uF7pBm7w3x9ujRVuweJPDq29zEzh7 Bb8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=yQv1YW498dEsjxT4dujAo0LMiELdCjYJdT1OCPb/kZc=; b=FxK+ybqmUxHgFYI2qVOxCxo8+b/JGsqTMTjwGKIsXygO3XSlcKiCHvQo95pfC85vwz faLzpZ13GzTT7JcrqGq7mifBEJsGo1DWd/9izAqfoEKrjrK+atcNloDE5k9NDErTqhbz PO9pDPL2BL8G+vovg1I8Q1kmHdwxEthApvHaGaVwECDLhx4x7fKg2uEKOwUud+N2y8J+ 1JNJHBwdcECu53wCW9hvzKUHYcAUaEu4oVfa76OefgHP5Fx+cJ6+TwCY4Gdn2CbZREjP LcbKQjbBP5CZCRz9uFHf0Khu9FvPsNvcT5O7bR+MFbVdoxhrq5i3hvoL9y0n0k3dlUHu gRuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=UEkSESTK; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 g17si5806183ejr.134.2020.10.30.10.06.40; Fri, 30 Oct 2020 10:07:04 -0700 (PDT) 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=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=UEkSESTK; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 S1726885AbgJ3REU (ORCPT + 99 others); Fri, 30 Oct 2020 13:04:20 -0400 Received: from mail-bn8nam08on2040.outbound.protection.outlook.com ([40.107.100.40]:24385 "EHLO NAM04-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726095AbgJ3REU (ORCPT ); Fri, 30 Oct 2020 13:04:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N14862VLRyBSJUCCQWJ3gJGkb5/OW21v7VHdOa41yzbJBQFb49NNRo4nC7Kkeh3LQ6gxN4bx2NRYq4wUG1L7VZYDa6VvYLi7mm4c1Gy0y/Cai8AoZxJDC2CfE1TAXXa6PzJ2li7VNzVtp+Ky3MZx+VFLrj1P3cS8Q2Ch4wlGbdIqTyzX6nuFulL1HsrJfRbZ/oVLfPFosYMszRjD7Rfm4zVYGuYHgwNBo+TyoYOLQ1qMUDv03qJAJdyKIuMqa9dlUFjfb8uJnOxtPVQZzuTDt2OhmdsAMoaxfFaJ04eMt/SdfMEqGM1oflMD5YHpe23TRqcKm2YcWstMu9w6JJKAWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yQv1YW498dEsjxT4dujAo0LMiELdCjYJdT1OCPb/kZc=; b=f6VfeEerdb/tPgyNzhBiyrQvKIkgiOcsPXXDLhrtPSLg2u4KVyJ4CKABPHOmZrrlIdDg3VBwYrLvL77d+1p+Puf8GKGuK9tnanexWWx2ewWfT0SZAgPS9XSY6Zl+z6O6m8CHISn+ox92uh3hxD0SWDfX49tGXXQImmCwQEBLWYy8K0xOgwCuqCHFUt7PMXZ0TeG4u7uN6EGQBfr/h/lg68ZoTaBFKMisUZwj4fsyQA0MAp8HgGde09SNa/fU5yMGWVZAC/nkmXWk8U7TnFwgYl/MFQc4cmOEC+nj79WndBZEEwrLgPUXxlVEE4XAPdUyI0uFaDW+/pd3cFni+q4KYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yQv1YW498dEsjxT4dujAo0LMiELdCjYJdT1OCPb/kZc=; b=UEkSESTKckZTveFOep4lCKf7AMcBN+xHTPj2ccS2KTJ7FzkTyJ9LJLlalBWxt4Cv319rpNQTK0DQc2YEqfMTMs5lD1DwmjExeL0HJoOAjEQ+O1tGeP9j+BxgUyisxLQ+wz2CiSg2L+4dh0+nJuazSWLEdnz2oC7DL5cFCd6tDVI= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4379.namprd12.prod.outlook.com (2603:10b6:303:5e::11) by MWHPR1201MB0144.namprd12.prod.outlook.com (2603:10b6:301:5a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19; Fri, 30 Oct 2020 17:04:15 +0000 Received: from MW3PR12MB4379.namprd12.prod.outlook.com ([fe80::e8c1:7ef6:c905:247d]) by MW3PR12MB4379.namprd12.prod.outlook.com ([fe80::e8c1:7ef6:c905:247d%8]) with mapi id 15.20.3499.019; Fri, 30 Oct 2020 17:04:14 +0000 Subject: Re: [PATCH 4/5] drm/amdgpu: fix build_coefficients() argument To: Alex Deucher , Arnd Bergmann Cc: Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Airlie , Daniel Vetter , Anthony Koo , Krunoslav Kovac , Lewis Huang , Aric Cyr , Arnd Bergmann , Maling list - DRI developers , LKML , Denis Efremov , Reza Amini , amd-gfx list , Josip Pavic , Nicholas Kazlauskas References: <20201026210039.3884312-1-arnd@kernel.org> <20201026210039.3884312-4-arnd@kernel.org> From: Harry Wentland Message-ID: Date: Fri, 30 Oct 2020 13:04:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [198.200.67.155] X-ClientProxiedBy: YTBPR01CA0034.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::47) To MW3PR12MB4379.namprd12.prod.outlook.com (2603:10b6:303:5e::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.193] (198.200.67.155) by YTBPR01CA0034.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19 via Frontend Transport; Fri, 30 Oct 2020 17:04:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4c4203a4-3e1b-4dc5-48c4-08d87cf5d459 X-MS-TrafficTypeDiagnostic: MWHPR1201MB0144: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8CAaOXcgpiFVVk4Zh96EtYZmg8GLrjyxcXAD94DLKikohrospiAXXSjgV4oo2kWvMXaZ7rxVVbzdklNvCSylt2aLzhWX8cq8wECLBW5RmAoMtqXcLFDQgKZBdPgWfuOgJ1WJwKjjfUjdty4uh6L5vcyYij1/OsqzkgDsDFTudY9VclYqMrrs+Wc++3QOcw1EdJvC6/zrRkzmiJzyljtGmZq//EDxIoUi8a//k50pjG7s2tCXWmoLoXdafX1dDaEKP+dw8R9mfRmquEE6ZZH75/p/k+OVkfiXPtYGWfixSwD9loNTy5km8omFy5wJybDvosYMTviLEbqnbtTRVRoIxEqpiYYgHQVTiIexbpMtLfqF0wQzicFc9ZkY1Yt2pn7Mvm64SBL3q81yek7DvjzNwo2iEqUZCIIqNXCNk1MfSis= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4379.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(366004)(376002)(346002)(136003)(31696002)(2906002)(2616005)(6486002)(110136005)(16576012)(66476007)(31686004)(8676002)(36756003)(316002)(54906003)(66556008)(66946007)(5660300002)(8936002)(45080400002)(186003)(26005)(52116002)(956004)(53546011)(16526019)(966005)(44832011)(86362001)(83380400001)(4326008)(4001150100001)(478600001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: kFqs5BFzS3XvOSPn6dHeTjQjh0rUBIjZVrUiqYv2T//DbkJlUKxyEci7csXNdYD1BHog329U09NaHZkiKljyjhs/OahTlfWHdenG8XUBXRfmgA34nzpKL2xcWOuCcxjaSlvN4KClPnxYEsoCJt/cqClG2jSfAP97yfvuAGpFm+xhQJfLfFunaL/UNIgml9P9r5cevHf6M742qVQJkUBwMRTyOgeHxQDlPbDVeTVQP2XRnV1u1LylQzOqlwpMtfSXpBuT9Qhqyv9FR/J0QpYRRdJuaFzmEcrYFUe7kA+ZB3902jqqHCrErG8c1oEvdOcKDi6kh1M2h4PQnvQ6l8FoMLkZlrUI5oW07+7v8GA//UihS/9jIdCvOYuONbGLVOJ1jzkwdg6jVKzU2m9dQ3ukhuilD83jyE+LhxZyMUyGr6Awcd2+yghEM8lMi1vSUeYmfl9AuAMEiQ56tleL7hDFMj7+UYM8qoc4Iq10qvEbZ3j2G2v4ocLHrGSO4j5IP7EZGBmU4/ItTNk90dpdxLgNtlVI8hN+PLO3saQeSiwuBomtkFsjhqfPW1SGOOTzJEempVJWcwHut6g8Ol80XDXzhQpojAmyy9Eik4JVOAbVeModzmIB1/dH7IzwADTOgIWtSW77V9u3cl83eBes7rGSjg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c4203a4-3e1b-4dc5-48c4-08d87cf5d459 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4379.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2020 17:04:14.6996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: S2TfPOwqukqMy2FEYt8qDtX+33OrUUDCZxUz8E6BY6Jsb/Ogr2nTAIohQ2f7k4tMrYiOSy32QI1XUvCiQN2YyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0144 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-29 11:53 p.m., Alex Deucher wrote: > On Mon, Oct 26, 2020 at 5:01 PM Arnd Bergmann wrote: >> >> From: Arnd Bergmann >> >> gcc -Wextra warns about a function taking an enum argument >> being called with a bool: >> >> drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c: In function 'apply_degamma_for_user_regamma': >> drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1617:29: warning: implicit conversion from 'enum ' to 'enum dc_transfer_func_predefined' [-Wenum-conversion] >> 1617 | build_coefficients(&coeff, true); >> >> It appears that a patch was added using the old calling conventions >> after the type was changed, and the value should actually be 0 >> (TRANSFER_FUNCTION_SRGB) here instead of 1 (true). > > This looks correct to me. Harry, Leo? > Confirmed with Kruno, this is correct. Reviewed-by: Harry Wentland Harry > Alex > > >> >> Fixes: 55a01d4023ce ("drm/amd/display: Add user_regamma to color module") >> Signed-off-by: Arnd Bergmann >> --- >> drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c >> index b8695660b480..09bc2c249e1a 100644 >> --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c >> +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c >> @@ -1614,7 +1614,7 @@ static void apply_degamma_for_user_regamma(struct pwl_float_data_ex *rgb_regamma >> struct pwl_float_data_ex *rgb = rgb_regamma; >> const struct hw_x_point *coord_x = coordinates_x; >> >> - build_coefficients(&coeff, true); >> + build_coefficients(&coeff, TRANSFER_FUNCTION_SRGB); >> >> i = 0; >> while (i != hw_points_num + 1) { >> -- >> 2.27.0 >> >> _______________________________________________ >> amd-gfx mailing list >> amd-gfx@lists.freedesktop.org >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Charry.wentland%40amd.com%7C3b50cfb318a04e2708e308d87c875c07%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637396268091128887%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QGijLrlFTXI3xx2sGx1iNczHBezfWdu%2FP2xkfoq%2FMB0%3D&reserved=0