Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1787538pxy; Mon, 2 Aug 2021 10:10:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypodHsD9QhkPg8NDps8QXAyceOa843qHoNX9tbrB6e44gzW48fiqIBea2PHGiXDiWhcP11 X-Received: by 2002:a05:6402:3cf:: with SMTP id t15mr14742660edw.368.1627924235239; Mon, 02 Aug 2021 10:10:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627924235; cv=pass; d=google.com; s=arc-20160816; b=FF+CKLot96IScqauihAXgbA+B48/Eh6Mn0fFY+dqRp6VBnluzlAgz91ybwyIBRfUGr CLlaL7QMc9iDYSa6yTxPr/vMiET9GeysiUjjLCL4+nggXKf8vE22jZm/FhKGMQtU+2vc CvKB0UZoir615CgitF5HpgEic8X88oymem0qxKD+jn1twLuRj13XUeMuYYfizbHQn7J7 493bT0GuzwCKBjOm0vcqbvhj2ZB6NhUl6X3AMOjIm1dXZxyVJZcndLALRQ8dzJX1ECAV YsoPv/Y6XnLRcUzN3y3QP2c5nfHsHFGK7jSYe8cgniK12kOZaikd3CYgfNbHX9rv2XX1 saSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=PV9KL1vUqpxcAn86G8OlVgIPtly9V88/PnCNhXLvksE=; b=WVaHyT1LeZD3F3MzyJqAogjrbctrPDsNVZJ5R0WVSofepf8qxf+LIXAprT0ul/UxII TEBGNB05+vdfn+PU+Qy61UhK8b8wk45I+ruMUd2PIQmE/+ASuxC1xdteb9+A2gKJ0SRI /FiFfbxOibYUg8cbcYkfFY0gc6EMm1ikTrEu/IDawCYK/ISObxCki5c87qV0g78kk2WQ 6GEeJ5Xbgj/XEN0MKjObQSNc0CO0pYe328Ls8M1Kofzd0RSXUJO8PTqQDGdsmWtHiMrj h07MsMS50+TzWudJdaIgC6ZEj62xlmrWVRllFoHA21mXhQ+/hcJyFK4xThxhgKVMj8W4 0WMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@secospa.onmicrosoft.com header.s=selector2-secospa-onmicrosoft-com header.b=ug2D0DyE; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=seco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si9870809ejr.112.2021.08.02.10.10.05; Mon, 02 Aug 2021 10:10:35 -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=@secospa.onmicrosoft.com header.s=selector2-secospa-onmicrosoft-com header.b=ug2D0DyE; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=seco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbhHBRJk (ORCPT + 99 others); Mon, 2 Aug 2021 13:09:40 -0400 Received: from mail-eopbgr00086.outbound.protection.outlook.com ([40.107.0.86]:56918 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229737AbhHBRJj (ORCPT ); Mon, 2 Aug 2021 13:09:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2MZRT23MS+DoQyNHBgSk6KSUmvLdCJgpFdChWOjN/b3HcYPYgWBBhFb69rIJQzx3nk1iyPOmJ8+ytETwrEUv4KYqZcMfIk4x0fkQwTOii5MKwkSylJ5YpDW6ZhLuOOfIKT9ge5UbKuzgRPCC4A7uc6+n+7EDiFz+AwU30HcFRNCs96K6RgR0cKq6BW48p9cHwlqpfyacsgJDRfOkWJWjpBuK1gGxpVjmZBJV5vPT2GdmnB5uiPKuFhoiTVG7DW/L1Msjzgewka733HpS/HFVqGGdZ0qx855AT8kHq+GKdd1UA2bcJv7O4M93wAIJg8I5kl2Fyyxm0e/5/JL1/Aiaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PV9KL1vUqpxcAn86G8OlVgIPtly9V88/PnCNhXLvksE=; b=oMyo/SELO6UZHU9iFv88+bILUq1ogDPXChTwlJMkqJTfTNYhWxJcigGOTrpP+zH70/ol2ECvQEhiss/CD4yEekm6wk9xP+y2wLT9plpqim7j1iZF62l6d79FxnENJsKSZhURWYBMRWV1CzbTAVfPy2V7ghp+9w7IRDCx7F+PlXmDXFxxiUBMokQyDTapOEVeO9k0ytnmkMKQcge0Xl/rqvUjEKX7A4C6rLxnpVbngBan2qSvRfah/sxkcWHyp1ZpxQuz9bY6ie1sQdwHMIe0q8ULhv01MStKNOOFb0dTjBUHw0b/vYvml4AORKqm8Tx7GgDdGhQS96cM8/VlmLK2GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PV9KL1vUqpxcAn86G8OlVgIPtly9V88/PnCNhXLvksE=; b=ug2D0DyEdR2a8btLHPqg0GNE5cHQwOEz8ElfNgbpgaH/WrHQ2Lh/R7K2/Gatnrxi2sIr1mjDqVWJaod2Dvon8wCm2eawWdmKBZGbt5Ju5/w9gLPvtQpP4oIAFLY5pGh5EytF161l5xDB3he2vAlu6/iHLdXCVmhXNJ6xKEN/mRc= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by DB8PR03MB5579.eurprd03.prod.outlook.com (2603:10a6:10:102::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Mon, 2 Aug 2021 17:09:26 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::dc6c:815b:2062:d1f1]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::dc6c:815b:2062:d1f1%7]) with mapi id 15.20.4373.026; Mon, 2 Aug 2021 17:09:26 +0000 From: Sean Anderson To: linux-wireless@vger.kernel.org, Kalle Valo Cc: Chi-hsien Lin , Franky Lin , Tejun Heo , SHA-cyfmac-dev-list@infineon.com, Hante Meuleman , Wright Feng , Arend Van Spriel , brcm80211-dev-list.pdl@broadcom.com, Sean Anderson Subject: [PATCH] brcmfmac: Set SDIO workqueue as WQ_HIGHPRI Date: Mon, 2 Aug 2021 13:09:04 -0400 Message-Id: <20210802170904.3116223-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MN2PR07CA0006.namprd07.prod.outlook.com (2603:10b6:208:1a0::16) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from plantagenet.inhand.com (50.195.82.171) by MN2PR07CA0006.namprd07.prod.outlook.com (2603:10b6:208:1a0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Mon, 2 Aug 2021 17:09:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a869fce-3d36-49fe-b31e-08d955d8480d X-MS-TrafficTypeDiagnostic: DB8PR03MB5579: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:321; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Bv7NI7jZBRqO1bKessG5DrSr13Kxdo9ynvuwK1naRwlpDajCae405SnL28n9Ozu1DoP1joD32o/SZHfv6RQJGAVVRg016Fphoit7/kX5QDwwaCZqrO3YBtWBq0fjXlJxIHm92Ymv6wJdUFyyfwQOGKNAEWG8D4ZFK2qyfkB/zM2rKc9wDkkmFx9AvWOCKc1YxAbWolivOCHFcHrBtg5BmOF4sVXTBqN7Ged56s08h3KaiSAQiN9y4G5vbzq5rEeuEayqVysBnLguE97I4T0FVLfY/7nTO5j5dEzyK5yImjMiFvnTc/V5J69VBvAaI6o4IaSp3rHq64LHBTdkf93ZDmYBytmEbWJwUoRfAWVvnDH9+I2Ge1NDJ347WodxY9dV8IZC0zHhSMPZDu8UDAq9sN1p4w7nTAU6ConEZWKEZ7Eencu/K7QO1iLu0DQPad95OORKwWlXCHB8dQjd8e+U8TTW/KVEHFHxWp/Xpo0Jx4T/6AfgOxVBqYPpfnBYVbb1v3xBk114Pu3V3DgmcQ608tG0hkd7c3SaYKNG54BcdCJCnm4Cjnx1MjPpNvpqPGbfatRkOCplzhuqziQfSkhj1Jc8/x/Pqi2QQUjKFBt4TldyeFfJkTSCuVmKc8LSIABm4W1nVhoufmlup91Z7Unp35MrzFyyhkHmZGN/f0h2XfCknzNJJSqxP4RsXEA5FKO/s1dYupwjzJCzuP2YB+f8IVGI/lr1nfw/5pcadHEwRvbBnHjZ6mkbcpnAdZoG8lTtFdO+5WKnz3ffJPcduxG9g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4523.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(346002)(136003)(366004)(39830400003)(396003)(26005)(83380400001)(107886003)(186003)(1076003)(966005)(86362001)(478600001)(6512007)(4326008)(52116002)(2906002)(54906003)(44832011)(38350700002)(38100700002)(6666004)(66946007)(7416002)(66476007)(8936002)(956004)(66556008)(8676002)(5660300002)(2616005)(6506007)(6486002)(6916009)(36756003)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3mhkGUiDMdf6+814YdXbNwGK3KkrBJR9J7WFYj5g+sOx3JMLwbw9Sl17WfLU?= =?us-ascii?Q?/2piK2DhU/art8jg7HlPQ4yWGKiEkbdArePUOtAhmGOHRCThstnZMcOWOARn?= =?us-ascii?Q?9NEBSDdsf5Z7bLFGopiOdXUPTgaeFlblBoSampuQ3L0LT/Lt55gpll6E1Op6?= =?us-ascii?Q?INn1dnZDuvhGRpdK3YvD3v/xqIl6Mow5KVlAtoAZgJyahgshu5/i9o74k0FY?= =?us-ascii?Q?sd43SbgG0hCxA2n1lVHyXSI8+CmXg6MWmndAa3dBJTGjRsogMo2UKucfQ+Wj?= =?us-ascii?Q?92vznUj4/mFzqHicVNVzZ/8N73s1VKsuStI5lIckdbLQvmv/k8oVGxTiNuZZ?= =?us-ascii?Q?wRDlX0lbhWV68XHz7SiW2Q8pJ7t+Fw9XPmFL47CuG+rFp80Pnnzx3k+2Iuya?= =?us-ascii?Q?BXwyWPkDgOrSD1831uoW8hoQ3QV84eSnMwHd7gXrvHZS38ldS4veBYlWvm9H?= =?us-ascii?Q?RoFDndkxqg5CWxiqCOE3MSGfFL4ZYobTL80Dvgf9hWl+hukj9wx0fzppAvzT?= =?us-ascii?Q?av1j3thdWGSIBocJQpvoNoMf86B93P5wsUwCx25s3nRI0vVMNq+99/WQYPCx?= =?us-ascii?Q?1jfF/FtA3iwGla4dpFx9DpVmsKG946HQ7hh0TzjdBb2RLccftRyQhcuufdzk?= =?us-ascii?Q?pDwsai9N43X/wzzrjwe1dMzQU2RkbXXVfTqdJhyqa/NirkUAVhDhjoGdWcur?= =?us-ascii?Q?6WRNfBKZ0dTAJd4UnHkstHXgR9eaKmsh+0YZpCrc4dqIczRJsJ1WrzF6PXAo?= =?us-ascii?Q?650PvSEJKxNe7/xUn/pIBDLIA9kAPZ90ZkZ4IiqMxMXt38auPs6h8KPqpJaX?= =?us-ascii?Q?R7GuKELbGIc6D9dRcdqjq2aJ51ONtuCvUIhE/dFYARimwby8PHra7RwpgJdl?= =?us-ascii?Q?DRyBPngQlhwU0ub4AekB7HociXisq5cLMD/vre7JERFv0hYso6SXA5gLs+2u?= =?us-ascii?Q?8BoaCvBxyIY7qYjNfiZXAI11CJpEtyXtp/LwYIBU5CuXruQAimwsOeUeFFZm?= =?us-ascii?Q?4ABirpcwhbc605b6GaBjF6ApHMN7QCExTiHWxvLFZC4poIrIh8UJazgMZRBv?= =?us-ascii?Q?Vq9axbWDviTZ/0SwePDGES9ClrIVXjkcS7KlWqGSlnkdyKDDzBAAylNMPgX8?= =?us-ascii?Q?zUF4CcOrYebB9eQ+wuxnr0vwHwZsStYxP6NYoefV5UF3XLqQOTb+VrEjBKm7?= =?us-ascii?Q?bJWgnRIiLpMP73qCai8wzRSueNloG4VYLsDqeA4U4QorB1k3kD4cVAQ3BLTD?= =?us-ascii?Q?xQCkDg0VCZqxVFcWF7DD/EQQ15CiXwOWgn1ApciLpgbDmPvgM/bRTmM2SESs?= =?us-ascii?Q?i04K4Ee0FifyKJfQWzLTEmWs?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a869fce-3d36-49fe-b31e-08d955d8480d X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2021 17:09:26.1549 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K8B8NQEFfiliHa9lwkHb15h1jtm9YNEeNiiJbX8e304y5/7Uou+wRrn1EyNTdLolZYVyFxfdqL8fLzEzVGXJNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR03MB5579 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This puts tasks submitted to the SDIO workqueue at the head of the queue and runs them immediately. This gets higher RX throughput with the SDIO bus. This was originally submitted as [1]. The original author Wright Feng reports > throughput result with 43455(11ac) on 1 core 1.6 Ghz platform is > Without WQ_HIGGPRI TX/RX: 293/301 (mbps) > With WQ_HIGHPRI TX/RX: 293/321 (mbps) I tested this with a 43364(11bgn) on a 1 core 800 MHz platform and got Without WQ_HIGHPRI TX/RX: 16/19 (Mbits/sec) With WQ_HIGHPRI TX/RX: 24/20 (MBits/sec) [1] https://lore.kernel.org/linux-wireless/1584604406-15452-4-git-send-email-wright.feng@cypress.com/ Signed-off-by: Sean Anderson --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index 97ee9e2e2e35..5e10176c6c7e 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -4442,7 +4442,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) bus->tx_seq = SDPCM_SEQ_WRAP - 1; /* single-threaded workqueue */ - wq = alloc_ordered_workqueue("brcmf_wq/%s", WQ_MEM_RECLAIM, + wq = alloc_ordered_workqueue("brcmf_wq/%s", WQ_MEM_RECLAIM | WQ_HIGHPRI, dev_name(&sdiodev->func1->dev)); if (!wq) { brcmf_err("insufficient memory to create txworkqueue\n"); -- 2.25.1