public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 23:43 Moore, Robert
  2006-02-10  2:07 ` Thomas Renninger
  0 siblings, 1 reply; 31+ messages in thread
From: Moore, Robert @ 2006-02-09 23:43 UTC (permalink / raw)
  To: Luck, Tony, linux-acpi; +Cc: linux-ia64

The next thing that would be useful is to know what method(s) are
executing when the message pops out.


> -----Original Message-----
> From: Luck, Tony
> Sent: Thursday, February 09, 2006 1:16 PM
> To: Moore, Robert; 'linux-acpi@vger.kernel.org'
> Cc: 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> But I goofed and muddled up my two problems.  I tried
> booting on my zx1 ... which was broken altogether by
> recent acpi changes.
> 
> Getting back to the rx2620 ... deleting those lines makes
> no difference.  I still boot ok, I still see the unaligned
> access messages.
> 
> /proc/acpi/dsdt for that system attached.
> 
> -Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-03-15 17:14 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-03-15 17:14 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: Luck, Tony, linux-acpi, linux-ia64, Thomas Renninger

Yes, the reasons are very similar.

Probably best just to wait for the patch to bubble through the pipeline.


> -----Original Message-----
> From: Bjorn Helgaas [mailto:bjorn.helgaas@hp.com]
> Sent: Wednesday, March 15, 2006 8:49 AM
> To: Moore, Robert
> Cc: Luck, Tony; linux-acpi@vger.kernel.org;
linux-ia64@vger.kernel.org;
> Thomas Renninger
> Subject: Re: some new unaligned access while booting ia64 (HP rx2620)
> 
> On Wednesday 15 March 2006 08:47, Moore, Robert wrote:
> > They should be fixed in ACPICA version 20060217:
> >
> > Fixed a problem where several resource descriptor types could
overrun
> > the internal descriptor buffer due to size miscalculation:
VendorShort,
> > VendorLong, and Interrupt. This was noticed on IA64 machines, but
could
> > affect all platforms.
> 
> Did you determine that the buffer overrun problem that caused
> the slab corruption was the same thing that caused the unaligned
> access messages?
> 
> Can you point me to the patch?  Or possibly a place to get the
> 20060217 ACPICA and the previous version, so I can extract the
> patch myself?  I poked around the Intel ACPI web page, but could
> only find the most recent ACPICA; there didn't seem to be any
> history.
> 
> Bjorn
> 
> > > -----Original Message-----
> > > From: Bjorn Helgaas [mailto:bjorn.helgaas@hp.com]
> > > Sent: Tuesday, March 14, 2006 4:00 PM
> > > To: Luck, Tony
> > > Cc: linux-acpi@vger.kernel.org; linux-ia64@vger.kernel.org; Moore,
> > Robert;
> > > Thomas Renninger
> > > Subject: Re: some new unaligned access while booting ia64 (HP
rx2620)
> > >
> > > On Thursday 02 February 2006 12:46, Luck, Tony wrote:
> > > > Booting a snapshot of Linus' tree this morning I saw a few
(new?)
> > > > kernel unaligned access warnings:
> > > >
> > > > ACPI: Subsystem revision 20060127
> > > > ACPI: Interpreter enabled
> > > > ACPI: Using IOSAPIC for interrupt routing
> > > > ACPI: PCI Root Bridge [PCI0] (0000:00)
> > > > kernel unaligned access to 0xe00000407ec5a204,
ip=0xa0000001003af8c0
> > > > kernel unaligned access to 0xe00000407ec5a23c,
ip=0xa0000001003af8c0
> > > > kernel unaligned access to 0xe00000407ec5a28c,
ip=0xa0000001003af8c0
> > > > kernel unaligned access to 0xe00000407ec5a1fc,
ip=0xa0000001003ae6c1
> > > > kernel unaligned access to 0xe00000407ec5a204,
ip=0xa0000001003ae6d1
> > > > ACPI: PCI Interrupt Routing Table [\_SB_.SBA0.PCI0._PRT]
> > > > ACPI: PCI Root Bridge [PCI1] (0000:20)
> > >
> > > Did we ever resolve this?  Are we just waiting for new ACPI bits
> > > to trickle into -mm and mainline?
> > >
> > > I'd like to see the patch for just this issue, because it affects
> > > SLES10, and Novell might balk at a complete ACPI CA update, but
> > > might take just the individual patch.
> > >
> > > Bjorn
> >

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-03-15 15:47 Moore, Robert
  2006-03-15 16:49 ` Bjorn Helgaas
  0 siblings, 1 reply; 31+ messages in thread
From: Moore, Robert @ 2006-03-15 15:47 UTC (permalink / raw)
  To: Bjorn Helgaas, Luck, Tony; +Cc: linux-acpi, linux-ia64, Thomas Renninger

They should be fixed in ACPICA version 20060217:

Fixed a problem where several resource descriptor types could overrun
the internal descriptor buffer due to size miscalculation: VendorShort,
VendorLong, and Interrupt. This was noticed on IA64 machines, but could
affect all platforms.


> -----Original Message-----
> From: Bjorn Helgaas [mailto:bjorn.helgaas@hp.com]
> Sent: Tuesday, March 14, 2006 4:00 PM
> To: Luck, Tony
> Cc: linux-acpi@vger.kernel.org; linux-ia64@vger.kernel.org; Moore,
Robert;
> Thomas Renninger
> Subject: Re: some new unaligned access while booting ia64 (HP rx2620)
> 
> On Thursday 02 February 2006 12:46, Luck, Tony wrote:
> > Booting a snapshot of Linus' tree this morning I saw a few (new?)
> > kernel unaligned access warnings:
> >
> > ACPI: Subsystem revision 20060127
> > ACPI: Interpreter enabled
> > ACPI: Using IOSAPIC for interrupt routing
> > ACPI: PCI Root Bridge [PCI0] (0000:00)
> > kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a23c, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a28c, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a1fc, ip=0xa0000001003ae6c1
> > kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003ae6d1
> > ACPI: PCI Interrupt Routing Table [\_SB_.SBA0.PCI0._PRT]
> > ACPI: PCI Root Bridge [PCI1] (0000:20)
> 
> Did we ever resolve this?  Are we just waiting for new ACPI bits
> to trickle into -mm and mainline?
> 
> I'd like to see the patch for just this issue, because it affects
> SLES10, and Novell might balk at a complete ACPI CA update, but
> might take just the individual patch.
> 
> Bjorn

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-11  0:39 Luck, Tony
  2006-02-11 12:21 ` Robin Holt
  0 siblings, 1 reply; 31+ messages in thread
From: Luck, Tony @ 2006-02-11  0:39 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

> This only contains the output of stores to the ACPI "debug" object,
> not the full trace output. However, "_CRS 0" may help

So ignoring ACPI_DEBUG=y for the moment, I put in a WARN_ON() in the
unaligned trap handler to get some stack traces when the unaligned
access happened.

Here's the boot log from that (note that there are perhaps more
unaligned
accesses than this, but the kernel rate limiting code kicks in at five
messages).

-Tony

Linux version 2.6.16-rc2-zx1-smp (aegl@linux-t10) (gcc version 3.4.3
20050227 (Red Hat 3.4.3-22.1)) #2 SMP Fri Feb 10 16:29:13 PST 2006
EFI v1.10 by HP: SALsystab=0x3fefa000 ACPI 2.0=0x3fd5e000
SMBIOS=0x3fefc000 HCDP=0x3fd5c000
PCDP: v0 at 0x3fd5c000
Explicit "console="; ignoring PCDP
warning: skipping physical page 0
Initial ramdisk at: 0xe00000407ee5b000 (1303576 bytes)
SAL 3.1: HP version 3.15
SAL Platform features: None
SAL: AP wakeup using external interrupt vector 0xff
No logical to physical processor mapping available
ACPI: Local APIC address c0000000fee00000
GSI 36 (level, low) -> CPU 0 (0x0000) vector 48
2 CPUs available, 2 CPUs total
MCA related initialization done
Virtual mem_map starts at 0xa0007fffc7900000
Built 1 zonelists
Kernel command line: BOOT_IMAGE=scsi0:EFI\redhat\l-zx1-smp.gz
console=ttyS0 root=LABEL=/ ro
PID hash table entries: 4096 (order: 12, 131072 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 262144 (order: 7, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 6, 1048576 bytes)
Memory: 2058128k/2086064k available (8134k code, 26784k reserved, 3552k
data, 272k init)
McKinley Errata 9 workaround not needed; disabling it
Mount-cache hash table entries: 1024
Boot processor id 0x0/0x0
CPU 1: synchronized ITC with CPU 0 (last diff 1 cycles, maxerr 554
cycles)
Brought up 2 CPUs
Total of 2 processors activated (3891.20 BogoMIPS).
migration_cost=3064
checking if image is initramfs... it is
Freeing initrd memory: 1264kB freed
NET: Registered protocol family 16
ACPI: bus type pci registered
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOSAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
kernel unaligned access to 0xe000004040e72604, ip=0xa0000001003afb00
Badness in ia64_handle_unaligned at arch/ia64/kernel/unaligned.c:1349

Call Trace:
 [<a000000100010a10>] show_stack+0x50/0xa0
                                sp=e00000407ff375c0 bsp=e00000407ff31428
 [<a000000100010a90>] dump_stack+0x30/0x60
                                sp=e00000407ff37790 bsp=e00000407ff31410
 [<a0000001000376f0>] ia64_handle_unaligned+0x2d0/0x2780
                                sp=e00000407ff37790 bsp=e00000407ff31388
 [<a00000010000bd70>] ia64_prepare_handle_unaligned+0x30/0x60
                                sp=e00000407ff37940 bsp=e00000407ff31388
 [<a00000010000b760>] ia64_leave_kernel+0x0/0x280
                                sp=e00000407ff37b50 bsp=e00000407ff31388
 [<a0000001003afb00>] acpi_rs_get_resource_source+0x60/0x1e0
                                sp=e00000407ff37d20 bsp=e00000407ff31328
 [<a0000001003ad9b0>] acpi_rs_convert_aml_to_resource+0x4d0/0x760
                                sp=e00000407ff37d20 bsp=e00000407ff312c8
 [<a0000001003ad190>] acpi_rs_convert_aml_to_resources+0x90/0x1c0
                                sp=e00000407ff37d30 bsp=e00000407ff31290
 [<a0000001003ac980>] acpi_rs_create_resource_list+0xc0/0x100
                                sp=e00000407ff37d40 bsp=e00000407ff31260
 [<a0000001003aff20>] acpi_rs_get_method_data+0x80/0xc0
                                sp=e00000407ff37d50 bsp=e00000407ff31230
 [<a0000001003ae3b0>] acpi_walk_resources+0xd0/0x240
                                sp=e00000407ff37d60 bsp=e00000407ff311e0
 [<a0000001006d6bd0>] pci_acpi_scan_root+0xf0/0x380
                                sp=e00000407ff37d70 bsp=e00000407ff31188
 [<a0000001003c4be0>] acpi_pci_root_add+0x4e0/0x660
                                sp=e00000407ff37d90 bsp=e00000407ff31138
 [<a0000001003d35f0>] acpi_bus_driver_init+0x70/0xe0
                                sp=e00000407ff37db0 bsp=e00000407ff31110
 [<a0000001003d53a0>] acpi_add_single_object+0x1540/0x1640
                                sp=e00000407ff37db0 bsp=e00000407ff31088
 [<a0000001003d5b40>] acpi_bus_scan+0x280/0x400
                                sp=e00000407ff37e00 bsp=e00000407ff31048
 [<a00000010097baf0>] acpi_scan_init+0x1f0/0x260
                                sp=e00000407ff37e20 bsp=e00000407ff31020
 [<a000000100009710>] init+0x470/0x7e0
                                sp=e00000407ff37e30 bsp=e00000407ff30fe8
 [<a000000100012c70>] kernel_thread_helper+0xd0/0x100
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
 [<a000000100009140>] start_kernel_thread+0x20/0x40
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
kernel unaligned access to 0xe000004040e7263c, ip=0xa0000001003afb00
Badness in ia64_handle_unaligned at arch/ia64/kernel/unaligned.c:1349

Call Trace:
 [<a000000100010a10>] show_stack+0x50/0xa0
                                sp=e00000407ff375c0 bsp=e00000407ff31428
 [<a000000100010a90>] dump_stack+0x30/0x60
                                sp=e00000407ff37790 bsp=e00000407ff31410
 [<a0000001000376f0>] ia64_handle_unaligned+0x2d0/0x2780
                                sp=e00000407ff37790 bsp=e00000407ff31388
 [<a00000010000bd70>] ia64_prepare_handle_unaligned+0x30/0x60
                                sp=e00000407ff37940 bsp=e00000407ff31388
 [<a00000010000b760>] ia64_leave_kernel+0x0/0x280
                                sp=e00000407ff37b50 bsp=e00000407ff31388
 [<a0000001003afb00>] acpi_rs_get_resource_source+0x60/0x1e0
                                sp=e00000407ff37d20 bsp=e00000407ff31328
 [<a0000001003ad9b0>] acpi_rs_convert_aml_to_resource+0x4d0/0x760
                                sp=e00000407ff37d20 bsp=e00000407ff312c8
 [<a0000001003ad190>] acpi_rs_convert_aml_to_resources+0x90/0x1c0
                                sp=e00000407ff37d30 bsp=e00000407ff31290
 [<a0000001003ac980>] acpi_rs_create_resource_list+0xc0/0x100
                                sp=e00000407ff37d40 bsp=e00000407ff31260
 [<a0000001003aff20>] acpi_rs_get_method_data+0x80/0xc0
                                sp=e00000407ff37d50 bsp=e00000407ff31230
 [<a0000001003ae3b0>] acpi_walk_resources+0xd0/0x240
                                sp=e00000407ff37d60 bsp=e00000407ff311e0
 [<a0000001006d6bd0>] pci_acpi_scan_root+0xf0/0x380
                                sp=e00000407ff37d70 bsp=e00000407ff31188
 [<a0000001003c4be0>] acpi_pci_root_add+0x4e0/0x660
                                sp=e00000407ff37d90 bsp=e00000407ff31138
 [<a0000001003d35f0>] acpi_bus_driver_init+0x70/0xe0
                                sp=e00000407ff37db0 bsp=e00000407ff31110
 [<a0000001003d53a0>] acpi_add_single_object+0x1540/0x1640
                                sp=e00000407ff37db0 bsp=e00000407ff31088
 [<a0000001003d5b40>] acpi_bus_scan+0x280/0x400
                                sp=e00000407ff37e00 bsp=e00000407ff31048
 [<a00000010097baf0>] acpi_scan_init+0x1f0/0x260
                                sp=e00000407ff37e20 bsp=e00000407ff31020
 [<a000000100009710>] init+0x470/0x7e0
                                sp=e00000407ff37e30 bsp=e00000407ff30fe8
 [<a000000100012c70>] kernel_thread_helper+0xd0/0x100
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
 [<a000000100009140>] start_kernel_thread+0x20/0x40
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
kernel unaligned access to 0xe000004040e7268c, ip=0xa0000001003afb00
Badness in ia64_handle_unaligned at arch/ia64/kernel/unaligned.c:1349

Call Trace:
 [<a000000100010a10>] show_stack+0x50/0xa0
                                sp=e00000407ff375c0 bsp=e00000407ff31428
 [<a000000100010a90>] dump_stack+0x30/0x60
                                sp=e00000407ff37790 bsp=e00000407ff31410
 [<a0000001000376f0>] ia64_handle_unaligned+0x2d0/0x2780
                                sp=e00000407ff37790 bsp=e00000407ff31388
 [<a00000010000bd70>] ia64_prepare_handle_unaligned+0x30/0x60
                                sp=e00000407ff37940 bsp=e00000407ff31388
 [<a00000010000b760>] ia64_leave_kernel+0x0/0x280
                                sp=e00000407ff37b50 bsp=e00000407ff31388
 [<a0000001003afb00>] acpi_rs_get_resource_source+0x60/0x1e0
                                sp=e00000407ff37d20 bsp=e00000407ff31328
 [<a0000001003ad9b0>] acpi_rs_convert_aml_to_resource+0x4d0/0x760
                                sp=e00000407ff37d20 bsp=e00000407ff312c8
 [<a0000001003ad190>] acpi_rs_convert_aml_to_resources+0x90/0x1c0
                                sp=e00000407ff37d30 bsp=e00000407ff31290
 [<a0000001003ac980>] acpi_rs_create_resource_list+0xc0/0x100
                                sp=e00000407ff37d40 bsp=e00000407ff31260
 [<a0000001003aff20>] acpi_rs_get_method_data+0x80/0xc0
                                sp=e00000407ff37d50 bsp=e00000407ff31230
 [<a0000001003ae3b0>] acpi_walk_resources+0xd0/0x240
                                sp=e00000407ff37d60 bsp=e00000407ff311e0
 [<a0000001006d6bd0>] pci_acpi_scan_root+0xf0/0x380
                                sp=e00000407ff37d70 bsp=e00000407ff31188
 [<a0000001003c4be0>] acpi_pci_root_add+0x4e0/0x660
                                sp=e00000407ff37d90 bsp=e00000407ff31138
 [<a0000001003d35f0>] acpi_bus_driver_init+0x70/0xe0
                                sp=e00000407ff37db0 bsp=e00000407ff31110
 [<a0000001003d53a0>] acpi_add_single_object+0x1540/0x1640
                                sp=e00000407ff37db0 bsp=e00000407ff31088
 [<a0000001003d5b40>] acpi_bus_scan+0x280/0x400
                                sp=e00000407ff37e00 bsp=e00000407ff31048
 [<a00000010097baf0>] acpi_scan_init+0x1f0/0x260
                                sp=e00000407ff37e20 bsp=e00000407ff31020
 [<a000000100009710>] init+0x470/0x7e0
                                sp=e00000407ff37e30 bsp=e00000407ff30fe8
 [<a000000100012c70>] kernel_thread_helper+0xd0/0x100
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
 [<a000000100009140>] start_kernel_thread+0x20/0x40
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
kernel unaligned access to 0xe000004040e725fc, ip=0xa0000001003ae901
Badness in ia64_handle_unaligned at arch/ia64/kernel/unaligned.c:1349

Call Trace:
 [<a000000100010a10>] show_stack+0x50/0xa0
                                sp=e00000407ff375b0 bsp=e00000407ff31358
 [<a000000100010a90>] dump_stack+0x30/0x60
                                sp=e00000407ff37780 bsp=e00000407ff31340
 [<a0000001000376f0>] ia64_handle_unaligned+0x2d0/0x2780
                                sp=e00000407ff37780 bsp=e00000407ff312c0
 [<a00000010000bd70>] ia64_prepare_handle_unaligned+0x30/0x60
                                sp=e00000407ff37930 bsp=e00000407ff312c0
 [<a00000010000b760>] ia64_leave_kernel+0x0/0x280
                                sp=e00000407ff37b40 bsp=e00000407ff312c0
 [<a0000001003ae900>] acpi_resource_to_address64+0x340/0x3e0
                                sp=e00000407ff37d10 bsp=e00000407ff31280
 [<a0000001006d63d0>] resource_to_window+0x30/0xc0
                                sp=e00000407ff37d10 bsp=e00000407ff31258
 [<a0000001006d6490>] count_window+0x30/0x80
                                sp=e00000407ff37d10 bsp=e00000407ff31230
 [<a0000001003ae460>] acpi_walk_resources+0x180/0x240
                                sp=e00000407ff37d60 bsp=e00000407ff311e0
 [<a0000001006d6bd0>] pci_acpi_scan_root+0xf0/0x380
                                sp=e00000407ff37d70 bsp=e00000407ff31188
 [<a0000001003c4be0>] acpi_pci_root_add+0x4e0/0x660
                                sp=e00000407ff37d90 bsp=e00000407ff31138
 [<a0000001003d35f0>] acpi_bus_driver_init+0x70/0xe0
                                sp=e00000407ff37db0 bsp=e00000407ff31110
 [<a0000001003d53a0>] acpi_add_single_object+0x1540/0x1640
                                sp=e00000407ff37db0 bsp=e00000407ff31088
 [<a0000001003d5b40>] acpi_bus_scan+0x280/0x400
                                sp=e00000407ff37e00 bsp=e00000407ff31048
 [<a00000010097baf0>] acpi_scan_init+0x1f0/0x260
                                sp=e00000407ff37e20 bsp=e00000407ff31020
 [<a000000100009710>] init+0x470/0x7e0
                                sp=e00000407ff37e30 bsp=e00000407ff30fe8
 [<a000000100012c70>] kernel_thread_helper+0xd0/0x100
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
 [<a000000100009140>] start_kernel_thread+0x20/0x40
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
kernel unaligned access to 0xe000004040e72604, ip=0xa0000001003ae911
Badness in ia64_handle_unaligned at arch/ia64/kernel/unaligned.c:1349

Call Trace:
 [<a000000100010a10>] show_stack+0x50/0xa0
                                sp=e00000407ff375b0 bsp=e00000407ff31358
 [<a000000100010a90>] dump_stack+0x30/0x60
                                sp=e00000407ff37780 bsp=e00000407ff31340
 [<a0000001000376f0>] ia64_handle_unaligned+0x2d0/0x2780
                                sp=e00000407ff37780 bsp=e00000407ff312c0
 [<a00000010000bd70>] ia64_prepare_handle_unaligned+0x30/0x60
                                sp=e00000407ff37930 bsp=e00000407ff312c0
 [<a00000010000b760>] ia64_leave_kernel+0x0/0x280
                                sp=e00000407ff37b40 bsp=e00000407ff312c0
 [<a0000001003ae910>] acpi_resource_to_address64+0x350/0x3e0
                                sp=e00000407ff37d10 bsp=e00000407ff31280
 [<a0000001006d63d0>] resource_to_window+0x30/0xc0
                                sp=e00000407ff37d10 bsp=e00000407ff31258
 [<a0000001006d6490>] count_window+0x30/0x80
                                sp=e00000407ff37d10 bsp=e00000407ff31230
 [<a0000001003ae460>] acpi_walk_resources+0x180/0x240
                                sp=e00000407ff37d60 bsp=e00000407ff311e0
 [<a0000001006d6bd0>] pci_acpi_scan_root+0xf0/0x380
                                sp=e00000407ff37d70 bsp=e00000407ff31188
 [<a0000001003c4be0>] acpi_pci_root_add+0x4e0/0x660
                                sp=e00000407ff37d90 bsp=e00000407ff31138
 [<a0000001003d35f0>] acpi_bus_driver_init+0x70/0xe0
                                sp=e00000407ff37db0 bsp=e00000407ff31110
 [<a0000001003d53a0>] acpi_add_single_object+0x1540/0x1640
                                sp=e00000407ff37db0 bsp=e00000407ff31088
 [<a0000001003d5b40>] acpi_bus_scan+0x280/0x400
                                sp=e00000407ff37e00 bsp=e00000407ff31048
 [<a00000010097baf0>] acpi_scan_init+0x1f0/0x260
                                sp=e00000407ff37e20 bsp=e00000407ff31020
 [<a000000100009710>] init+0x470/0x7e0
                                sp=e00000407ff37e30 bsp=e00000407ff30fe8
 [<a000000100012c70>] kernel_thread_helper+0xd0/0x100
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
 [<a000000100009140>] start_kernel_thread+0x20/0x40
                                sp=e00000407ff37e30 bsp=e00000407ff30fc0
ACPI: PCI Root Bridge [PCI1] (0000:20)
ACPI: PCI Root Bridge [PCI2] (0000:40)
ACPI: PCI Root Bridge [PCI3] (0000:60)
ACPI: PCI Root Bridge [PCI4] (0000:80)
ACPI: PCI Root Bridge [PCI6] (0000:c0)
Linux Plug and Play Support v0.97 (c) Adam Belay

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 23:58 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-10 23:58 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

> This only contains the output of stores to the ACPI "debug"
> object, not the full trace output. However, "_CRS 0" may help

Ah yes.  I'd dropped the acpi_dbg_level = 0xffffff; while trying
to figure out what was going wrong with CONFIG_ACPI_DEBUG=y.

Putting it back in, 16MB is not enough for log_buf :-(

-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 23:31 Moore, Robert
  2006-02-13 18:51 ` Thomas Renninger
  0 siblings, 1 reply; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 23:31 UTC (permalink / raw)
  To: Luck, Tony, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

