[Bug 715930] Re: geninitrd fails on masked vendor:device entries.

Elan Ruusamäe 715930 at bugs.launchpad.net
Fri Feb 11 06:55:00 CET 2011


On 10/02/11 19:57, Paweł Sikora wrote:
> one more thing. instead of comparing against specific 0xffff mask
> there'd be a bit-and operation:
> 
> if ((lspci-device-id & device-mask-from-kernel-pcimap)==lspci-device-id)
> then module-matched.

propose some code to do bitwise hex string matching in limited base
tools (awk, sed, grep...)

awk doesn't do it natively:

$ awk '{print 1&2}'
awk: 1: unexpected character '&'


-- 
glen

-- 
You received this bug notification because you are subscribed to PLD
Linux.
https://bugs.launchpad.net/bugs/715930

Title:
  geninitrd fails on masked vendor:device entries.

Status in PLD Linux Distribution:
  New

Bug description:
  the new logic in /lib/geninitrd/mod-sata.sh is broken. it simply
  doesn't work for masked vendor's devices.

  e.g., for jmicorn sata/ide controlers we have masked 0xffff (all
  devices) entries:

  pata_jmicron         0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0
  jmicron              0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0

  in such situation the awk logic which uses equality operator won't work and return empty list of kernel modules.
  this is a serious bug.

  geninitrd-10000.31-0.1.noarch




More information about the pld-bugs mailing list