1. 07 3月, 2019 2 次提交
  2. 26 2月, 2019 6 次提交
  3. 19 2月, 2019 9 次提交
  4. 17 1月, 2019 5 次提交
  5. 11 1月, 2019 1 次提交
  6. 30 11月, 2018 6 次提交
  7. 13 10月, 2018 1 次提交
  8. 06 10月, 2018 4 次提交
  9. 01 10月, 2018 6 次提交
    • L
      mt76: move set_{tx,rx}_path routines in mt76x02-lib module · 6034b2b0
      Lorenzo Bianconi 提交于
      Move mt76x02_phy_set_rxpath and mt76x02_phy_tx_dac routines in
      mt76x02_phy.c since they are shared between mt76x2 and mt76x0 drivers.
      Moreover move chainmask variable from mt76x2/mt76x0 to mt76_dev data
      structure
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      6034b2b0
    • L
      mt76: move queue initialization in mt76x02_mmio.c · b2eabd4c
      Lorenzo Bianconi 提交于
      Move mt76x02_dma_init, mt76x02_init_rx_queue and mt76x02_init_tx_queue
      routines in mt76x02-lib module in order to be reused by mt76x0 driver
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      b2eabd4c
    • L
      mt76: move mt76x02_set_irq_mask in mt76x02_mmio.c · 957068c2
      Lorenzo Bianconi 提交于
      Move mt76x02_set_irq_mask, mt76x02_irq_enable and mt76x02_irq_disable
      in mt76x02-lib module in order to be reused by mt76x0 driver.
      Moreover move irq_lock and irqmask in mt76_mmio data structure
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      957068c2
    • L
      mt76: usb: make rx page_frag_cache access atomic · 481bb043
      Lorenzo Bianconi 提交于
      Add rx_page_lock spinlock in order to make rx page fragment access
      atomic. This patch fixes the following crash that occasionally
      occurs during module loading/unloading
      
      BUG: unable to handle kernel paging request at ffff9f8322e19000
      PGD 27ba01067 P4D 27ba01067 PUD 27ddba063 PMD 263b35063 PTE 8000000262e19061
      Oops: 0003 [#1] SMP PTI
      CPU: 2 PID: 1766 Comm: systemd-udevd Not tainted 4.19.0-rc5+ #6
      Hardware name: ASUSTeK COMPUTER INC. ESC2000 G2/Z9PE-D8 WS, BIOS 0405 03/19/2012
      RIP: 0010:__memcpy+0x12/0x20
      RSP: 0018:ffffba13849b3ad8 EFLAGS: 00010246
      RAX: ffff9f8322e17004 RBX: 00000000000038f0 RCX: 000000000000031f
      RDX: 0000000000000000 RSI: ffffba13844cf058 RDI: ffff9f8322e18ffc
      RBP: 0000000000010c6c R08: 0000000000000000 R09: 0000607ec0000000
      R10: 0000000000000003 R11: 0000000000003e2e R12: ffff9f8324cd9540
      R13: 0000000000000000 R14: ffffba13849b3b30 R15: ffff9f8322e17000
      FS:  00007fadec85b880(0000) GS:ffff9f833fa80000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: ffff9f8322e19000 CR3: 0000000263428001 CR4: 00000000000606e0
      Call Trace:
       mt76x02u_mcu_fw_send_data+0x16c/0x270 [mt76x02_usb]
       mt76x0u_probe+0x35a/0x598 [mt76x0u]
       usb_probe_interface+0x113/0x310
       really_probe+0x1c8/0x400
       driver_probe_device+0x5c/0x130
       __driver_attach+0xec/0x110
       bus_for_each_dev+0x50/0x90
       bus_add_driver+0x1c0/0x280
       driver_register+0x5b/0xe0
       usb_register_driver+0x7c/0x140
       do_one_initcall+0x44/0x19b
       do_init_module+0x5a/0x210
       load_module+0x175c/0x1bc0
       __do_sys_finit_module+0x97/0xc0
       do_syscall_64+0x3f/0xf0
       entry_SYSCALL_64_after_hwframe+0x44/0xa9
      RIP: 0033:0x7fadeb6f1809
      RSP: 002b:00007ffe548f9f38 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
      RAX: ffffffffffffffda RBX: 00007fadebdf0d89 RCX: 00007fadeb6f1809
      RDX: 0000000000000000 RSI: 00007fadebdf0d89 RDI: 0000000000000006
      RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
      R10: 0000000000000006 R11: 0000000000000246 R12: 0000560b9ef58ab0
      R13: 0000560b9ef29800 R14: 0000560b9ef59040 R15: 0000000000020000
      
      Fixes: c12128ce ("mt76: use a per rx queue page fragment cache")
      Reported-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Tested-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      481bb043
    • L
      mt76: move mt76_rate_power in mt76_dev · b6862eff
      Lorenzo Bianconi 提交于
      Move mt76_rate_power data structure from mt76x2_dev to mt76_dev in order
      to share it with mt76x0 driver. Moreover move txpower_conf and
      txpower_cur in mt76_dev
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      b6862eff
    • F
      mt76: add stbc entries to mt76_rate_power · 7c4b446c
      Felix Fietkau 提交于
      Add stbc tx power eeprom parsing support for mt76x2 driver.
      When writing power entries, make a distinction between rates that are
      read from the same EEPROM value, but have separate register entries.
      
      No effect on runtime behavior, but preparation for unification with mt76x0
      and for placing restrictions on individual rate power limits
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      7c4b446c