This only contains the output of stores to the ACPI "debug" object, not
the full trace output. However, "_CRS 0" may help


i.e., like this:

> exstoren-0075 [18] ex_resolve_object     : ----Entry
> exstoren-0155 [18] ex_resolve_object     : ----Exit- AE_OK


> -----Original Message-----
> From: Luck, Tony
> Sent: Friday, February 10, 2006 3:25 PM
> To: Moore, Robert; 'Thomas Renninger'; Brown, Len
> Cc: 'linux-acpi@vger.kernel.org'; 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> A 16MB log_buf was enough.
> 
> Here is the initial trace up until the unaligned access messages:
> 
> Linux version 2.6.16-rc2-zx1-smp (aegl@linux-t10) (gcc version 3.4.3
> [ACPI Debug]  Integer: 0x00000000
> [ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
> [ACPI Debug]  Integer: 0x00000001
> [ACPI Debug]  String: [0x12] "SERIAL DEV Ptr is "
> [ACPI Debug]  Integer: 0x3FEF99A0
> kernel unaligned access to 0xe000004040e7a434, ip=0xa0000001003c81a0
> kernel unaligned access to 0xe000004040e7a46c, ip=0xa0000001003c81a0
> kernel unaligned access to 0xe000004040e7a4bc, ip=0xa0000001003c81a0
> kernel unaligned access to 0xe000004040e7a42c, ip=0xa0000001003c6ca1
> kernel unaligned access to 0xe000004040e7a434, ip=0xa0000001003c6cb1
> [ACPI Debug]  String: [0x06] "_CRS 0"
> [ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
> [ACPI Debug]  Integer: 0x00000000
> [ACPI Debug]  String: [0x0B] "PARS.GPTR 2"

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 23:25 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-10 23:25 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

A 16MB log_buf was enough.

Here is the initial trace up until the unaligned access messages:

Linux version 2.6.16-rc2-zx1-smp (aegl@linux-t10) (gcc version 3.4.3
20050227 (Red Hat 3.4.3-22.1)) #7 SMP Fri Feb 10 15:17:06 PST 2006
EFI v1.10 by HP: SALsystab=0x3fefa000 ACPI 2.0=0x3fd5e000
SMBIOS=0x3fefc000 HCDP=0x3fd5c000
PCDP: v0 at 0x3fd5c000
Explicit "console="; ignoring PCDP
warning: skipping physical page 0
Initial ramdisk at: 0xe00000407ee5b000 (1303589 bytes)
SAL 3.1: HP version 3.15
SAL Platform features: None
SAL: AP wakeup using external interrupt vector 0xff
No logical to physical processor mapping available
ACPI: Local APIC address c0000000fee00000
GSI 36 (level, low) -> CPU 0 (0x0000) vector 48
2 CPUs available, 2 CPUs total
MCA related initialization done
Virtual mem_map starts at 0xa0007fffc7900000
Built 1 zonelists
Kernel command line: BOOT_IMAGE=scsi0:EFI\redhat\l-zx1-smp.gz
console=ttyS0 root=LABEL=/ ro
PID hash table entries: 4096 (order: 12, 131072 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 262144 (order: 7, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 6, 1048576 bytes)
Memory: 2041632k/2086064k available (8308k code, 43248k reserved, 3585k
data, 272k init)
McKinley Errata 9 workaround not needed; disabling it
Mount-cache hash table entries: 1024
 tbxface-0109 [02] load_tables           : ACPI Tables successfully
acquired
Parsing all Control Methods:
Table [DSDT](id 000D) - 158 Objects with 11 Devices 106 Methods 0
Regions
Parsing all Control Methods:
Table [SSDT](id 0004) - 13 Objects with 1 Devices 9 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 0005) - 29 Objects with 3 Devices 23 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 0006) - 69 Objects with 9 Devices 41 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 0007) - 69 Objects with 9 Devices 41 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 0008) - 69 Objects with 9 Devices 41 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 0009) - 69 Objects with 9 Devices 41 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 000A) - 7 Objects with 0 Devices 5 Methods 0 Regions
Parsing all Control Methods:
Table [SSDT](id 000B) - 7 Objects with 0 Devices 5 Methods 0 Regions
ACPI Namespace successfully loaded at root a000000101bb41e0
evxfevnt-0079 [03] enable                : System is already in ACPI
mode
Boot processor id 0x0/0x0
CPU 1: synchronized ITC with CPU 0 (last diff -2 cycles, maxerr 554
cycles)
Brought up 2 CPUs
Total of 2 processors activated (3891.20 BogoMIPS).
migration_cost=3225
checking if image is initramfs... it is
Freeing initrd memory: 1264kB freed
NET: Registered protocol family 16
ACPI: bus type pci registered
ACPI: Subsystem revision 20060127
evgpeblk-0941 [06] ev_create_gpe_block   : GPE 00 to 0F [_GPE] 2 regs on
int 0x24
evgpeblk-0941 [06] ev_create_gpe_block   : GPE 10 to 1F [_GPE] 2 regs on
int 0x24
evgpeblk-1037 [05] ev_initialize_gpe_bloc: Found 0 Wake, Enabled 0
Runtime GPEs in this block
evgpeblk-1037 [05] ev_initialize_gpe_bloc: Found 0 Wake, Enabled 1
Runtime GPEs in this block
Completing Region/Field/Buffer/Package initialization:.
Initialized 0/0 Regions 0/0 Fields 0/0 Buffers 1/1 Packages (499 nodes)
Executing all Device _STA and_INI methods:..[ACPI Debug]  String: [0x04]
"_INI"
[ACPI Debug]  String: [0x1E] "Pointer And Rev are Not valid
"
[ACPI Debug]  String: [0x29] "Initializing the SCRAM data struct access"
[ACPI Debug]  String: [0x0E] "Executing GFIT"
[ACPI Debug]  String: [0x1D] "Init of scratch RAM complete!"
......................................................
56 Devices found - executed 0 _STA, 1 _INI methods
ACPI: Interpreter enabled
ACPI: Using IOSAPIC for interrupt routing
[ACPI Debug]  String: [0x0A] "CLIB.SBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000002
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Sba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Sba Ptr is "
[ACPI Debug]  Integer: 0x3FEF8070
[ACPI Debug]  String: [0x0A] "CLIB.BMC 2"
[ACPI Debug]  Integer: 0x00000002
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000005
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting BMC Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "BMC Ptr is "
[ACPI Debug]  Integer: 0x3FEF8020
[ACPI Debug]  String: [0x0A] "CLIB.BMC 2"
[ACPI Debug]  Integer: 0x00000002
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000005
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting BMC Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "BMC Ptr is "
[ACPI Debug]  Integer: 0x3FEF8020
[ACPI Debug]  String: [0x06] "_STA 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
[ACPI Debug]  String: [0x06] "_HID 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
[ACPI Debug]  String: [0x06] "_STA 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
[ACPI Debug]  String: [0x06] "_BBN 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
ACPI: PCI Root Bridge [PCI0] (0000:00)
[ACPI Debug]  String: [0x06] "_CRS 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000003
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1A] "PARS.GPTR: Getting Lba Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP3"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "Lba Ptr is "
[ACPI Debug]  Integer: 0x3FEF81E0
[ACPI Debug]  String: [0x18] "Assert will not go fatal"
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000006
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x21] "PARS.GPTR: Getting SERIAL DEV Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x12] "SERIAL DEV Ptr is "
[ACPI Debug]  Integer: 0x3FEF9980
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"
[ACPI Debug]  Integer: 0x00000006
[ACPI Debug]  Integer: 0x00010000
[ACPI Debug]  String: [0x21] "PARS.GPTR: Getting SERIAL DEV Ptr"
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x1F] "PARS.GUID: evaluating for COMP2"
[ACPI Debug]  Integer: 0x00000001
[ACPI Debug]  String: [0x12] "SERIAL DEV Ptr is "
[ACPI Debug]  Integer: 0x3FEF99A0
kernel unaligned access to 0xe000004040e7a434, ip=0xa0000001003c81a0
kernel unaligned access to 0xe000004040e7a46c, ip=0xa0000001003c81a0
kernel unaligned access to 0xe000004040e7a4bc, ip=0xa0000001003c81a0
kernel unaligned access to 0xe000004040e7a42c, ip=0xa0000001003c6ca1
kernel unaligned access to 0xe000004040e7a434, ip=0xa0000001003c6cb1
[ACPI Debug]  String: [0x06] "_CRS 0"
[ACPI Debug]  String: [0x0A] "CLIB.LBA 1"
[ACPI Debug]  Integer: 0x00000000
[ACPI Debug]  String: [0x0B] "PARS.GPTR 2"

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 23:15 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 23:15 UTC (permalink / raw)
  To: Moore, Robert, Luck, Tony, Thomas Renninger, Brown, Len
  Cc: linux-acpi, linux-ia64

