Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1820200imm; Thu, 27 Sep 2018 03:05:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV60he63mWEWL2tq4mYjYzEIMnsPY8l21ymC8vYerezBiWwkeVPymPjU0uuUGRP4eRWwPuzog X-Received: by 2002:a65:498b:: with SMTP id r11-v6mr9673727pgs.153.1538042728564; Thu, 27 Sep 2018 03:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538042728; cv=none; d=google.com; s=arc-20160816; b=F14T03byiMCqIBXx5CJ64SXRFWYcTPv8pcEzmFho2nx5AJRZFbNCzH2rLCSuJQhoFB ZbZOAZKt3FbvProo7/qbGkvYYZVyUaVna2RVG2oE6TB8eR2Sg90qi0MC1RP44qH7mbaU XpALLvavQ12EeDd+2sM943NjL9nC6b6zA1VLziQrcb+EEvI8K8gBW3kBM4j7ifddvWDj GaLCnQ7Nb7Prp+4tTYRtkrOpfufiAau2OgY/OZJKCYdO/IjMiX77ftC5lOjLqNJl/HkI Z42vb1PLnG9qfzDRM1C5M8HB4yyCTsCdjSsynHfNp6on3cTSzZpTI9S13SUWXMw0dpgH v5fA== 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=1bRxng4tkRwiFoSnKT1R8x1+W1UjaxKhG+DcIqC3kB8=; b=jyIxDNalSkYgL3LJfE0Rtj6HHhy6tJfeJqb9DKqrKUdhqERobP9YsTFsjQ+LhXSnSJ r6mRVBiVAdtQpNGD9+gdL1jIu5Tfr6K0c44bXWUu0BkWg6DSg1beKkyRt5ZUQ7gq/iWb yG3woXttwofAqBBdq575iz5pXb1l4LZE99VlQLI+hgwCTYJtFiBvGCLTI08mNnjGv8cG rY1EclPGqDsm0Ngal/Sn3Y9/LwCAWD6qFkiE7WNrmUJhvL890rscUfEXnA1Uk15QNuGh 3rmKkK0DxrlvCkLWlDZFj2uL/RehAYTkm6qDNEfC/lBAXeooR8UYCNH7DwJKoRRgKwY6 gyGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=wliVSikh; 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 w186-v6si1641484pgd.358.2018.09.27.03.05.12; Thu, 27 Sep 2018 03:05:28 -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=wliVSikh; 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 S1727359AbeI0QWB (ORCPT + 99 others); Thu, 27 Sep 2018 12:22:01 -0400 Received: from mail-by2nam03on0063.outbound.protection.outlook.com ([104.47.42.63]:38962 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726790AbeI0QWB (ORCPT ); Thu, 27 Sep 2018 12:22:01 -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=1bRxng4tkRwiFoSnKT1R8x1+W1UjaxKhG+DcIqC3kB8=; b=wliVSikhWQ2P21FD7OtTamz3Eev3aX0KN9abH3Xew3cRfVe5/Vpkd6ppR9HzoSuvDm7/j8+JH5l7PCold7rIh8f9shScJYjdVklOrLRnPVhdyMxzH4jfmkzDDgKOvnfsmBNBtOTv3mruzm1sCGkYmZ8lbJYw9KnEL5uvHoXMS5I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Received: from [10.20.24.174] (193.144.61.240) by BY2PR12MB0179.namprd12.prod.outlook.com (2a01:111:e400:585a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.19; Thu, 27 Sep 2018 10:04:09 +0000 Subject: Re: [PATCH] drm/amd/display: Change status's type in aux_reply_transaction_data To: Nathan Chancellor , Nick Desaulniers 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> <20180924222225.GA26613@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 AAHNJ0hhcnJ5IFdlbnRsYW5kIDxoYXJyeS53ZW50bGFuZEBhbWQuY29tPsLAdwQTAQgAIQUC WFvgLwIbAw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QO7Z1YD7asqbaOnF0As+rckyRMweQ9CxZn5+YBijtPJA3x5ldbCfQ9rWiTu XQ== Message-ID: <0840a13f-bd9d-35d1-1bca-9fb0cda32317@amd.com> Date: Thu, 27 Sep 2018 06:03:56 -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: <20180924222225.GA26613@flashbox> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [193.144.61.240] X-ClientProxiedBy: AM0PR0102CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:208::17) To BY2PR12MB0179.namprd12.prod.outlook.com (2a01:111:e400:585a::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fbeb400-4b89-47d4-c07f-08d6246092ac 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:BY2PR12MB0179; X-Microsoft-Exchange-Diagnostics: 1;BY2PR12MB0179;3:ZDZABPSsXLBAd2+JHmjHDJjl+wBSRWPuycPj7Oqw7knpBZ9r1sgbaTXC450oB8tVRhLC+4w1rGewaMnRiiW+xxuboSbHB00LmTnucPjQbrIRJqPkD3rV+f25P+dgfPSMSTvYTiqUK3fVfN3l/W2r4ueS2jw/N29WcFUwcfm1czYx/8CCfc1aWTSCqwDq1uAlFeWYDhL/6nHwp0dLQkKT/1nEuHW9f8mUjSLmqvsHZZWt4nDVbXcrAWCx1oW04Ngq;25:uNL5fAfpoqIgd7lu6Y0E36qqsUkobZV086R5FW7bqnUXAgN9bo2gF7/zrWzNKxQzXGhsdaP8yImW0yp43sjFClr3xy6XiUbRPV35jlpHzM0zt9Zry7hzhns4CNAmjnT2EbV5usMA+c/f042D6Bgr87oFDrbUg5P6BXoB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I0S6vwwXcVVzlHnNCWmABjgvGzxEw0WRsL3bqY90RvSdz54L0zw0COtRLq86Dj4VGUQMCWtYlPsK2Yx7CQHrYtlTcbFur1Ih06hciPL9ViVI1PiRQYSLfc+UAs7y6NPEXaik+9qjd/SlkhQUEzxfbizErw/6zwvSP9CgKC+cDwDDEfafkbTKjE2TRaLvy/hH6FCad32x0v7WlyxZ9UsgMhnX1gJwfg4DzV94xsbHJnW+29MoFxpPEFSBCXUmy0wCSCWPtiPT47aawd7HI4uSWIS24ktW9OWNw22Stv+sWDy/V6vJxNVXi4WlQ4Nn7OWKOZhoQnx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(211936372134217)(153496737603132); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:BY2PR12MB0179;BCL:0;PCL:0;RULEID:;SRVR:BY2PR12MB0179; X-Forefront-PRVS: 0808323E97 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(396003)(39860400002)(136003)(376002)(366004)(189003)(199004)(51914003)(44832011)(476003)(52146003)(77096007)(305945005)(2486003)(66066001)(65956001)(50466002)(52116002)(47776003)(31686004)(64126003)(105586002)(106356001)(34290500001)(7736002)(72206003)(65806001)(76176011)(8676002)(23676004)(39060400002)(65826007)(25786009)(5660300001)(6486002)(6116002)(229853002)(316002)(6246003)(14444005)(97736004)(68736007)(53936002)(230700001)(2906002)(6666003)(81156014)(16526019)(551934003)(58126008)(478600001)(4326008)(26005)(186003)(2616005)(36756003)(31696002)(386003)(956004)(86362001)(11346002)(8936002)(110136005)(16576012)(3846002)(486006)(53546011)(446003)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR12MB0179;H:[10.20.24.174];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?MTtCWTJQUjEyTUIwMTc5OzIzOlFFRUdyZkt5cnRyNm1HNHlFWUIwSWxzWEoz?= =?utf-8?B?NTZaVnZFbUtMeW92Ni9zUklFZmE2bVNERWZpQ1dBUTNKUWlrRTVJeXNVOVBo?= =?utf-8?B?M2RmRVh6M3BJek1ON21xakpCTEEzcFZsM2FmUEs1ZUdKWXFPaW9HUU45R1Ev?= =?utf-8?B?dW5wVnJUZldHYlE4NTZLd2p5MU5JZ1Jxc094UFdxNldNZGI1U2dSbE1SdjR2?= =?utf-8?B?UlNTcjdnZzN6R0k5ZWxaNWNpMXJNZitKSmVFU2wzS1BTRnVEblZIdmwydWlZ?= =?utf-8?B?K2RmbHlObGdHTFZyc0tSZDBjWlZPOWtBOTJCYkVBRVZETFRyTGpSd0oxZWlP?= =?utf-8?B?QlpWZDIwRzNxTzlXQlgrSlRhZm1WL2xQS1h1alJwTG5RWlVkZ3dnbEFvTmsx?= =?utf-8?B?WEh1S1JsdzdQTS95MWQ5RjJMQ0VtSUlOTW1kSE4wQ1A3ZGFWM0ZXdGt3dzhE?= =?utf-8?B?TEJ0czRiN01obUJ1UjZyNW02aWM0M09EdVdiQmRzRWtCMVZjWHhRVDB4bUx0?= =?utf-8?B?MEt3cXRoWStqOFcwaGxmM1lUZm1oTlpEcW1VYmVkdlVKeE5qWjJwTmZLRHNQ?= =?utf-8?B?NmFhTEgyYmhJQTJCdXFxU2hMTmNRNGRHRnZDclRYSWJBRUpXMDBDVWFrYXhP?= =?utf-8?B?N1l6R3pnRENlQmNTU25TQWJLYUFqV2poMXlIQWpHeG85UWhCYXdINWExaWpv?= =?utf-8?B?N2VWeTlSU2x4RkNsOEpYZn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QaxxknLI02rjg2wUpzjDkXxEYzrUy7Y5Cm1QaYUv/65glGGd9yTlH0vU8FnrWy2wCPJhJ0IVgfi0XlYNagmy3F3SENHJ/GvePviu4Q9TN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 10:04:09.1069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1fbeb400-4b89-47d4-c07f-08d6246092ac X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-24 06:22 PM, Nathan Chancellor wrote: > On Mon, Sep 24, 2018 at 03:07:16PM -0700, Nick Desaulniers wrote: >> On Fri, Sep 21, 2018 at 2:55 PM 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; >>> ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> I think the enum is actually wrong here. I think the correct fix would be: >> >> - reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON; >> + reply->status = AUX_TRANSACTION_REPLY_HPD_DISCON; >> >> The identifiers are so similar, my guess was that it was easy to mix >> them up. This looks like an actual bug to me, since the identifiers >> have different values between the 2 different enums. >> > > Hmmm interesting... I will be happy to send a v2 with your suggestion if > one of the maintainers could confirm that to be the case (given DRM code > is rather dense). > Nick is correct. We should keep the enum but assign AUX_TRANSACTION_REPLY_HPD_DISCON in dce_aux.c and aux_engine_dce110.c. Thanks for spotting this. Harry > Thanks for the review! > Nathan > >>> >>> Instead of implicitly or explicitly converting between types, just >>> change status to type uint8_t (since its max size is 255) which avoids >>> this construct altogether. >>> >>> Reported-by: Nick Desaulniers >>> Signed-off-by: Nathan Chancellor >>> --- >>> drivers/gpu/drm/amd/display/dc/dc_ddc_types.h | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/gpu/drm/amd/display/dc/dc_ddc_types.h b/drivers/gpu/drm/amd/display/dc/dc_ddc_types.h >>> index 05c8c31d8b31..97e1d4d19263 100644 >>> --- a/drivers/gpu/drm/amd/display/dc/dc_ddc_types.h >>> +++ b/drivers/gpu/drm/amd/display/dc/dc_ddc_types.h >>> @@ -79,7 +79,7 @@ enum aux_transaction_reply { >>> }; >>> >>> struct aux_reply_transaction_data { >>> - enum aux_transaction_reply status; >>> + uint8_t status; >>> uint32_t length; >>> uint8_t *data; >>> }; >>> -- >>> 2.19.0 >>> >> >> >> -- >> Thanks, >> ~Nick Desaulniers