Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp176412rwd; Wed, 14 Jun 2023 14:10:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4b1Lg0x2kVM5NUTdpJ+iAe7CdXkuK2F1If8rDhnnoIdxH1FpbWfZWe7wQ2dIvkbvXSGEIM X-Received: by 2002:a17:907:a414:b0:965:b087:8002 with SMTP id sg20-20020a170907a41400b00965b0878002mr17629114ejc.0.1686777037667; Wed, 14 Jun 2023 14:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686777037; cv=none; d=google.com; s=arc-20160816; b=hGRJBIzdCvJB3NY9EVtYCE3I7vQtvSBXmDK/BSWcMTfds7IFmzpl9T/TBLaHJYvIu1 kh2De+wwkqg/R+HoEd+KY43vL+Ld6qXsgsjVmU4gr3Gq2KrWwq+crtNtRZZHFpknDrWg VN30Sfa2bTqgwpCf93XTHK8UTa8dkTRbQjoFNCqpQXUzX3+8pHoFjMcv9ua+d7PVOBhb wIi9yLGdVrS+TySSLtBbxcIkF75P7g8EKpjoq0mVeILQR2iird4p3zmjxTWkcPvAFfzc ejTYAwW7ipiS2Nog/JgXY10qwc9ltZe9QzCcR5cyFs4EMPBvHKarlXC/Y9Os67epUsgl RDbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=A4tNXSc1Fzut8769zlquQ8MemM6VHsICf/ea8WOZANg=; b=tbMhh8vSaeqqg9Eb47X0Sq5tW1ZJ8+k+tfHgDwLpGHbFPHc6twz/fnhLNwQS2YU3jW +7JIRMRB0XoJuY6xRvPYnBEkjV/pcuqoBXnOIm88dmjV7tQMp8OS2LoZFhbwgoZfJxue KUxMDhIjHuu4OScYjFOC2gVyrpRzB+Xu1iG4mDHUdzHVCPKDUPPqRY3assTXNfrsJDDe YUP9uODmb/F8GxbFl+WKTNLnnIIsAopjhnmSu+ocJ0cQHfw8Gix351kceqRxat9iQFOQ YZdZVzP4dgkdfuxEt9cK4G/3LickOdhD8Ijc9W8zSsbUDQZbDSMVgZ6QXFJ/4ZTvbj97 181A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 qu6-20020a170907110600b00977cf6fb9afsi8515837ejb.155.2023.06.14.14.10.07; Wed, 14 Jun 2023 14:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233807AbjFNUmP (ORCPT + 99 others); Wed, 14 Jun 2023 16:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbjFNUmN (ORCPT ); Wed, 14 Jun 2023 16:42:13 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD55295D; Wed, 14 Jun 2023 13:41:35 -0700 (PDT) Received: from [192.168.1.141] ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFKCV-1qKnhr0xDd-00FkkA; Wed, 14 Jun 2023 22:40:58 +0200 Message-ID: <3452498b-b89c-c72d-d196-950520ed8c50@i2se.com> Date: Wed, 14 Jun 2023 22:40:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net resend] net: qca_spi: Avoid high load if QCA7000 is not available To: Simon Horman , Stefan Wahren Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230614111714.3612-1-stefan.wahren@chargebyte.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:MBWMtSe0RlgtR4GS7ahkYpnqCeam0fqC+fQby5LzYsqtoo0yqF4 ncMlaoZ9aYlDxv+mGIIRFh8J5sQlWn0d5tg7M847pVbskYOYfuf8el019Di08HFXPlGnXWK JRle2g6v/axneWk8TkuNe4z2KvQWgJezknQnOPw03Qe/XPblTenRJBG+mw5bAQCGLl2MriP wgcaV3uMBZjMJEF3PW5dg== UI-OutboundReport: notjunk:1;M01:P0:xEjrCgTC/PE=;1tcII32h7xg30xifKXCIzgP44f/ xCFysj98luC2C009BHkWeLwsLQOmfwEJULRj51BOCDsb3UAEX6qx5cY/zeiFgR1wsVQPlnGh2 bs8ZWjE32VtlRMSthcDmEivFhjDQtjO6ZL9lPDe7l/4XVpLq9EMcuCXFPcK0dU+vsAMv/jPMI R7m+Vrwh7Nt/+pr8bCAvyQm4AGdD2HW1sN6i5LsmY42Q+h1zS9i5dKjbnkMV0r4cBaC93qh2E gT9vgm1uPswWpvT2RhO9FS3VCaUFxbK93OINKIDqQu2AME4NCLpnGOMkLM6EjNR6I1nR0gHuT pSbaVaBs4LAoMuswwLwI9WN9p7hHLTHwfvl64Yi1Z91GLiSghvQooiBTs0R/2FnakEDqYpboC P1oriYcKBHonA+vu6VRZBVmhxynScplGRhRmyFxqMo6RPVp7poZ2zPJ+5KVs3x9js2RyeyxFw cHERfoCzQw9IOCsrFt6arG5OvHzi4QymzUmmVrmdsjEYq7GpAmirCzyX1gTYLwaOfBKwTQL3I YyTzeDhXUu1sNDQzrqF+sEGKCoxmGU2tZ3lP9hT2idHmzzHrHsj0tPCTtax9oDeD/aa6jloKd LtYJUFRwxmHldVy2gqoE81rkiGY/qm3Fl54RZ8C8btJgCsx50ENc/7hJd6KG38g1jyoxjRz38 CtULlpz7GNO3WvDEDEtnrnB70EcZHlTJuBkvodIgAA== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org Hi Simon, Am 14.06.23 um 18:58 schrieb Simon Horman: > On Wed, Jun 14, 2023 at 01:17:14PM +0200, Stefan Wahren wrote: >> In case the QCA7000 is not available via SPI (e.g. in reset), >> the driver will cause a high load. The reason for this is >> that the synchronization is never finished and schedule() >> is never called. Since the synchronization is not timing >> critical, it's safe to drop this from the scheduling condition. >> >> Signed-off-by: Stefan Wahren >> Fixes: 291ab06ecf67 ("net: qualcomm: new Ethernet over SPI driver for >> QCA7000") > > Hi Stefan, > > the Fixes should be on a single line. > > Fixes: 291ab06ecf67 ("net: qualcomm: new Ethernet over SPI driver for QCA7000") thanks for pointing out. Unfortunately this comes from the mail server, which line warp here. I will try to use a different account. Sorry about this mess :-( > >> --- >> drivers/net/ethernet/qualcomm/qca_spi.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c >> b/drivers/net/ethernet/qualcomm/qca_spi.c > > Likewise, the above two lines should be a single line. > Unfortunately it seems that because it is not git doesn't apply > this patch, which creates problems for automation linked to patchwork. > > I think it would be best to repost after resolving these minor issues. > >> index bba1947792ea16..90f18ea4c28ba1 100644 >> --- a/drivers/net/ethernet/qualcomm/qca_spi.c >> +++ b/drivers/net/ethernet/qualcomm/qca_spi.c >> @@ -582,8 +582,7 @@ qcaspi_spi_thread(void *data) >> while (!kthread_should_stop()) { >> set_current_state(TASK_INTERRUPTIBLE); >> if ((qca->intr_req == qca->intr_svc) && >> - (qca->txr.skb[qca->txr.head] == NULL) && >> - (qca->sync == QCASPI_SYNC_READY)) >> + !qca->txr.skb[qca->txr.head]) >> schedule(); >> >> set_current_state(TASK_RUNNING); >> >