Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2696295imm; Thu, 16 Aug 2018 14:03:51 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxTofgiGA6qn/8u9cYJ54ljSheVCyp9wLz5nVaJxEhZQyceUClBpnPLCNww1LGyIpY4LDcI X-Received: by 2002:a17:902:d881:: with SMTP id b1-v6mr1197915plz.191.1534453431120; Thu, 16 Aug 2018 14:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534453431; cv=none; d=google.com; s=arc-20160816; b=lNKoSpVolcTHnhzOKPStcCNXrkAmJTAgBx4O8cKT8TBxMh8OUvBFyHrrb8EElmoNXZ tpFmVFdAkevs0e9fWQfaWZdLiOFjrmR2CY/meNJoG6YT8LW8KZ/Cqe7IOXdgWp9YD9oB rCRf4/gAd7KgpuUEcrgChChzxBOIdzF2f6/yRjfG9ZeGlH+9nJfEM0rWqRHKfSlMfSth MnN3sAWpwWH5/+tgkwljvlxUKRyOciFiz2KTg39loDp+T1XoJf6yoOaHUyGTm1lF4yBk ww6cQ+Jo2GBMLeZrUPKAk0u5CW6sL4OHQeVpnIOM+DiXW5s+RHc8cAl9pJRcfbgSeTnK KBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=G9mVSEOM9s/JSjp4p2NdqxbvCIboDj2DAiAY3D4x5mI=; b=xbYtHvx/ZF7EpCVp2TKZRetA8ZAJmZhZU9OPh3NSk0u5NRc0VPlT68t+uE1KWQ31lU 25lAhcnfyfCV6/rulihXEJtFejOJP4KTja4ZJOVdKa51ayBssrVlV5MgVQv8HnCAOhbN 6I3H7FITK6qqfl2cQ6cvfzzgKUOkzcG/OTyITVIrMVl3hb2wdMm1pYBKKLfpTmZoDRB+ d/tYpiX7xeGlhEZ3PRibDe69hG+xuxYxjoMGA8MfoMs9Czd8n3wJaCjKsxL3w1bZqi0N HzTBlb0dJJ6h17ewEawPA80FYiHARWDoNou3TkxzOvKfagTgzy0BALOgOIneWDpfrZfw gz/Q== ARC-Authentication-Results: i=1; mx.google.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 l17-v6si270896pgu.79.2018.08.16.14.03.35; Thu, 16 Aug 2018 14:03:51 -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; 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 S1725949AbeHQACG (ORCPT + 99 others); Thu, 16 Aug 2018 20:02:06 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:40976 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbeHQACG (ORCPT ); Thu, 16 Aug 2018 20:02:06 -0400 Received: by mail-qt0-f193.google.com with SMTP id e19-v6so6451375qtp.8 for ; Thu, 16 Aug 2018 14:01:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G9mVSEOM9s/JSjp4p2NdqxbvCIboDj2DAiAY3D4x5mI=; b=a+gLxXTKX+gR60RHCLN/WCA7HY7zUoNYYNPfHFP5p0n2Dee2AIRU/hUaULbOXAG+zB AMRHo9K7s9Ifz3YoTui+TfnAsc5VVV5Q+cLqU69uIzZn+WmI4b9+1yTqDX3B/w5Ny1es T6unHmhZ6sc9UZW/ePiEUqAK9exXOaJRmRx8IMhqQ2cgTY+niMB1mJq6zctvUcsYe0wZ m+6hk/Hfe03jyi316E4vrgfS+sidAQn8ULQi5Ht/y5LZww+wxceemm2eQC01nLcGR11w +exIE3X6KlqDd0W5133lOGtgMVE2sR5vdxXYTnOpJN5zSG7ZegkakaSzfviYrr0lrZQx ypdA== X-Gm-Message-State: AOUpUlHIj+G8k57FhnTnhnffJC69x9k0zJgcF9gRHRqaRBCOQL5S/7tN R7B68zRn3EMcZmc6qTfoUb24LqMaE5oD2HeLjWI= X-Received: by 2002:ac8:2f43:: with SMTP id k3-v6mr1934280qta.163.1534453285983; Thu, 16 Aug 2018 14:01:25 -0700 (PDT) MIME-Version: 1.0 References: <20180811155554.3382650-1-arnd@arndb.de> <0e2639d6-7816-4e85-3212-74fcd118e396@amd.com> In-Reply-To: <0e2639d6-7816-4e85-3212-74fcd118e396@amd.com> From: Arnd Bergmann Date: Thu, 16 Aug 2018 23:01:09 +0200 Message-ID: Subject: Re: [PATCH] [v3] drm: amd: dc: don't use FP math when Kcov is enabled To: sunpeng.li@amd.com Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , michel.daenzer@amd.com, Linux Kernel Mailing List , amd-gfx@lists.freedesktop.org, Shirish S , Jerry.Zuo@amd.com, dri-devel , Jordan Lazare , Harry Wentland Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 9:56 PM Leo Li wrote: > On 2018-08-11 11:54 AM, Arnd Bergmann wrote: > > > > I tried implementing the two functions in KCOV: __sanitizer_cov_trace_cmpd > > and __sanitizer_cov_trace_cmpf, but that fails to build on architectures > > that do not support any floating-point functions, or would require making > > that code x86 specific as well. I also looked at what it would take to > > Hi Arnd, > > Is there a reason why we can't make __sanitizer_cov_trace_cmpd and > __sanitizer_cov_trace_cmpf X86 dependent? > > I sent out two patches to disable DCN1, but would prefer implementing > these two functions as opposed to disabling a component. I think it should be possible to implement them, perhaps not even hard to do it in an architecture independent way. I tried this at some point and couldn't figure it out, but I suppose it would fix the problem nicely. This would assume that the two functions can only ever be called from a context that already has access to the fpu, which I think is the case here. Arnd