It could be either

acpi_set_current_resources or
acpi_get_current_resources



> -----Original Message-----
> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> owner@vger.kernel.org] On Behalf Of Moore, Robert
> Sent: Friday, February 10, 2006 3:07 PM
> To: Luck, Tony; Thomas Renninger; Brown, Len
> Cc: linux-acpi@vger.kernel.org; linux-ia64@vger.kernel.org
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> You may need to selectively enable/disable the debug trace during a
> particular call.
> 
> I suspect that the problem is happening during the execution of the
> ACPICA interface AcpiSetCurrentResources (aka
> acpi_set_current_resources).
> 
> Here's the way I would do it:
> 
> Set a breakpoint on acpi_set_current_resources. When you get there,
> enable debug output. When finished, disable debugging.
> 
> If this isn't possible with your debugger, you can always change the
> source to enable/disable debugging at the start and end of
> acpi_set_current_resources.
> 
> Bob
> 
> 
> > -----Original Message-----
> > From: Luck, Tony
> > Sent: Friday, February 10, 2006 2:59 PM
> > To: Moore, Robert; 'Thomas Renninger'; Brown, Len
> > Cc: 'linux-acpi@vger.kernel.org'; 'linux-ia64@vger.kernel.org'
> > Subject: RE: some new unaligned access while booting ia64 (HP
rx2620)
> >
> > > That looks good. You'll probably need to increase your dmesg
buffer
> > > or send the output to a serial port, since you will get megabytes
> > > of info.
> >
> > I only have a serial port on this machine ... but all the
interesting
> > output happens before it is enabled ... i.e. is buffered up in
log_buf
> > until the serial console is brought online.
> >
> > I made log_buf as big as I could (2^21 bytes is the biggest it would
> > let me go), and that is not enough for all the ACPI messages ... so
> the
> > initial part where the unaligned messages were printed was lost in
the
> > wraparound before anything could be dumped to the serial port.
> >
> > Now I've got network problems in the lab ... when I can reconnect to
> > my systems, I'll change lib/Kconfig.debug to allow a bigger log_buf
> > and try again.
> >
> > -Tony
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi"
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 23:07 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 23:07 UTC (permalink / raw)
  To: Luck, Tony, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

You may need to selectively enable/disable the debug trace during a
particular call.

I suspect that the problem is happening during the execution of the
ACPICA interface AcpiSetCurrentResources (aka
acpi_set_current_resources).

Here's the way I would do it:

Set a breakpoint on acpi_set_current_resources. When you get there,
enable debug output. When finished, disable debugging.

If this isn't possible with your debugger, you can always change the
source to enable/disable debugging at the start and end of
acpi_set_current_resources.

Bob


> -----Original Message-----
> From: Luck, Tony
> Sent: Friday, February 10, 2006 2:59 PM
> To: Moore, Robert; 'Thomas Renninger'; Brown, Len
> Cc: 'linux-acpi@vger.kernel.org'; 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> > That looks good. You'll probably need to increase your dmesg buffer
> > or send the output to a serial port, since you will get megabytes
> > of info.
> 
> I only have a serial port on this machine ... but all the interesting
> output happens before it is enabled ... i.e. is buffered up in log_buf
> until the serial console is brought online.
> 
> I made log_buf as big as I could (2^21 bytes is the biggest it would
> let me go), and that is not enough for all the ACPI messages ... so
the
> initial part where the unaligned messages were printed was lost in the
> wraparound before anything could be dumped to the serial port.
> 
> Now I've got network problems in the lab ... when I can reconnect to
> my systems, I'll change lib/Kconfig.debug to allow a bigger log_buf
> and try again.
> 
> -Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 22:58 Luck, Tony
  2006-02-11 21:25 ` Bjorn Helgaas
  0 siblings, 1 reply; 31+ messages in thread
From: Luck, Tony @ 2006-02-10 22:58 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

> That looks good. You'll probably need to increase your dmesg buffer
> or send the output to a serial port, since you will get megabytes
> of info.

I only have a serial port on this machine ... but all the interesting
output happens before it is enabled ... i.e. is buffered up in log_buf
until the serial console is brought online.

I made log_buf as big as I could (2^21 bytes is the biggest it would
let me go), and that is not enough for all the ACPI messages ... so the
initial part where the unaligned messages were printed was lost in the
wraparound before anything could be dumped to the serial port.

Now I've got network problems in the lab ... when I can reconnect to
my systems, I'll change lib/Kconfig.debug to allow a bigger log_buf
and try again.

-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 21:56 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 21:56 UTC (permalink / raw)
  To: Luck, Tony, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

That looks good. You'll probably need to increase your dmesg buffer or
send the output to a serial port, since you will get megabytes of info.

Zip it up and send it to me.


> -----Original Message-----
> From: Luck, Tony
> Sent: Friday, February 10, 2006 1:54 PM
> To: Moore, Robert; 'Thomas Renninger'; Brown, Len
> Cc: 'linux-acpi@vger.kernel.org'; 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> >Does any debug info come out?
> 
> Perhaps I was too impatient ... I just assumed it was hung
> because it hadn't said anything for a minute after the
> "Loading initrd" message.  When I came back to the console
> all sorts of messages were streaming past.
> 
> I restarted ... the delay is ~10 minutes, the the output
> begins not with the regular kernel messages, but with this:
> 
>  Storing e00000407f4bd108(Integer) into node
e00000407e8e9a30(BufferField)
> exstoren-0075 [18] ex_resolve_object     : ----Entry
> exstoren-0155 [18] ex_resolve_object     : ----Exit- AE_OK
>  exfield-0222 [18] ex_write_data_to_field: ----Entry e00000407efa7dc0
>  exfield-0354 [18] ex_write_data_to_field: field_write [FROM]: Obj
> e00000407f4bd108 (Integer:1), Buf e00000407f4bd120, byte_len 8
>  exfield-0363 [18] ex_write_data_to_field: field_write [TO]:  Obj
> e00000407efa7dc0 (BufferField:E), bit_len 20, bit_off 0, byte_off 13
>  exutils-0192 [19] ex_acquire_global_lock: ----Entry
>  exutils-0208 [19] ex_acquire_global_lock: ----Exit- 0000000000000000
>  exfldio-0783 [19] ex_insert_into_field  : ----Entry
>  exfldio-0562 [20] ex_write_with_update_r: ----Entry FFFFFFFF
>  exfldio-0631 [20] ex_write_with_update_r: Mask FFFFFFFFFFFFFFFF,
> datum_offset 0, Width 4, Value 00000000FF5E0000, merged_value
> 00000000FF5E0000
>  exfldio-0355 [21] ex_field_datum_io     : ----Entry 00000000
>  exfldio-0530 [21] ex_field_datum_io     : Value Written
00000000FF5E0000,
> Width 4
>  exfldio-0534 [21] ex_field_datum_io     : ----Exit- AE_OK
> 
> It is unclear whether the system is making progress.
> 
> 
> 
> I tried using CONFIG_ACPI_DEBUG=y on an Intel tiger.  It booted ok.
> 
> 
> -Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 21:54 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-10 21:54 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

>Does any debug info come out?

Perhaps I was too impatient ... I just assumed it was hung
because it hadn't said anything for a minute after the
"Loading initrd" message.  When I came back to the console
all sorts of messages were streaming past.

I restarted ... the delay is ~10 minutes, the the output
begins not with the regular kernel messages, but with this:

 Storing e00000407f4bd108(Integer) into node
e00000407e8e9a30(BufferField)
exstoren-0075 [18] ex_resolve_object     : ----Entry
exstoren-0155 [18] ex_resolve_object     : ----Exit- AE_OK
 exfield-0222 [18] ex_write_data_to_field: ----Entry e00000407efa7dc0
 exfield-0354 [18] ex_write_data_to_field: field_write [FROM]: Obj
e00000407f4bd108 (Integer:1), Buf e00000407f4bd120, byte_len 8
 exfield-0363 [18] ex_write_data_to_field: field_write [TO]:  Obj
e00000407efa7dc0 (BufferField:E), bit_len 20, bit_off 0, byte_off 13
 exutils-0192 [19] ex_acquire_global_lock: ----Entry
 exutils-0208 [19] ex_acquire_global_lock: ----Exit- 0000000000000000
 exfldio-0783 [19] ex_insert_into_field  : ----Entry
 exfldio-0562 [20] ex_write_with_update_r: ----Entry FFFFFFFF
 exfldio-0631 [20] ex_write_with_update_r: Mask FFFFFFFFFFFFFFFF,
datum_offset 0, Width 4, Value 00000000FF5E0000, merged_value
00000000FF5E0000
 exfldio-0355 [21] ex_field_datum_io     : ----Entry 00000000
 exfldio-0530 [21] ex_field_datum_io     : Value Written
00000000FF5E0000, Width 4
 exfldio-0534 [21] ex_field_datum_io     : ----Exit- AE_OK

It is unclear whether the system is making progress.



I tried using CONFIG_ACPI_DEBUG=y on an Intel tiger.  It booted ok.


-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 21:19 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 21:19 UTC (permalink / raw)
  To: Luck, Tony, Thomas Renninger, Brown, Len; +Cc: linux-acpi, linux-ia64

Yes, In linux everything gets converted to lower case, sorry.

The debug trace mechanism is known to work, I hope it isn't broken on
IA64. 

Does any debug info come out?

Bob


> -----Original Message-----
> From: Luck, Tony
> Sent: Friday, February 10, 2006 1:16 PM
> To: Moore, Robert; 'Thomas Renninger'
> Cc: 'linux-acpi@vger.kernel.org'; 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> > Enabling debugging in the ACPI subsystem will certainly give this
> > information. AcpiDebugLevel = 0x00FFFFFF works nicely, although
> > a lot of trace info is produced.
> 
> There is no AcpiDebugLevel in the Linux kernel.  I did find a
> variable "acpidbg_level" ... so I set CONFIG_ACPI_DEBUG=y and
> added
> 	acpi_dbg_level = 0x00FFFFFF;
> at the start of init/main.c/start_kernel()
> 
> But then my system didn't boot at all :-(
> 
> Tried again w/o the "acpi_dbg_level = 0x00FFFFFF;", and that didn't
> boot either.  So there is something bad in the CONFIG_ACPI_DEBUG
> code.
> 
> -Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 21:15 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-10 21:15 UTC (permalink / raw)
  To: Moore, Robert, Thomas Renninger; +Cc: linux-acpi, linux-ia64

> Enabling debugging in the ACPI subsystem will certainly give this
> information. AcpiDebugLevel = 0x00FFFFFF works nicely, although
> a lot of trace info is produced.

There is no AcpiDebugLevel in the Linux kernel.  I did find a
variable "acpidbg_level" ... so I set CONFIG_ACPI_DEBUG=y and
added
	acpi_dbg_level = 0x00FFFFFF;
at the start of init/main.c/start_kernel()

But then my system didn't boot at all :-(

Tried again w/o the "acpi_dbg_level = 0x00FFFFFF;", and that didn't
boot either.  So there is something bad in the CONFIG_ACPI_DEBUG
code.

-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-10 20:11 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-10 20:11 UTC (permalink / raw)
  To: Thomas Renninger; +Cc: Luck, Tony, linux-acpi, linux-ia64

When the resource descriptor list (ResourceTemplate) is extracted from
the raw AML byte stream, it is converted and expanded to an internal
format that is easier for the drivers to interpret. For IA64, this
includes alignment of the various structs on 64-bit boundaries.

I suspect that the recent restructuring of the Resource Manager code may
have broken some of the alignment support. Obviously, we don't see any
issues on the 32-bit machines. 

What I need is to know exactly what control method has executed and what
resource descriptor is being processed when the alignment fault(s)
occur. 

Enabling debugging in the ACPI subsystem will certainly give this
information. AcpiDebugLevel = 0x00FFFFFF works nicely, although a lot of
trace info is produced. You can tweak the number above to get just the
info you need, or enable/disable debugging around a particular piece of
code, such as in a driver that is calling the ACPI subsystem to get the
resource descriptor template.

Also, the length of the target buffer for the resource descriptors is
calculated taking alignment issues into account. If this is out of sync
with the code that actually populates the buffer, the buffer can be
overrun.

Bob


> -----Original Message-----
> From: Thomas Renninger [mailto:trenn@suse.de]
> Sent: Thursday, February 09, 2006 6:08 PM
> To: Moore, Robert
> Cc: Luck, Tony; linux-acpi@vger.kernel.org; linux-ia64@vger.kernel.org
> Subject: Re: some new unaligned access while booting ia64 (HP rx2620)
> 
> Moore, Robert wrote:
> > The next thing that would be useful is to know what method(s) are
> > executing when the message pops out.
> >
> >
> >> -----Original Message-----
> >> From: Luck, Tony
> >> Sent: Thursday, February 09, 2006 1:16 PM
> >> To: Moore, Robert; 'linux-acpi@vger.kernel.org'
> >> Cc: 'linux-ia64@vger.kernel.org'
> >> Subject: RE: some new unaligned access while booting ia64 (HP
rx2620)
> >>
> >> But I goofed and muddled up my two problems.  I tried
> >> booting on my zx1 ... which was broken altogether by
> >> recent acpi changes.
> >>
> >> Getting back to the rx2620 ... deleting those lines makes
> >> no difference.  I still boot ok, I still see the unaligned
> >> access messages.
> >>
> >> /proc/acpi/dsdt for that system attached.
> >>
> >> -Tony
> 
> I also got kernel missalignment errors..., unfortunately also
> a lot of slab debugger errors until the machine rebooted, so
> I didn't care too much about the missalignments, but these
> could have the same cause?
> 
> I now could nail the mem
> corruptions down to ACPICA-20051021 by binary search.
> It's late, maybe I got something wrong, but I am quite sure the
> culprit lies there.
> 
> The patch is huge, but maybe it's just one of the other pragmas or
> whatever related?:
> 
> grep pragma ../ACPICA_20051021.patch
> +#pragma pack(1)
> +#pragma pack()
> +#pragma pack(1)
> +#pragma pack()
> 
> 
>      Thomas

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 21:15 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-09 21:15 UTC (permalink / raw)
  To: Moore, Robert, linux-acpi; +Cc: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

But I goofed and muddled up my two problems.  I tried
booting on my zx1 ... which was broken altogether by
recent acpi changes.

Getting back to the rx2620 ... deleting those lines makes
no difference.  I still boot ok, I still see the unaligned
access messages.

/proc/acpi/dsdt for that system attached.

-Tony

[-- Attachment #2: dtdt.rx2620 --]
[-- Type: application/octet-stream, Size: 24380 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 21:04 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-09 21:04 UTC (permalink / raw)
  To: Moore, Robert, linux-acpi; +Cc: linux-ia64

> The alignment stuff is based upon __IA64__ or __ia64__, make sure one
of these is set.

__ia64__ is set

-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 20:55 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-09 20:55 UTC (permalink / raw)
  To: Luck, Tony, linux-acpi; +Cc: linux-ia64

Well, we need to know which it was.

The alignment stuff is based upon __IA64__ or __ia64__, make sure one of
these is set.


/*
 * In the case of the Itanium Processor Family (IPF), the hardware does
not
 * support misaligned memory transfers. Set the
MISALIGNMENT_NOT_SUPPORTED flag
 * to indicate that special precautions must be taken to avoid alignment
faults.
 * (IA64 or ia64 is currently used by existing compilers to indicate
IPF.)
 *
 * Note: EM64T and other X86-64 processors support misaligned transfers,
 * so there is no need to define this flag.
 */
#if defined (__IA64__) || defined (__ia64__)
#define ACPI_MISALIGNMENT_NOT_SUPPORTED
#endif


> -----Original Message-----
> From: Luck, Tony
> Sent: Thursday, February 09, 2006 12:45 PM
> To: Moore, Robert; 'linux-acpi@vger.kernel.org'
> Cc: 'linux-ia64@vger.kernel.org'
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> > You might try removing this code from actypes.h:
> >
> > /*
> >  * If possible, pack the following structures to byte alignment
> >  */
> > #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
> > #pragma pack(1)
> > #endif
> 
> Either this made things worse, or other changes in the base since
> my last test made things worse ... after rebuilding with those lines
> deleted my kernel got less far.  Last messages were:
> 
>    Initial ramdisk at: 0xe00000003e43b000 (1303588 bytes)
>    SAL 3.1: HP version 2.21
>    SAL Platform features: None
> 
> > Please send the dsdt or acpidump for this machine
> 
> /proc/acpi/dsdt attached.
> 
> -Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 20:44 Luck, Tony
  0 siblings, 0 replies; 31+ messages in thread
From: Luck, Tony @ 2006-02-09 20:44 UTC (permalink / raw)
  To: Moore, Robert, linux-acpi; +Cc: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

> You might try removing this code from actypes.h:
> 
> /*
>  * If possible, pack the following structures to byte alignment
>  */
> #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
> #pragma pack(1)
> #endif

Either this made things worse, or other changes in the base since
my last test made things worse ... after rebuilding with those lines
deleted my kernel got less far.  Last messages were:

   Initial ramdisk at: 0xe00000003e43b000 (1303588 bytes)
   SAL 3.1: HP version 2.21
   SAL Platform features: None

> Please send the dsdt or acpidump for this machine

/proc/acpi/dsdt attached.

-Tony

[-- Attachment #2: dsdt --]
[-- Type: application/octet-stream, Size: 22401 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-09 16:56 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-09 16:56 UTC (permalink / raw)
  To: Luck, Tony, linux-acpi; +Cc: linux-ia64

I'm wondering if the resource structures are being inadvertently packed.

You might try removing this code from actypes.h:

/*
 * If possible, pack the following structures to byte alignment
 */
#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
#pragma pack(1)
#endif

Please send the dsdt or acpidump for this machine
Thanks,
Bob



> -----Original Message-----
> From: Moore, Robert
> Sent: Thursday, February 02, 2006 2:29 PM
> To: Luck, Tony; linux-acpi@vger.kernel.org
> Cc: linux-ia64@vger.kernel.org
> Subject: RE: some new unaligned access while booting ia64 (HP rx2620)
> 
> The ACPICA resource manager was mostly rewritten around the 20051021
time
> frame, and we may have disturbed some of the aligned access support.
I'll
> look at these, it looks like enough info to fix them.
> 
> Thanks,
> Bob
> 
> 
> > -----Original Message-----
> > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> > owner@vger.kernel.org] On Behalf Of Luck, Tony
> > Sent: Thursday, February 02, 2006 11:46 AM
> > To: linux-acpi@vger.kernel.org
> > Cc: linux-ia64@vger.kernel.org
> > Subject: some new unaligned access while booting ia64 (HP rx2620)
> >
> > Booting a snapshot of Linus' tree this morning I saw a few (new?)
> > kernel unaligned access warnings:
> >
> > ACPI: Subsystem revision 20060127
> > ACPI: Interpreter enabled
> > ACPI: Using IOSAPIC for interrupt routing
> > ACPI: PCI Root Bridge [PCI0] (0000:00)
> > kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a23c, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a28c, ip=0xa0000001003af8c0
> > kernel unaligned access to 0xe00000407ec5a1fc, ip=0xa0000001003ae6c1
> > kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003ae6d1
> > ACPI: PCI Interrupt Routing Table [\_SB_.SBA0.PCI0._PRT]
> > ACPI: PCI Root Bridge [PCI1] (0000:20)
> >
> > The first three at ip=0xa0000001003af8c0 are in
> > acpi_rs_get_resource_source()
> > while zeroing a 64-bit value:
> > a0000001003af8c0:       dc 00 00 46 98 11       [MFB] (p06) st8
[r35]=r0
> >
> > Which looks from the assembly code like we are doing a:
> >    resource_source->string_ptr = 0;
> > but I don't see anything quite like that in the C source (but
> > there may be macros & inlining happening).
> >
> > The other two, ip=0xa0000001003ae6c1 and ip=0xa0000001003ae6d1 are
in
> > acpi_resource_to_address64() close together in this little
> > block:
> >
> > a0000001003ae6c6:       50 02 58 30 20 00                   ld8
> r37=[r22]
> > a0000001003ae6cc:       00 00 00 20                         nop.b
0x0;;
> > a0000001003ae6d0:       19 00 94 1e 98 11       [MMB]       st8
> [r15]=r37
> > a0000001003ae6d6:       70 02 40 30 20 00                   ld8
> r39=[r16]
> >
> > These loads are dereferencing the acpi_resource structure that was
> passed
> > as the first argument (offsets 40 and 48 bytes).
> >
> > -Tony
> > -
> > To unsubscribe from this list: send the line "unsubscribe
linux-acpi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 31+ messages in thread
* RE: some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-02 22:28 Moore, Robert
  0 siblings, 0 replies; 31+ messages in thread
From: Moore, Robert @ 2006-02-02 22:28 UTC (permalink / raw)
  To: Luck, Tony, linux-acpi; +Cc: linux-ia64

The ACPICA resource manager was mostly rewritten around the 20051021
time frame, and we may have disturbed some of the aligned access
support. I'll look at these, it looks like enough info to fix them.

Thanks,
Bob


> -----Original Message-----
> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> owner@vger.kernel.org] On Behalf Of Luck, Tony
> Sent: Thursday, February 02, 2006 11:46 AM
> To: linux-acpi@vger.kernel.org
> Cc: linux-ia64@vger.kernel.org
> Subject: some new unaligned access while booting ia64 (HP rx2620)
> 
> Booting a snapshot of Linus' tree this morning I saw a few (new?)
> kernel unaligned access warnings:
> 
> ACPI: Subsystem revision 20060127
> ACPI: Interpreter enabled
> ACPI: Using IOSAPIC for interrupt routing
> ACPI: PCI Root Bridge [PCI0] (0000:00)
> kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003af8c0
> kernel unaligned access to 0xe00000407ec5a23c, ip=0xa0000001003af8c0
> kernel unaligned access to 0xe00000407ec5a28c, ip=0xa0000001003af8c0
> kernel unaligned access to 0xe00000407ec5a1fc, ip=0xa0000001003ae6c1
> kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003ae6d1
> ACPI: PCI Interrupt Routing Table [\_SB_.SBA0.PCI0._PRT]
> ACPI: PCI Root Bridge [PCI1] (0000:20)
> 
> The first three at ip=0xa0000001003af8c0 are in
> acpi_rs_get_resource_source()
> while zeroing a 64-bit value:
> a0000001003af8c0:       dc 00 00 46 98 11       [MFB] (p06) st8
[r35]=r0
> 
> Which looks from the assembly code like we are doing a:
>    resource_source->string_ptr = 0;
> but I don't see anything quite like that in the C source (but
> there may be macros & inlining happening).
> 
> The other two, ip=0xa0000001003ae6c1 and ip=0xa0000001003ae6d1 are in
> acpi_resource_to_address64() close together in this little
> block:
> 
> a0000001003ae6c6:       50 02 58 30 20 00                   ld8
r37=[r22]
> a0000001003ae6cc:       00 00 00 20                         nop.b
0x0;;
> a0000001003ae6d0:       19 00 94 1e 98 11       [MMB]       st8
[r15]=r37
> a0000001003ae6d6:       70 02 40 30 20 00                   ld8
r39=[r16]
> 
> These loads are dereferencing the acpi_resource structure that was
passed
> as the first argument (offsets 40 and 48 bytes).
> 
> -Tony
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi"
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 31+ messages in thread
* some new unaligned access while booting ia64 (HP rx2620)
@ 2006-02-02 19:46 Luck, Tony
  2006-03-14 23:59 ` Bjorn Helgaas
  0 siblings, 1 reply; 31+ messages in thread
