Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp451985imu; Sat, 17 Nov 2018 03:07:23 -0800 (PST) X-Google-Smtp-Source: AJdET5d8/Kde8nlmqyBXymPr3R2TniMqh/sTFsJNKzEteMroFVIW5lunypEe+xIB3ssToCLkwT0V X-Received: by 2002:a62:120b:: with SMTP id a11-v6mr14852694pfj.165.1542452843557; Sat, 17 Nov 2018 03:07:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542452843; cv=none; d=google.com; s=arc-20160816; b=SNIW4iVyUwm5AZL8MqKDW7tfi9wjQuXNCqm4qd0w1AR4m0+PlJHphuxBZNHfLy9+0o jx2D0xNPG6hujM6jkvBt3jUwdQMlNhLBw8erJCh8fi0dWRGBQ//kyJ0S3h6yrpLtVB+P Yr+MSZpt8m0r5/ikvOWA2rIzFewibvw5xKJeN8lCEDX+3BmwU/h+yZILieAa19PvZH4j o/pwfeYe0g/uP1mC2Azv9NrGBrokdIHROXItlKcB0GAEO0dAPRH5tHsDa6jwvEtzP3kE Ye4MyF6aiFSZpHj6bb4SgzgnKh/QAzt61L43FKWwLcjUTFrNAE0nmd8wcGfA83u88jFF fmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dmarc-filter:dkim-signature:dkim-signature; bh=HJYSzAR5PDW6emOvHsBxjhD6NTEv8DcmatNhOa7NPJ8=; b=KOvwaoiwegsA4B846FIpyjrXA251OTtWdOLcmJhNaKWVtZKOnVIUZSFlXcFcbOafbt NdX22vQBBrr3bOB7DfOInuH9cTLkCtYCXpn/VO7ojw9kyeIThDTt6/DZ9/NjdLKBajk2 0iPhYb/ottUFXBMJT8olBjzI07TKJMdqEVVgCn+Okv2/O9w9Qb1iRUFSfdG4qeyXBGFr gjMWRdh0DLPs/xcQmCAj2uukSX8MmjdgPZdVR3AKUoQyflZo6bv5w1gnOItlp1LcQ15L nWV/Z787H9KlIGfFzbyQfAQy7ve8P4vKdW6mYmg7inpP0Xna2CXQn9Txl5deD4cgquvp iOTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PQ72fau8; dkim=pass header.i=@codeaurora.org header.s=default header.b=XspddyFy; 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 g3-v6si20965617plt.208.2018.11.17.03.07.05; Sat, 17 Nov 2018 03:07:23 -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=@codeaurora.org header.s=default header.b=PQ72fau8; dkim=pass header.i=@codeaurora.org header.s=default header.b=XspddyFy; 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 S1726205AbeKQVWn (ORCPT + 99 others); Sat, 17 Nov 2018 16:22:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:33992 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbeKQVWm (ORCPT ); Sat, 17 Nov 2018 16:22:42 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2602C607DC; Sat, 17 Nov 2018 11:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542452782; bh=HJYSzAR5PDW6emOvHsBxjhD6NTEv8DcmatNhOa7NPJ8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PQ72fau8lY6Xbp63Mig+0ixwfXiUf4MOisE4/UDFNNhuAqEAEYS0GuqLtCnS19iD9 8e/5e4a6EbWRlij8oXmjPpVNam5DhEt2CZzYObflAuC5sAIi0DtuI0FT5Hh+syOkT7 nO3VXKEK2OdXyIoZigsxODyqz4gyIUwnoLMkE+AU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8F2A0601D1; Sat, 17 Nov 2018 11:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542452781; bh=HJYSzAR5PDW6emOvHsBxjhD6NTEv8DcmatNhOa7NPJ8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XspddyFyUFi2lHHU/CLIzYfgMbTEDRODHmoSbAxGdm9SrhCqUWjHQa6BxzzkIbX5M 7v+y92sQSmKEFz4tlsGtXmr1R/i2OMakyuwYhq37upRfS+FSd/ID8ypVaIcdnzGggv 2c0OkrWg07Wl/ro6X82eWA6+OMCTOAF6CtA3KyoM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8F2A0601D1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Priit Laes Cc: Michael =?utf-8?Q?B=C3=BCsch?= , Kees Cook , Jia-Ju Bai , Larry Finger , "Gustavo A. R. Silva" , Colin Ian King , Arend van Spriel , Varsha Rao , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] b43: Use cordic algorithm from kernel library References: <20181114194628.0f485637@wiggum> <20181117083628.sm6juvz75kiargz4@plaes.org> Date: Sat, 17 Nov 2018 13:06:15 +0200 In-Reply-To: <20181117083628.sm6juvz75kiargz4@plaes.org> (Priit Laes's message of "Sat, 17 Nov 2018 08:36:28 +0000") Message-ID: <878t1s55g8.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Priit Laes writes: > On Wed, Nov 14, 2018 at 07:46:28PM +0100, Michael B=C3=BCsch wrote: >> On Wed, 14 Nov 2018 20:27:52 +0200 >> Priit Laes wrote: >>=20 >> > Kernel library has a common cordic algorithm which is identical >> > to internally implementatd one, so use it and drop the duplicate >> > implementation. >>=20 >>=20 >> In v2 of the series it has been said that: >>=20 >> Arend van Spriel wrote: >> > I recall doing a comparison between the algorithms and thought I put=20 >> > that in the original commit message. However, it is not there. It is n= ot=20 >> > exactly the same as in b43 so there are difference for certain angles,= =20 >> > most results are the same however. This implementation is slightly mor= e=20 >> > accurate on the full scale. >>=20 >>=20 >> That's not my definition of "identical". >>=20 >> Please do not apply this patch without doing a thorough regression test >> on actual b43 LP hardware. > > Indeed, there's a big discrepancy in the results of both algorithms. > > Here's the test script: > https://gist.github.com/plaes/284993a4fc65e0926d0628a11f0cf874 > > So at current state, this is self-NAK from me too and this patch should > be dropped. Ok, I'll drop patch 3 but keep patches 1-2 still in review. Thanks for verifying this! But of course it would be better if somebody could test this properly on a real device. When that happens, please resubmit patch 3. --=20 Kalle Valo