Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp379081rwb; Sat, 17 Sep 2022 06:56:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5aHqtscDxjyIzdJDKMxBUIeTq/iPwlXK4zvH0Qrt/Sj45KohA3Krf6oPBg0xLAtkVnnpcG X-Received: by 2002:a17:906:5a5a:b0:770:86d0:fd8 with SMTP id my26-20020a1709065a5a00b0077086d00fd8mr6933842ejc.164.1663423003207; Sat, 17 Sep 2022 06:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663423003; cv=none; d=google.com; s=arc-20160816; b=kwHaVAAFh54iBYsdOuI+ssjOGdlGbkp0fnrUQ11x0emhIyBjUNilzeFVv+AX6FMI1A Md5ACv2CFXU0rB/ZhcjGMPfKsnybyAim2DHIwTfWqhVU/BLnhZVYWEV9KPwzJHAiMTo9 M8pvF8du3hzXpxaiZtlkE6BZEkyoQBjXZagOlStfRae3gRArXei8oAVZ69kIBw6tVB3q THqBoaDQnt6GcRWLm4tC4gU/rnP/j0225SqYn8gtXc81uGVm39urI9wxJU4mSLXpN2VQ +oPDqPf0ba+XmymgEV7mAqnEBxI5YzVClwKKVfFm+sZkqxhL5qtal11qfnsx6VcAs++1 25uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TrotF9jh6tpCX+t8aHlBIy6g9YiEEo+cvtp6q1WJPY0=; b=OJg0TirR8MR5NE/qLung86BiMxWMWOTxNC3TAEz9XAeVRMQPuL39aC5NqOiwC3VPHT XFyGMEA5rRtL47ESXwB9UZEBGED/JC6le3EuPaCDt1OpGvJfZxjGK8W5V+xNU38ehz+m NfAFAUH9mzueo8i+OFivXTIARZgdqSvAsiRkp1CHwsgqxXkUXSbpqP4DSwsHOmrRgyZl sW4e1wRyLKLChPIkLPCzBEtqQzZgnLThUnKWX/CrIGxne8bCVCnUi2JsJzcqixUbs6jZ q9xRqUnKqSRsnVqIBhrBOgSOXMleP5L/1ZO2LqQTQPi0LAqGWGhOA9ibhq1ZbOynU0U7 F9KQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a05640242cd00b0043c2e89d0acsi6222172edc.3.2022.09.17.06.56.17; Sat, 17 Sep 2022 06:56:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229473AbiIQN20 (ORCPT + 64 others); Sat, 17 Sep 2022 09:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiIQN2Z (ORCPT ); Sat, 17 Sep 2022 09:28:25 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 896BE2981C for ; Sat, 17 Sep 2022 06:28:24 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1oZXrm-0001or-2Z; Sat, 17 Sep 2022 15:28:18 +0200 Date: Sat, 17 Sep 2022 14:28:16 +0100 From: Daniel Golle To: Stanislaw Gruszka Cc: linux-wireless@vger.kernel.org, Helmut Schaa , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johannes Berg Subject: Re: [PATCH RESEND 01/15] rt2x00: define RF5592 in init_eeprom routine Message-ID: References: <20220917131052.GL17901@wp.pl> <20220917132134.GN17901@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220917132134.GN17901@wp.pl> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, Sep 17, 2022 at 03:21:34PM +0200, Stanislaw Gruszka wrote: > On Sat, Sep 17, 2022 at 03:10:53PM +0200, Stanislaw Gruszka wrote: > > On Sat, Sep 17, 2022 at 12:04:21AM +0100, Daniel Golle wrote: > > > From: Tomislav Požega > > > > > > This patch fixes following crash on Linksys EA2750 during 5GHz wifi > > > init: > > > > > > [ 7.955153] rt2800pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4 > > > [ 7.962259] rt2800pci 0000:01:00.0: loaded eeprom from mtd device "Factory" > > > [ 7.969435] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected > > > [ 7.977348] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x0000 detected > > > [ 7.985793] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device > > > [ 7.993569] CPU 0 Unable to handle kernel paging request at virtual address 00000024, epc == 800c8f54, ra == 80249ff8 > > > [ 8.004408] Oops[#1]: > > > > > > Signed-off-by: Tomislav Požega > > > > Please add your's signed-off-by and fix the changelog. Patch > > fixes incorrect rf value encoded in eeprom, not a crash. IIRC > > crash itself was caused by incorrect rt2x00->eeprom_file pointer, > > happend when rt2800_init_eeprom() returned error. And should > > be alredy fixed in openwrt tree. > > The crash was fixed by: > https://patchwork.ozlabs.org/project/openwrt/patch/1551000198-30901-1-git-send-email-sgruszka@redhat.com/ Yes, the itself has been fixed. For working wifi it's just the RF value in EEPROM which needs overriding with RT5592 PCIe radio (a single chip with built-in RF frontend), which is also what the vendor driver does afair. I will update the commit message in v2.