Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2410848rbb; Wed, 28 Feb 2024 00:24:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXUKAVk3Bc/d4KaBjumG/PERsZAlZSPN0F8CU29Ob4t2anOaJDVKmTXatANXtDjM1M7Cspt8cOtwxKFm7mwi17/FPjrY621oPy1c+gINg== X-Google-Smtp-Source: AGHT+IGE605Wyemy6xlggg60Kxz/Cse9dm+UX/zUzqOTz8hH0walQFqXAg36MnKrP/fNyoAVLJ4Q X-Received: by 2002:a05:6808:150f:b0:3c1:b618:b5a7 with SMTP id u15-20020a056808150f00b003c1b618b5a7mr2971671oiw.42.1709108657361; Wed, 28 Feb 2024 00:24:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709108657; cv=pass; d=google.com; s=arc-20160816; b=d3ji4GBLO1pbYfL8V+H0331pdxQ9pCEDh3oh37GBnhJG387Tifn5mJ6dYrf4DJL0PP L3dpW0djGt5mUSQ9t2tC1bNcVpFYFa3Y/vKbe8Z5yJzs9gb/nbtB8H+/Mw37jScU4Unq 2RJgfgNshSVpfhBsvJsSxXXvAEQnXy7dATFO1DkAz1weX7Mq6aZrghhSVrBZ/byNP73c Vmdg4jBeOlrO8NKrX4p1MqYQKtCZ+n+SGxFPlLVZ9nlHRT4Bqysz22qo70N/w6cw0qOo lJRbE4ySuLLIkvz1yLTDNBSoVuBQJA/TurCfglKWK1mDshgn36QVrcjCuDee3iBDnSiM S/kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=J9Ndb3isEOpYMN4yO8UqNjKboPqCzY08CWqnXU9iwDw=; fh=WuZHfpbaMW+ikCIRwfSVmf8I2BijqXBdeD19UNZpzFc=; b=Jfdp/8N7ao8kxgSXAGyA8MFi6lu6GJUY5AukltU0rANCv9t06GQbWvXtO/JHj7xk8e mygIQ+zrdHk6VTtF5rfOtycBHex+E+Bv/K4kMyqnN4evSF95c5un5efqn6QnuT3VHZW3 mH/xGV5O/6+9biQ3esYbs2lpl7dpg+qSAq2x9HjbPJRxZ0vAnoDCv6kLI9UNgkVMvAw7 LNsPGILJasEs1r7ExC8mbZSIiaBrzySYHftv38V/7R+R/8dOWbEcLoTvnoxuhomS84JN GLm15JT/IEvbrYmHKMPkohUSohoNplFHy6c95vAkcyjG1HY4lH7khpy/+e7v1nRwr43K +L9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U+XIOsi0; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-wireless+bounces-4136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b30-20020a630c1e000000b005d8e221d9f4si6977215pgl.77.2024.02.28.00.24.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:24:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U+XIOsi0; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-wireless+bounces-4136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0D20A289246 for ; Wed, 28 Feb 2024 08:24:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 132512C857; Wed, 28 Feb 2024 08:24:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U+XIOsi0" X-Original-To: linux-wireless@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42F7A2C6BA for ; Wed, 28 Feb 2024 08:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108652; cv=none; b=BqipXdbyLBka0QUtEuuTkdpDPJxWs0D7r9gE3a3mWfPx6lnhwZOpPDkvxlsAmlFNrBR1rT5YGWsNkMC1u0LMZx8lxZFIac8Zgr2ndJ3hCs+BqH++Jzz8lM5QuGJjORoe4WaTlyPMbZftC0GCvboavcsU+rVHYTNWfV6t4mBsnHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108652; c=relaxed/simple; bh=/34dynQfECm5B+3LFDIPAZBmeHM5kcxjFKpAK3qqMls=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=HwB1UYkkbzLgUP8YH3vqkazZjgvV3fLnd1c5264yf27sDSlDzlgwBwKQ3676XLtvWvx6jvanlKKlDgWQ+XlKmvjYyxS4lmPQlIrjbkyf7lB3I/TcfenhIwxdPkYRzMpsaR8D6o0ew3Sk9eUeOb2JRq2qz6hi8QGjwQTaV9GLKa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=U+XIOsi0; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709108648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J9Ndb3isEOpYMN4yO8UqNjKboPqCzY08CWqnXU9iwDw=; b=U+XIOsi0ri602B7oJiJv6ViATJ8zob3zQaTdXvU383dqrenTpkASboXlIFV+vkXqZVPsMs OPMw1puuAP3304+CTDmsbTAhk5P0dkLtNQxvCwmvmdQmGxoMLvjNIgXd4CWMsnZ+LYjTz9 9hvvhYlov1REdhWyndiVqUEXst9JROI= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-497-GpyiYTvHPNic5LirLJtngw-1; Wed, 28 Feb 2024 03:24:06 -0500 X-MC-Unique: GpyiYTvHPNic5LirLJtngw-1 Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2d25a02f48fso42844551fa.3 for ; Wed, 28 Feb 2024 00:24:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709108645; x=1709713445; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J9Ndb3isEOpYMN4yO8UqNjKboPqCzY08CWqnXU9iwDw=; b=iz0NXARS0P/ALDoqq2E0qFQXCY9wpXly3nxMHTNZzdiXl2hMLktDuLKnYZTl/Uk0Vk R7PlqhS0fPYahcXGrCMBp6+4TUdzF0mxJphx8gH1meKJ4xc++RlOCHEitzyi3OZQ/xd+ wtwn+AECmeO8lOvgCdGpS0jqOpJyOs/oeBlUJwsy6sJA+kaUCBNIMArVD2xcmXJUHLEq VCk1A+c/lX3hZu8t5HiVeng91Dk9JSokLWLm9sRTNuA/j/mBarMXux/PwPbElLjReZIA XRspUAHBym1zpYx+sS0Jew+ljG6FJ399pm5C1ZuGHAksOF729+lkNcwuCq8mq7GG221n Pb8g== X-Forwarded-Encrypted: i=1; AJvYcCWEfasV3sDyF2JGkyAvM22JMNmSA4dsZlrmOF2K8mDF2Qa1BWso2YzunEbKfMY4JhZZLPK/FAWKg56TBNY1EZYJ/IQH+QxV978xT/zC4Sg= X-Gm-Message-State: AOJu0YyFTfk7JIl7eatS6e91JlEE+NU9BwSpJI4+09JrPzoKyrW65YgD sILC2/UWIRea4GWi4DpQEkK3F1XO0ZV0GTNKY2Ot2J69QY/5s0oyFS8ih2oe0WZtlna1MZknoad zpRPJCJva03VS+1gfGTsNcTDbZHnAFideOBCdnT06ynVspoBkGvnkaz3gbKHl4daN X-Received: by 2002:a05:651c:503:b0:2d2:7a4e:f5ec with SMTP id o3-20020a05651c050300b002d27a4ef5ecmr9461736ljp.7.1709108645194; Wed, 28 Feb 2024 00:24:05 -0800 (PST) X-Received: by 2002:a05:651c:503:b0:2d2:7a4e:f5ec with SMTP id o3-20020a05651c050300b002d27a4ef5ecmr9461721ljp.7.1709108644858; Wed, 28 Feb 2024 00:24:04 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id m13-20020a7bce0d000000b00412a31d2e2asm1308154wmc.32.2024.02.28.00.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:24:04 -0800 (PST) From: Javier Martinez Canillas To: Kalle Valo Cc: linux-kernel@vger.kernel.org, Nishanth Menon , Breno Leitao , Li Zetao , linux-wireless@vger.kernel.org Subject: Re: [PATCH] wlcore: sdio: warn only once for wl12xx_sdio_raw_{read,write}() failures In-Reply-To: <8734tdaal1.fsf@kernel.org> References: <20240227002059.379267-1-javierm@redhat.com> <8734tdaal1.fsf@kernel.org> Date: Wed, 28 Feb 2024 09:24:03 +0100 Message-ID: <877cipngik.fsf@minerva.mail-host-address-is-not-set> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Kalle Valo writes: Hello Kalle, Thanks for your feedback. > Javier Martinez Canillas writes: > >> Report these failures only once, instead of keep logging the warnings for >> the same condition every time that a SDIO read or write is attempted. This >> behaviour is spammy and unnecessarily pollutes the kernel log buffer. > > Removing error messages is not usually a good idea, it would be much This patch is not removing error messages though, just limiting to print only since IMO there is no need to constantly keep printing the same error message over and over. > better to fix the root cause. > Agreed and I'm trying to figure out the cause. But to do that, I need a usable serial console and it's barely usable with all the warns and stack traces printed while I'm trying to type commands. >> For example, on an AM625 BeaglePlay board where accessing a SDIO WiFi chip >> fails with an -110 error: >> >> $ dmesg | grep "sdio write\|read failed (-110)" | wc -l >> 39 > > -110 is -ETIMEDOUT. Why is it timing out? > If I knew it then I wouldn't have to type this patch :) In theory it should work according to Nishanth (Cc'ed) since I've both the firmware and the required patches for the bootloader to set some clocks early. But it's not working for me... I don't know what's missing for me. >> Signed-off-by: Javier Martinez Canillas [...] >> - if (WARN_ON(ret)) >> - dev_err(child->parent, "sdio read failed (%d)\n", ret); >> + if (WARN_ON_ONCE(ret)) >> + dev_err_once(child->parent, "sdio read failed (%d)\n", ret); > > WARN_ON() feels excessive here, maybe remove that entirely? But Agreed and I'm on board to drop it. > dev_err_ratelimited() feels more approriate than printing the error just > once. > Works for me. Thanks! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat