Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1029968: bttv/v4l: WARNING: CPU: 6 PID: 6164 at mm/vmalloc.c:487 __vmap_pages_range_noflush+0x3e0/0x4d0

15 views
Skip to first unread message

David Alan Gilbert

unread,
Jan 29, 2023, 12:40:04 PM1/29/23
to
Package: src:linux
Version: 6.1.4-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?

This was triggered when trying to capture video via a bt878 card using the
https://github.com/ali1234/vhs-teletext script. Note 'xawtv' is working
fine, so the card is generally happy.

* What exactly did you do (or not do) that was effective (or
ineffective)?

I ran 'teletext record -d /dev/vbi0 > capture.vbi' from the above package
that triggers a read from vbi0; an strace shows:
[pid 6466] read(3, 0x27feb20, 65536) = -1 ENOMEM (Cannot allocate memory)

and the WARN_ON in the dmesg

* What was the outcome of this action?

a WARNING in the dmesg, see below; and the python script backtraced
with apparently an -ENOMEM; but there's plenty of RAM:
dg@major:~/vhs-teletext$ free -m
total used free shared buff/cache available
Mem: 7937 789 2963 2 4484 7147
Swap: 974 0 974

* What outcome did you expect instead?
Happy gathered video.

*** End of the template - remove these template lines ***


-- Package-specific info:
** Version:
Linux version 6.1.0-1-amd64 (debian...@lists.debian.org) (gcc-12 (Debian 12.2.0-13) 12.2.0, GNU ld (GNU Binutils for Debian) 2.39.90.20221231) #1 SMP PREEMPT_DYNAMIC Debian 6.1.4-1 (2023-01-07)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-6.1.0-1-amd64 root=UUID=bce3fb05-edb4-4c73-b71d-86707031ffd1 ro intremap=nosid quiet

** Tainted: WI (2560)
* kernel issued warning
* workaround for bug in platform firmware applied

** Kernel log:
[ 5398.299139] kauditd_printk_skb: 15 callbacks suppressed
[ 5398.299142] audit: type=1400 audit(1675007035.570:27): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libreoffice-oosplash" pid=4269 comm="apparmor_parser"
[ 5398.365964] audit: type=1400 audit(1675007035.638:28): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libreoffice-senddoc" pid=4272 comm="apparmor_parser"
[ 5403.855538] audit: type=1400 audit(1675007041.126:29): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libreoffice-soffice" pid=4275 comm="apparmor_parser"
[ 5403.879158] audit: type=1400 audit(1675007041.150:30): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libreoffice-soffice//gpg" pid=4275 comm="apparmor_parser"
[ 5403.927433] audit: type=1400 audit(1675007041.198:31): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libreoffice-xpdfimport" pid=4278 comm="apparmor_parser"
[ 7268.952515] ------------[ cut here ]------------
[ 7268.952518] WARNING: CPU: 6 PID: 6164 at mm/vmalloc.c:487 __vmap_pages_range_noflush+0x3e0/0x4d0
[ 7268.952529] Modules linked in: rfkill qrtr binfmt_misc tuner_simple tuner_types tuner tda7432 tvaudio intel_powerclamp coretemp msp3400 kvm_intel bttv tveeprom kvm snd_hda_codec_via videobuf_dma_sg snd_hda_codec_generic videobuf_core irqbypass tea575x snd_hda_codec_hdmi ledtrig_audio sha512_ssse3 sha512_generic snd_hda_intel videodev snd_intel_dspcfg snd_intel_sdw_acpi intel_cstate iTCO_wdt snd_hda_codec snd_bt87x intel_uncore mc snd_hda_core serio_raw intel_pmc_bxt snd_hwdep iTCO_vendor_support pcspkr i7core_edac watchdog snd_pcm snd_timer joydev snd soundcore acpi_cpufreq evdev sg firewire_sbp2 msr parport_pc ppdev lp parport fuse configfs efi_pstore ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic sd_mod t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_generic crct10dif_common hid_generic usbhid hid nouveau mxm_wmi video wmi i2c_algo_bit drm_display_helper cec rc_core ahci ata_generic drm_ttm_helper libahci pata_via ttm libata drm_kms_helper r8169 ehci_pci realtek
[ 7268.952592] firewire_ohci psmouse ehci_hcd scsi_mod drm mdio_devres crc32c_intel usbcore libphy firewire_core i2c_i801 crc_itu_t i2c_smbus lpc_ich scsi_common usb_common button
[ 7268.952603] CPU: 6 PID: 6164 Comm: teletext Tainted: G I 6.1.0-1-amd64 #1 Debian 6.1.4-1
[ 7268.952605] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./P55M Pro, BIOS P1.50 09/10/2009
[ 7268.952607] RIP: 0010:__vmap_pages_range_noflush+0x3e0/0x4d0
[ 7268.952610] Code: 48 48 83 c6 08 4d 39 d6 0f 85 39 fd ff ff 48 83 c4 58 31 c0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 0f 0b e9 5f fc ff ff <0f> 0b b8 f4 ff ff ff e9 bd fc ff ff 48 8b 4c 24 18 48 31 cf 48 21
[ 7268.952611] RSP: 0018:ffffac9307073b50 EFLAGS: 00010246
[ 7268.952613] RAX: 0000000000023b68 RBX: ffff9ab8cbb7f480 RCX: ffffeeafad0aae40
[ 7268.952614] RDX: 000000011db42ab9 RSI: 0000000000000000 RDI: 000000011db42ab9
[ 7268.952615] RBP: 0000000000000000 R08: 0000000000000476 R09: ffffac93072a0000
[ 7268.952617] R10: ffffac93072a0000 R11: ffffac9307290000 R12: 8000000000000063
[ 7268.952618] R13: ffffac9307290000 R14: ffffac93072a0000 R15: ffff9ab8c387c600
[ 7268.952619] FS: 00007faabe9ad040(0000) GS:ffff9ab9e7d80000(0000) knlGS:0000000000000000
[ 7268.952621] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7268.952622] CR2: 00007faa79495030 CR3: 000000011954e000 CR4: 00000000000006e0
[ 7268.952624] Call Trace:
[ 7268.952626] <TASK>
[ 7268.952630] vmap+0xa3/0x100
[ 7268.952634] __videobuf_iolock+0x5ae/0x66c [videobuf_dma_sg]
[ 7268.952641] vbi_buffer_prepare+0x1ae/0x2b0 [bttv]
[ 7268.952653] __videobuf_read_start+0xb9/0x1d0 [videobuf_core]
[ 7268.952660] videobuf_read_stream+0x2d3/0x330 [videobuf_core]
[ 7268.952666] bttv_read+0xc4/0x210 [bttv]
[ 7268.952674] v4l2_read+0x6f/0x80 [videodev]
[ 7268.952697] vfs_read+0xa5/0x310
[ 7268.952700] ? __fget_light+0x9d/0x100
[ 7268.952704] ksys_read+0x6b/0xf0
[ 7268.952706] do_syscall_64+0x5b/0xc0
[ 7268.952710] ? syscall_exit_to_user_mode+0x17/0x40
[ 7268.952713] ? do_syscall_64+0x67/0xc0
[ 7268.952715] ? handle_mm_fault+0xdb/0x2d0
[ 7268.952718] ? do_user_addr_fault+0x1ef/0x690
[ 7268.952722] ? fpregs_assert_state_consistent+0x22/0x50
[ 7268.952725] ? exit_to_user_mode_prepare+0x3c/0x1c0
[ 7268.952729] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 7268.952735] RIP: 0033:0x7faabeaa612c
[ 7268.952737] Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 d5 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 7f d5 f8 ff 48
[ 7268.952738] RSP: 002b:00007ffcd79856c0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 7268.952741] RAX: ffffffffffffffda RBX: 0000000000a85258 RCX: 00007faabeaa612c
[ 7268.952742] RDX: 0000000000010000 RSI: 0000000003a56730 RDI: 0000000000000003
[ 7268.952743] RBP: 00007faabe9acfc0 R08: 0000000000000000 R09: 0000000000000000
[ 7268.952744] R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000010000
[ 7268.952745] R13: 0000000003a56730 R14: 0000000000000003 R15: 0000000000000000
[ 7268.952747] </TASK>
[ 7268.952748] ---[ end trace 0000000000000000 ]---
[ 9159.682622] ------------[ cut here ]------------
[ 9159.682626] WARNING: CPU: 2 PID: 6466 at mm/vmalloc.c:487 __vmap_pages_range_noflush+0x3e0/0x4d0
[ 9159.682635] Modules linked in: rfkill qrtr binfmt_misc tuner_simple tuner_types tuner tda7432 tvaudio intel_powerclamp coretemp msp3400 kvm_intel bttv tveeprom kvm snd_hda_codec_via videobuf_dma_sg snd_hda_codec_generic videobuf_core irqbypass tea575x snd_hda_codec_hdmi ledtrig_audio sha512_ssse3 sha512_generic snd_hda_intel videodev snd_intel_dspcfg snd_intel_sdw_acpi intel_cstate iTCO_wdt snd_hda_codec snd_bt87x intel_uncore mc snd_hda_core serio_raw intel_pmc_bxt snd_hwdep iTCO_vendor_support pcspkr i7core_edac watchdog snd_pcm snd_timer joydev snd soundcore acpi_cpufreq evdev sg firewire_sbp2 msr parport_pc ppdev lp parport fuse configfs efi_pstore ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic sd_mod t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_generic crct10dif_common hid_generic usbhid hid nouveau mxm_wmi video wmi i2c_algo_bit drm_display_helper cec rc_core ahci ata_generic drm_ttm_helper libahci pata_via ttm libata drm_kms_helper r8169 ehci_pci realtek
[ 9159.682713] firewire_ohci psmouse ehci_hcd scsi_mod drm mdio_devres crc32c_intel usbcore libphy firewire_core i2c_i801 crc_itu_t i2c_smbus lpc_ich scsi_common usb_common button
[ 9159.682727] CPU: 2 PID: 6466 Comm: teletext Tainted: G W I 6.1.0-1-amd64 #1 Debian 6.1.4-1
[ 9159.682731] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./P55M Pro, BIOS P1.50 09/10/2009
[ 9159.682733] RIP: 0010:__vmap_pages_range_noflush+0x3e0/0x4d0
[ 9159.682737] Code: 48 48 83 c6 08 4d 39 d6 0f 85 39 fd ff ff 48 83 c4 58 31 c0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 0f 0b e9 5f fc ff ff <0f> 0b b8 f4 ff ff ff e9 bd fc ff ff 48 8b 4c 24 18 48 31 cf 48 21
[ 9159.682739] RSP: 0018:ffffac93078f7b68 EFLAGS: 00010246
[ 9159.682742] RAX: 0000000000023b68 RBX: ffff9ab9961ab980 RCX: ffffeeafad0b3c40
[ 9159.682743] RDX: 000000011db42cf1 RSI: 0000000000000000 RDI: 000000011db42cf1
[ 9159.682745] RBP: 0000000000000000 R08: 0000000000000476 R09: ffffac9307940000
[ 9159.682747] R10: ffffac9307940000 R11: ffffac9307930000 R12: 8000000000000063
[ 9159.682748] R13: ffffac9307930000 R14: ffffac9307940000 R15: ffff9ab8d1d31b00
[ 9159.682750] FS: 00007fbba22cd040(0000) GS:ffff9ab9e7c80000(0000) knlGS:0000000000000000
[ 9159.682753] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9159.682755] CR2: 00007fbb5cd6f000 CR3: 00000001ce86e000 CR4: 00000000000006e0
[ 9159.682757] Call Trace:
[ 9159.682760] <TASK>
[ 9159.682764] vmap+0xa3/0x100
[ 9159.682770] __videobuf_iolock+0x5ae/0x66c [videobuf_dma_sg]
[ 9159.682779] vbi_buffer_prepare+0x1ae/0x2b0 [bttv]
[ 9159.682795] __videobuf_read_start+0xb9/0x1d0 [videobuf_core]
[ 9159.682804] videobuf_read_stream+0x2d3/0x330 [videobuf_core]
[ 9159.682812] bttv_read+0xc4/0x210 [bttv]
[ 9159.682824] v4l2_read+0x6f/0x80 [videodev]
[ 9159.682848] vfs_read+0xa5/0x310
[ 9159.682851] ? ptrace_do_notify+0xa6/0xd0
[ 9159.682856] ? __fget_light+0x9d/0x100
[ 9159.682861] ksys_read+0x6b/0xf0
[ 9159.682864] do_syscall_64+0x5b/0xc0
[ 9159.682868] ? do_syscall_64+0x67/0xc0
[ 9159.682871] ? handle_mm_fault+0xdb/0x2d0
[ 9159.682875] ? do_user_addr_fault+0x1ef/0x690
[ 9159.682879] ? fpregs_assert_state_consistent+0x22/0x50
[ 9159.682884] ? exit_to_user_mode_prepare+0x3c/0x1c0
[ 9159.682888] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 9159.682892] RIP: 0033:0x7fbba23c612c
[ 9159.682895] Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 d5 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 7f d5 f8 ff 48
[ 9159.682897] RSP: 002b:00007ffdcd938ec0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 9159.682900] RAX: ffffffffffffffda RBX: 0000000000a85258 RCX: 00007fbba23c612c
[ 9159.682902] RDX: 0000000000010000 RSI: 00000000027feb20 RDI: 0000000000000003
[ 9159.682904] RBP: 00007fbba22ccfc0 R08: 0000000000000000 R09: 0000000000000000
[ 9159.682905] R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000010000
[ 9159.682907] R13: 00000000027feb20 R14: 0000000000000003 R15: 0000000000000000
[ 9159.682910] </TASK>
[ 9159.682911] ---[ end trace 0000000000000000 ]---

** Model information
sys_vendor: To Be Filled By O.E.M.
product_name: To Be Filled By O.E.M.
product_version: To Be Filled By O.E.M.
chassis_vendor: To Be Filled By O.E.M.
chassis_version: To Be Filled By O.E.M.
bios_vendor: American Megatrends Inc.
bios_version: P1.50
board_vendor: ASRock
board_name: P55M Pro
board_version:

** Loaded modules:
rfkill
qrtr
binfmt_misc
tuner_simple
tuner_types
tuner
tda7432
tvaudio
intel_powerclamp
coretemp
msp3400
kvm_intel
bttv
tveeprom
kvm
snd_hda_codec_via
videobuf_dma_sg
snd_hda_codec_generic
videobuf_core
irqbypass
tea575x
snd_hda_codec_hdmi
ledtrig_audio
sha512_ssse3
sha512_generic
snd_hda_intel
videodev
snd_intel_dspcfg
snd_intel_sdw_acpi
intel_cstate
iTCO_wdt
snd_hda_codec
snd_bt87x
intel_uncore
mc
snd_hda_core
serio_raw
intel_pmc_bxt
snd_hwdep
iTCO_vendor_support
pcspkr
i7core_edac
watchdog
snd_pcm
snd_timer
joydev
snd
soundcore
acpi_cpufreq
evdev
sg
firewire_sbp2
msr
parport_pc
ppdev
lp
parport
fuse
configfs
efi_pstore
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
crc32c_generic
sd_mod
t10_pi
crc64_rocksoft
crc64
crc_t10dif
crct10dif_generic
crct10dif_common
hid_generic
usbhid
hid
nouveau
mxm_wmi
video
wmi
i2c_algo_bit
drm_display_helper
cec
rc_core
ahci
ata_generic
drm_ttm_helper
libahci
pata_via
ttm
libata
drm_kms_helper
r8169
ehci_pci
realtek
firewire_ohci
psmouse
ehci_hcd
scsi_mod
drm
mdio_devres
crc32c_intel
usbcore
libphy
firewire_core
i2c_i801
crc_itu_t
i2c_smbus
lpc_ich
scsi_common
usb_common
button

** Network interface configuration:
*** /etc/network/interfaces:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:25:22:03:d1:c2 brd ff:ff:ff:ff:ff:ff
inet 192.168.66.120/25 brd 192.168.66.127 scope global dynamic noprefixroute enp4s0
valid_lft 537sec preferred_lft 537sec
inet6 fe80::225:22ff:fe03:d1c2/64 scope link noprefixroute
valid_lft forever preferred_lft forever

*** Device statistics:
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 19461882630 535192 0 0 0 0 0 0 19461882630 535192 0 0 0 0 0 0
enp4s0: 594578764 2395143 0 0 0 0 0 19 20425471875 14466331 0 0 0 0 0 0


** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DMI [8086:d131] (rev 11)
Subsystem: ASRock Incorporation Core Processor DMI [1849:d131]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 1
Capabilities: <access denied>

00:03.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express Root Port 1 [8086:d138] (rev 11) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation Core Processor PCI Express Root Port 1 [1849:d138]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 26
IOMMU group: 2
Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
I/O behind bridge: e000-efff [size=4K] [16-bit]
Memory behind bridge: fa000000-fbffffff [size=32M] [32-bit]
Prefetchable memory behind bridge: d6000000-dfffffff [size=160M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA+ VGA16+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:08.0 System peripheral [0880]: Intel Corporation Core Processor System Management Registers [8086:d155] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 3
Capabilities: <access denied>

00:08.1 System peripheral [0880]: Intel Corporation Core Processor Semaphore and Scratchpad Registers [8086:d156] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 4
Capabilities: <access denied>

00:08.2 System peripheral [0880]: Intel Corporation Core Processor System Control and Status Registers [8086:d157] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 5
Capabilities: <access denied>

00:08.3 System peripheral [0880]: Intel Corporation Core Processor Miscellaneous Registers [8086:d158] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 6

00:10.0 System peripheral [0880]: Intel Corporation Core Processor QPI Link [8086:d150] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 7

00:10.1 System peripheral [0880]: Intel Corporation Core Processor QPI Routing and Protocol Registers [8086:d151] (rev 11)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
IOMMU group: 7

00:1a.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 05) (prog-if 20 [EHCI])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [1849:3b3c]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
IOMMU group: 8
Region 0: Memory at f9df8000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci

00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset High Definition Audio [1849:0397]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 30
IOMMU group: 0
Region 0: Memory at f9df4000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 05) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [1849:3b42]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 17
IOMMU group: 9
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
I/O behind bridge: 1000-1fff [size=4K] [16-bit]
Memory behind bridge: d0000000-d01fffff [size=2M] [32-bit]
Prefetchable memory behind bridge: d5f00000-d5ffffff [size=1M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 05) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [1849:3b44]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin B routed to IRQ 16
IOMMU group: 10
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: c000-cfff [size=4K] [16-bit]
Memory behind bridge: f9e00000-f9efffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 05) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [1849:3b46]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin C routed to IRQ 18
IOMMU group: 11
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: d000-dfff [size=4K] [16-bit]
Memory behind bridge: f9f00000-f9ffffff [size=1M] [32-bit]
Prefetchable memory behind bridge: d5d00000-d5dfffff [size=1M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [8086:3b48] (rev 05) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [1849:3b48]
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin D routed to IRQ 19
IOMMU group: 12
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: [disabled] [16-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: d5c00000-d5cfffff [size=1M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.4 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [8086:3b4a] (rev 05) (prog-if 00 [Normal decode])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [1849:3b4a]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 17
IOMMU group: 13
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 2000-2fff [size=4K] [16-bit]
Memory behind bridge: d0200000-d03fffff [size=2M] [32-bit]
Prefetchable memory behind bridge: d5e00000-d5efffff [size=1M] [32-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 05) (prog-if 20 [EHCI])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [1849:3b34]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
IOMMU group: 14
Region 0: Memory at f9dfa000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a5) (prog-if 01 [Subtractive decode])
Subsystem: ASRock Incorporation 82801 PCI Bridge [1849:244e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 15
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: [disabled] [16-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: d5b00000-d5bfffff [size=1M] [32-bit]
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation P55 Chipset LPC Interface Controller [8086:3b02] (rev 05)
Subsystem: ASRock Incorporation P55 Chipset LPC Interface Controller [1849:3b02]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 16
Capabilities: <access denied>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller [8086:3b22] (rev 05) (prog-if 01 [AHCI 1.0])
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller [1849:3b20]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 28
IOMMU group: 16
Region 0: I/O ports at b880 [size=8]
Region 1: I/O ports at b800 [size=4]
Region 2: I/O ports at b480 [size=8]
Region 3: I/O ports at b400 [size=4]
Region 4: I/O ports at b080 [size=32]
Region 5: Memory at f9dfc000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 05)
Subsystem: ASRock Incorporation 5 Series/3400 Series Chipset SMBus Controller [1849:3b30]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 18
IOMMU group: 16
Region 0: Memory at f9dffc00 (64-bit, non-prefetchable) [size=256]
Region 4: I/O ports at 0400 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

01:00.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV Series [0070:13eb]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 21
IOMMU group: 15
Region 0: Memory at d5bfe000 (32-bit, prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: bttv
Kernel modules: bttv

01:00.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV Series [0070:13eb]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 21
IOMMU group: 15
Region 0: Memory at d5bff000 (32-bit, prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: snd_bt87x
Kernel modules: snd_bt87x

02:00.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6315 Series Firewire Controller [1106:3403] (prog-if 10 [OHCI])
Subsystem: ASRock Incorporation VT6315 Series Firewire Controller [1849:3403]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 17
IOMMU group: 18
Region 0: Memory at f9eef800 (64-bit, non-prefetchable) [size=2K]
Region 2: I/O ports at c000 [size=256]
Capabilities: <access denied>
Kernel driver in use: firewire_ohci
Kernel modules: firewire_ohci

02:00.1 IDE interface [0101]: VIA Technologies, Inc. VT6415 PATA IDE Host Controller [1106:0415] (rev a0) (prog-if 85 [PCI native mode-only controller, supports bus mastering])
Subsystem: ASRock Incorporation VT6415 PATA IDE Host Controller [1849:0415]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 17
IOMMU group: 18
Region 0: I/O ports at cc00 [size=8]
Region 1: I/O ports at c880 [size=4]
Region 2: I/O ports at c800 [size=8]
Region 3: I/O ports at c480 [size=4]
Region 4: I/O ports at c400 [size=16]
Expansion ROM at f9ef0000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: pata_via
Kernel modules: pata_via, ata_generic

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 03)
Subsystem: ASRock Incorporation Motherboard (one of many) [1849:8168]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 18
IOMMU group: 19
Region 0: I/O ports at d800 [size=256]
Region 2: Memory at d5dff000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at d5df8000 (64-bit, prefetchable) [size=16K]
Expansion ROM at f9fe0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

07:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] GK208B [GeForce GT 710] [1462:8c93]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 29
IOMMU group: 17
Region 0: Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at d8000000 (64-bit, prefetchable) [size=128M]
Region 3: Memory at d6000000 (64-bit, prefetchable) [size=32M]
Region 5: I/O ports at ec00 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nouveau

07:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] GK208 HDMI/DP Audio Controller [1462:8c93]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin B routed to IRQ 17
IOMMU group: 17
Region 0: Memory at fbffc000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

ff:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers [8086:2c51] (rev 04)
Subsystem: ASRock Incorporation Core Processor QuickPath Architecture Generic Non-Core Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 20

ff:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2c81] (rev 04)
Subsystem: ASRock Incorporation Core Processor QuickPath Architecture System Address Decoder [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 20

ff:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2c90] (rev 04)
Subsystem: ASRock Incorporation Core Processor QPI Link 0 [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 21
Kernel driver in use: i7core_edac
Kernel modules: i7core_edac

ff:02.1 Host bridge [0600]: Intel Corporation Core Processor QPI Physical 0 [8086:2c91] (rev 04)
Subsystem: ASRock Incorporation Core Processor QPI Physical 0 [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 21

ff:03.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller [8086:2c98] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 22

ff:03.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder [8086:2c99] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Target Address Decoder [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 22

ff:03.4 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Test Registers [8086:2c9c] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Test Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 22

ff:04.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers [8086:2ca0] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 0 Control Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 23

ff:04.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers [8086:2ca1] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 0 Address Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 23

ff:04.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers [8086:2ca2] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 0 Rank Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 23

ff:04.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers [8086:2ca3] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 23

ff:05.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers [8086:2ca8] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 1 Control Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 24

ff:05.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers [8086:2ca9] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 1 Address Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 24

ff:05.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers [8086:2caa] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 1 Rank Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 24

ff:05.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers [8086:2cab] (rev 04)
Subsystem: ASRock Incorporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers [1849:2c51]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
IOMMU group: 24


** USB devices:
Bus 002 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-6.1.0-1-amd64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.142
ii kmod 30+20221128-1
ii linux-base 4.9

Versions of packages linux-image-6.1.0-1-amd64 recommends:
ii apparmor 3.0.8-2
ii firmware-linux-free 20200122-1

Versions of packages linux-image-6.1.0-1-amd64 suggests:
pn debian-kernel-handbook <none>
ii grub-pc 2.06-7
pn linux-doc-6.1 <none>

Versions of packages linux-image-6.1.0-1-amd64 is related to:
pn firmware-amd-graphics <none>
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
pn firmware-cavium <none>
pn firmware-intel-sound <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi <none>
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
pn firmware-misc-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-realtek <none>
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>

-- no debconf information

Dr. David Alan Gilbert

unread,
Jan 29, 2023, 2:10:04 PM1/29/23
to
WORKS https://snapshot.debian.org/archive/debian/20220601T031637Z/pool/main/l/linux-signed-amd64/linux-image-5.17.0-1-amd64_5.17.3-1_amd64.deb
5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17.3-1


So I think it's time to move upstream and bisect between 5.17 and 5.18

Dave

--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/

Dr. David Alan Gilbert

unread,
Jan 29, 2023, 2:10:05 PM1/29/23
to
Note an easier way to trigger the bug is cat /dev/vbi0 > /dev/null

WORKS https://snapshot.debian.org/archive/debian/20220101T024315Z/pool/main/l/linux-signed-amd64/linux-image-5.10.0-9-amd64_5.10.70-1_amd64.deb
linux-image-5.10.0-9-amd64_5.10.70-1_amd64.deb - kexecing in works

WORKS https://snapshot.debian.org/archive/debian/20220101T024315Z/pool/main/l/linux-signed-amd64/linux-image-5.15.0-2-amd64_5.15.5-2_amd64.deb
5.15.5-2

FAILS https://snapshot.debian.org/archive/debian/20220701T034227Z/pool/main/l/linux-signed-amd64/linux-image-amd64_5.18.5-1_amd64.deb
[ 98.154835] BUG: unable to handle page fault for address: ffffbc2480f40000
[ 98.154848] #PF: supervisor write access in kernel mode
[ 98.154853] #PF: error_code(0x000b) - reserved bit violation

That 5.18 failure is a bit different, but the backtrace is similar;
somewhere between 5.18 it's changed from a BUG to a WARN but
back in 5.15 it just worked.

Dr. David Alan Gilbert

unread,
Jan 29, 2023, 7:40:04 PM1/29/23
to
I built upstream kernels 5.18.0 and 6.1.0 and both of them work for me.
Which makes life much more painful to find.

Dr. David Alan Gilbert

unread,
Jan 30, 2023, 4:40:04 PM1/30/23
to
This is IOMMU related.

Upstream 6.1 and 5.18 *do* exhibit the bug, but only with intel_iommu=on
where as Debian seems to default it to on.

Dr. David Alan Gilbert

unread,
Jan 30, 2023, 5:20:05 PM1/30/23
to
Upstream 5.17 works
Upstream 5.18 fails

(with intel_iommu=on)

Let the bisect begin.

Dr. David Alan Gilbert

unread,
Jan 31, 2023, 9:00:04 PM1/31/23
to
bisected:
GOOD [37fcacb50be7071d146144a6c5c5bf0194b9a1cf] phy: PHY_FSL_LYNX_28G should depend on ARCH_LAYERSCAPE
BAD [f5ff79fddf0efecca538046b5cc20fb3ded2ec4f] dma-mapping: remove CONFIG_DMA_REMAP
GOOD [e62c17f0455a74b182ce6373e2777817256afaa1] MAINTAINERS: update maintainer list of DMA MAPPING BENCHMARK
GOOD [0fb3436b4b36cf69f4544385aa2bb8c5a4913509] sparc: Remove usage of the deprecated "pci-dma-compat.h" API
GOOD [fba09099c6e506608e05e08ac717bf34501f821b] media: v4l2-pci-skeleton: Remove usage of the deprecated "pci-dma-compat.h" API

dg@major:~/kernel/kernel-clone$ git bisect good
f5ff79fddf0efecca538046b5cc20fb3ded2ec4f is the first bad commit
commit f5ff79fddf0efecca538046b5cc20fb3ded2ec4f
Author: Christoph Hellwig <h...@lst.de>
Date: Sat Feb 26 16:40:21 2022 +0100

dma-mapping: remove CONFIG_DMA_REMAP

That sounds like a believable cause given that it's IOMMU related
and device related.

Dr. David Alan Gilbert

unread,
Jan 31, 2023, 10:00:04 PM1/31/23
to
Note that the oops at this bisect point is messier than on the newer
kernels; the newer kernels hit a WARN in __vmap_pages_range_noflush, where
as at this point it slams into a BUG, but the rest of the backtrace is similar;

[ 78.988024] BUG: unable to handle page fault for address: ffffbd7fc1100000
[ 78.988033] #PF: supervisor write access in kernel mode
[ 78.988036] #PF: error_code(0x000b) - reserved bit violation
[ 78.988038] PGD 100000067 P4D 100000067 PUD 1001a6067 PMD 22b791067 PTE 8000270800cb9063
[ 78.988046] Oops: 000b [#1] PREEMPT SMP PTI
[ 78.988050] CPU: 7 PID: 879 Comm: cat Tainted: G I 5.17.0-rc1dg+ #20
[ 78.988054] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./P55M Pro, BIOS P1.50 09/10/2009
[ 78.988056] RIP: 0010:__memset+0x24/0x30
[ 78.988063] Code: cc cc cc cc cc cc 0f 1f 44 00 00 49 89 f9 48 89 d1 83 e2 07 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 <f3> 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3
[ 78.988067] RSP: 0018:ffffbd7fc0cc7d50 EFLAGS: 00010206
[ 78.988071] RAX: 0000000000000000 RBX: ffff9679eb788a88 RCX: 0000000000002000
[ 78.988073] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffbd7fc1100000
[ 78.988076] RBP: 0000000080000000 R08: 0000000000000000 R09: ffffbd7fc1100000
[ 78.988079] R10: 0000000000010000 R11: ffffbd7fc1100000 R12: 0000000000000010
[ 78.988081] R13: 0000000000000010 R14: ffff9679ec8e4130 R15: 0000000000000010
[ 78.988084] FS: 00007f91fb65a740(0000) GS:ffff9679efdc0000(0000) knlGS:0000000000000000
[ 78.988087] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 78.988090] CR2: ffffbd7fc1100000 CR3: 000000022ce02000 CR4: 00000000000006e0
[ 78.988093] Call Trace:
[ 78.988096] <TASK>
[ 78.988100] __videobuf_iolock+0x5cd/0x659 [videobuf_dma_sg]
[ 78.988110] vbi_buffer_prepare+0x1aa/0x2b0 [bttv]
[ 78.988125] __videobuf_read_start+0xb9/0x1d0 [videobuf_core]
[ 78.988133] videobuf_read_stream+0x2cb/0x330 [videobuf_core]
[ 78.988140] bttv_read+0xc5/0x1d0 [bttv]
[ 78.988151] v4l2_read+0x6b/0x80 [videodev]
[ 78.988169] vfs_read+0x97/0x190
[ 78.988175] ksys_read+0x63/0xe0
[ 78.988179] do_syscall_64+0x3a/0x80
[ 78.988185] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 78.988191] RIP: 0033:0x7f91fb7550ed
[ 78.988194] Code: 31 c0 e9 c6 fe ff ff 50 48 8d 3d f6 54 0a 00 e8 39 fe 01 00 66 0f 1f 84 00 00 00 00 00 80 3d f1 24 0e 00 00 74 17 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 5b c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec
[ 78.988198] RSP: 002b:00007ffdad058348 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 78.988202] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007f91fb7550ed
[ 78.988204] RDX: 0000000000020000 RSI: 00007f91fb350000 RDI: 0000000000000003
[ 78.988207] RBP: 0000000000020000 R08: 00000000ffffffff R09: 0000000000000000
[ 78.988209] R10: 00007f91fb66cb40 R11: 0000000000000246 R12: 00007f91fb350000
[ 78.988212] R13: 0000000000000003 R14: 0000000000020000 R15: 0000000000000000
[ 78.988216] </TASK>
[ 78.988218] Modules linked in: rfkill qrtr tuner_simple tuner_types intel_powerclamp coretemp tuner snd_hda_codec_via tda7432 kvm_intel snd_hda_codec_generic snd_hda_codec_hdmi tvaudio ledtrig_audio msp3400 snd_hda_intel kvm snd_intel_dspcfg bttv snd_intel_sdw_acpi snd_hda_codec irqbypass tea575x snd_hda_core tveeprom videobuf_dma_sg intel_cstate videobuf_core videodev snd_hwdep snd_bt87x intel_uncore snd_pcm serio_raw pcspkr iTCO_wdt i7core_edac mc joydev intel_pmc_bxt snd_timer iTCO_vendor_support snd watchdog soundcore sg evdev acpi_cpufreq firewire_sbp2 fuse msr configfs efi_pstore ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 nouveau sd_mod t10_pi crc_t10dif crct10dif_generic ata_generic crct10dif_common hid_generic usbhid hid mxm_wmi wmi video i2c_algo_bit drm_ttm_helper ttm drm_kms_helper cec rc_core drm ahci libahci pata_via libata ehci_pci ehci_hcd psmouse r8169 usbcore scsi_mod crc32c_intel realtek i2c_i801 mdio_devres i2c_smbus libphy firewire_ohci
[ 78.988301] firewire_core lpc_ich usb_common scsi_common crc_itu_t button
[ 78.988311] CR2: ffffbd7fc1100000
[ 78.988314] ---[ end trace 0000000000000000 ]---
[ 78.988316] RIP: 0010:__memset+0x24/0x30
[ 78.988320] Code: cc cc cc cc cc cc 0f 1f 44 00 00 49 89 f9 48 89 d1 83 e2 07 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 <f3> 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3
[ 78.988324] RSP: 0018:ffffbd7fc0cc7d50 EFLAGS: 00010206
[ 78.988327] RAX: 0000000000000000 RBX: ffff9679eb788a88 RCX: 0000000000002000
[ 78.988329] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffbd7fc1100000
[ 78.988332] RBP: 0000000080000000 R08: 0000000000000000 R09: ffffbd7fc1100000
[ 78.988334] R10: 0000000000010000 R11: ffffbd7fc1100000 R12: 0000000000000010
[ 78.988337] R13: 0000000000000010 R14: ffff9679ec8e4130 R15: 0000000000000010
[ 78.988340] FS: 00007f91fb65a740(0000) GS:ffff9679efdc0000(0000) knlGS:0000000000000000
[ 78.988343] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 78.988346] CR2: ffffbd7fc1100000 CR3: 000000022ce02000 CR4: 00000000000006e0

Diederik de Haas

unread,
Feb 1, 2023, 1:30:03 AM2/1/23
to
On Wednesday, 1 February 2023 02:52:13 CET Dr. David Alan Gilbert wrote:
> bisected:
> GOOD [37fcacb50be7071d146144a6c5c5bf0194b9a1cf] phy: PHY_FSL_LYNX_28G should
> depend on ARCH_LAYERSCAPE BAD [f5ff79fddf0efecca538046b5cc20fb3ded2ec4f]
> dma-mapping: remove CONFIG_DMA_REMAP GOOD
> [e62c17f0455a74b182ce6373e2777817256afaa1] MAINTAINERS: update maintainer
> list of DMA MAPPING BENCHMARK GOOD
> [0fb3436b4b36cf69f4544385aa2bb8c5a4913509] sparc: Remove usage of the
> deprecated "pci-dma-compat.h" API GOOD
> [fba09099c6e506608e05e08ac717bf34501f821b] media: v4l2-pci-skeleton: Remove
> usage of the deprecated "pci-dma-compat.h" API
>
> dg@major:~/kernel/kernel-clone$ git bisect good
> f5ff79fddf0efecca538046b5cc20fb3ded2ec4f is the first bad commit
> commit f5ff79fddf0efecca538046b5cc20fb3ded2ec4f
> Author: Christoph Hellwig <h...@lst.de>
> Date: Sat Feb 26 16:40:21 2022 +0100
>
> dma-mapping: remove CONFIG_DMA_REMAP
>
> That sounds like a believable cause given that it's IOMMU related
> and device related.

Thanks for that thorough analyses!
If you're 'penguin42' on IRC, then I'd suggest to present your findings to
io...@lists.linux.dev as both the author and the reviewer are highly likely
subscribed to that list.

scripts/get_maintainer.pl drivers/iommu/dma-iommu.c
scripts/get_maintainer.pl kernel/dma/Makefile

list them both and both results have also that ML in their result.

HTH
signature.asc

Dr. David Alan Gilbert

unread,
Feb 1, 2023, 7:00:04 AM2/1/23
to
* Diederik de Haas (didi....@cknow.org) wrote:

> Thanks for that thorough analyses!

Thanks for the reply,

> If you're 'penguin42' on IRC,

Yep, that's me.

> then I'd suggest to present your findings to
> io...@lists.linux.dev as both the author and the reviewer are highly likely
> subscribed to that list.
>
> scripts/get_maintainer.pl drivers/iommu/dma-iommu.c
> scripts/get_maintainer.pl kernel/dma/Makefile
>
> list them both and both results have also that ML in their result.

Yep, will do; I'm just going to try a 6.2rc as well just in case it's
got fixed very recently, and have a poke about in case I can see
any obvious cause now I know the change that triggered it.
I'll include the linux-media list as well since it's just as likely
that it's a fault on the v4l/bttv driver.

Dave

> HTH

Dr. David Alan Gilbert

unread,
Feb 1, 2023, 9:10:04 AM2/1/23
to
Confirmed still happens on upstream 6.2.0-rc6

Dr. David Alan Gilbert

unread,
Feb 1, 2023, 1:00:04 PM2/1/23
to

Debian Bug Tracking System

unread,
Feb 1, 2023, 2:10:03 PM2/1/23
to
Processing control commands:

> forwarded -1 https://lore.kernel.org/linux-iommu/Y9qSwkLxeMpffZK%2F@gallifrey/
Bug #1029968 [src:linux] bttv/v4l: WARNING: CPU: 6 PID: 6164 at mm/vmalloc.c:487 __vmap_pages_range_noflush+0x3e0/0x4d0
Set Bug forwarded-to-address to 'https://lore.kernel.org/linux-iommu/Y9qSwkLxeMpffZK%2F@gallifrey/'.

--
1029968: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029968
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

Diederik de Haas

unread,
Feb 1, 2023, 2:10:04 PM2/1/23
to
Control: forwarded -1 https://lore.kernel.org/linux-iommu/Y9qSwkLxeMpffZK%2F@gallifrey/

On Wednesday, 1 February 2023 18:46:43 CET Dr. David Alan Gilbert wrote:
> I sent this upstream report:
> https://lore.kernel.org/linux-iommu/Y9qSwkLxeMpffZK%2F@gallifrey/T/#u

Thanks :-) Updated bug accordingly.
signature.asc

Dr. David Alan Gilbert

unread,
Feb 3, 2023, 8:10:04 PM2/3/23
to
It's a bit messy...

a) The patch I bisected to is not the root cause of the bug; it just
triggers a ~9 year old bug in the v4l code - so this patch isn't going
to get changed.

b) The ~9 year old bug is in a particularly hairy piece of memory management
code in v4l that I doubt anyone is going to fix.

c) The plan is all the drivers using that API are to either be retired
or rewritten using a new API; that's already been done for some of the
drivers and the bttv one is a few months out. I'm not sure that's
any use to this version of Debian though.

d) The work arounds are:
1) Disable iommu
2) some v4l tools can use an mmap interface rather than the read(2)
interface; that seems to be OK.

Dave

Diederik de Haas

unread,
Feb 4, 2023, 1:10:04 PM2/4/23
to
On Saturday, 4 February 2023 02:06:02 CET Dr. David Alan Gilbert wrote:
> a) The patch I bisected to is not the root cause of the bug; it just
> triggers a ~9 year old bug in the v4l code - so this patch isn't going
> to get changed.
>
> b) The ~9 year old bug is in a particularly hairy piece of memory management
> code in v4l that I doubt anyone is going to fix.
>
> c) The plan is all the drivers using that API are to either be retired
> or rewritten using a new API; that's already been done for some of the
> drivers and the bttv one is a few months out. I'm not sure that's
> any use to this version of Debian though.
>
> d) The work arounds are:
> 1) Disable iommu
> 2) some v4l tools can use an mmap interface rather than the read(2)
> interface; that seems to be OK.

