RE: driver to support ACPI AML calls to native firmware

2007-10-05 Thread Luck, Tony
> Ping! Tony, can you let me know your plans for this patch? I'd > like to get it into a distro release, and of course, it's best if > you accept it first. I'll put it in soon. My only vague concern is whether it should be more accessible for other OEMs who want to do the SAL/ACPI sharing thing

RE: [RFC] module to support ACPI AML calls to native firmware

2007-09-18 Thread Luck, Tony
> If you don't object to the two patches, can you incorporate them > as originally posted? If you'd prefer a different approach, I'd > be happy to rework them, of course. I think that adding 4K to the kernel (about 0.04% increase looking at a recent build ... or 0.0001% of total memory on a 4G sy

RE: scripts/mod/file2alias.c cross compile problem

2007-08-16 Thread Luck, Tony
> -#define ACPI_ID_LEN 9 > +#define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ What will happen if someone uses more than 9 bytes? With the old limit there would be a compile time error it someone initialized with: {"PNP0C0ABCDEFGH", 0}, But if we change ACPI_ID_

RE: scripts/mod/file2alias.c cross compile problem

2007-08-02 Thread Luck, Tony
>>> struct acpi_device_id { >>> __u8 id[ACPI_ID_LEN]; >>> + __u8 dummy[FILLUP_LEN]; >>> kernel_ulong_t driver_data; >>> }; >> >> What's so special about this structure that we get an error? > > It's special because it's a device_id structure, and those structures > must come out identic

RE: scripts/mod/file2alias.c cross compile problem

2007-08-02 Thread Luck, Tony
> Adrian Bunk: scripts/mod/file2alias.c is compiled with HOSTCC and ensures that > kernel_ulong_t is correct, but it can't cope with different padding on > different architectures. Surely this is the root cause ... you can't expect that the alignment rules of HOSTCC to make any sense for an arbitr

RE: regression on HP zx1 platform from ACPI autoload modulespatches

2007-07-31 Thread Luck, Tony
> Tony, it looks like the patch has not hit Linus tree yet: Huh? I can see it in his tree via gitweb. Here's the patch: http://tinyurl.com/3csnu6 and the raw "blob" for sba_iommu.c: http://tinyurl.com/397cy6 [Scroll down to line 2018 and you'll see the new code in place]. S

RE: regression on HP zx1 platform from ACPI autoload modulespatches

2007-07-31 Thread Luck, Tony
> commit 8c8eb78f673c07b60f31751e1e47ac367c60c6b7 Oops. I cut & pasted the wrong commit id. The fix went in as commit 7091138fb762aed22317b4ff91eb211e7da3865c. > FYI, I did a git pull yesterday just before I hit this issue so I should > have had the latest stuff. So this confuses me. Linus pu

[PATCH] Section mismatch ... acpi_map_pxm_to_node

2007-05-24 Thread Luck, Tony
Last of the "Section mismatch" errors from ia64 builds! acpi_map_pxm_to_node() is defined with attribute __cpuinit, but is called by "normal" kernel functions acpi_getnode() and acpi_map_cpu2node(). Commit f363d16fbb9374c0bd7f2757d412c287169094c9 moved the data structures on which this routine ope

RE: IA64 ACPI build issues

2007-01-26 Thread Luck, Tony
> This seems to make it through my evil config script that tries everything -- > by making the two failing configs I sent you simply impossible. Passes through my regular build regression script (which doesn't try everything, but does hit eleven different configs) too. Thanks -Tony - To unsubscr

RE: IA64 ACPI build issues

2007-01-24 Thread Luck, Tony
> Some of the IA64 code assumes that ACPI is optional, > and some assumes that it is not. The situation now is that the simulator doesn't want ACPI, and everything else needs it (even "allnoconfig" ends up with CONFIG_ACPI=y!). So the solution that you suggest near the end of your mail of making

RE: [PATCH] ACPI: fix vendor resource length computation

2006-02-15 Thread Luck, Tony
> I'm working on the alignment issue also, should be a fix this week. With Bjorn's tip on using console=uart,mmio,0x{address} I can now get a complete trace from boot using acpi_dbg_level = 0xff ... well in theory I can, I started the boot two days ago and have 2.2 million lines of output so f

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
> 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 lo

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
> 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 = 0xff; while trying to figure out what was going wrong with CONFIG_ACPI_DEBUG=y. Putting it back in, 16MB is not enough for lo

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
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 ([EMAIL PROTECTED]) (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=

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
> 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 th

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
>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

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-10 Thread Luck, Tony
> Enabling debugging in the ACPI subsystem will certainly give this > information. AcpiDebugLevel = 0x00FF 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

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-09 Thread Luck, Tony
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 att

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-09 Thread Luck, Tony
> The alignment stuff is based upon __IA64__ or __ia64__, make sure one of these is set. __ia64__ is set -Tony - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: some new unaligned access while booting ia64 (HP rx2620)

2006-02-09 Thread Luck, Tony
> 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 .

RE: [Lhms-devel] [RFC:PATCH(000/003)] Memory add to onlined node. (ver. 2)

2006-02-09 Thread Luck, Tony
> - if the node is already online.- If the node is offline, > (It means new node is comming!) then the memory will belongs > to node 0 yet. What is the long term plan to address this? Can you make sure that the new node is always brought online before you get to this code? Or will you have to

some new unaligned access while booting ia64 (HP rx2620)

2006-02-02 Thread Luck, Tony
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] (:00) kernel unaligned access to 0xe0407ec5a204, ip=0xa