From: Luck, Tony @ 2006-02-02 19:46 UTC (permalink / raw)
  To: linux-acpi; +Cc: linux-ia64

Booting a snapshot of Linus' tree this morning I saw a few (new?)
kernel unaligned access warnings:

ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOSAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003af8c0
kernel unaligned access to 0xe00000407ec5a23c, ip=0xa0000001003af8c0
kernel unaligned access to 0xe00000407ec5a28c, ip=0xa0000001003af8c0
kernel unaligned access to 0xe00000407ec5a1fc, ip=0xa0000001003ae6c1
kernel unaligned access to 0xe00000407ec5a204, ip=0xa0000001003ae6d1
ACPI: PCI Interrupt Routing Table [\_SB_.SBA0.PCI0._PRT]
ACPI: PCI Root Bridge [PCI1] (0000:20)

The first three at ip=0xa0000001003af8c0 are in acpi_rs_get_resource_source()
while zeroing a 64-bit value:
a0000001003af8c0:       dc 00 00 46 98 11       [MFB] (p06) st8 [r35]=r0

Which looks from the assembly code like we are doing a:
   resource_source->string_ptr = 0;
but I don't see anything quite like that in the C source (but
there may be macros & inlining happening).

The other two, ip=0xa0000001003ae6c1 and ip=0xa0000001003ae6d1 are in
acpi_resource_to_address64() close together in this little
block:

