[PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
Fix for modpost warning: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined! --- linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c.orig 2005-03-13 07:44:05.0 +0100 +++ linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c 2005-03-15 23:20:00.405832368 +0100 @@ -67,6 +67,9 @@ EXPORT_SYMBOL(alpha_using_srm); #endif /* CONFIG_ALPHA_GENERIC */ +#include +EXPORT_SYMBOL(pm_power_off); + /* platform dependent support */ EXPORT_SYMBOL(strcat); EXPORT_SYMBOL(strcmp); --- linux-2.6.11.3/arch/alpha/kernel/process.c.orig 2005-03-13 07:44:40.0 +0100 +++ linux-2.6.11.3/arch/alpha/kernel/process.c 2005-03-15 23:28:15.687538104 +0100 @@ -183,6 +183,8 @@ EXPORT_SYMBOL(machine_power_off); +void (*pm_power_off)(void) = machine_power_off; + /* Used by sysrq-p, among others. I don't believe r9-r15 are ever saved in the context it's used. */
Re: [PATCH 2.6.11] IBM TrackPoint support
On Monday 14 of March 2005 06:02, Stephen Evanchik wrote: > Here's the latest patch for TracKPoint devices. I have changed the > sysfs filenames to be more descriptive for commonly used attributes. I > also implemented the set_properties flag for initialization. > > It patches against 2.6.11 and 2.6.11.3 however I have not tested it > with 2.6.11.3 . > > Any comments are appreciated. CC [M] drivers/input/mouse/psmouse-base.o drivers/input/mouse/psmouse-base.c: In function 'psmouse_extensions': drivers/input/mouse/psmouse-base.c:489: error: 'PSMOUSE_TRACKPOINT' undeclared ;-) -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) --- linux-2.6.11.3/drivers/input/mouse/psmouse.h.orig 2005-03-15 20:22:45.0 +0100 +++ linux-2.6.11.3/drivers/input/mouse/psmouse.h 2005-03-15 20:47:12.0 +0100 @@ -79,6 +79,7 @@ PSMOUSE_IMEX, PSMOUSE_SYNAPTICS, PSMOUSE_ALPS, + PSMOUSE_TRACKPOINT, }; int psmouse_sliced_command(struct psmouse *psmouse, unsigned char command);
Re: [2.6.11.3] gcc4 / psmouse.h - compilation fix.
On Sunday 13 of March 2005 17:48, Dmitry Torokhov wrote: > On Sunday 13 March 2005 08:20, PaweÅ Sikora wrote: > > Hi, > > > > Attched patch fixes gcc error: > > `drivers/input/mouse/psmouse.h:40: error: field `ps2dev' has incomplete > > type` > > What file fails compilation? custom patch for trackpoint device. > As far as I can see all users of psmouse.h do > #include first. IMHO each header (e.g. psmouse.h) should include headers for types it uses. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[2.6.11.3] gcc4 / psmouse.h - compilation fix.
Hi, Attched patch fixes gcc error: `drivers/input/mouse/psmouse.h:40: error: field `ps2dev' has incomplete type` Please apply. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) drivers/input/mouse/psmouse.h:40: error: field `ps2dev' has incomplete type --- linux-2.6.11.3/drivers/input/mouse/psmouse.h.orig 2005-03-13 07:44:40.0 +0100 +++ linux-2.6.11.3/drivers/input/mouse/psmouse.h 2005-03-13 14:08:06.0 +0100 @@ -1,6 +1,8 @@ #ifndef _PSMOUSE_H #define _PSMOUSE_H +#include + #define PSMOUSE_CMD_SETSCALE11 0x00e6 #define PSMOUSE_CMD_SETSCALE21 0x00e7 #define PSMOUSE_CMD_SETRES 0x10e8
Re: [PROPOSAL/PATCH] Remove PT_GNU_STACK support before 2.6.11
On Sunday 06 of February 2005 13:47, you wrote: > On Sun, Feb 06, 2005 at 01:03:11PM +0100, Pawel Sikora wrote: > > On Sunday 06 of February 2005 12:36, you wrote: > > > Worse is that even when the program has trampolines and has > > > PT_GNU_STACK header with an E bit on the stack it still won't get an > > > executable heap by default (this is what broke grub) > > > (...) > > > My proposal is to turn this all off at least for 2.6.11. > > > > My proposal is to recompile broken software with cflags += > > -Wa,--noexecstack > > By how do you detect broken software? There doesn't seem to be any > fool proof way other than a extensive test on a NX capable system > with correct kernel. [1] glibc-2.3.4 kill buggy bins at the load time. (please look into: elf/dl-load.c, elf/dl-support.c, elf/rtld.c) This works on i386/PaX systems too (hardware NX isn't required). [2] `readelf -Wl |grep GNU_STACK` shows RWE ;-) Please look at this quick example. # gcc tmp1.c tmp2-invalid.S -o tmp -s # readelf -Wl tmp (...) GNU_STACK 0x00 0x 0x 0x0 0x0 RWE 0x4 ^ execstack? PAX_FLAGS 0x00 0x 0x 0x0 0x0 0x4 (...) Now, let's add section note to the asm. file and rebuild. # gcc tmp1.c tmp2-valid.S -o tmp -s # readelf -Wl tmp (...) GNU_STACK 0x00 0x 0x 0x0 0x0 RW 0x4 PAX_FLAGS 0x00 0x 0x 0x0 0x0 0x4 (...) The execstack req. disappeard (~99% of broken sources). I get the same effect with fixed cflags and invalid source. # gcc tmp1.c tmp2-invalid.S -o tmp -s -Wa,--noexecstack # readelf -Wl tmp (...) GNU_STACK 0x00 0x 0x 0x0 0x0 RW 0x4 PAX_FLAGS 0x00 0x 0x 0x0 0x0 0x4 (...) I known several apps that really need executable data/stack (eg. jvm, xorg). The rest of RWE-marked binaries have IMHO buggy sources. > It would be fine if there was a compile time error or something, > but there isn't. IMHO the `as` should warn about missed (.note.GNU-stack) section. Regards, PaweÅ. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) extern void test(); int main(int argc, char** argv) { test(); return 0; } .text .global test test: ret .end .section .note.GNU-stack,"",@progbits; .previous .text .global test test: ret .end
Re: [PROPOSAL/PATCH] Remove PT_GNU_STACK support before 2.6.11
My proposal is to recompile broken software with cflags += -Wa,--noexecstack. This works fine with e.g. 2.6.10+pax/i386. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
radeonfb - oops
Hi, I get on serial console only this: # dmesg radeonfb_pci_register BEGIN radeonfb: ref_clk=2700, ref_div=60, xclk=15500 from BIOS radeonfb: probed SDR SGRAM 65536k videoram radeon_get_moninfo: bios 4 scratch = 202 Unable to handle kernel paging request at virtual address 083d5020 printing eip: c0215abc *pgd = 0296a001 *pmd = Oops: [#1] Modules linked in: radeonfb snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_util_mem snd_hwdep radeon button nfs 8139too mii md5 ipv6 ext2 mbcache nfsd exportfs lockd sunrpc via_agp agpgart loop ide_cd cdrom psmouse snd_pcm_oss snd_pcm snd_timer snd_page_alloc snd_mixer_oss snd soundcore ide_disk xfs via82cxxx ide_core CPU:0 EIP:0060:[]Not tainted VLI EFLAGS: 00010206 (2.6.10-0.105) EIP is at fb_find_mode+0x12c/0x3f0 eax: 083d5036 ebx: ecx: 0006 edx: c012a840 esi: d0a17381 edi: 083d5020 ebp: c3593dd0 esp: c3593d7c ds: 007b es: 007b ss: 0068 Process modprobe (pid: 4594, threadinfo=c3592000 task=c8d8d040) Stack: 0082 083d5020 d0a17380 003c 0001 003c 0008 01e0 0280 0001 0001 0001 0007 d0a17380 c3677000 c3593dfc c3593dfc c3593dfc c3593e9c c3593df4 d0a1506d c012a840 Call Trace: [] show_stack+0x7a/0x90 [] show_registers+0x14d/0x1b0 [] die+0xc2/0x140 [] do_page_fault+0x2ff/0x75d [] error_code+0x2b/0x30 [] radeon_init_disp_var+0x7d/0x80 [radeonfb] [] radeon_init_disp+0x34/0xa0 [radeonfb] [] radeon_set_fbinfo+0xd0/0xe0 [radeonfb] [] radeonfb_pci_register+0x2df/0x5f0 [radeonfb] [] pci_device_probe_static+0x47/0x60 [] __pci_device_probe+0x31/0x50 [] pci_device_probe+0x26/0x40 [] driver_probe_device+0x2c/0x70 [] driver_attach+0x55/0x90 [] bus_add_driver+0x8b/0xb0 [] driver_register+0x2b/0x30 [] pci_register_driver+0x5f/0x80 [] sys_init_module+0x101/0x180 [] sysenter_past_esp+0x52/0x79 Code: 0c 89 7d bc 73 7c c7 45 b8 00 00 00 00 89 f6 8b 45 b8 8b 55 08 8b 04 02 85 c0 89 45 b0 74 35 8b 75 e8 89 c7 8b 4d e4 49 78 08 ac 75 08 84 c0 75 f5 31 c0 eb 04 19 c0 0c 01 85 c0 75 16 b9 ff # lspci -v 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE] (prog-if 00 [VGA]) Â Â Â Â Subsystem: Giga-byte Technology RV100 QY [RADEON 7000 PRO MAYA AV Series] Â Â Â Â Flags: bus master, stepping, 66Mhz, medium devsel, latency 32, IRQ 145 Â Â Â Â Memory at d000 (32-bit, prefetchable) [size=128M] Â Â Â Â I/O ports at a800 [size=256] Â Â Â Â Memory at dfef (32-bit, non-prefetchable) [size=64K] Â Â Â Â Expansion ROM at dfec [disabled] [size=128K] Â Â Â Â Capabilities: [58] AGP version 2.0 Â Â Â Â Capabilities: [50] Power Management version 2 # sources linux-2.6.10 + minor radeon fixes from BK: linux-2.6-radeonfb-fix-rom-enable-disable.patch linux-2.6-radeonfb-fix-section-usage.patch Help will be appreciated. Regards, PaweÅ. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[ppc] 2.6.10: undefined symbols in modules.
Hi, During kernel build I get these link errors: (...) Building modules, stage 2. MODPOST *** Warning: "vgacon_remap_base" [drivers/video/vga16fb.ko] undefined! *** Warning: "isa_virt_to_bus" [drivers/mmc/wbsd.ko] undefined! *** Warning: "pci_get_legacy_ide_irq" [drivers/ide/pci/amd74xx.ko] undefined! (...) Regards, PaweÅ. -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) # # Automatically generated make config: don't edit # Linux kernel version: 2.6.10-0.102 # Wed Jan 26 13:44:42 2005 # CONFIG_MMU=y CONFIG_GENERIC_HARDIRQS=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_HAVE_DEC_LOCK=y CONFIG_PPC=y CONFIG_PPC32=y CONFIG_GENERIC_NVRAM=y # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y # # General setup # CONFIG_LOCALVERSION="" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_SYSCTL=y CONFIG_AUDIT=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_HOTPLUG=y CONFIG_KOBJECT_UEVENT=y # CONFIG_IKCONFIG is not set # CONFIG_EMBEDDED is not set CONFIG_KALLSYMS=y CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_EXTRA_PASS=y CONFIG_FUTEX=y CONFIG_EPOLL=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SHMEM=y CONFIG_CC_ALIGN_FUNCTIONS=0 CONFIG_CC_ALIGN_LABELS=0 CONFIG_CC_ALIGN_LOOPS=0 CONFIG_CC_ALIGN_JUMPS=0 # CONFIG_TINY_SHMEM is not set # # Loadable module support # CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y CONFIG_OBSOLETE_MODPARM=y # CONFIG_MODVERSIONS is not set # CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_KMOD=y # # Processor # CONFIG_6xx=y # CONFIG_40x is not set # CONFIG_44x is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set # CONFIG_8xx is not set # CONFIG_E500 is not set CONFIG_ALTIVEC=y CONFIG_TAU=y # CONFIG_TAU_INT is not set # CONFIG_TAU_AVERAGE is not set CONFIG_CPU_FREQ=y # CONFIG_CPU_FREQ_DEBUG is not set CONFIG_CPU_FREQ_PROC_INTF=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=m CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=y # CONFIG_CPU_FREQ_24_API is not set CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_PMAC=y CONFIG_CPU_FREQ_TABLE=y # CONFIG_PPC601_SYNC_FIX is not set CONFIG_PM=y CONFIG_PPC_STD_MMU=y # # Platform options # CONFIG_PPC_MULTIPLATFORM=y # CONFIG_APUS is not set # CONFIG_WILLOW is not set # CONFIG_PCORE is not set # CONFIG_POWERPMC250 is not set # CONFIG_EV64260 is not set # CONFIG_SPRUCE is not set # CONFIG_LOPEC is not set # CONFIG_MCPN765 is not set # CONFIG_MVME5100 is not set # CONFIG_PPLUS is not set # CONFIG_PRPMC750 is not set # CONFIG_PRPMC800 is not set # CONFIG_SANDPOINT is not set # CONFIG_ADIR is not set # CONFIG_K2 is not set # CONFIG_PAL4 is not set # CONFIG_GEMINI is not set # CONFIG_EST8260 is not set # CONFIG_SBC82xx is not set # CONFIG_SBS8260 is not set # CONFIG_RPX8260 is not set # CONFIG_TQM8260 is not set # CONFIG_ADS8272 is not set # CONFIG_LITE5200 is not set CONFIG_PPC_CHRP=y CONFIG_PPC_PMAC=y CONFIG_PPC_PREP=y CONFIG_PPC_OF=y CONFIG_PPCBUG_NVRAM=y # CONFIG_SMP is not set # CONFIG_PREEMPT is not set CONFIG_HIGHMEM=y CONFIG_BINFMT_ELF=y CONFIG_BINFMT_MISC=y CONFIG_PROC_DEVICETREE=y # CONFIG_PREP_RESIDUAL is not set # CONFIG_CMDLINE_BOOL is not set # # Bus options # # CONFIG_ISA is not set CONFIG_GENERIC_ISA_DMA=y CONFIG_PCI=y CONFIG_PCI_DOMAINS=y CONFIG_PCI_LEGACY_PROC=y CONFIG_PCI_NAMES=y # # PCCARD (PCMCIA/CardBus) support # CONFIG_PCCARD=m # CONFIG_PCMCIA_DEBUG is not set # CONFIG_PCMCIA_OBSOLETE is not set CONFIG_PCMCIA=m CONFIG_CARDBUS=y # # PC-card bridges # CONFIG_YENTA=m CONFIG_PD6729=m CONFIG_I82092=m CONFIG_TCIC=m # # Advanced setup # # CONFIG_ADVANCED_OPTIONS is not set # # Default settings for advanced configuration options are used # CONFIG_HIGHMEM_START=0xfe00 CONFIG_LOWMEM_SIZE=0x3000 CONFIG_KERNEL_START=0xc000 CONFIG_TASK_SIZE=0x8000 CONFIG_BOOT_LOAD=0x0080 # # Device Drivers # # # Generic Driver Options # # CONFIG_STANDALONE is not set CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=m # CONFIG_DEBUG_DRIVER is not set # # Memory Technology Devices (MTD) # CONFIG_MTD=m # CONFIG_MTD_DEBUG is not set CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CONCAT=m # CONFIG_MTD_REDBOOT_PARTS is not set CONFIG_MTD_CMDLINE_PARTS=y # # User Modules And Translation Layers # CONFIG_MTD_CHAR=m CONFIG_MTD_BLOCK=m # CONFIG_MTD_BLOCK_RO is not set # CONFIG_FTL is not set # CONFIG_NFTL is not set CONFIG_INFTL=m # # RAM/ROM/Flash chip drivers # CONFIG_MTD_CFI=m CONFIG_MTD_JEDECPROBE=m CONFIG_MTD_GEN_PROBE=m CONFIG_MTD_CFI_ADV_OPTIONS=y CONFIG_MTD_CFI_NOSWAP=y # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set # CONFIG_MTD_CFI_GEOMETRY is not set CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set # CONFIG_MTD_MAP_BANK_WIDTH_16