PCIの特徴は何ですか?

PCIの特徴は何ですか?

Linux カーネルの読み込み中に PCI の問題についてよく聞きましたが、PCI の問題を説明または定義した Web サイトはありませんでした。 PCIの特徴は何ですか?

ベストアンサー1

「特異性」は、予想される動作と一致しないと見なされるデバイス属性です。

これは例ですquirks.c:

/* The Mellanox Tavor device gives false positive parity errors
 * Mark this device with a broken_parity_status, to allow
 * PCI scanning code to "skip" this now blacklisted device.
 */
static void quirk_mellanox_tavor(struct pci_dev *dev)
{
        dev->broken_parity_status = 1;  /* This device gives false positives */
}

デバイスが偽エラーを報告するため、これは「異常な現象」です。デバイスが実行されているとき、クォークはカーネルの他の部分が異なる動作をするようにする特定のプロパティを設定します(おそらく偽のエラーを無視するか、既知の問題を解決することによって)。

しかし、Linuxカーネルのすべての欠点は本当ではありません。影響を受ける機能を単に無効にする代わりに、一部の人は次のように問題を解決しようとします。

/*
 * Some CS5536 BIOSes (for example, the Soekris NET5501 board w/ comBIOS
 * ver. 1.33  20070103) don't set the correct ISA PCI region header info.
 * BAR0 should be 8 bytes; instead, it may be set to something like 8k
 * (which conflicts w/ BAR1's memory range).
 */
static void quirk_cs5536_vsa(struct pci_dev *dev)
{
        if (pci_resource_len(dev, 0) != 8) {
                struct resource *res = &dev->resource[0];
                res->end = res->start + 8 - 1;
                dev_info(&dev->dev, "CS5536 ISA bridge bug detected "
                                "(incorrect header); workaround applied.\n");
        }
}

おすすめ記事