Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1418464imm; Tue, 2 Oct 2018 07:56:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV60DuKdWseUDGty/Zn+0Wc2+Tma+0qreGEFyvoLDaVzcZ8SCRZ+95/hGHUgCtMvZVOB3aXr0 X-Received: by 2002:a17:902:b712:: with SMTP id d18-v6mr17575385pls.53.1538492196517; Tue, 02 Oct 2018 07:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538492196; cv=none; d=google.com; s=arc-20160816; b=TSbKEEHO0gXgW8s2WmPpNm0X6SiR5GN8BdKrK+NG/DFTGRZTxNn+qrJFfPpvOsPJgE q7lGgRUCjJ3xlGLeu7NzxaIA1ufabmjYyuqV8KQbVL3q1emLlWXzFzK23Y7cT1WeKUSK 23tmSGBlGeKzcheQNIpfm2EgYMh4VoeEb9UwjZa2jhKlfwvym3quV3Yczl3hFsn3GFZf CTd6ZCKWkvVNJIRA/Ls4egnrFKC+CTGJd2KOeELZYAQ5NC5SDZ/X06HQ6G+yPbXWu0Nc Van69m8V8rz/OIPEthw3Z+Yhn0shIsBpj7O/6frN+VfrjZD8oj8UX8rxVPVlveUdgGsg PVjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=JOyOy255Z1RylO0ojpUoqZVookHUIj3nBHyaXKkYg38=; b=NsQ7sdF3dqTRNzgcytOCC9HTGHPF5SH1auaGDh1w3F/GJ6mANKMgoRYYO3VN4s1RwU E68jmdAhXL4Ey6OWxtH9NOiH792TB9r3RsC4OEJALQ57bmAoxSKO8PzC2yeWo6g0ws0k iMeBIdkQujPGB4QV+nsd+zEutbvFVYGr17mfmAf696nIn0qBNaR8JSMLMW1WRZcmhzNn KzsltdlNUd59/7f0zR9nLQp+Eb++QeKoUbkaUoMTHxsdwkpVNkoDuCfqbTHNiJAK5FpM /2UJDqG7heVAUpdZYXPaDQfrkJuvkQUKtpBx/G6cYXqmFs3SP3BowuOoHxjqKN0wsUqG J+eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=bBwmh63U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24-v6si15175107pgb.11.2018.10.02.07.56.21; Tue, 02 Oct 2018 07:56:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=bBwmh63U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728742AbeJBVjR (ORCPT + 99 others); Tue, 2 Oct 2018 17:39:17 -0400 Received: from mail-eopbgr710083.outbound.protection.outlook.com ([40.107.71.83]:37408 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726118AbeJBVjR (ORCPT ); Tue, 2 Oct 2018 17:39:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JOyOy255Z1RylO0ojpUoqZVookHUIj3nBHyaXKkYg38=; b=bBwmh63Ujo0BNUqm7fxoJR1uu9qpgUFRPKYrHUB8emkd3fnp31GrpLWOos+BPz5421fZt3wu4xan88Xp+/3kdKI8OacVYwLWfoYd0YYI30GoBLBgLVFvVbrI1ApdqpneDFbdNvGM/3UwUJcber7jNomFiXjXfFgR5II1IrCzDeQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Received: from [172.29.160.53] (165.204.55.250) by SN1PR12MB0192.namprd12.prod.outlook.com (2a01:111:e400:5144::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.25; Tue, 2 Oct 2018 14:55:24 +0000 Subject: Re: [PATCH v2] drm/amd/display: Use proper enums in process_channel_reply To: Nick Desaulniers , Nathan Chancellor Cc: sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, LKML References: <20180921215505.14634-1-natechancellor@gmail.com> <20180927180632.11520-1-natechancellor@gmail.com> <20180927180816.GA12545@flashbox> From: Harry Wentland Openpgp: preference=signencrypt Autocrypt: addr=harry.wentland@amd.com; prefer-encrypt=mutual; keydata= xsBNBFhb4C8BCADhHHUNoBQ7K7LupCP0FsUb443Vuqq+dH0uo4A3lnPkMF6FJmGcJ9Sbx1C6 cd4PbVAaTFZUEmjqfpm+wCRBe11eF55hW3GJ273wvfH69Q/zmAxwO8yk+i5ZWWl8Hns5h69K D9QURHLpXxrcwnfHFah0DwV23TrD1KGB7vowCZyJOw93U/GzAlXKESy0FM7ZOYIJH83X7qhh Q9KX94iTEYTeH86Wy8hwHtqM6ySviwEz0g+UegpG8ebbz0w3b5QmdKCAg+eZTmBekP5o77YE BKqR+Miiwo9+tzm2N5GiF9HDeI2pVe/egOLa5UcmsgdF4Y5FKoMnBbAHNaA6Fev8PHlNABEB AAHNJ0hhcnJ5IFdlbnRsYW5kIDxoYXJyeS53ZW50bGFuZEBhbWQuY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msgS+nibqSvWXfo1v231 410h35CjbYDlYQO7Z1YD7asqbaOnF0As+rckyRMweQ9CxZn5+YBijtPJA3x5ldbCfQ9rWiTu XQ== Message-ID: <1188b75c-9e4f-1c0b-f014-cfd958640caf@amd.com> Date: Tue, 2 Oct 2018 10:55:18 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: YQXPR0101CA0015.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:15::28) To SN1PR12MB0192.namprd12.prod.outlook.com (2a01:111:e400:5144::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4dd27c11-ee55-43e7-0bc0-08d6287715c4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0192; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0192;3:EhIJQBPbX5YEVNrm8MRy5Zl0imeqle9hfCDkwjJbnZ6kYe4j4l4yAg1XT6a2bzt/rVD0pllQ41l637C98RCnGgnTsisxjw82fP0BDaTeaARy41Sxb0RSwwqcp9dmqYoESZ//+1lbZAG8c0FHkiqLT0Q+vctdUvhHtsid+6l95P3t7a8WE9RKMVxq0qL7eQWa5FBE1jna8bncjdbvB3jyrXGGawL9GlBnn5/3LbSobgJLiaMCEDSNoHrZ6Lxv4IsS;25:c+nGJ8dSHCu9Gr9y6X21ni5JVLfBgrvpyOe5dZrixKa6Kh4Q/zApP+3/oO1ivrg3QvapbzIvl3eVTLVYhKQ8LOj7dFPNrapCAAFtvP3ujJvXZJ2fzJpj7D1nY/nzB9MdB4zRZl3n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fqRlX+AstTBbPYsgFKag/NMaEv18LPDkCf2c//7UFyqfEDyZkyVe9CFV7BCkxLlv9S/WfxyffXDw1n7GqM3JQt3M0AJagLlf04Dh+fCsXLGjT1cWEyeMAne1xJLtj5Fqa1ev+V+Otm1fjbuuR/Se+CBLv4cqO7/E80DaMRTGGjnnMc95s0A3FzNDTCSX7eyeMDM5oC5rk/TO7ywHyFa1IS4xbO2GTUVaImnXdDxbSUH/cnkdHiTqV/vguxuuWvevLqfzBzLfVJfN1Zdwf9bnoxmA/vnt2P330ZWy7iDAuAOuxUd/kvKfExiXbuHT1W296BtWvGTybYuR8ooBvPvlRAvHNtn1xbZiYJAJKUBc3M0gg+7uTCG0me/VUY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(211936372134217)(153496737603132)(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699051);SRVR:SN1PR12MB0192;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0192; X-Forefront-PRVS: 0813C68E65 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(396003)(39860400002)(376002)(136003)(366004)(51914003)(189003)(199004)(478600001)(97736004)(16576012)(31696002)(110136005)(446003)(386003)(39060400002)(316002)(68736007)(7736002)(31686004)(575784001)(86362001)(77096007)(26005)(551934003)(81166006)(6116002)(53936002)(58126008)(76176011)(16526019)(186003)(3846002)(93886005)(229853002)(14444005)(81156014)(52146003)(65806001)(5660300001)(65956001)(47776003)(8676002)(64126003)(53546011)(106356001)(2906002)(230700001)(52116002)(105586002)(66066001)(65826007)(4326008)(8936002)(11346002)(6246003)(305945005)(25786009)(486006)(956004)(476003)(72206003)(6666003)(2616005)(36756003)(23676004)(44832011)(50466002)(2486003)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0192;H:[172.29.160.53];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMTkyOzIzOjc3L2tNM1lLR09veDlEeWJtcHpvMWxudERY?= =?utf-8?B?QmRqeng0cXp1WHBkUnFMbzdQYVpSS1NOaWlLNDJUVjVBVEpCNDE2WURaNVEv?= =?utf-8?B?aWRJTnZ0WmtSMFF6TW0xYnZIaVBUSlVEdFE2MDZnUHRCODZkc3JUcithYm03?= =?utf-8?B?T0tjR3J2ZkhzVEpCMllXblN6dkE0TDM3NS9VTVZkYmxwOGM4VmZueldndzd2?= =?utf-8?B?NDJaUFBSQWVwUEZDUGV0TWw3TlhNT0hWbGdvdGZxVEh0ZnNQQ2hRNkJnVUVH?= =?utf-8?B?dmVGdWVaY1ZRcFd3RUtLb3NLd25pT0FPR0FTSVFHV0hGZWRIajJaVUpkNGRx?= =?utf-8?B?dlkvWElHcnJsMFVqZlQ3a29DYUUzNGF5MVJucWgyN09VbGFUcU5TeUJIQUZO?= =?utf-8?B?blhtM0x0b2xTS3NNMFNYSHRxa25ESUxGR1ovdzk3T2VZeThUdDlteHdtdGtB?= =?utf-8?B?aDVNUm4rRm5EcVBXYWtObVhwRmNmaE1wNjhxdW1LS01nUnRiSElNd0piYjc0?= =?utf-8?B?elNTMkNacmh3cm51dkRySHBqM2lxT0c1bFdXajczWFNVRUx6U1JvQVpaaFdD?= =?utf-8?B?U3ZJUmFFYzdISGhCMGdpazd0UWR1cloweEFBUlZxVUYrZ1c2cFFCSnpyT0Rw?= =?utf-8?B?d1dmR3dHOWlleWREcXd2N2tXblFVbzh5Q2tuMHlCZ3QwQnJ2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mHM9z1O46jKEYVK+b1mfvJj2fUpqvhhcOk97eXYnppVgGEDVhielPx7uJbdSFa4yiQ5DvNyDUn439AJuV/0sp4PTCTD4If+EqTzueYSVWmttHwcSASROoAqSvok2KZocULSkG1Jp6mMIusFsozmkhqMKluZRPJ1gvA1geHDACxjg5JzR+1a X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 14:55:24.0354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dd27c11-ee55-43e7-0bc0-08d6287715c4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0192 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-27 02:11 PM, Nick Desaulniers wrote: > On Thu, Sep 27, 2018 at 11:08 AM Nathan Chancellor > wrote: >> >> On Thu, Sep 27, 2018 at 11:06:33AM -0700, Nathan Chancellor wrote: >>> Clang warns when one enumerated type is implicitly converted to another. >>> >>> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:315:19: warning: >>> implicit conversion from enumeration type 'enum >>> aux_channel_operation_result' to different enumeration type 'enum >>> aux_transaction_reply' [-Wenum-conversion] >>> reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; >>> ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> drivers/gpu/drm/amd/amdgpu/../display/dc/i2caux/dce110/aux_engine_dce110.c:349:19: >>> warning: implicit conversion from enumeration type 'enum >>> aux_channel_operation_result' to different enumeration type 'enum >>> aux_transaction_reply' [-Wenum-conversion] >>> reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; >>> ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> The current enum is incorrect, it should be from aux_transaction_reply, >>> so use AUX_TRANSACTION_REPLY_HPD_DISCON. >>> >>> Reported-by: Nick Desaulniers >>> Suggested-by: Nick Desaulniers >>> Signed-off-by: Nathan Chancellor > > Reviewed-by: Nick Desaulniers Reviewed-by: Harry Wentland Pulling it in through amd-staging-drm-next. > >>> --- >>> >>> v1 -> v2: >>> >>> * Rather than change status to an integer, use the proper enumerated >>> type from aux_transaction reply as suggested by Nick and confirmed >>> by Henry. >> >> Sigh Harry, sorry... > No worries. You're not the first to get that wrong. :) Harry > Thanks for the patch, Nathan. Don't worry about sending a v3 over > this; its below the commit line so this detail wont get committed. > >> >>> >>> drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 2 +- >>> .../gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c | 2 +- >>> 2 files changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c >>> index 3f5b2e6f7553..aaeb7faac0c4 100644 >>> --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c >>> +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c >>> @@ -312,7 +312,7 @@ static void process_channel_reply( >>> >>> /* in case HPD is LOW, exit AUX transaction */ >>> if ((sw_status & AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK)) { >>> - reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; >>> + reply->status = AUX_TRANSACTION_REPLY_HPD_DISCON; >>> return; >>> } >>> >>> diff --git a/drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c b/drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c >>> index 8eee8ace1259..59c3ed43d609 100644 >>> --- a/drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c >>> +++ b/drivers/gpu/drm/amd/display/dc/i2caux/dce110/aux_engine_dce110.c >>> @@ -346,7 +346,7 @@ static void process_channel_reply( >>> >>> /* in case HPD is LOW, exit AUX transaction */ >>> if ((sw_status & AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK)) { >>> - reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; >>> + reply->status = AUX_TRANSACTION_REPLY_HPD_DISCON; >>> return; >>> } >>> >>> -- >>> 2.19.0 >>> > > >