Received: by 10.223.164.202 with SMTP id h10csp4698109wrb; Wed, 29 Nov 2017 10:20:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMabyfGV2R7Q9lXcRsKKm30fDLqn3m3Cy7zqw4D3JtBPUMctT2OPOf7vmnop4NYDvc9Sl+/3 X-Received: by 10.159.198.11 with SMTP id f11mr3777039plo.425.1511979654823; Wed, 29 Nov 2017 10:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511979654; cv=none; d=google.com; s=arc-20160816; b=g28RxPnBg2LN/kF+n2VRv27mqQFayW7vHgDnh677GgRtVV1qOZGdvUhX94jJ9rxsZ0 FnbAHEU1s7ZowWgWut7G7XLgZp1iG4oOi7QknNd4DgWxtLDzgOJt08wOp+onFV/KWe+Z PCi4xsSGSbsVl21TLPO8YbbNLBkamGbjoR/AdU8qxMeVWOK5F8ySOgF7MrRSeWUCWYO2 o0c/UFiwM7qVD7ccCA65O+9v2FBx7W3aqrOGOpZj4dBr1YP9hnjDLqZg5ZJntbwGpgab Adh0/bQn8vWwHRJrOH5gmctFJN2YvG8ibUJx0vFX5V8Jm+6kb99T23k+23CdI8RDKkWS HPig== 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:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=loDBVy2tjXRUPJQOKBSkIwCJxD/dbNmZ7Ue0+8oXA4A=; b=NIUgRNoA6NJ5dL/72Y/ukUk82ZIGusataowLCdgv7yRmipCalCKlAcDNp7Xw6RcXGU c/ZG5FiEcbI1KH+uudEUwIlNamIQkNlZQ8yJr2zRIIxQCRFn3lGQCdrVuNjlbn3mZU2D ZNi9FOOjkdOFk54+ndTcJfb00Gwe1WzieJS6nHoBH52PlUiZGj0iobYNzxSh66sX19In ZPvVVgIWz2t2/U8WsI7bQ6EpEv/xzsOhoAg2BLhdL2flkejcL038ViZnd/i/DhHEydpR UA6Imq0IU0Mzijie5NlNQg/H6hg+g6ljft/HBJ1usuIUnOpl5H+HjcmJwASdoRFJDMCZ EBxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=hrDt8S4i; 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 b77si1721234pfe.377.2017.11.29.10.20.44; Wed, 29 Nov 2017 10:20:54 -0800 (PST) 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=hrDt8S4i; 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 S933015AbdK2PWO (ORCPT + 69 others); Wed, 29 Nov 2017 10:22:14 -0500 Received: from mail-cys01nam02on0040.outbound.protection.outlook.com ([104.47.37.40]:36487 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932079AbdK2PWM (ORCPT ); Wed, 29 Nov 2017 10:22:12 -0500 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; bh=loDBVy2tjXRUPJQOKBSkIwCJxD/dbNmZ7Ue0+8oXA4A=; b=hrDt8S4idTeJDVSDCWP8XwySC09LKiFlDjMNmn5CCbiiBbglARn4xwDj1M+CJseAYZZwFeyrqT7bS9u4QhDQS2w5j8pBU4ouUrjTY9uPKTge2qJFpV8PJTgdjVX+ZPhF5Dg5m1PnEOTHw1TM5EoYDjQUem+y4KzFLTwOkTIINGo= Received: from [172.29.156.71] (165.204.55.250) by MWHPR1201MB2476.namprd12.prod.outlook.com (10.172.95.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 15:22:09 +0000 Subject: Re: drm/amd/display: Restructuring and cleaning up DML To: "Cheng, Tony" , Dave Jones , Linux Kernel Mailing List Cc: "Laktyushkin, Dmytro" , "Deucher, Alexander" References: <20171118000201.31E1B21C31@pdx-korg-gitolite-1.ci.codeaurora.org> <20171129030531.GA13413@codemonkey.org.uk> From: Harry Wentland Message-ID: <2fab7b7f-c28d-df25-65d9-9f31f84381d0@amd.com> Date: Wed, 29 Nov 2017 10:22:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: BN3PR03CA0094.namprd03.prod.outlook.com (10.174.66.12) To MWHPR1201MB2476.namprd12.prod.outlook.com (10.172.95.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e280101-26e4-47c0-c530-08d5373cf5af X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603272);SRVR:MWHPR1201MB2476; X-Microsoft-Exchange-Diagnostics: 1;MWHPR1201MB2476;3:wOuFb7f5X9OeE+ZrulZ9P4VEW9LI33YkLY11XdSHLB4S8ItfpheN3kzViqetkVC4gwyVA/QOUtyPpwnm7fE1ZPMGxs0ylhQGYWvwFID/SBcNmCQ37Sum2uxMvI74QPirpZbL3nRoTY1N4y9Xh90xS0DPgunDGTBqTeHfVBJwX9HIuLSGjspo8zt/dz8pFIqXRkYPaqbZrcrcPL3lttmd22a2XzHZCwMrcv5rnwXlmHkdQBKLmrAFJu/bzjzM46Ad;25:gEzWDtsjWJ4LCYSUxqZW9UnxNvimHqWzov8YVQxkURgNgQtAfJrlSowRwhPeGEPdVDj6GvFcfsz6TiNeUi70qnDMFkadqKLxjMH9QYZ2M77Rqj6J80QHglHOIsjfFuyD32TUYg1Vl7ejyr/U3FBB1lysDWkU71nQzglt1jJ1yr3gDqtgSv25hzikgrU9LPVvDQQQ5fJ5zk6HiEik8KD1MNxtUKBBYEukLZuWAOWSUisqtQHBo+xsdxvaq4jmCZQ2nMGdbZ2vStAkpApX8blpAXMwBedJoauZmoOWBPLeTXNLUwkQ2dvNvxBNR5D0Vkc8lNaqZicRB3BYTNJHY6u2iQ==;31:0sMUUULKVozngSscxtjMII6Belv+3BfngoXzTC5tk3lkfnFAw+JJM5gaUOza9Sr0HT91R2jCp0DWxNB3xLzJmgySJXLwhTBAG0VQamrTP54VFZDg8vtuwohEdeN+UIeRaKfVhTkb3V943l/+2a29fzpXmp5diE764iyOEtOiQ3ZN1/8carszFkc9Q9zalO/kk/qMndY7Zb8tzLpx+puLg0sxKx7Ua6QwnsFANTwH49k= X-MS-TrafficTypeDiagnostic: MWHPR1201MB2476: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; X-Microsoft-Exchange-Diagnostics: 1;MWHPR1201MB2476;20:t6oDJiRfyFgSFSiuc16sULoQcP202THWOddcjbF4g1PEcpsCCMk6UaX+ShNuAcZD2VbGEuceiWmC0DZDhmHMJYj2JoCwTwPIGqKmeCO4gR8M8W8jy24yLIyFS8Hpbl+VIZ5LTyOsr3CH1vHa+eNBGtPs8PZ9lGyhWNgSAhxclpG1f/8nUtvTp29iSiVD7PPMeT2Lt2gZmvoCr0xLs0Snkuop19DlZbsAxL6qkGj5FIivwiLb/yUujJ2oqRpUjgtf3Jbh0JlOpC9wVrJFT+CUoToktcjCHD6Ry1mDcizGo9xhAyVDMfOihJs59Dy5KPBqOK/8+N5yqg/iz8L4tvtf1JyMvj4JUym5J7xPVdWJGrZpizOvg0bEgnuzyXNSZIqM7vMHeVD3BpfoW9DWZGGycYtjjSZfesto5877fjP472cdWoX7wz+0TUStS131do1Nyp37kROEnW6HyZ27jqJiz5D19qN7xKDbYiTgwYFO6oejThMUku3OKJhwiSsOxg1q;4:E+z1pzAs6UxHZYgKQUu4rIhJqB5DV11gy4s0o1yNNMk9gld4wOfGO4aSRhMrdGPXk8YS4Ft5tDVAsbK8PopDTuGU2toaCwAwwppwcRaRieLyjlb+6r4ovqzhpOTzekWJPzvJG6IgPoBPdTVo4TgAl2ZguRjiwzBFpiLU0IncPUDak1YH2gt3DDLluy0LKpWibZSZSUkHD/AlbzV/PAsva6U6g2BkHd5RfFekwLoTBm1JDvH2BbbdYxa2/VXKtis6Trnfwhyd7Fp+G3xt6XSANp3Am0V7rL0MFiPckm2TwWAS6atdAGWM0hM7vtnbpHpmQXo7ZkRR8wQ3dvQ0vXKtPH2uA4vNOFj2hNoJ15Q23b4H9N60X5QQ4oVNhkYeIJuF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110)(84791874153150); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231022)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148)(201708071742011);SRVR:MWHPR1201MB2476;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR1201MB2476; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(6009001)(366004)(346002)(376002)(39860400002)(377424004)(13464003)(189002)(199003)(24454002)(6666003)(72206003)(478600001)(189998001)(110136005)(54906003)(65806001)(65956001)(58126008)(316002)(966005)(47776003)(5660300001)(4001150100001)(65826007)(66066001)(97736004)(25786009)(68736007)(53546010)(2906002)(575784001)(52146003)(52116002)(23676004)(2486003)(86362001)(105586002)(50466002)(90366009)(77096006)(6486002)(16526018)(106356001)(31686004)(229853002)(31696002)(2870700001)(2950100002)(53936002)(6306002)(6246003)(54356999)(8936002)(50986999)(4326008)(76176999)(7736002)(305945005)(101416001)(83506002)(81166006)(81156014)(8676002)(36756003)(33646002)(64126003)(6116002)(3846002)(16576012);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR1201MB2476;H:[172.29.156.71];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyMDFNQjI0NzY7MjM6dW9MeUNSQ0Q5cFlCOFBPRkhqenJqbjVo?= =?utf-8?B?c01adFBhMWtKMHhYMTFVQ0ZGTTlJd2EybENtKzUxdENFazFPNy80dXZKMGl5?= =?utf-8?B?RzZWQTZxUEFjNnVZSlU4eFk3VXk0V3F1b3NrR2NpYy9UYWEvZTdObDFVSHU0?= =?utf-8?B?ald5QW9nVXRBRzhsenIyK1YvTy80VlZkb1AyM0ZBMVNTZkh4VXkvVlN3aVRH?= =?utf-8?B?UFdZVU9uM3VUdWVwQk1wQzFZSmdMTFB1YTlTcEFlMXdtYkY0TnVGTHJZMEhl?= =?utf-8?B?cWdiOHBJc1E2NDBUNGxUbVNzd042RVZRcDZXdW9RcS9BWkZOcWxUdmN5RmtP?= =?utf-8?B?UitjOFVPYnhGamR4ZFMwYk1SVGZwOU1xZ0V2N091V2VOQUlDNzlEMWxRNjJu?= =?utf-8?B?ZkdDYy8zTWpNOC9EM21CK3lhc0ZWM1VFNGpoUFI4MXFyTDhaSU1EY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bCelqFMMq1eDM4hgEhUSaoXsLlfAX6q7Q0ZupD/G6ipVPCgLv+8yeUcAekpLWAFanfa8LmPuoxJpWwOTI/omc4Oec4jVRaDxOFG8LDL3awRdkfE1J/L2bDfEy2xC/EH2kF868YH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 15:22:09.3076 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e280101-26e4-47c0-c530-08d5373cf5af X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2476 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-11-28 10:34 PM, Cheng, Tony wrote: > That code is to handle NAN (not a number) in float. Unfortunately our HW architect decided NAN is one of the way to determine if something isn't supported. We have feed this back to our HW team and they will look into improving this for next next generation. > We should probably macro this check to an isNaN(number) macro and remove the check for dcn_bw_max which uses unsigned int. We should also explain that these files are coming pretty much straight from HW teams and should be treated as HW gospel. I'll send patches. Harry > -----Original Message----- > From: Dave Jones [mailto:davej@codemonkey.org.uk] > Sent: Tuesday, November 28, 2017 10:06 PM > To: Linux Kernel Mailing List > Cc: Laktyushkin, Dmytro ; Cheng, Tony ; Wentland, Harry ; Deucher, Alexander > Subject: Re: drm/amd/display: Restructuring and cleaning up DML > > On Sat, Nov 18, 2017 at 12:02:01AM +0000, Linux Kernel wrote: > > Web: https://git.kernel.org/torvalds/c/6d04ee9dc10149db842d41de66eca201c9d91b60 > > Commit: 6d04ee9dc10149db842d41de66eca201c9d91b60 > > Parent: 19b7fe4a48efbe0f7e8c496b040c4eb16ff02313 > > Refname: refs/heads/master > > Author: Dmytro Laktyushkin > > AuthorDate: Wed Aug 23 16:43:17 2017 -0400 > Committer: Alex Deucher > CommitDate: Sat Oct 21 16:45:24 2017 -0400 > > > drm/amd/display: Restructuring and cleaning up DML > > > > Signed-off-by: Dmytro Laktyushkin > > Reviewed-by: Tony Cheng > > Acked-by: Harry Wentland > > Signed-off-by: Alex Deucher > > --- > > > > diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.c > > index a18474437990..b6abe0f3bb15 100644 > --- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.c > > +++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.c > > @@ -27,20 +27,36 @@ > > > > float dcn_bw_mod(const float arg1, const float arg2) > { > > + if (arg1 != arg1) > > + return arg2; > > + if (arg2 != arg2) > > + return arg1; > > return arg1 - arg1 * ((int) (arg1 / arg2)); > > } > > > > float dcn_bw_min2(const float arg1, const float arg2) > { > > + if (arg1 != arg1) > > + return arg2; > > + if (arg2 != arg2) > > + return arg1; > > return arg1 < arg2 ? arg1 : arg2; > > } > > > > unsigned int dcn_bw_max(const unsigned int arg1, const unsigned int arg2) > { > > + if (arg1 != arg1) > > + return arg2; > > + if (arg2 != arg2) > > + return arg1; > > return arg1 > arg2 ? arg1 : arg2; > > } > > float dcn_bw_max2(const float arg1, const float arg2) > { > > + if (arg1 != arg1) > > + return arg2; > > + if (arg2 != arg2) > > + return arg1; > > return arg1 > arg2 ? arg1 : arg2; > > } > > This looks really, really bizarre. What was the intention here ? > > (This, and a bunch of other stuff in this driver picked up by Coverity, sign up at scan.coverity.com if you want access, and I'll approve.) > > Dave > From 1585369859246656673@xxx Wed Nov 29 03:35:16 +0000 2017 X-GM-THRID: 1585368072773716674 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread