Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp533793pxa; Thu, 27 Aug 2020 08:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrtwM1eAWHZQVRG/08uFmH60gsqqWuTUsZtB0pd+iIH0YK7dzjgRCPX2FJfgnw1u6HMPWU X-Received: by 2002:a17:906:680a:: with SMTP id k10mr21203403ejr.82.1598543415838; Thu, 27 Aug 2020 08:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598543415; cv=none; d=google.com; s=arc-20160816; b=OMTVhb0McPdBQ4hpTbf+f1gwXLvHUw6igsfdz6qEJERgK0zB7Cq3GHTB9R+bP3NQAR m6w40ccvfVKT1No3ISkSjXcpJBk231BQ1nCtl2h6NCfGsdXKg52021HyeWLipYkIJkJu /iMtrTCXi4r3q14v04w3ZwYY3tK00gzJX3GD3priPjSWR0fojwRMZZHPoJz1AytEGF5w 1PJVaXWuEvGsI50qwg7Rs58nESi3D8odgncaQzl4Fb+WzSgNhvW92eWQtu6mS0u6nKOk YcrsL2ZujodlB4Bc+bSlz9FCmW2QPPRwjsrnQ93psgrldaQ0g6Fvvyviwo/cK99JYJtQ gmCg== 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:dkim-signature; bh=bhg41soIay7+587Qkw7LUVijSMFtZApm/WI52siUHqo=; b=Gx+RYheLsMHnCb17/6iUeYKNOrClj95PBI56IFq2Lk5WmmrWZ20segwEuB+lQ1bJRC Eg3r7qVNzMrQW8Md3PRx4VQN+lDgE38a9s/Ohe27jhwpX3TtIQ2va/C3JkvBRAK6Njn4 1IuzNb9KLvamyyTWcpBOrtLhSpBOy6agHfcdWXLoR8NQd+OQp/6whoh6S8UvBCZuNISo PLOTq4Npk/krVzh867/hUHPkMHLbPXmKka92G0nRw1onPKxLWgh9zwR0OLjlVeJA+jpj bKkjGzyUEqJBAZgs7cxqBdmWwDeX2ckUHOxlUThSQnsl5EPmR8NVCvL786cuR93yxz+X baIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r+0Z51Az; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch27si1803041edb.506.2020.08.27.08.49.41; Thu, 27 Aug 2020 08:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20161025 header.b=r+0Z51Az; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbgH0PtI (ORCPT + 99 others); Thu, 27 Aug 2020 11:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbgH0PtI (ORCPT ); Thu, 27 Aug 2020 11:49:08 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF42C061264; Thu, 27 Aug 2020 08:49:07 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id j10so2789080qvo.13; Thu, 27 Aug 2020 08:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bhg41soIay7+587Qkw7LUVijSMFtZApm/WI52siUHqo=; b=r+0Z51AzGh3RpvLN7SrOrKt0OzXk1uO3gIBm2Pu/DOuix3nSPCCqDG/qHztIaXh8QN HiKQC4O9rhKhDi26XChu3hE3TUHUtKZn9lndImODCUaorVuYIPQjYAx2P4/s4oXPhJLr obECsPYChpudqJw0yFiMpzBRHGmzAflQMOaxX+Mr6cGcPSgwMDhh9Maz08NIpbQP5dUs rugrILqOCy9Jbs6n3dzYfgVB1IyGk5ikOE4sP+wQO6OFfEhipESsiIELqzOr0tqZst49 TIaBzpWtk+ssgZKjAMSx4i3jtObVPBTkvz0Kb8kc8IzsXI5Bco2IwBenmb/jelgP4jQg eupw== 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=bhg41soIay7+587Qkw7LUVijSMFtZApm/WI52siUHqo=; b=mXfyMg2mk5WApq8ampzsMUD6VTECn90wFOD6m3QzWoGmNYT30en8DjZ1ygsKTjIhe3 xsizKba6d9Eh/GYeJBu2RL7ETJAE0mL54+4gd9+VSi8HhuroxPcnmFQF823uZBhAa10j Lcddcpa5z45LOslVBkq/Psrk3ZXOuWvXvQVy+pV2Rdy0K2pGDriXULYHwV1k5+atf8MY qTpJadPOKVMdxA/zfrpjI1hFaWzReJaaKMsQo4WuPYIZkSzrtT3DOzkOhRjObhzdI/1j 2kMGtXiX6q+Ft9GweXaX2v+LsmyGLDCZqZA35tnrgBxhBPEmi/Tjv9kYkR5eaElD+SUo juiQ== X-Gm-Message-State: AOAM531bL0KmGxKJz8LtH0bkQc/6/pik/l7J/BMefdaSJRhl6J7ANVwR P0I8bpFvnotcCzdgVbOVA27Qqgr4NR+JZS7aP8jEokGQvhY= X-Received: by 2002:ad4:4992:: with SMTP id t18mr18408206qvx.193.1598543346813; Thu, 27 Aug 2020 08:49:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Steve deRosier Date: Thu, 27 Aug 2020 08:48:30 -0700 Message-ID: Subject: Re: [PATCH] Revert "wlcore: Adding suppoprt for IGTK key in wlcore driver" To: Mauro Carvalho Chehab , Kalle Valo Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. 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. 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. 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. - Steve