1. 23 4月, 2022 1 次提交
  2. 22 4月, 2022 1 次提交
    • Z
      ata: pata_marvell: Check the 'bmdma_addr' beforing reading · aafa9f95
      Zheyu Ma 提交于
      Before detecting the cable type on the dma bar, the driver should check
      whether the 'bmdma_addr' is zero, which means the adapter does not
      support DMA, otherwise we will get the following error:
      
      [    5.146634] Bad IO access at port 0x1 (return inb(port))
      [    5.147206] WARNING: CPU: 2 PID: 303 at lib/iomap.c:44 ioread8+0x4a/0x60
      [    5.150856] RIP: 0010:ioread8+0x4a/0x60
      [    5.160238] Call Trace:
      [    5.160470]  <TASK>
      [    5.160674]  marvell_cable_detect+0x6e/0xc0 [pata_marvell]
      [    5.161728]  ata_eh_recover+0x3520/0x6cc0
      [    5.168075]  ata_do_eh+0x49/0x3c0
      Signed-off-by: NZheyu Ma <zheyuma97@gmail.com>
      Signed-off-by: NDamien Le Moal <damien.lemoal@opensource.wdc.com>
      aafa9f95
  3. 21 4月, 2022 7 次提交
  4. 20 4月, 2022 15 次提交
  5. 19 4月, 2022 3 次提交
  6. 18 4月, 2022 2 次提交
  7. 17 4月, 2022 1 次提交
    • S
      bonding: do not discard lowest hash bit for non layer3+4 hashing · 49aefd13
      suresh kumar 提交于
      Commit b5f86218 was introduced to discard lowest hash bit for layer3+4 hashing
      but it also removes last bit from non layer3+4 hashing
      
      Below script shows layer2+3 hashing will result in same slave to be used with above commit.
      $ cat hash.py
      #/usr/bin/python3.6
      
      h_dests=[0xa0, 0xa1]
      h_source=0xe3
      hproto=0x8
      saddr=0x1e7aa8c0
      daddr=0x17aa8c0
      
      for h_dest in h_dests:
          hash = (h_dest ^ h_source ^ hproto ^ saddr ^ daddr)
          hash ^= hash >> 16
          hash ^= hash >> 8
          print(hash)
      
      print("with last bit removed")
      for h_dest in h_dests:
          hash = (h_dest ^ h_source ^ hproto ^ saddr ^ daddr)
          hash ^= hash >> 16
          hash ^= hash >> 8
          hash = hash >> 1
          print(hash)
      
      Output:
      $ python3.6 hash.py
      522133332
      522133333   <-------------- will result in both slaves being used
      
      with last bit removed
      261066666
      261066666   <-------------- only single slave used
      Signed-off-by: Nsuresh kumar <suresh2514@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      49aefd13
  8. 16 4月, 2022 10 次提交