Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11164673ybi; Thu, 25 Jul 2019 11:06:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjwJjpdWzSiUE3RtgB/Ak6S0klcXiY4UAkntkAE/F7bglGcPWMdsH1H5kriNydf4PPQMRn X-Received: by 2002:a62:e815:: with SMTP id c21mr18633623pfi.244.1564077989357; Thu, 25 Jul 2019 11:06:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564077989; cv=pass; d=google.com; s=arc-20160816; b=LuY1xe3mfuuKL92XZRMmAaMcUDlbjJIxsRv/hMJgVLX1dbT3lL0XEBw6eynjlAKfLr mPJZEe7UiA9FasshsFID/mczUuZJ1sK3cVcGEcqCR6IL2qZD7kRK3zoQMLnBU/NC17n9 qix8ETYaCy+qk9r8vCVdgkioY/dgpmDVBrzJKA81uz+trdzkeih7OL/c7lmzzBEtbv/R JRbaLi8YDR/m/oiovKms95kMcTdMYd1I5AkmwhqW7lu74kLNQYCDUfBZjT+yEA7nGhEB J0TFkF/xD0mVbKU2YmLBKVN1aVnUma6gBb9zDvQw2CkjD/iCPhnNzLQlLTJgRWp4cnds q4Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=tRUWLM56PlUrnuq+fb7CL2nxlt0rTOFxee7IjUxeNb8=; b=u4qVPZ/wzmL2xTP78w1s8bapIY47HVX0IuAShVRuJwXi4qN5V1/0IQYgu+y66HsBNl pev5uhY4JOJ3867NpIuNmR0VOuyqIggyhsjZj8Qvc8tM+Ra5XOTJfwTfLFZjB3FF+Wdx 3/LRCl1ofyK1U4qutANsfBk9NiTTHYWebDhJckMs/Uw+uuV8GCofAw0mrHNRSS+tWAGE 9+SqvTJDMiFk9/iwPAg6//OnoYPVVOwOUPgexR6FAlgaayqBahpHQhXg7gDFn6o8RJWa QWfIMLaxWaUUH2rAz/SV2TSCuAAKd3FO+ul1h4sArg0Zs1gd5HyMioDVWxrAzxfSEwxT F3TQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=Q4wed7lj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 o70si15226889pgo.280.2019.07.25.11.06.14; Thu, 25 Jul 2019 11:06:29 -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-amdcloud-onmicrosoft-com header.b=Q4wed7lj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 S2389693AbfGYQAT (ORCPT + 99 others); Thu, 25 Jul 2019 12:00:19 -0400 Received: from mail-eopbgr820080.outbound.protection.outlook.com ([40.107.82.80]:16410 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387874AbfGYQAS (ORCPT ); Thu, 25 Jul 2019 12:00:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RPAPTLW3KsxCML8bJ/61+NI4uSolhxSEwoTb/+GQUZSicHBUcGia1DFGDGN4O9HZVmLBDI9ebhD5ASGs4aPzscbxSGjLF/ZNGi6HqBvjLVCRXQXjpGvFfr3hCBOYe3M40Cv86qCcdWvFEicSrCNNErvqmcvG0fz3e2XqV+RtSMYDzf2owma3K0LvFWNMD0FQwPUqTrap8J0QzgHAw3NeisKddC90sLCh02sh8Dmgn2Uf+s/h3YK2MXKY5BMzcYRv1QCT7CVCk+Rb9HyDtWYu9+643sJ6etNNBElGM7coJci47C9b5Lb2MPjRCvJI8nybEbQPD9aJpKklOFj5eeJ6KQ== 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=tRUWLM56PlUrnuq+fb7CL2nxlt0rTOFxee7IjUxeNb8=; b=hgmB+K+lDG3v1QW3fE87b9pFsLHRHksBA+Ia6coG8TarsSCxdhTnRFdQQUfxwLhwDeuiQBehyyEybJfqawwqzaUWte4HZ5L7/5ylegRGlnSMj5nXu1YHA6W+45l1NDPVAJbTWoA0VQSlm+t6GF6Dl9JeFzjL1AeISIJhUBy2jJecR8oClf+ocE/LpAPs6wYowFSukjK2qq2qi4dSKpsTtkqXuGi1fetH+YEnyQ9IEYiiuCviDIRWF1xE09qpjLov2/Ta2bSs9IIrzPDq6+4lfQUe+RYnraeEHw1n2wS6tX6//LQ+iIG6kYcuI0xTfUbOS76oahUHv53A4And6Z9/Iw== 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=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tRUWLM56PlUrnuq+fb7CL2nxlt0rTOFxee7IjUxeNb8=; b=Q4wed7ljdc6VBGfe134bdgbvreLG4z0znox3JtFNbjw7xccg2GmHKCohTZN9J4YfJ1UgOIosW9hWPjwI2SRX5TA23ujZIZ6XPWbmJwfijHSxABK+e1kAOjWY7oOdyHyZt5yAazVeLLOQgJwDJh4+xwfJ01PFf8pNbOHeQG6Sko4= Received: from BYAPR12MB2853.namprd12.prod.outlook.com (20.179.90.150) by BYAPR12MB2790.namprd12.prod.outlook.com (20.177.126.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.13; Thu, 25 Jul 2019 16:00:10 +0000 Received: from BYAPR12MB2853.namprd12.prod.outlook.com ([fe80::dd9c:e1c8:face:eaa9]) by BYAPR12MB2853.namprd12.prod.outlook.com ([fe80::dd9c:e1c8:face:eaa9%6]) with mapi id 15.20.2115.005; Thu, 25 Jul 2019 16:00:10 +0000 From: "Li, Sun peng (Leo)" To: "Deucher, Alexander" , "Koenig, Christian" , "Zhou, David(ChunMing)" , "Wentland, Harry" , Rex Zhu , "Quan, Evan" CC: Nathan Chancellor , David Airlie , Daniel Vetter , "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" Subject: Re: [PATCH 5/7] drm/amd/display: Use proper enum conversion functions Thread-Topic: [PATCH 5/7] drm/amd/display: Use proper enum conversion functions Thread-Index: AQHVMiy9/HNyhezL/UaoUkOqlvXBhabRXHKAgApDQ4A= Date: Thu, 25 Jul 2019 16:00:10 +0000 Message-ID: <5f0e8332-50ae-cc9c-1a12-5a097c51297d@amd.com> References: <20190704055217.45860-1-natechancellor@gmail.com> <20190704055217.45860-6-natechancellor@gmail.com> <20190719031647.GA84028@archlinux-threadripper> In-Reply-To: <20190719031647.GA84028@archlinux-threadripper> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: YTOPR0101CA0063.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:14::40) To BYAPR12MB2853.namprd12.prod.outlook.com (2603:10b6:a03:12c::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Sunpeng.Li@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.55.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 784c5283-70bb-4892-f97b-08d711192be3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:BYAPR12MB2790; x-ms-traffictypediagnostic: BYAPR12MB2790: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:741; x-forefront-prvs: 0109D382B0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(136003)(39860400002)(366004)(346002)(396003)(189003)(199004)(25786009)(6246003)(6512007)(2906002)(316002)(36756003)(6306002)(53936002)(71190400001)(52116002)(71200400001)(229853002)(4326008)(6486002)(31686004)(66946007)(66476007)(66556008)(64756008)(66446008)(6636002)(81156014)(81166006)(305945005)(6116002)(8676002)(76176011)(66066001)(7736002)(31696002)(53546011)(102836004)(8936002)(3846002)(99286004)(86362001)(6506007)(386003)(14444005)(68736007)(478600001)(54906003)(476003)(486006)(11346002)(446003)(5660300002)(14454004)(6436002)(966005)(186003)(110136005)(26005)(256004)(2616005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR12MB2790;H:BYAPR12MB2853.namprd12.prod.outlook.com;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yRYj4CcKsZufXiKSZHSAI9XpmE+MXkJiVNm9eR1ySmR7zZQB8ObG1gRLtnBq9w9Zkt2PJcm6qH/ESue6sSkUr964Wj739yfP26CgxOsfsdTLuq6tWNuLq8BZkyga283E4fA2OQnC2/cyEwl6f0R5To+2G2kRbqwvbu3aqIOBL88giYB2npilHgSJH/F9zZ6+eM73rwjtbzSeOfZACfDjCB5B9XunGIvo77ykkmrZZl1t6MMkzWeEVOytgNNaQNKODqF4hKg9+x/vliyjetghlnn2F8PsefR0SkNsuFJTr0pXs002gNX8Pj5lX8n1XpjVplh+wXtYiU+3yrbQzLqTkcJN7JtF0rAWg1pK6EgA8AxO3Rod2s3Z3lXoDhYl5DKjmL9p6yzSI1myNEZ2u20mDd6bZ1pTzDp8tqZaaHELGSk= Content-Type: text/plain; charset="utf-8" Content-ID: <3C344A9FB9ABC84D8EE0493DC20FF21F@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 784c5283-70bb-4892-f97b-08d711192be3 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2019 16:00:10.7158 (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: sunli1@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2790 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDIwMTktMDctMTggMTE6MTYgcC5tLiwgTmF0aGFuIENoYW5jZWxsb3Igd3JvdGU6DQo+ IE9uIFdlZCwgSnVsIDAzLCAyMDE5IGF0IDEwOjUyOjE2UE0gLTA3MDAsIE5hdGhhbiBDaGFuY2Vs bG9yIHdyb3RlOg0KPj4gY2xhbmcgd2FybnM6DQo+Pg0KPj4gZHJpdmVycy9ncHUvZH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