From patchwork Thu Oct 26 07:17:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830473 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="E1zjsCBD"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyyy3q1Jz9t3n; Thu, 26 Oct 2017 18:18:18 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQh-0004Og-3V; Thu, 26 Oct 2017 07:18:15 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQf-0004Ny-4r for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:13 +0000 Received: by mail-pg0-f66.google.com with SMTP id m18so1984572pgd.13 for ; Thu, 26 Oct 2017 00:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=MSv6NHS8W/Hxg86PkS8jxq7q130DJ/1CaveaQvsmGXQ=; b=E1zjsCBDdy/Pt0mcmNLDm0pC1VxdOKsKIcMH0zel2F5RP/mdx625Yo1hHbki4VrDuj JS5oAGS2HIlabz3OKC7A62Y82ifOKvPiXeSArLVDvVeOKGZIHPWC29cOtkkgW3UM9fff QfsGO+qlqPJ+YoKbZq9hRebSHH5A3Iqgicem/F65hNoMd0VdO/IdhwsnEppemPhhjvvM rgM7ID9anVKqsUU9UZK6wtondYp4HKSE/UOWEN14I103h9Cgt6FjvhxQl3y58YmsfPbJ pGG0ozYybZhp9v6Jw7r5twm7ToCkvfKWLMniFe8iVBsUadsqDFI7oquFdUFUiJ5cgGNj XDNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=MSv6NHS8W/Hxg86PkS8jxq7q130DJ/1CaveaQvsmGXQ=; b=Ih4gsr9FF46ZP3Aapb1Bf+QAFe5CjwL8UEcaGmc0OdqyiCKcf7JxyskDRBlJODHFV+ KlxmYekPuozagBgln8glqtRc76YBAMwucmWLMd2mbhccnBJqggiFXXHFeEB+jbl5urwh Jzv701uJEUbK7tVz3pfpi4LbN6NZvJaxIhqZkISrda77QKkk5R55Jy201pFkrfDLhvIQ ieLP3+9i6Kpd6N9YHXJnCxbIw7T4Fn0XdVCDnpzwwdbyO9Yoqkgf8/VY7PzXCbIYmQBX lzxKOTz/vgI4D0zd9wqizVL7Bkt+bbcKNMEr+ITJ/CO3SQyqMEWUpINSvP9DFSPYp9Wb 5q3A== X-Gm-Message-State: AMCzsaU9DuxC+klYGWDAFyPFyuaUBLPC7NzD5Pxg66x9xDC31B1le3Hv yNruhLqgrsdV5OxOTNRZ5DjiMA+W X-Google-Smtp-Source: ABhQp+SIeV/qIcZyiSvszVmmYxdggrWZcfQ5Ji2ctthmvNYcE1vUDuTYlcZ2rmiXBQ2ayp4xYXLbIg== X-Received: by 10.99.61.70 with SMTP id k67mr4333667pga.113.1509002291216; Thu, 26 Oct 2017 00:18:11 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id q77sm9596112pfd.84.2017.10.26.00.18.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:09 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/8] UBUNTU: SAUCE: ath9k: add MSI support Date: Thu, 26 Oct 2017 15:17:55 +0800 Message-Id: <1509002282-31921-2-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Russell Hu BugLink: http://bugs.launchpad.net/bugs/1727228 On new Intel platforms like ApolloLake, legacy interrupt mechanism (INTx) is not supported, so WLAN modules are not working because interrupts are missing, therefore this patch is to add MSI support to ath9k. With module paremeter "use_msi=1", ath9k driver would try to use MSI instead of INTx. Signed-off-by: Russell Hu --- drivers/net/wireless/ath/ath9k/hw.c | 33 ++++++++++++++++++------ drivers/net/wireless/ath/ath9k/hw.h | 3 +++ drivers/net/wireless/ath/ath9k/init.c | 4 +++ drivers/net/wireless/ath/ath9k/mac.c | 47 +++++++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath9k/pci.c | 21 +++++++++++++++- drivers/net/wireless/ath/ath9k/reg.h | 15 +++++++++++ 6 files changed, 115 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 8c5c2dd..cd0f023 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -922,6 +922,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, AR_IMR_RXERR | AR_IMR_RXORN | AR_IMR_BCNMISC; + u32 msi_cfg = 0; if (AR_SREV_9340(ah) || AR_SREV_9550(ah) || AR_SREV_9531(ah) || AR_SREV_9561(ah)) @@ -929,22 +930,30 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, if (AR_SREV_9300_20_OR_LATER(ah)) { imr_reg |= AR_IMR_RXOK_HP; - if (ah->config.rx_intr_mitigation) + if (ah->config.rx_intr_mitigation) { imr_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR; - else + msi_cfg |= AR_INTCFG_MSI_RXINTM | AR_INTCFG_MSI_RXMINTR; + } else { imr_reg |= AR_IMR_RXOK_LP; - + msi_cfg |= AR_INTCFG_MSI_RXOK; + } } else { - if (ah->config.rx_intr_mitigation) + if (ah->config.rx_intr_mitigation) { imr_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR; - else + msi_cfg |= AR_INTCFG_MSI_RXINTM | AR_INTCFG_MSI_RXMINTR; + } else { imr_reg |= AR_IMR_RXOK; + msi_cfg |= AR_INTCFG_MSI_RXOK; + } } - if (ah->config.tx_intr_mitigation) + if (ah->config.tx_intr_mitigation) { imr_reg |= AR_IMR_TXINTM | AR_IMR_TXMINTR; - else + msi_cfg |= AR_INTCFG_MSI_TXINTM | AR_INTCFG_MSI_TXMINTR; + } else { imr_reg |= AR_IMR_TXOK; + msi_cfg |= AR_INTCFG_MSI_TXOK; + } ENABLE_REGWRITE_BUFFER(ah); @@ -952,6 +961,16 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah, ah->imrs2_reg |= AR_IMR_S2_GTT; REG_WRITE(ah, AR_IMR_S2, ah->imrs2_reg); + if (ah->msi_enabled) { + ah->msi_reg = REG_READ(ah, AR_PCIE_MSI); + ah->msi_reg |= AR_PCIE_MSI_HW_DBI_WR_EN; + ah->msi_reg &= AR_PCIE_MSI_HW_INT_PENDING_ADDR_MSI_64; + REG_WRITE(ah, AR_INTCFG, msi_cfg); + ath_dbg(ath9k_hw_common(ah), ANY, + "value of AR_INTCFG=0x%X, msi_cfg=0x%X\n", + REG_READ(ah, AR_INTCFG), msi_cfg); + } + if (!AR_SREV_9100(ah)) { REG_WRITE(ah, AR_INTR_SYNC_CAUSE, 0xFFFFFFFF); REG_WRITE(ah, AR_INTR_SYNC_ENABLE, sync_default); diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 4ac7082..0d6c07c7 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -977,6 +977,9 @@ struct ath_hw { bool tpc_enabled; u8 tx_power[Ar5416RateSize]; u8 tx_power_stbc[Ar5416RateSize]; + bool msi_enabled; + u32 msi_mask; + u32 msi_reg; }; struct ath_bus_ops { diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index fd9a618..986fc0e 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -75,6 +75,10 @@ MODULE_PARM_DESC(use_chanctx, "Enable channel context for concurrency"); #endif /* CONFIG_ATH9K_CHANNEL_CONTEXT */ +int ath9k_use_msi; +module_param_named(use_msi, ath9k_use_msi, int, 0444); +MODULE_PARM_DESC(use_msi, "Use MSI instead of INTx if possible"); + bool is_ath9k_unloaded; #ifdef CONFIG_MAC80211_LEDS diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index 77c94f9..58d02c1 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c @@ -832,6 +832,43 @@ static void __ath9k_hw_enable_interrupts(struct ath_hw *ah) } ath_dbg(common, INTERRUPT, "AR_IMR 0x%x IER 0x%x\n", REG_READ(ah, AR_IMR), REG_READ(ah, AR_IER)); + + if (ah->msi_enabled) { + u32 _msi_reg = 0; + u32 i = 0; + u32 msi_pend_addr_mask = AR_PCIE_MSI_HW_INT_PENDING_ADDR_MSI_64; + + ath_dbg(ath9k_hw_common(ah), INTERRUPT, + "Enabling MSI, msi_mask=0x%X\n", ah->msi_mask); + + REG_WRITE(ah, AR_INTR_PRIO_ASYNC_ENABLE, ah->msi_mask); + REG_WRITE(ah, AR_INTR_PRIO_ASYNC_MASK, ah->msi_mask); + ath_dbg(ath9k_hw_common(ah), INTERRUPT, + "AR_INTR_PRIO_ASYNC_ENABLE=0x%X, AR_INTR_PRIO_ASYNC_MASK=0x%X\n", + REG_READ(ah, AR_INTR_PRIO_ASYNC_ENABLE), + REG_READ(ah, AR_INTR_PRIO_ASYNC_MASK)); + + if (ah->msi_reg == 0) + ah->msi_reg = REG_READ(ah, AR_PCIE_MSI); + + ath_dbg(ath9k_hw_common(ah), INTERRUPT, + "AR_PCIE_MSI=0x%X, ah->msi_reg = 0x%X\n", + AR_PCIE_MSI, ah->msi_reg); + + i = 0; + do { + REG_WRITE(ah, AR_PCIE_MSI, + (ah->msi_reg | AR_PCIE_MSI_ENABLE) + & msi_pend_addr_mask); + _msi_reg = REG_READ(ah, AR_PCIE_MSI); + i++; + } while ((_msi_reg & AR_PCIE_MSI_ENABLE) == 0 && i < 200); + + if (i >= 200) + ath_err(ath9k_hw_common(ah), + "%s: _msi_reg = 0x%X\n", + __func__, _msi_reg); + } } void ath9k_hw_resume_interrupts(struct ath_hw *ah) @@ -878,12 +915,21 @@ void ath9k_hw_set_interrupts(struct ath_hw *ah) if (!(ints & ATH9K_INT_GLOBAL)) ath9k_hw_disable_interrupts(ah); + if (ah->msi_enabled) { + ath_dbg(common, INTERRUPT, "Clearing AR_INTR_PRIO_ASYNC_ENABLE\n"); + + REG_WRITE(ah, AR_INTR_PRIO_ASYNC_ENABLE, 0); + REG_READ(ah, AR_INTR_PRIO_ASYNC_ENABLE); + } + ath_dbg(common, INTERRUPT, "New interrupt mask 0x%x\n", ints); mask = ints & ATH9K_INT_COMMON; mask2 = 0; + ah->msi_mask = 0; if (ints & ATH9K_INT_TX) { + ah->msi_mask |= AR_INTR_PRIO_TX; if (ah->config.tx_intr_mitigation) mask |= AR_IMR_TXMINTR | AR_IMR_TXINTM; else { @@ -898,6 +944,7 @@ void ath9k_hw_set_interrupts(struct ath_hw *ah) mask |= AR_IMR_TXEOL; } if (ints & ATH9K_INT_RX) { + ah->msi_mask |= AR_INTR_PRIO_RXLP | AR_INTR_PRIO_RXHP; if (AR_SREV_9300_20_OR_LATER(ah)) { mask |= AR_IMR_RXERR | AR_IMR_RXOK_HP; if (ah->config.rx_intr_mitigation) { diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 7b7627f..1a4254e 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -22,6 +22,8 @@ #include #include "ath9k.h" +extern int ath9k_use_msi; + static const struct pci_device_id ath_pci_id_table[] = { { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */ { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ @@ -884,6 +886,7 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) u32 val; int ret = 0; char hw_name[64]; + int msi_enabled = 0; if (pcim_enable_device(pdev)) return -EIO; @@ -955,7 +958,20 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) sc->mem = pcim_iomap_table(pdev)[0]; sc->driver_data = id->driver_data; - ret = request_irq(pdev->irq, ath_isr, IRQF_SHARED, "ath9k", sc); + if (ath9k_use_msi) { + if (pci_enable_msi(pdev) == 0) { + msi_enabled = 1; + dev_err(&pdev->dev, "Using MSI\n"); + } else { + dev_err(&pdev->dev, "Using INTx\n"); + } + } + + if (!msi_enabled) + ret = request_irq(pdev->irq, ath_isr, IRQF_SHARED, "ath9k", sc); + else + ret = request_irq(pdev->irq, ath_isr, 0, "ath9k", sc); + if (ret) { dev_err(&pdev->dev, "request_irq failed\n"); goto err_irq; @@ -969,6 +985,9 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto err_init; } + sc->sc_ah->msi_enabled = msi_enabled; + sc->sc_ah->msi_reg = 0; + ath9k_hw_name(sc->sc_ah, hw_name, sizeof(hw_name)); wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n", hw_name, (unsigned long)sc->mem, pdev->irq); diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 80ff69f..653e796 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h @@ -146,6 +146,14 @@ #define AR_MACMISC_MISC_OBS_BUS_MSB_S 15 #define AR_MACMISC_MISC_OBS_BUS_1 1 +#define AR_INTCFG 0x005C +#define AR_INTCFG_MSI_RXOK 0x00000000 +#define AR_INTCFG_MSI_RXINTM 0x00000004 +#define AR_INTCFG_MSI_RXMINTR 0x00000006 +#define AR_INTCFG_MSI_TXOK 0x00000000 +#define AR_INTCFG_MSI_TXINTM 0x00000010 +#define AR_INTCFG_MSI_TXMINTR 0x00000018 + #define AR_DATABUF_SIZE 0x0060 #define AR_DATABUF_SIZE_MASK 0x00000FFF @@ -1256,6 +1264,13 @@ enum { #define AR_PCIE_MSI (AR_SREV_9340(ah) ? 0x40d8 : \ (AR_SREV_9300_20_OR_LATER(ah) ? 0x40a4 : 0x4094)) #define AR_PCIE_MSI_ENABLE 0x00000001 +#define AR_PCIE_MSI_HW_DBI_WR_EN 0x02000000 +#define AR_PCIE_MSI_HW_INT_PENDING_ADDR 0xFFA0C1FF /* bits 8..11: value must be 0x5060 */ +#define AR_PCIE_MSI_HW_INT_PENDING_ADDR_MSI_64 0xFFA0C9FF /* bits 8..11: value must be 0x5064 */ + +#define AR_INTR_PRIO_TX 0x00000001 +#define AR_INTR_PRIO_RXLP 0x00000002 +#define AR_INTR_PRIO_RXHP 0x00000004 #define AR_INTR_PRIO_SYNC_ENABLE (AR_SREV_9340(ah) ? 0x4088 : 0x40c4) #define AR_INTR_PRIO_ASYNC_MASK (AR_SREV_9340(ah) ? 0x408c : 0x40c8) From patchwork Thu Oct 26 07:17:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ORuYg3dv"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyz13h5qz9t3n; Thu, 26 Oct 2017 18:18:21 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQk-0004Qh-9R; Thu, 26 Oct 2017 07:18:18 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQi-0004Ou-4S for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:16 +0000 Received: by mail-pg0-f68.google.com with SMTP id l24so1988931pgu.11 for ; Thu, 26 Oct 2017 00:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=gLx/gaBS5/YJU4ZvxZpf4ZtcECuhcC1e0RvwRxxxM6E=; b=ORuYg3dvlMg1kw1r70C5A4OlU9K8OGgkIo0DcSQwkE2GEzyPQTgiwOYyRu45Lr2Zwf PndWiMg3nhfkgO8Hddu+AT1POWv42c8kTEIOuMczR2DiTgA/JiQNt8XnuIWKJq03M04v 8Zzq93WjP8mM13Qf/sAQA4416Ve+0wvKiriW5FD+v6KrLA3lft/WiwT5MY4muhJwGUZW Yg3nk4qu1XPfgovNhPNRq+7bjxGNERXFGgPVfacG3rpxoqV3XexRkFbG3dZXUbBqREQw 5pimEk9lHtAbCppw6qZjoj1JeBNtunRbpefIBX8mfsDy0kua/3JDbCdsjeVyR8Qy+9oF pfHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=gLx/gaBS5/YJU4ZvxZpf4ZtcECuhcC1e0RvwRxxxM6E=; b=CL6i5MbQawKQ5dDW6eSGTPwHHcKywpviyUlW/wSZjI6xIzsOjvEe8c7xgojOFaqsw7 uaNk3fWx43NuVe7mLYqRl+e1zulhjoS7NpKOUxs73NdG/9//5CCDCznT7WK1LbWElXsv Ex/pKOyIdrlpLbOu9XaM+KdLIUrYvKAU0FKWD6p8ghEttelG5yB54vejwP1DTE2e6mXV ct5KmWZgEFsxG1FUJ5PPqEgWN51SSq38UT6KTZI8VkeNjAxCdAo3JgK8+dB6zv3mUV0D gcLGvSHgT+Lriyg4DpmmoK0aFcP5z1UZaNmPCLyZz2QPXi072zd1pg6UOYv9ILtsIowz 4Qiw== X-Gm-Message-State: AMCzsaWZfOfH4k+5kda/ghiPmgIDTRgSzdPs2mZfphgTCWQX0KFpfa12 W2q8q5ZwI3BBCUDxyfXjy+xGeaXz X-Google-Smtp-Source: ABhQp+QA/KytWKdMBmYqevW0VBOPsZ6F91tz2QgiibzlSaAypXW0fZ78MKDYlFaBtluxkWd+wWus0w== X-Received: by 10.84.174.4 with SMTP id q4mr3767211plb.233.1509002294373; Thu, 26 Oct 2017 00:18:14 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id c127sm8684148pga.34.2017.10.26.00.18.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:13 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/8] UBUNTU: SAUCE: ath9k: add a quirk to set use_msi automatically Date: Thu, 26 Oct 2017 15:17:56 +0800 Message-Id: <1509002282-31921-3-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 Some platform(BIOS) blocks legacy interrupts (INTx), and only allows MSI for WLAN device. So adding a quirk to list those machines and set use_msi automatically. Adding Dell Inspiron 24-3460 to the quirk. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 986fc0e..9b4013a9 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "ath9k.h" @@ -96,6 +97,24 @@ static const struct ieee80211_tpt_blink ath9k_tpt_blink[] = { }; #endif +static int __init set_use_msi(const struct dmi_system_id *dmi) +{ + ath9k_use_msi = 1; + return 1; +} + +static const struct dmi_system_id ath9k_quirks[] __initconst = { + { + .callback = set_use_msi, + .ident = "Dell Inspiron 24-3460", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 24-3460"), + }, + }, + {} +}; + static void ath9k_deinit_softc(struct ath_softc *sc); static void ath9k_op_ps_wakeup(struct ath_common *common) @@ -1104,6 +1123,8 @@ static int __init ath9k_init(void) goto err_pci_exit; } + dmi_check_system(ath9k_quirks); + return 0; err_pci_exit: From patchwork Thu Oct 26 07:17:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830475 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nUlJjzU0"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyz348cVz9t3n; Thu, 26 Oct 2017 18:18:23 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQm-0004St-Gj; Thu, 26 Oct 2017 07:18:20 +0000 Received: from mail-pg0-f68.google.com ([74.125.83.68]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQl-0004RB-Hp for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:19 +0000 Received: by mail-pg0-f68.google.com with SMTP id y5so1996674pgq.7 for ; Thu, 26 Oct 2017 00:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=Gv2ymn/pQxxm8UbI4vIHFgQuwOZeywIG5ykNtyMIr1M=; b=nUlJjzU0KRhATJwtMyeX/qJRsgSWDy8NNCUsX2fAeG3YDxR0r9eUrv1nzbzdfwsTqn HpDFTkyny53vXo+6Tlwwi50F0bpjnfXuQRJmvy+ZCKRr72PxqW3BxIvmAGI0HkOYeLPZ HTkDjK/gWnBWIfPqYhSsbLZzJSPvrTCQFSe3cB3K0dD12dSiTdj54JnTc/YRTVbOH9cv lxXhR2g/1sp/EyN9JvEIRKSMe+a+rrhReYohFGyqsp3rtNAj6UNCpReM1GEV85YQUQDA IWjzoI8m78D36UPc3hvGtc+iBH/6LWgR+hJX1Rw3qMXZSTxiaFqDoCwMwsGSvX01a0FW rJwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=Gv2ymn/pQxxm8UbI4vIHFgQuwOZeywIG5ykNtyMIr1M=; b=XU1AuSkZXdchVcfNmDqMB3BcrWJJ4hyoYBVTqy7FeLs8xI5WVvkQVJVReYU0/xPyz7 TojWy3WlTcuO2f/HWSapGPyNorujPrOUWH4P/fc5Jkww/GgF6qtKZqZa7AZdFiZV2z1E L3VRngwpsedQlFoue6E+0avlq9ynYarvpAK7MJHM2nHdEn0S2byYRihnwOxxXpUFsbT4 LxjaXvzMVNZDb7mP+1MoS2sPJ1goObQ2JdIMLaNh4+UglgGihuEZb6Uwl7LJWsOc2Th+ GtCElas+lxe3mrDPE0EavzpYdtZ0pq7alCEKKmL11CRLi/DzkPjygVU5s/o45j/FJszb Gwqg== X-Gm-Message-State: AMCzsaURnbCATXa7yfyaCWGbhHmGHXIYa+ymGiEZv0yfT2rOef+0cmYm w1ciGx8dZ4+q5Rf7XQUy5htsvqJx X-Google-Smtp-Source: ABhQp+RU8jNeguL07Qb66llNm4/gNMJDoUMv7qnd6+rjUCJTdpVAUEWLaqsm66FyqxpC1A11EHuw4w== X-Received: by 10.98.135.71 with SMTP id i68mr4543970pfe.79.1509002297816; Thu, 26 Oct 2017 00:18:17 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id 68sm8712423pfx.105.2017.10.26.00.18.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:16 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Vostro 3262 Date: Thu, 26 Oct 2017 15:17:57 +0800 Message-Id: <1509002282-31921-4-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Vostro 3262 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 9b4013a9..b9bd8b4 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -112,6 +112,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 24-3460"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Vostro 3262", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3262"), + }, + }, {} }; From patchwork Thu Oct 26 07:17:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830476 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GfhVF/5Z"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyz65K5Fz9t3n; Thu, 26 Oct 2017 18:18:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQp-0004Vk-Nb; Thu, 26 Oct 2017 07:18:23 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQp-0004UX-1j for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:23 +0000 Received: by mail-pf0-f195.google.com with SMTP id d28so1869188pfe.2 for ; Thu, 26 Oct 2017 00:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=QJ7LWya9PmpjOI97TJ1W0n1+ZQiIQjctN4V1/wuWyM8=; b=GfhVF/5ZMLotW4YDFgz2qxmHclAYgHFmfTurANIHqv9HeWXayE2OyWi+VFGXb11B1j pa1prUnGGBBrmI5SLPRJvaIM74tWomJIsJaCNWfueynRU/4bbHV6MduWNpeag680Emrb OaZR9dWblmDStCtialgnWaHAVBYkxAa9YdQXRmyhJvQYgB8rbtYcHwYfsI5f0JR+w9uM lifLAFxdJUMMndK3PJuSfOAeCgsr5Vwh11bbBbVzA7J/J0n24OVM1FHgMDDdGIHjzoyz wU9wYtB/NNzGkCEaiqVx10CY7Vld2Q/a7D+cj0rwXZxEfWXD85jv/2al6UdIzMW/cf/2 Lvtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=QJ7LWya9PmpjOI97TJ1W0n1+ZQiIQjctN4V1/wuWyM8=; b=L+zgr3/TCAVbk7NCjv6IAJsoqV3VNFIU9RWTRfnB0xaj7Fa+VumxRKcs46L9UxThrz JuQTGcyFhZAXvgN6XjfIxKvXGnyS6lG1tUhDc/1bWgbjZpsyyjcMOmGZWvlwB8zHxov0 CKjeNhcW3NXohYQlfniTbySJOjxlUDHlzY8DDiSBXq1Ps+SgrUvg+QHOu+Num6Hw9cMa ydcO0ICucOd6IP3UxTOJVT9N6iQKbCO6rfO7f6fLH+0q4BX8HQbFwdkOqTIR6QwdF7OY 8gDmDdOl01x1cB4Avl+ZOyzwluHXiE2NHDdv84iSUAsDRNux7sU2+8MefR9ghNRAr0d6 8IYg== X-Gm-Message-State: AMCzsaVBUtsE0am3XSkRxy9MrcRqCWzveNk+jS0+aV99v0s78ZIo4hsK AmshC7pG51Yex/oCrYz+eQL4iPKq X-Google-Smtp-Source: ABhQp+Q8VWwQ50nfRtS9Su0b5S1Hn3oXCkTTepd6ZUBz6R/VNR2zIjWfwX2+NeGJcrJtGUO/x6jR1g== X-Received: by 10.99.121.140 with SMTP id u134mr4067599pgc.16.1509002301262; Thu, 26 Oct 2017 00:18:21 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id s17sm6907529pgq.25.2017.10.26.00.18.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:20 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 4/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Inspiron 3472 Date: Thu, 26 Oct 2017 15:17:58 +0800 Message-Id: <1509002282-31921-5-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Inspiron 3472 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index b9bd8b4..88e97e8 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -120,6 +120,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3262"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Inspiron 3472", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3472"), + }, + }, {} }; From patchwork Thu Oct 26 07:17:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830477 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZnmDBSvZ"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyzD0XhQz9t3p; Thu, 26 Oct 2017 18:18:32 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQu-0004ZU-TN; Thu, 26 Oct 2017 07:18:28 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQs-0004XO-DX for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:26 +0000 Received: by mail-pf0-f196.google.com with SMTP id a8so1873742pfc.0 for ; Thu, 26 Oct 2017 00:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=aghwb+lNEpi3VjCpdy5KU9Z3BDOnHBVkmyDy5j23YxM=; b=ZnmDBSvZhA3hblNZ4a3xzfQlctEy5ZbdW7PHSp/HClADFau17p3324TXk0DhpKpJGJ ZC3Gihp5tGDegvSgV55uzOnJtuslBYCPx3+4QxdDfw5lSihwYEr/zchQC+dX0y/zfTwU llbXL6QLsJb5ORGNStpyOrKFLpk+lYwdKnlOaCkq+r9Q97bTKlrDnevdXNfmJJWV71me dIY8A82jnYdKYaoIr/l8Ucni93P8ZUJ+ybdp16r/MeztDmeeYrkj+b4pKGhd5jJHZPLS SRZxUZTg1ZbNPqk/46z/JIKc5KtdBpmwcGG7zm6zYL3WGI2stzpPO5aPU4HfWocdFn+4 delA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=aghwb+lNEpi3VjCpdy5KU9Z3BDOnHBVkmyDy5j23YxM=; b=cxsVZ1IpVuR2z3wUXy9MhaDrA9fZ0tCcnInoc53TErN0jZx7tNbQ9pQAUosJ7Mg8yB ETj8qnMsl4u2wiLVTL+u6M8bTH9UgWuA5a2yLyelh9PPf94OnFv6Yhq1ui4WDg3EjlHm JxB0YQmOuwc6UzL2TL6KbcE1+9p2cbhitsAtri0oscHqsREQ8PeCXoP9iY83gDMrfCq0 9YIFfCiim7DTWlPIRWtjRUpIBr2Im45/OqPu+uJUC4k8Ntauj3qJSApjx67lYT9F31Eu uhoqrUCbuhImO1mYdUUqsBbVWKlsV/2TmO1Rs+u67ZvLimBarDqF1+94HkOL4qAHApe0 BYAg== X-Gm-Message-State: AMCzsaXzInReBTiqqUFjHtqHszTF31Nv1T/yih6LaaT/QXKLmU01GP1X 6PeBNAzbACu7OwDoYIivGedVPZLH X-Google-Smtp-Source: ABhQp+TqFu30wKTJmkqJDH6W3yjar4TpxBf/lc0EbG3vTizXfSujHzmuplkUCJSFOFUz2CYW1aAxFg== X-Received: by 10.84.241.15 with SMTP id a15mr3688535pll.388.1509002304687; Thu, 26 Oct 2017 00:18:24 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id c185sm8463535pfb.112.2017.10.26.00.18.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:23 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 5/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Vostro 15-3572 Date: Thu, 26 Oct 2017 15:17:59 +0800 Message-Id: <1509002282-31921-6-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Vostro 15-3572 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 88e97e8..e434e35 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -128,6 +128,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3472"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Vostro 15-3572", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15-3572"), + }, + }, {} }; From patchwork Thu Oct 26 07:18:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830478 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j80AaQyy"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyzG4Ddrz9t3Z; Thu, 26 Oct 2017 18:18:34 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cQx-0004bd-CH; Thu, 26 Oct 2017 07:18:31 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQv-0004ZR-Nm for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:29 +0000 Received: by mail-pg0-f65.google.com with SMTP id s75so2010764pgs.0 for ; Thu, 26 Oct 2017 00:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=nAVo5Y5bJYyInaLB/opbrp9vJ59ko8RKt6x/ZXjqoAI=; b=j80AaQyy9Fcc7hDfbYwfeMrY5EYIdGo2mcCzcJS9musGTNI8iuI8hBygq5fHWNQ04U mpreO6omj/McHEMiUNzaHSiwZVOQgS4gYVEVBRi95jyIHzZizldusXhgudXj4YYQCuWg N0Uy8wXpMN3R1EXQ56EBJWOrmaLOgChgURiqyca4bncABBefOPq7l5PaRSWvSZB2EdI9 KtX76IAsUhAKyzDxJ2PMCLrpTyyzhM+Jh3w3YeXidDw0RFJVNH37Siu5naIOICDisyno qJ+GgZU0nOmiOnjRJI4JWjL3iChfCZ25/RjfZxnDiPZxn8WKrTQYTxKD9xliuj3UHpAJ hCIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=nAVo5Y5bJYyInaLB/opbrp9vJ59ko8RKt6x/ZXjqoAI=; b=sEC6OhteZvOXjrZ4Pdn/A8GEPpfpFWpfQ4547B5FbVaU7fDhMUbWZv5Onu3YL5Tow5 K7dTsp+oXxK1zd3eSYeaMOeKeZYTDzxOaJYpQ3+/xRRpuTzwxxcwaiPU/1HVaebcd6oa UdHEHbW1+wxt/WNiUcxH4MQQZu1rnaI/UuIO/PbolTCtePKCr+K23w3/PZYjJ6KSF/Gi n+VxUmuvCXrEA/JmTeKDBc8iO2X3l58lywB+tmfC0ehKHnEdsmcdNhleeusT4TOqFCLZ kyRQdPdUptku/Qy3CCVHn9iw+8rX0cwqJm2iouADunpzUUbKpr7bIRScSfksTM5C1BHC UjIg== X-Gm-Message-State: AMCzsaXpVAnvM0FGft7Ll0WEZbYq9OG66Bp9xeuVHUj72owidl2+zxHD XjpxO2jiPPyetfeHjv7ywM4U60aT X-Google-Smtp-Source: ABhQp+TiFCGkK8K66WXEdKuINrN/oUrEjpGfRuKwghxkwaV0W5UG/OGwEY+c1xNMvNVRNghoViqj8w== X-Received: by 10.98.32.12 with SMTP id g12mr4527946pfg.196.1509002307937; Thu, 26 Oct 2017 00:18:27 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id b22sm9223448pfj.123.2017.10.26.00.18.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:26 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 6/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Inspiron 14-3473 Date: Thu, 26 Oct 2017 15:18:00 +0800 Message-Id: <1509002282-31921-7-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Inspiron 14-3473 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index e434e35..1b15273 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -136,6 +136,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15-3572"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Inspiron 14-3473", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 14-3473"), + }, + }, {} }; From patchwork Thu Oct 26 07:18:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830479 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GPcdGBII"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyzK4TKmz9s06; Thu, 26 Oct 2017 18:18:37 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cR0-0004eA-HI; Thu, 26 Oct 2017 07:18:34 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cQy-0004cI-ST for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:33 +0000 Received: by mail-pf0-f194.google.com with SMTP id n14so1857790pfh.8 for ; Thu, 26 Oct 2017 00:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=5OB7n92rmeWg030SKOH3A6AyA77zqCcMilfDhBgiLuM=; b=GPcdGBII/lYX/z3Ehh9twzjNvK21wf1LsIDvhTxvnh88d66F/0ZflTRkd6lyXHMjTq hVyJAxJ7WHqHIYksBNc5FHryXBsQdhVT6O0riC70iiez6OzA1eEZQAoUCKOrXJeqYWSt PrRGBUuC65RalksQXw0jRDWqbgfn+YQ66/MI0TfPUpapczQRrAIQML7utYspWmtxRglP vaxV7uhSIJ/VQEZtZiVc47bMuklZCIfGCST+hLbR/4Y5BYePKqKt/KBlkMjVLnLzb//2 oIKtspv0hsiD41aNAzh9Gogmrh1uTAU4E4n1tGOqwG9dwvYyIDbevV+94bVb56xKOOyv 2A/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=5OB7n92rmeWg030SKOH3A6AyA77zqCcMilfDhBgiLuM=; b=lyd4LlPr8nBYzI/QaTvbpzTS2gAG/a4VxbXwM4IfbQ+W1gClzoBLn0ztB+6p11zdp0 uVrPPSSzLtULT0256a7ky0EP0KHxnOcvM4Jd0UYQkrI5oLe5GxanOPw5T8thJJKo0Q4W 5va4TKWtejRzKYpXOR9nKZSIbGw5yQ89Kfl0tFG5uowH4OqoqaX9oG9DnRNoVFfkIhJo LzGpluC1FGBR0w3IFJLvMk6sm5yZvD/Mwx4nF45c61OCow3YpTSXyIP7BJD84iUFu4ZH dodivYp19kiOxPidyqSKdeNkDDZJya+MKpVR28GEBSdSSzkixwIkkt1FRoD8d6hSffnO K3gA== X-Gm-Message-State: AMCzsaUjN/JhBSlm/tNnzLC6HtCQCwSfs+00OKg5sihEBcMoBMBdcvbB Wydr8bE22vNmzZ85GEv1A7v70V2r X-Google-Smtp-Source: ABhQp+S6qk3ym/N6zZNucZM/01uT/kJv8qfD2R5EJpMCcgKgORItcm/LRInHUUOjflZeEdEoDFFtqQ== X-Received: by 10.99.167.68 with SMTP id w4mr4056570pgo.390.1509002311059; Thu, 26 Oct 2017 00:18:31 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id k11sm8416922pfh.134.2017.10.26.00.18.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:29 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 7/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Inspiron 3576 Date: Thu, 26 Oct 2017 15:18:01 +0800 Message-Id: <1509002282-31921-8-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Inspiron 3576 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 1b15273..fbdda28 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -144,6 +144,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 14-3473"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Inspiron 3576", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3576"), + }, + }, {} }; From patchwork Thu Oct 26 07:18:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 830480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ncQLh4Mw"; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yMyzN6TX1z9ryk; Thu, 26 Oct 2017 18:18:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1e7cR3-0004gY-N8; Thu, 26 Oct 2017 07:18:37 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1e7cR2-0004ez-4Y for kernel-team@lists.ubuntu.com; Thu, 26 Oct 2017 07:18:36 +0000 Received: by mail-pf0-f195.google.com with SMTP id a8so1874005pfc.0 for ; Thu, 26 Oct 2017 00:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=HIr2w7ZeA3rQWhXEK5R6CYZJEEC9e1vHo3B4+/4eXag=; b=ncQLh4MwupgBv7KEt6wiufczdOSCEvNyd/p9Cx0Mjd8BGb62X4OSGabvPwBCAnVcrH 1iYbtQG5J8haTs2DhRV8L7D0AEyzxNoxtP0R4/Np/A9hCuP2ZRHOtqnWJmpjl8DPMQ1c sXyirzvi/6uMSGIBcaSiB5fTedfylVZinoMDDkreHEIS1Elb49sesIdi546CqaWt7ZeA XXRBORu0M3JqtlDXUVkktAxx/1HqLDj1F7jCqJvgCC6rXWPbpZqWlxKujy0jIZ4G8WhQ lfAqv46eVISFZ25qPfdKMWdRmXRvm9MXkQUi8KEQU/OnkCclj1op77tICtAb8P1m8UpA iuSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=HIr2w7ZeA3rQWhXEK5R6CYZJEEC9e1vHo3B4+/4eXag=; b=HVa+9+efq1f2IXdJmkBgnlgqoqZiXH2khuihTe2YnrJ8P5GFvaBgjcMYMkudQGpnJV paVzQoGnHWGr8UCeug0M1HoSReD9gDQToeokpWXii7uBaJsbS/WqX5SCtlaxiApVSc52 PMMcpTmnL7MYWIuHvKcWTmOAKxc8+IVdWLQGVyJItrkBZHzoIqia1/WX3YadwEFk45PA YUg5Yt+wHK7daAp8/rYGkdFyd6XMXMq4H+fWBZqoakSPUXMERtRVc716TWHxeIQw01O0 KvWTuxacfzp5YWgEYi1DxaGXjm/JSHyQo8+32BF7P52aCVwu38tbNUqr9PxEpCwB/JQF rvKQ== X-Gm-Message-State: AMCzsaUBbx9E5qmGdHncgo/6xspS9PklzVTaJ7VbxmX1nP1qxPRrPypx pTvhuOaM/sEEVgXRdDC2SE1AiQi3 X-Google-Smtp-Source: ABhQp+TKQf1gueHLIc1BrWxLXE8eRv0gcxQYTdLIl0d94IozoZtddyjboEDUIQ6urDoNoLSg9EIhAA== X-Received: by 10.99.105.71 with SMTP id e68mr4186859pgc.55.1509002314346; Thu, 26 Oct 2017 00:18:34 -0700 (PDT) Received: from localhost (220-135-118-142.HINET-IP.hinet.net. [220.135.118.142]) by smtp.gmail.com with ESMTPSA id f24sm8966696pfk.183.2017.10.26.00.18.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:18:33 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 8/8] UBUNTU: SAUCE: ath9k: set use_msi=1 on Dell Vostro 3578 Date: Thu, 26 Oct 2017 15:18:02 +0800 Message-Id: <1509002282-31921-9-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> References: <1509002282-31921-1-git-send-email-acelan.kao@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1727228 BIOS on Dell Inspiron Vostro 3578 blocks legacy interrupts (INTx), and only allows MSI for WLAN device. Signed-off-by: AceLan Kao --- drivers/net/wireless/ath/ath9k/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index fbdda28..4801b73 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -152,6 +152,14 @@ static const struct dmi_system_id ath9k_quirks[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3576"), }, }, + { + .callback = set_use_msi, + .ident = "Dell Vostro 3578", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3578"), + }, + }, {} };