Also reading the upstream conversation, that seems like a good summary :)

I could be wrong (ofc), but I doubt this issue will be fixed in kernel 6.1
which is planned to be Bookworm's kernel.

What you could do is test any patch(es) they put out and provide feedback on
those and if you find that the patch(es) fixes the/your issue, you could
consider providing a "Tested-By: yourname <your.email>" which can have a
positive effect on the maintainer accepting the patch from which it then can
procede further up the chain to Linus.
When it does end up in Linus' tree and it would need to have a new Kconfig
option enabled in Debian's kernel, feel free to request that.

I think IOMMU is a really good thing, so disabling that does not sound ideal,
but it could be an acceptable workaround (for now).
If you want to run Bookworm on your system, you'd probably have to wait till a
suitable Backports kernel becomes available. If you go for Trixie, you should
get (in time) the proper fix by just upgrading.

Thanks for all the investigative work and bringing it to upstream :-)

Cheers,
Diederik
signature.asc

Dr. David Alan Gilbert

unread,
Nov 12, 2023, 1:00:06 PM11/12/23
to
This looks like it's fixed in 6.6, I think they had a major rewrite
in there.
It's a conversion to vb2 in the series starting with
d1846d72587e9241e73a18da14a325b43700013b

There are a couple of minor oddities with that
(they list the sequence cost the bttv had) but that's relatively minor.

Dr. David Alan Gilbert

unread,
Dec 3, 2023, 12:00:03 PM12/3/23
to
As well as the fixes in 6.6, we also need this patchup series here:

https://lore.kernel.org/linux-media/ZWibhE350L3BTRK8@gallifrey/T/#t

These seem to make it pretty nicely.

Diederik de Haas

unread,
Dec 3, 2023, 1:40:05 PM12/3/23
to
Control: forwarded -1 https://lore.kernel.org/linux-iommu/Y9qSwkLxeMpffZK%2F@gallifrey/ https://lore.kernel.org/linux-media/cover.1701349092....@xs4all.nl/

On Sunday, 3 December 2023 17:50:07 CET Dr. David Alan Gilbert wrote:
> As well as the fixes in 6.6,

A 6.6 kernel is now available in Experimental

> we also need this patchup series here:
> https://lore.kernel.org/linux-media/ZWibhE350L3BTRK8@gallifrey/T/#t
>
> These seem to make it pretty nicely.

Excellent :) I saw they had "Fixes:" tags, which normally means they'll
get backported to older kernel series like 6.6.
signature.asc

Debian Bug Tracking System

unread,
Dec 3, 2023, 1:40:05 PM12/3/23
to
0 new messages