Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp609188pxa; Thu, 27 Aug 2020 10:43:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWwq6o2Ek5qAxm8pxOZKdlSoqD02BOttlMXdGeRBBVqz8scIAFqxS7MMzWvDGdcsYH019+ X-Received: by 2002:a05:6402:17ab:: with SMTP id j11mr21191164edy.28.1598550214593; Thu, 27 Aug 2020 10:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598550214; cv=none; d=google.com; s=arc-20160816; b=oGNBerZ4q0/J4zUz0wtLU8WQu3KnXlQroiF7eHICIXVhvW72gkQIMF42l7t4fytM8+ e6BPwizQmsLfxH9voLbDD94UuUeE+6QOSeSbi0X046uYW5huzK8519QDsRYhrZ+pkS0o 5vZz9RxnKDJaQ//iHM9RV+E9n+ningmQGwYYov8Iyv17u6P7HWVV+MyY42zGhSEQpl7i CE72ycx2+nqN+ujU4hiIs8EFeDfukR/8EGgUwSjWf++qfYZucAD7ehcxATjZJ2GTrQM/ +6XljhraANWPHYslK5hN9sy6jwck9AO9bHX4xT5EFnuNnPcj+9qJ3rCm1SJLxy/5G98i JbKw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EUQmHcBg0iX7oo9IrVflaB/kztUYB6C01Yp0PS72pRc=; b=Ld/Ca0Pn0rJQ88CuKKWGemLK9NtHCU22g2jzsrPMQYI6+USZcB3BRk44dkz3Nz0LSj qifeb4zixmVnxd3tvFqH9AZlTtkI+VyzBn+lYRZXvBZoN3XuPrLLvijj5KIOXsMVMPg+ K/kcen9RjSyfW9+82HJ4JtW1eiVQvsZWQX4sTiXHEvv3BPaK1GaUv5ny77TJuhAwLPbO JmI/sHQeBdSUYAqeOcPXB77bv8pDPuyJ14QMsx2CzIidJzmcdK0jpxB3fqnRWCUff8cW YPxtRBmF9yD8c7C22ZOuImwPhTGk31olSTFuM3dCEsjYR2LLdNL11DHvY6ghVviEgGJR BoSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=07ZU3viQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yl15si1723110ejb.301.2020.08.27.10.43.08; Thu, 27 Aug 2020 10:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=07ZU3viQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbgH0Rme (ORCPT + 99 others); Thu, 27 Aug 2020 13:42:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:37152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgH0Rmd (ORCPT ); Thu, 27 Aug 2020 13:42:33 -0400 Received: from coco.lan (ip5f5ad5a8.dynamic.kabel-deutschland.de [95.90.213.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A2762087E; Thu, 27 Aug 2020 17:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598550152; bh=zyfUowNsWV1AH9t2Y/OhVrtMRfKaUwAivYAzLDicwBM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=07ZU3viQ9K4W/2j7rtUmnY13uTbszZo4JxebwRXpVTU0rbPDvX8crv4sulA5txXDE kYmlUOuNr9MdYmatsOfu9hXzg5jshHEN71HClrwf41F7Sbk0qcHLXN5PzjHJnVgRLn r0uWVOa7IlmgAj8HdF77sDzEoeitLX/MPi0J6RwU= Date: Thu, 27 Aug 2020 19:42:25 +0200 From: Mauro Carvalho Chehab To: Steve deRosier Cc: Kalle Valo , linuxarm@huawei.com, mauro.chehab@huawei.com, John Stultz , Manivannan Sadhasivam , "David S. Miller" , Jakub Kicinski , Maital Hahn , "Gustavo A. R. Silva" , Raz Bouganim , Tony Lindgren , Dinghao Liu , Johannes Berg , Fuqian Huang , linux-wireless , Network Development , LKML Subject: Re: [PATCH] Revert "wlcore: Adding suppoprt for IGTK key in wlcore driver" Message-ID: <20200827194225.281eb7dc@coco.lan> In-Reply-To: References: X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 27 Aug 2020 08:48:30 -0700 Steve deRosier escreveu: > On Tue, Aug 25, 2020 at 10:49 PM Mauro Carvalho Chehab > wrote: > > > > This patch causes a regression betwen Kernel 5.7 and 5.8 at wlcore: > > with it applied, WiFi stops working, and the Kernel starts printing > > this message every second: > > > > wlcore: PHY firmware version: Rev 8.2.0.0.242 > > wlcore: firmware booted (Rev 8.9.0.0.79) > > wlcore: ERROR command execute failure 14 > > Only if NO firmware for the device in question supports the `KEY_IGTK` > value, then this revert is appropriate. Otherwise, it likely isn't. Yeah, that's what I suspect too: some specific firmware is required for KEY_IGTK to work. > My suspicion is that the feature that `KEY_IGTK` is enabling is > specific to a newer firmware that Mauro hasn't upgraded to. What the > OP should do is find the updated firmware and give it a try. I didn't try checking if linux-firmware tree has a newer version on it. I'm using Debian Bullseye on this device. So, I suspect that it may have a relatively new firmware. Btw, that's also the version that came together with Fedora 32: $ strings /lib/firmware/ti-connectivity/wl18xx-fw-4.bin |grep FRev FRev 8.9.0.0.79 FRev 8.2.0.0.242 Looking at: https://git.ti.com/cgit/wilink8-wlan/wl18xx_fw/ It sounds that there's a newer version released this year: 2020-05-28 Updated to FW 8.9.0.0.81 2018-07-29 Updated to FW 8.9.0.0.79 However, it doesn't reached linux-firmware upstream yet: $ git log --pretty=oneline ti-connectivity/wl18xx-fw-4.bin 3a5103fc3c29 wl18xx: update firmware file 8.9.0.0.79 65b1c68c63f9 wl18xx: update firmware file 8.9.0.0.76 dbb85a5154a5 wl18xx: update firmware file 69a250dd556b wl18xx: update firmware file dbe3f134bb69 wl18xx: update firmware file, remove conf file dab4b79b3fbc wl18xx: add version 4 of the wl18xx firmware > AND - since there's some firmware the feature doesn't work with, the > driver should be fixed to detect the running firmware version and not > do things that the firmware doesn't support. AND the firmware writer > should also make it so the firmware doesn't barf on bad input and > instead rejects it politely. Agreed. The main issue here seems to be that the current patch assumes that this feature is available. A proper approach would be to check if this feature is available before trying to use it. Now, I dunno if version 8.9.0.0.81 has what's required for it to work - or if KEY_IGTK require some custom firmware version. If it works with such version, one way would be to add a check for this specific version, disabling KEY_IGTK otherwise. Also, someone from TI should be sending the newer version to be added at linux-firmware. I'll try to do a test maybe tomorrow. > But I will say I'm making an educated guess; while I have played with > the TI devices in the past, it was years ago and I won't claim to be > an expert. I also am unable to fix it myself at this time. > > I'd just rather see it fixed properly instead of a knee-jerk reaction > of reverting it simply because the OP doesn't have current firmware. > And let's revisit the discussion of having a kernel splat because an > unrelated piece of code fails yet the driver does exactly what it is > supposed to do. We shouldn't be dumping registers and stack-trace when > the code that crashed has nothing to do with the registers and > stack-trace outputted. It is a false positive. A simple printk WARN > or ERROR should output notifying us that the chip firmware has crashed > and why. IMHO. Thanks, Mauro