a0000001003ae6c6:       50 02 58 30 20 00                   ld8 r37=[r22]
a0000001003ae6cc:       00 00 00 20                         nop.b 0x0;;
a0000001003ae6d0:       19 00 94 1e 98 11       [MMB]       st8 [r15]=r37
a0000001003ae6d6:       70 02 40 30 20 00                   ld8 r39=[r16]

These loads are dereferencing the acpi_resource structure that was passed
as the first argument (offsets 40 and 48 bytes).

-Tony

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2006-03-15 17:16 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09 23:43 some new unaligned access while booting ia64 (HP rx2620) Moore, Robert
2006-02-10  2:07 ` Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2006-03-15 17:14 Moore, Robert
2006-03-15 15:47 Moore, Robert
2006-03-15 16:49 ` Bjorn Helgaas
2006-02-11  0:39 Luck, Tony
2006-02-11 12:21 ` Robin Holt
2006-02-10 23:58 Luck, Tony
2006-02-10 23:31 Moore, Robert
2006-02-13 18:51 ` Thomas Renninger
2006-02-13 22:33   ` Bjorn Helgaas
2006-02-13 22:57     ` Andreas Schwab
2006-02-14  0:22       ` Bjorn Helgaas
2006-02-10 23:25 Luck, Tony
2006-02-10 23:15 Moore, Robert
2006-02-10 23:07 Moore, Robert
2006-02-10 22:58 Luck, Tony
2006-02-11 21:25 ` Bjorn Helgaas
2006-02-10 21:56 Moore, Robert
2006-02-10 21:54 Luck, Tony
2006-02-10 21:19 Moore, Robert
2006-02-10 21:15 Luck, Tony
2006-02-10 20:11 Moore, Robert
2006-02-09 21:15 Luck, Tony
2006-02-09 21:04 Luck, Tony
2006-02-09 20:55 Moore, Robert
2006-02-09 20:44 Luck, Tony
2006-02-09 16:56 Moore, Robert
2006-02-02 22:28 Moore, Robert
2006-02-02 19:46 Luck, Tony
2006-03-14 23:59 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox