Opened 6 years ago

Last modified 2 months ago

#14490 new bug

Kernel debugging land during boot if BIOS On-Chip ATA-Devices RAID Mode is AHCI (instead of IDE)

Reported by: cucujoidea Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk/AHCI Version: R1/Development
Keywords: boot-failure Cc:
Blocked By: Blocking: #16047
Platform: All

Description

in pre-1-beta1 * , if the bios On-Chip ATA Devices -> RAID Mode -> IDE is set, booting works. But if in that setting (IDE) is changed to AHCI, kernel debugging land appears during boot. This appears both on x86 gcc2 and x86-64. The system started form a USB drive where the image had been dd to. A USB 2 slot was used.

Attachments (2)

Change History (8)

comment:1 by waddlesplash, 6 years ago

Please extract a syslog from this (see the Bootloader page on the Userguide for how to do that.)

comment:2 by cucujoidea, 6 years ago

The following is what i got over the serial output during boot and KDL. Please tell me if you need more, i can install haiku then (with the problematic option set to IDE during install) on hdd an look into logfiles.


Welcome to kernel debugger output!                                         
Haiku revision: hrev52295-13-gebd3fb55d9 [r1beta1]                             
CPU 0: type 0 family 15 extended_family 1 model 5 extended_model 0 stepping 2, '
CPU 0: vendor 'AMD' model name 'AMD Athlon(tm) II X4 605e Processor'           
CPU 0: apic id 0, package 0, core 0, smt 0                                   
CPU 0: features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov  
reserve_io_interrupt_vectors: reserved 16 vectors starting from 0
mark_page_range_in_use(0x0, 0x100): start page is before free list
mark_page_range_in_use(0x0, 0xa0): start page is before free list
add_memory_type_range(3, 0x0, 0xa0000, 6)             
add_memory_type_range(50, 0xd0000000, 0x500000, 0)    
mapping local apic at 0xffffffff819de000              
add_memory_type_range(53, 0xfee00000, 0x1000, 0)
CPU 3: type 0 family 15 extended_family 1 model 5 extended_model 0 stepping 2, '
CPU 1: type 0 family 15 extended_family 1 model 5 extended_model 0 stepping 2, '
CPU 2: type 0 family 15 extended_family 1 model 5 extended_model 0 stepping 2, '
CPU 3: vendor 'AMD' model name 'AMD Athlon(tm) II X4 605e Processor'            
CPU 2: vendor 'AMD' model name 'AMD Athlon(tm) II X4 605e Processor'            
CPU 1: vendor 'AMD' model name 'AMD Athlon(tm) II X4 605e Processor'            
CPU 2: apic id 2, package 0, core 2, smt 0                                      
CPU 3: apic id 3, package 0, core 3, smt 0                                      
CPU 1: apic id 1, package 0, core 1, smt 0                                      
CPU 2: features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov  
CPU 3: features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov  
CPU 1: features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov  
setting up apic for CPU 0: apic id 0, version 2147811344                        
CPU 0: logical apic id: 0x1                                                     
x86_init_fpu: CPU has SSE... enabling FXSR and XMM.                             
reserve_io_interrupt_vectors: reserved 3 vectors starting from 221              
reserve_io_interrupt_vectors: reserved 1 vectors starting from 219              
arch_init_timer: using APIC timer.                                              
allocate_commpage_entry(2, 16) -> 0x0000000000000200                            
scheduler_init: found 4 logical cpus and 0 cache levels                         
scheduler switches: single core: false, cpu load tracking: false, core load trae
scheduler: switching to low latency mode                                        
msi support enabled                                                             
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of bus_managers/acpi/v1 failed!    
acpi module not available, not configuring io-apics                             
setting up apic for CPU 1: apic id 1, version 2147811344                        
setting up apic for CPU 3: apic id 3, version 2147811344                        
setting up apic for CPU 2: apic id 2, version 2147811344                        
CPU 1: logical apic id: 0x2                                                     
CPU 3: logical apic id: 0x8                                                     
CPU 2: logical apic id: 0x4                                                     
x86_init_fpu: CPU has SSE... enabling FXSR and XMM.                             
Last message repeated 2 times.                                                  
slab memory manager: created area 0xffffffff80801000 (69)                       
allocate_commpage_entry(3, 76) -> 0x0000000000000210                            
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of bus_managers/acpi/driver_v1 fai!
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of bus_managers/acpi/root/driver_v!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/dr!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/si!
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of drivers/power/acpi_embedded_con!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of bus_managers/ide/co!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of bus_managers/ata/si!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/dr!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/si!
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of drivers/power/acpi_embedded_con!
get_boot_partitions(): boot volume message:                                     
KMessage: buffer: 0xffffffff819ce000 (size/capacity: 347/347), flags: 0xa       
  field: "booted from image" (BOOL): false                                      
  field: "partition offset"  (LLNG): 4194304 (0x400000)                         
  field: "packaged"          (BOOL): true                                       
  field: "boot method"       (LONG): 0 (0x0)                                    
  field: "boot drive number" (LLNG): 128 (0x80)                                 
  field: "disk identifier"   (RAWT): data at 0xffffffff819ce10c, 79 bytes       
get_boot_partitions(): boot method type: 0                                      
partitioning system: partitioning_systems/intel/extended/v1                     
KDiskDeviceManager::_AddDiskSystem(partitioning_systems/intel/extended/v1)      
intel: ep_std_ops(0x1)                                                          
intel: ep_std_ops(0x2)                                                          
KDiskDeviceManager::_AddDiskSystem() done: No error                             
partitioning system: partitioning_systems/intel/map/v1                          
KDiskDeviceManager::_AddDiskSystem(partitioning_systems/intel/map/v1)           
intel: pm_std_ops(0x1)                                                          
intel: pm_std_ops(0x2)                                                          
KDiskDeviceManager::_AddDiskSystem() done: No error                             
partitioning system: partitioning_systems/efi_gpt/v1                            
KDiskDeviceManager::_AddDiskSystem(partitioning_systems/efi_gpt/v1)             
KDiskDeviceManager::_AddDiskSystem() done: No error                             
file system: file_systems/devfs/v1                                              
KDiskDeviceManager::_AddDiskSystem(file_systems/devfs/v1)                       
KDiskDeviceManager::_AddDiskSystem() done: No error                             
file system: file_systems/rootfs/v1                                             
KDiskDeviceManager::_AddDiskSystem(file_systems/rootfs/v1)                      
KDiskDeviceManager::_AddDiskSystem() done: No error                             
file system: file_systems/bfs/v1                                                
KDiskDeviceManager::_AddDiskSystem(file_systems/bfs/v1)                         
KDiskDeviceManager::_AddDiskSystem() done: No error                             
number of disk systems: 6                                                       
KDiskDeviceManager::_Scan(/dev/disk)                                            
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/dr!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/si!
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of drivers/power/acpi_embedded_con!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/dr!
module: Search for bus_managers/scsi/sim/driver_v1 failed.                      
loading dependent module bus_managers/scsi/sim/driver_v1 of busses/scsi/ahci/si!
module: Search for bus_managers/pci/v1 failed.                                  
loading dependent module bus_managers/pci/v1 of drivers/power/acpi_embedded_con!
KDiskDeviceManager::InitialDeviceScan() failed: No such file or directory       
PANIC: get_boot_partitions failed!                                              
Welcome to Kernel Debugging Land...                                             
Thread 17 "main2" running on CPU 2                                              
stack trace for thread 17 "main2"                                               
    kernel stack: 0xffffffff81a05000 to 0xffffffff81a0a000                      
frame                       caller             <image>:function + offset        
 0 ffffffff81a09908 (+  16) ffffffff8012fca9   <kernel_x86_64> arch_debug_stack3
 1 ffffffff81a09918 (+  16) ffffffff8009e035   <kernel_x86_64> _ZL22stack_trace9
 2 ffffffff81a09928 (+  24) ffffffff80127fcc   <kernel_x86_64> arch_debug_call_6
 3 ffffffff81a09940 (+  96) ffffffff8009ea4f   <kernel_x86_64> debug_call_with_b
 4 ffffffff81a099a0 (+  96) ffffffff8009faab   <kernel_x86_64> _ZL20kernel_debua
 5 ffffffff81a09a00 (+  80) ffffffff8009ff14   <kernel_x86_64> _ZL24kernel_debu2
 6 ffffffff81a09a50 (+ 240) ffffffff800a0113   <kernel_x86_64> panic() + 0xba   
 7 ffffffff81a09b40 (+1056) ffffffff800f5897   <kernel_x86_64> vfs_mount_boot_f9
 8 ffffffff81a09f60 (+  80) ffffffff8005f4ef   <kernel_x86_64> _ZL5main2Pv() + f
 9 ffffffff81a09fb0 (+  32) ffffffff80084ae3   <kernel_x86_64> _ZL19common_thre6
10 ffffffff81a09fd0 (+2120179760) ffffffff81a09fe0                              
kdebug> bt                                                                      
stack trace for thread 17 "main2"                                               
    kernel stack: 0xffffffff81a05000 to 0xffffffff81a0a000                      
frame                       caller             <image>:function + offset        
 0 ffffffff81a09668 (+  32) ffffffff800a12ae   <kernel_x86_64> _ZL25invoke_comm9
 1 ffffffff81a09688 (+  24) ffffffff80127fcc   <kernel_x86_64> arch_debug_call_6
 2 ffffffff81a096a0 (+  96) ffffffff8009ea4f   <kernel_x86_64> debug_call_with_b
 3 ffffffff81a09700 (+  96) ffffffff800a1491   <kernel_x86_64> invoke_debugger_6
 4 ffffffff81a09760 (+  80) ffffffff800a1643   <kernel_x86_64> _ZL19invoke_pipe4
 5 ffffffff81a097b0 (+  80) ffffffff800a1771   <kernel_x86_64> invoke_debugger_c
 6 ffffffff81a09800 (+  96) ffffffff800a6497   <kernel_x86_64> _ZN16ExpressionP5
 7 ffffffff81a09860 (+  96) ffffffff800ab089   <kernel_x86_64> _ZN16ExpressionP1
 8 ffffffff81a098c0 (+ 224) ffffffff800ad51e   <kernel_x86_64> evaluate_debug_ce
 9 ffffffff81a099a0 (+  96) ffffffff8009fb5d   <kernel_x86_64> _ZL20kernel_debuc
10 ffffffff81a09a00 (+  80) ffffffff8009ff14   <kernel_x86_64> _ZL24kernel_debu2
11 ffffffff81a09a50 (+ 240) ffffffff800a0113   <kernel_x86_64> panic() + 0xba   
12 ffffffff81a09b40 (+1056) ffffffff800f5897   <kernel_x86_64> vfs_mount_boot_f9
13 ffffffff81a09f60 (+  80) ffffffff8005f4ef   <kernel_x86_64> _ZL5main2Pv() + f
14 ffffffff81a09fb0 (+  32) ffffffff80084ae3   <kernel_x86_64> _ZL19common_thre6
15 ffffffff81a09fd0 (+2120179760) ffffffff81a09fe0                              
kdebug> reboot 

comment:3 by diver, 5 years ago

Component: System/KernelDrivers/Disk/AHCI

comment:4 by waddlesplash, 5 years ago

Blocking: 16047 added

comment:5 by waddlesplash, 3 years ago

Keywords: boot-failure added

comment:6 by waddlesplash, 2 months ago

Please retest after hrev58277.

Note: See TracTickets for help on using tickets.