All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ethtool always report port is TP on tg3
From: Karsten Keil @ 2006-05-12 10:05 UTC (permalink / raw)
  To: Michael Chan; +Cc: netdev, Andrew Morton


Even with fiber cards ethtool reports that the connected port is TP,
the patch fix this.

---

 drivers/net/tg3.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

5ed8e79c778ee803e44a325a1e15c0cb3f52d0ff
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index beeb612..0b5bc93 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7653,21 +7653,23 @@ static int tg3_get_settings(struct net_d
 		cmd->supported |= (SUPPORTED_1000baseT_Half |
 				   SUPPORTED_1000baseT_Full);
 
-	if (!(tp->tg3_flags2 & TG3_FLG2_ANY_SERDES))
+	if (!(tp->tg3_flags2 & TG3_FLG2_ANY_SERDES)) {
 		cmd->supported |= (SUPPORTED_100baseT_Half |
 				  SUPPORTED_100baseT_Full |
 				  SUPPORTED_10baseT_Half |
 				  SUPPORTED_10baseT_Full |
 				  SUPPORTED_MII);
-	else
+		cmd->port = PORT_TP;
+	} else {
 		cmd->supported |= SUPPORTED_FIBRE;
+		cmd->port = PORT_FIBRE;
+	}
   
 	cmd->advertising = tp->link_config.advertising;
 	if (netif_running(dev)) {
 		cmd->speed = tp->link_config.active_speed;
 		cmd->duplex = tp->link_config.active_duplex;
 	}
-	cmd->port = 0;
 	cmd->phy_address = PHY_ADDR;
 	cmd->transceiver = 0;
 	cmd->autoneg = tp->link_config.autoneg;
-- 
Karsten Keil
SuSE Labs
ISDN development

^ permalink raw reply related

* [PATCH/rfc] schedule /sys/device/.../power for removal
From: Pavel Machek @ 2006-05-12 10:05 UTC (permalink / raw)
  To: Andrew Morton, kernel list, Linux-pm mailing list

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

It is very ugly, and we really should use names instead.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 421bcff..dfcfc47 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -6,6 +6,16 @@ be removed from this file.
 
 ---------------------------
 
+What:	/sys/device/.../power
+When:	July 2007
+Files:	
+Why:	Because it takes integers, and different userland applications
+	expect different numbers to mean different things.
+	(Pcmcia expect 2 for off, some other code expects 3 for off).
+Who:	Pavel Machek <pavel@suse.cz>
+
+---------------------------
+
 What:	devfs
 When:	July 2005
 Files:	fs/devfs/*, include/linux/devfs_fs*.h and assorted devfs

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related

* [PATCH] swsusp: fix typo in cr0 handling
From: Pavel Machek @ 2006-05-12 10:02 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Writing cr0 to cr2 register can't be right. This fixes the typo. I
wonder how it could survive so long.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c
index 50a0bef..79b2370 100644
--- a/arch/i386/power/cpu.c
+++ b/arch/i386/power/cpu.c
@@ -92,7 +92,7 @@ void __restore_processor_state(struct sa
 	write_cr4(ctxt->cr4);
 	write_cr3(ctxt->cr3);
 	write_cr2(ctxt->cr2);
-	write_cr2(ctxt->cr0);
+	write_cr0(ctxt->cr0);
 
 	/*
 	 * now restore the descriptor tables to their proper values

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related

* [PATCH] fix hotplug kconfig help
From: Pavel Machek @ 2006-05-12 10:00 UTC (permalink / raw)
  To: Andrew Morton, kernel list

HOTPLUG_CPU entry says "Say Y..." then "Say N.". Slightly ugly, so I
fixed it up, and added remark about suspend on SMP as a bonus.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index c6fe99e..45b4589 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -758,10 +758,10 @@ config HOTPLUG_CPU
 	bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
 	depends on SMP && HOTPLUG && EXPERIMENTAL && !X86_VOYAGER
 	---help---
-	  Say Y here to experiment with turning CPUs off and on.  CPUs
-	  can be controlled through /sys/devices/system/cpu.
+	  Say Y here to experiment with turning CPUs off and on, and to 
+	  enable suspend on SMP systems. CPUs can be controlled through
+	  /sys/devices/system/cpu.
 
-	  Say N.
 
 endmenu
 

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related

* how to mount /dev/ram0 to /
From: tony @ 2006-05-12  9:43 UTC (permalink / raw)
  To: linuxppc-embedded@ozlabs.org


I made a new uRamdisk for the mini bubinga board,
change uboot's bootargs like this
bootargs root=/dev/ram rw console=ttyS0,115200 ip=192.168.0.200:192.168.0.19:::bubinga:eth0:off panic=1
==>
bootargs root=/dev/ram0 rw console=ttyS0,115200 ip=192.168.0.200:192.168.0.19:::bubinga:eth0:off panic=1

after boot up,excute df to see the mount point:
~ # df
Filesystem           1k-blocks      Used Available Use% Mounted on
~ # 
nothing was mounted.
the fatab in /etc is like this:
/dev/ram0               /               ext2    defaults        1 1
none                    /proc           proc    defaults        0 0

anything wrong?
thank you.

tony

^ permalink raw reply

* [PATCH] swsusp: documentation updates
From: Pavel Machek @ 2006-05-12  9:58 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Update documentation a bit, add more machines to video.txt list.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
index d7814a1..3fcec52 100644
--- a/Documentation/power/swsusp.txt
+++ b/Documentation/power/swsusp.txt
@@ -349,9 +349,34 @@ Q: How do I make suspend more verbose?
 
 A: If you want to see any non-error kernel messages on the virtual
 terminal the kernel switches to during suspend, you have to set the
-kernel console loglevel to at least 5, for example by doing
+kernel console loglevel to at least 4 (KERN_WARNING), for example by
+doing
 
-	echo 5 > /proc/sys/kernel/printk
+	# save the old loglevel
+	read LOGLEVEL DUMMY < /proc/sys/kernel/printk
+	# set the loglevel so we see the progress bar.
+	# if the level is higher than needed, we leave it alone.
+	if [ $LOGLEVEL -lt 5 ]; then
+	        echo 5 > /proc/sys/kernel/printk
+		fi
+
+        IMG_SZ=0
+        read IMG_SZ < /sys/power/image_size
+        echo -n disk > /sys/power/state
+        RET=$?      
+        #
+        # the logic here is:
+        # if image_size > 0 (without kernel support, IMG_SZ will be zero),
+        # then try again with image_size set to zero.
+	if [ $RET -ne 0 -a $IMG_SZ -ne 0 ]; then # try again with minimal image size
+                echo 0 > /sys/power/image_size
+                echo -n disk > /sys/power/state
+                RET=$?
+        fi
+
+	# restore previous loglevel
+	echo $LOGLEVEL > /proc/sys/kernel/printk
+	exit $RET
 
 Q: Is this true that if I have a mounted filesystem on a USB device and
 I suspend to disk, I can lose data unless the filesystem has been mounted
@@ -371,3 +396,17 @@ mounted filesystem.  With USB that's tru
 The safest thing is to unmount all USB-based filesystems before suspending
 and remount them after resuming.
 
+Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were
+compiled with the similar configuration files. Anyway I found that
+suspend to disk (and resume) is much slower on 2.6.16 compared to
+2.6.15. Any idea for why that might happen or how can I speed it up?
+
+A: This is because the size of the suspend image is now greater than
+for 2.6.15 (by saving more data we can get more responsive system
+after resume).
+
+There's the /sys/power/image_size knob that controls the size of the
+image.  If you set it to 0 (eg. by echo 0 > /sys/power/image_size as
+root), the 2.6.15 behavior should be restored.  If it is still too
+slow, take a look at suspend.sf.net -- userland suspend is faster and
+supports LZF compression to speed it up further.
diff --git a/Documentation/power/video.txt b/Documentation/power/video.txt
index 43a889f..d859faa 100644
--- a/Documentation/power/video.txt
+++ b/Documentation/power/video.txt
@@ -90,6 +90,7 @@ Table of known working notebooks:
 Model                           hack (or "how to do it")
 ------------------------------------------------------------------------------
 Acer Aspire 1406LC		ole's late BIOS init (7), turn off DRI
+Acer TM 230			s3_bios (2)
 Acer TM 242FX			vbetool (6)
 Acer TM C110			video_post (8)
 Acer TM C300                    vga=normal (only suspend on console, not in X), vbetool (6) or video_post (8)
@@ -115,6 +116,7 @@ Dell D610			vga=normal and X (possibly v
 Dell Inspiron 4000		??? (*)
 Dell Inspiron 500m		??? (*)
 Dell Inspiron 510m		???
+Dell Inspiron 5150		vbetool needed (6)
 Dell Inspiron 600m		??? (*)
 Dell Inspiron 8200		??? (*)
 Dell Inspiron 8500		??? (*)
@@ -125,6 +127,7 @@ HP NX7000			??? (*)
 HP Pavilion ZD7000		vbetool post needed, need open-source nv driver for X
 HP Omnibook XE3	athlon version	none (1)
 HP Omnibook XE3GC		none (1), video is S3 Savage/IX-MV
+HP Omnibook XE3L-GF		vbetool (6)
 HP Omnibook 5150		none (1), (S1 also works OK)
 IBM TP T20, model 2647-44G	none (1), video is S3 Inc. 86C270-294 Savage/IX-MV, vesafb gets "interesting" but X work.
 IBM TP A31 / Type 2652-M5G      s3_mode (3) [works ok with BIOS 1.04 2002-08-23, but not at all with BIOS 1.11 2004-11-05 :-(]
@@ -157,6 +160,7 @@ Sony Vaio vgn-s260		X or boot-radeon can
 Sony Vaio vgn-S580BH		vga=normal, but suspend from X. Console will be blank unless you return to X.
 Sony Vaio vgn-FS115B		s3_bios (2),s3_mode (4)
 Toshiba Libretto L5		none (1)
+Toshiba Libretto 100CT/110CT    vbetool (6)
 Toshiba Portege 3020CT		s3_mode (3)
 Toshiba Satellite 4030CDT	s3_mode (3) (S1 also works OK)
 Toshiba Satellite 4080XCDT      s3_mode (3) (S1 also works OK)


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related

* [patch] smbus unhiding kills thermal management
From: Pavel Machek @ 2006-05-12  9:53 UTC (permalink / raw)
  To: Andrew Morton, kernel list, trenn, thoenig,
	c-d.hailfinger.devel.2006

Do not enable the SMBus device on Asus boards if suspend
is used. We do not reenable the device on resume, leading to all sorts
of undesirable effects, the worst being a total fan failure after
resume on Samsung P35 laptop.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: Pavel Machek <pavel@suse.cz>

---
commit f14c852a8cb7483ce0e1e0e05ef49fed2f67103b
tree ab0cbe41b344a62bc81dd5cb093e3b6062c12556
parent 392dbe84f1e484b1e48036ca266cb826fd34f8da
author <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
committer <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200

 drivers/pci/quirks.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 19e2b17..9c5509f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -895,6 +895,7 @@ static void __init k8t_sound_hostbridge(
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
 
+#ifndef CONFIG_ACPI_SLEEP
 /*
  * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge
  * is not activated. The myth is that Asus said that they do not want the
@@ -906,8 +907,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_V
  * bridge. Unfortunately, this device has no subvendor/subdevice ID. So it 
  * becomes necessary to do this tweak in two steps -- I've chosen the Host
  * bridge as trigger.
+ *
+ * Actually, leaving it unhidden and not redoing the quirk over suspend2ram
+ * will cause thermal management to break down, and causing machine to
+ * overheat.
  */
-static int __initdata asus_hides_smbus = 0;
+static int __initdata asus_hides_smbus;
 
 static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev)
 {
@@ -1050,6 +1055,8 @@ static void __init asus_hides_smbus_lpc_
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_ICH6_1,	asus_hides_smbus_lpc_ich6 );
 
+#endif
+
 /*
  * SiS 96x south bridge: BIOS typically hides SMBus device...
  */

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related

* Re: Linux doesn't boot if USB is enabled
From: Wolfgang Denk @ 2006-05-12  9:53 UTC (permalink / raw)
  To: IGOR LURI; +Cc: linuxppc-embedded
In-Reply-To: <918EB199DDDFFA42BEA2EB3A1C6021F3CE19E2@correo.fagorautomation.net>

In message <918EB199DDDFFA42BEA2EB3A1C6021F3CE19E2@correo.fagorautomation.net> you wrote:
> 
> We also have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux
> 2.4.25 from Denx. We have realized that when USB is enabled linux
> doen´t boot, it hungs after u-boot uncompresses linux image.

You need the latest versions of both U-boot and Linux.

For U-Boot, you need a version after April 18 (see especially  commit
ID  8419c013048b1f15f3fa2fc7c0463d860a04ee3e).  For the Linux kernel,
you  need  a  version  after  April  21  (see  especially  commit  ID
1ac8b71bdbe6de928ba84c83831f6988a9b51165).

I recommend to grab the top-of-tree from both repositories.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Well, the way I see it, logic is only a way of being ignorant by num-
bers.                                 - Terry Pratchett, _Small Gods_

^ permalink raw reply

* Re: [RFC, PATCH] cond_resched() added to close_files()
From: Andrew Morton @ 2006-05-12  9:44 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: dada1, linux-kernel
In-Reply-To: <20060503070152.GB23921@elte.hu>

Ingo Molnar <mingo@elte.hu> wrote:
>
> 
> * Eric Dumazet <dada1@cosmosbay.com> wrote:
> 
> > This patch makes sure a cond_resched() call is done every 32 (or 64) 
> > files closed. This also helps reducing number of files waiting in RCU 
> > queues for final freeing as call_rcu() might have called 
> > force_quiescent_state()
> 
> the -rt tree already has this latency breaker (and had it for a long 
> time), it just somehow didnt get pushed upstream.
> 

Makes my machine hang early during the startup of init.

The last process to pass through close_file() is `hostname', presuably
parented by init.  `hostname' exits then everything stops.  init is
left sleeping in select().

All very strange.

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.17-rc3
# Fri May 12 02:35:30 2006
#
CONFIG_X86_32=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
CONFIG_SYSCTL=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_IKCONFIG=y
# CONFIG_IKCONFIG_PROC is not set
# CONFIG_CPUSETS is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
CONFIG_UID16=y
CONFIG_VM86=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_EMBEDDED=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y

#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="anticipatory"

#
# Processor type and features
#
CONFIG_SMP=y
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
CONFIG_MPENTIUM4=y
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_TSC=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_NR_CPUS=8
# CONFIG_SCHED_SMT is not set
CONFIG_SCHED_MC=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_BKL=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
# CONFIG_X86_MCE_P4THERMAL is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_X86_REBOOTFIXUPS is not set
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y

#
# Firmware Drivers
#
CONFIG_EDD=y
# CONFIG_DELL_RBU is not set
CONFIG_DCDBAS=m
# CONFIG_NOHIGHMEM is not set
# CONFIG_HIGHMEM4G is not set
CONFIG_HIGHMEM64G=y
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
CONFIG_X86_PAE=y
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_SPARSEMEM_STATIC=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_HIGHPTE is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
# CONFIG_EFI is not set
CONFIG_IRQBALANCE=y
# CONFIG_REGPARM is not set
CONFIG_SECCOMP=y
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_PHYSICAL_START=0x100000
# CONFIG_HOTPLUG_CPU is not set

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_HOTKEY=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_IBM=m
# CONFIG_ACPI_IBM_DOCK is not set
CONFIG_ACPI_TOSHIBA=m
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=m

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set

#
# CPUFreq processor drivers
#
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_SPEEDSTEP_ICH is not set
# CONFIG_X86_SPEEDSTEP_SMI is not set
CONFIG_X86_P4_CLOCKMOD=m
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
# CONFIG_X86_LONGRUN is not set

#
# shared options
#
CONFIG_X86_SPEEDSTEP_LIB=m

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
# CONFIG_PCIEPORTBUS is not set
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set
CONFIG_ISA_DMA_API=y
CONFIG_ISA=y
CONFIG_EISA=y
# CONFIG_EISA_VLB_PRIMING is not set
CONFIG_EISA_PCI_EISA=y
CONFIG_EISA_VIRTUAL_ROOT=y
CONFIG_EISA_NAMES=y
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set

#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set

#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y

#
# Networking
#
CONFIG_NET=y

#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
CONFIG_NET_KEY=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_FIB_HASH=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETFILTER is not set

#
# DCCP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP is not set

#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set

#
# TIPC Configuration (EXPERIMENTAL)
#
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
CONFIG_BRIDGE=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
CONFIG_LLC=y
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not set

#
# Device Drivers
#

#
# Generic Driver Options
#
# CONFIG_STANDALONE is not set
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_DEBUG_DRIVER is not set

#
# Connector - unified userspace <-> kernelspace linker
#
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
# CONFIG_PARPORT is not set

#
# Plug and Play support
#
CONFIG_PNP=y
CONFIG_PNP_DEBUG=y

#
# Protocols
#
CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y
# CONFIG_PNPBIOS_PROC_FS is not set
CONFIG_PNPACPI=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=y
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4000
CONFIG_BLK_DEV_INITRD=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDETAPE=y
CONFIG_BLK_DEV_IDEFLOPPY=y
# CONFIG_BLK_DEV_IDESCSI is not set
CONFIG_IDE_TASK_IOCTL=y

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_CS5535 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set

#
# SCSI Transport Attributes
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set

#
# SCSI low-level drivers
#
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_NCR53C406A is not set
CONFIG_SCSI_SYM53C8XX_2=y
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=64
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
CONFIG_SCSI_SYM53C8XX_MMIO=y
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
# CONFIG_FUSION_SPI is not set
# CONFIG_FUSION_FC is not set
# CONFIG_FUSION_SAS is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_NET_SB1000 is not set

#
# ARCnet devices
#
# CONFIG_ARCNET is not set

#
# PHY device support
#
# CONFIG_PHYLIB is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
CONFIG_NET_VENDOR_3COM=y
# CONFIG_EL1 is not set
# CONFIG_EL2 is not set
# CONFIG_ELPLUS is not set
# CONFIG_EL16 is not set
CONFIG_EL3=m
# CONFIG_3C515 is not set
CONFIG_VORTEX=m
# CONFIG_TYPHOON is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set

#
# Tulip family network device support
#
CONFIG_NET_TULIP=y
# CONFIG_DE2104X is not set
# CONFIG_TULIP is not set
CONFIG_DE4X5=m
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set
# CONFIG_ULI526X is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
# CONFIG_AMD8111_ETH is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_B44 is not set
# CONFIG_FORCEDETH is not set
# CONFIG_CS89x0 is not set
# CONFIG_DGRS is not set
# CONFIG_EEPRO100 is not set
CONFIG_E100=m
# CONFIG_LNE390 is not set
# CONFIG_FEALNX is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_NE3210 is not set
# CONFIG_ES3210 is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
CONFIG_R8169=y
# CONFIG_R8169_NAPI is not set
# CONFIG_SIS190 is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_SK98LIN is not set
# CONFIG_VIA_VELOCITY is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2 is not set

#
# Ethernet (10000 Mbit)
#
# CONFIG_CHELSIO_T1 is not set
# CONFIG_IXGB is not set
# CONFIG_S2IO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NET_FC is not set
# CONFIG_SHAPER is not set
CONFIG_NETCONSOLE=y
CONFIG_NETPOLL=y
CONFIG_NETPOLL_RX=y
CONFIG_NETPOLL_TRAP=y
CONFIG_NET_POLL_CONTROLLER=y

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_INPORT is not set
# CONFIG_MOUSE_LOGIBM is not set
# CONFIG_MOUSE_PC110PAD is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
CONFIG_GAMEPORT=y
# CONFIG_GAMEPORT_NS558 is not set
# CONFIG_GAMEPORT_L4 is not set
# CONFIG_GAMEPORT_EMU10K1 is not set
# CONFIG_GAMEPORT_FM801 is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_PNP=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
CONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set

#
# Ftape, the floppy tape device driver
#
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_CS5535_GPIO is not set
CONFIG_RAW_DRIVER=m
CONFIG_MAX_RAW_DEVS=256
# CONFIG_HPET is not set
# CONFIG_HANGCHECK_TIMER is not set

#
# TPM devices
#
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set

#
# I2C support
#
# CONFIG_I2C is not set

#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set

#
# Dallas's 1-wire bus
#
# CONFIG_W1 is not set

#
# Hardware Monitoring support
#
# CONFIG_HWMON is not set
# CONFIG_HWMON_VID is not set

#
# Misc devices
#
# CONFIG_IBM_ASM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set

#
# Graphics support
#
# CONFIG_FB is not set
CONFIG_VIDEO_SELECT=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y

#
# Sound
#
# CONFIG_SOUND is not set

#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
# CONFIG_USB is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set

#
# MMC/SD Card support
#
# CONFIG_MMC is not set

#
# LED devices
#
# CONFIG_NEW_LEDS is not set

#
# LED drivers
#

#
# LED Triggers
#

#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set

#
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
#
CONFIG_EDAC=y

#
# Reporting subsystems
#
CONFIG_EDAC_DEBUG=y
CONFIG_EDAC_MM_EDAC=y
CONFIG_EDAC_AMD76X=y
CONFIG_EDAC_E7XXX=y
CONFIG_EDAC_E752X=y
CONFIG_EDAC_I82875P=y
CONFIG_EDAC_I82860=y
CONFIG_EDAC_R82600=y
CONFIG_EDAC_POLL=y

#
# Real Time Clock
#
# CONFIG_RTC_CLASS is not set

#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_XATTR is not set
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
CONFIG_INOTIFY=y
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
# CONFIG_FUSE_FS is not set

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=y
CONFIG_UDF_FS=y
CONFIG_UDF_NLS=y

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=m
CONFIG_NTFS_DEBUG=y
# CONFIG_NTFS_RW is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_RAMFS=y
# CONFIG_CONFIGFS_FS is not set

#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_RPCSEC_GSS_KRB5=y
CONFIG_RPCSEC_GSS_SPKM3=m
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y

#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ASCII=m
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set

#
# Instrumentation Support
#
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
# CONFIG_KPROBES is not set

#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
CONFIG_DEBUG_SLAB=y
CONFIG_DEBUG_SLAB_LEAK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_HIGHMEM=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_VM=y
CONFIG_FRAME_POINTER=y
# CONFIG_UNWIND_INFO is not set
CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_EARLY_PRINTK is not set
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_STACK_BACKTRACE_COLS=2
CONFIG_DEBUG_RODATA=y
# CONFIG_4KSTACKS is not set
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_DOUBLEFAULT=y

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set

#
# Cryptographic options
#
CONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_TGR192 is not set
CONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_AES is not set
# CONFIG_CRYPTO_AES_586 is not set
CONFIG_CRYPTO_CAST5=m
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set

#
# Hardware crypto devices
#
# CONFIG_CRYPTO_DEV_PADLOCK is not set

#
# Library routines
#
CONFIG_CRC_CCITT=m
# CONFIG_CRC16 is not set
CONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_KTIME_SCALAR=y


^ permalink raw reply

* Re: [PATCH] ide_cs: Make ide_cs work with the memory space of CF-Cards if IO space is not available (3nd revision)
From: Thomas Kleffel (maintech GmbH) @ 2006-05-12  9:46 UTC (permalink / raw)
  To: linux-kernel, linux-pcmcia; +Cc: Alan Cox, Iain Barker, David Vrabel
In-Reply-To: <1147362779.26130.45.camel@localhost.localdomain>

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

From: Thomas Kleffel <tk@maintech.de>

this patch enables ide_cs to access CF-cards via their common memory
rather than via their IO space.

Signed-off-by: Thomas Kleffel <tk@maintech.de>
---

This patch is against 2.6.17-rc3

The reason why this patch makes sense is that it is pretty easy to build
a CF-Interface out of a simple address/data-bus if you only use common
and attribute memory. Adding the capability to access IO space makes
things more complicated.

If you just want to use CF-Storage cards, access to common and attribute
memory is enough as the IDE registers are available there, as well.

I have submitted a patch to RMK which enables the AT91RM9200's CF
interface to work in that mode.

I made some changes based on the feedback from Alan Cox and Iain Barker.

The window size was changed from 16 to 0 (autodetect) on suggestion from
Iain Barker. 16 didn't work with one of his cards.

ide_cs was converted from outb to iowrite8 on suggestion from David Vrabel.

Thomas




[-- Attachment #2: ide_cs.mem.patch --]
[-- Type: text/x-patch, Size: 4013 bytes --]

diff -uprN l1/drivers/ide/legacy/ide-cs.c l2/drivers/ide/legacy/ide-cs.c
--- l1/drivers/ide/legacy/ide-cs.c	2006-05-11 00:19:59.000000000 +0200
+++ l2/drivers/ide/legacy/ide-cs.c	2006-05-12 11:29:11.000000000 +0200
@@ -146,7 +146,16 @@ static void ide_detach(struct pcmcia_dev
     kfree(link->priv);
 } /* ide_detach */
 
-static int idecs_register(unsigned long io, unsigned long ctl, unsigned long irq, struct pcmcia_device *handle)
+static void idecs_mmio_fixup(ide_hwif_t *hwif)
+{
+	default_hwif_mmiops(hwif);
+	hwif->mmio = 2;
+	
+	ide_undecoded_slave(hwif);
+}
+
+static int idecs_register(unsigned long io, unsigned long ctl, 
+	unsigned long irq, struct pcmcia_device *handle, int is_mmio)
 {
     hw_regs_t hw;
     memset(&hw, 0, sizeof(hw));
@@ -154,7 +163,11 @@ static int idecs_register(unsigned long 
     hw.irq = irq;
     hw.chipset = ide_pci;
     hw.dev = &handle->dev;
-    return ide_register_hw_with_fixup(&hw, NULL, ide_undecoded_slave);
+    
+    if(is_mmio)
+    	return ide_register_hw_with_fixup(&hw, NULL, idecs_mmio_fixup);
+    else
+        return ide_register_hw_with_fixup(&hw, NULL, ide_undecoded_slave);
 }
 
 /*======================================================================
@@ -180,7 +193,7 @@ static int ide_config(struct pcmcia_devi
     } *stk = NULL;
     cistpl_cftable_entry_t *cfg;
     int i, pass, last_ret = 0, last_fn = 0, hd, is_kme = 0;
-    unsigned long io_base, ctl_base;
+    unsigned long io_base, ctl_base, is_mmio;
 
     DEBUG(0, "ide_config(0x%p)\n", link);
 
@@ -210,7 +223,7 @@ static int ide_config(struct pcmcia_devi
     /* Not sure if this is right... look up the current Vcc */
     CS_CHECK(GetConfigurationInfo, pcmcia_get_configuration_info(link, &stk->conf));
 
-    pass = io_base = ctl_base = 0;
+    pass = io_base = ctl_base = is_mmio = 0;
     tuple.DesiredTuple = CISTPL_CFTABLE_ENTRY;
     tuple.Attributes = 0;
     CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple));
@@ -263,6 +276,33 @@ static int ide_config(struct pcmcia_devi
 	    break;
 	}
 
+	if ((cfg->mem.nwin > 0) || (stk->dflt.mem.nwin > 0)) {
+	    win_req_t req;
+	    memreq_t map;
+	    cistpl_mem_t *mem = (cfg->mem.nwin) ? &cfg->mem : &stk->dflt.mem;
+	    
+	    if (mem->win[0].len < 16) 
+	    	goto next_entry;
+	    
+	    req.Attributes = WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM;
+	    req.Attributes |= WIN_ENABLE;
+	    req.Base = mem->win[0].host_addr;
+	    req.Size = 0; /* 0 means autodetect */
+
+	    req.AccessSpeed = 0;
+	    if (pcmcia_request_window(&link, &req, &link->win) != 0)
+		goto next_entry;
+	    map.Page = 0; map.CardOffset = mem->win[0].card_addr;
+	    if (pcmcia_map_mem_page(link->win, &map) != 0)
+		goto next_entry;
+
+      	    io_base = (unsigned long) ioremap(req.Base, req.Size);
+    	    ctl_base = io_base + 0x0e;
+    	    is_mmio = 1;
+
+	    break;
+	}
+
     next_entry:
 	if (cfg->flags & CISTPL_CFTABLE_DEFAULT)
 	    memcpy(&stk->dflt, cfg, sizeof(stk->dflt));
@@ -277,22 +317,22 @@ static int ide_config(struct pcmcia_devi
 
     CS_CHECK(RequestIRQ, pcmcia_request_irq(link, &link->irq));
     CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link, &link->conf));

     /* disable drive interrupts during IDE probe */
-    outb(0x02, ctl_base);
+    iowrite8(0x02, ctl_base);
 
     /* special setup for KXLC005 card */
     if (is_kme)
-	outb(0x81, ctl_base+1);
+	iowrite8(0x81, ctl_base+1);
 
     /* retry registration in case device is still spinning up */
     for (hd = -1, i = 0; i < 10; i++) {
-	hd = idecs_register(io_base, ctl_base, link->irq.AssignedIRQ, link);
+	hd = idecs_register(io_base, ctl_base, link->irq.AssignedIRQ, link, is_mmio);
 	if (hd >= 0) break;
 	if (link->io.NumPorts1 == 0x20) {
-	    outb(0x02, ctl_base + 0x10);
+	    iowrite8(0x02, ctl_base + 0x10);
 	    hd = idecs_register(io_base + 0x10, ctl_base + 0x10,
-				link->irq.AssignedIRQ, link);
+				link->irq.AssignedIRQ, link, is_mmio);
 	    if (hd >= 0) {
 		io_base += 0x10;
 		ctl_base += 0x10;

^ permalink raw reply

* Kernel network layer breakes recv_from() as the server (i think) (kernel-bug)
From: Paweł Jaworski @ 2006-05-12  9:44 UTC (permalink / raw)
  To: i am totally stumped; +Cc: paweusz

$ brief-problem
Kernel network layer breakes recv_from() as the server (i think)

$ full-problem
I am student of Jagiellonian University of Cracow. Recently I've been trying to 
write some network programs as a learning of network protocols. Everything went 
fine except for UDP. I was trying to send a structure through the UDP protocol 
to the server. Every time I was sending a packet, recv_from() returned "Invalid 
argument". As it was my homework, i brought the program to my teacher, but... it 
worked well on systems in my school.

1. It worked on Linux Mandrake (i think) 10
2. It worked on Debian Sarge with kernel-image-2.4.27-2-686-smp
3. It worked on Debian Sarge with kernel-image-2.6.8-2
4. It worked on IRIX (i know it's not Linux, but... it worked)

It didn't work on Debian Sarge kernels 2.6.14 (my friend tested), 2.6.15(me) and 
2.6.16 (also me)

As I am currently working on 2.6.15 (and 2.6.16 was installed only for testing 
of UDP) - i send info about 2.6.15, and WORKED on kernel 2.6.x

Btw. I use some packages from backports.org (this is not exactly sarge), but I 
tested compiled program from other systems (mandrake, pure debian sarge) and it 
didn't work.

$ keywords
networking, kernel

$ cat /proc/version
Linux version 2.6.15-1-k7 (Debian 2.6.15-7bpo1) (nobse@debian.org) (gcc version 
3.3.5 (Debian 1:3.3.5-13)) #2 Tue Mar 7 02:52:03 CET 2006

$ cat str.h
#ifndef _STR_H_
#define _STR_H_

#define MAX_PACKET 1024

typedef struct __packet_ {
   unsigned int nr;
   unsigned short len;
   char buf[ MAX_PACKET ];
} packet;


#endif /* _STR_H_ */

$ cat server.c
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h> /* clock() */

#include <netdb.h>

#include "str.h"

#define boolean unsigned char
#define false 0
#define true 1
#define MAX_PACKETS 65535
#define TIMEOUT 1
#define MAX_ERRORS 10

#ifndef socklen_t
#define socklen_t int
#endif /* socklen_t */

#include <signal.h>
int stats[256];

void interrupt_handler() {
   FILE* f;
   int i;

   f = fopen( "stats.txt", "w+" );
   for (i=0; i<256; i++) {
     fprintf( f, "Znak: %d wystapien: %d\n", i, stats[i] );
   }
   fclose( f );
   printf( "Zapisano statystyke\n" );
   exit(0);
}

void initCount() {
   int i;
   for (i = 0; i<256; i++) {
     stats[i] = 0;
   }
}

void countChars( char* s, int len ) {
   int p;

   p = 0;
   while ( p < len ) {
     stats[(unsigned char) s[p]]++;
     p++;
   }
}


clock_t MAX_CLOCK_T = (clock_t)-1;
unsigned int CLOCK_LEN; /* dlugosc przedzialu zegara */

unsigned int clock_diff( clock_t from, clock_t to ) {
   return (to - from + MAX_CLOCK_T) % MAX_CLOCK_T;
}

void changeCase( char* s, int len ) {
   int p = 0;
   while (p<len) {
     if ((s[p]>='A') && (s[p]<='Z')) { s[p] = s[p]+32; }
     else if ((s[p]>='a') && (s[p]<='z')) { s[p] = s[p]-32; }
     p++;
   }
}


int main( int argc, char** argv ) {

   struct sockaddr_in cli_address;
   struct sockaddr_in serv_address;
   int s;
   int port;
   packet p;

   initCount();
   if (signal( SIGINT, interrupt_handler ) == SIG_ERR) {
     printf( "Blad przechwytywacza sygnalu SIGINT\n" );
   };


   if ( argc < 2 )
   {
     printf( "Syntax error: %s <port>\n", argv[0] );
     exit( 1 );
   }

   memset(&serv_address, 0, sizeof(serv_address)); /* na wszelki wypadek wyzeruj 
calosc */
   port = atol( argv[1] );
   printf( "Port: %d\n", port );

   /* tworzy gniazdo UDP */
   s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
   if ( s == -1 ) { perror( "Socket error" ); exit( 2 ); }

   /* przygotuj strukture zawierajaca nr portu, na którym chcemy nasluchiwac */
   memset(&serv_address, 0, sizeof(serv_address));
   serv_address.sin_family = AF_INET;
   serv_address.sin_addr.s_addr = htonl(INADDR_ANY);
   serv_address.sin_port = htons(port);

   /* zwiaz lokalny koniec gniazda z przygotowanym adresem */
   if ( bind(s, (struct sockaddr *) &serv_address, sizeof(serv_address)) == -1 ) {
     perror( "Cannot bind socket" );
     exit(1);
   };

   while (1)
   {
     int rd;
     int i;
     socklen_t from_size;

     rd = recvfrom( s, (char*)&p, sizeof(p), 0, (struct sockaddr *)&cli_address, 
&from_size);
     printf("Received packet from %s:%d\n\n",
            inet_ntoa(cli_address.sin_addr), ntohs(cli_address.sin_port));
     if ( rd == -1 ) { perror( "recvfrom() failed\n" ); exit( 3 ); }
     if ( rd != sizeof(packet)) {
       printf( "Bad size of packet\n" );
     }
                 countChars( p.buf, ntohs(p.len) );
     changeCase( p.buf, ntohs(p.len) );

     sendto( s, &p, sizeof(p), 0, (struct sockaddr *)&cli_address, (size_t) 
sizeof(cli_address) );
   }

   return 0;
}


$ cat client.c
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h> /* clock() */

#include <netdb.h>

#include <stropts.h> /* ioctl */

#include "str.h"

#ifndef socklen_t
#define socklen_t int
#endif /* socklen_t */

#define boolean unsigned char
#define false 0
#define true 1
#define MAX_PACKETS 65535
#define TIMEOUT 1
#define MAX_ERRORS 10



clock_t MAX_CLOCK_T = (clock_t)-1;
unsigned int CLOCK_LEN; /* dlugosc przedzialu zegara */

unsigned int clock_diff( clock_t from, clock_t to ) {
   if ( from > to ) { return MAX_CLOCK_T - from + to; }
   return (to - from);
}

int try_to_relay( int s, char* buf, int len, struct sockaddr_in address,  void* 
answer ) {
   int wr;
   int rd;
   clock_t start_clock;
   static int packet_number = 0;
   packet p;
   packet p_answer;
   socklen_t from_size;

   if ( len > MAX_PACKET ) return -1;

   packet_number++;

   p.nr = packet_number;
   p.len = htons(len);
   memcpy( p.buf, buf, len );

   printf("Sending\n");
   wr = sendto(s, &p, sizeof(p), 0, (struct sockaddr *)&address, (size_t) 
sizeof(address));

   if (wr != sizeof(p)) {
     printf( "ERROR sending\n" );
     return -1;
   }

   start_clock = clock();

   /* czekanie */
   while (clock_diff(start_clock, clock()) < CLOCKS_PER_SEC * TIMEOUT) {
     rd = recvfrom( s, &p_answer, sizeof(p_answer), 0, (struct sockaddr 
*)&address, &from_size);
     if ( rd == sizeof(p_answer)) {
       if ( p_answer.nr == packet_number ) {
         p_answer.len = ntohs( p_answer.len );
         if ( p_answer.len == len ) {
           memcpy( answer, p_answer.buf, len );
           return 0;
         }
         else {
           printf( "Good packet number, but corrupted length.\n" );
           exit(1);
         }
       }
     }
   }
   printf( "Timeout has been exceeded for packet %d\n", packet_number );
   return -2;
}

int main( int argc, char** argv ) {

   struct sockaddr_in address;
   int s;
   int r;
   FILE* f;
   FILE* g;
   int f_fd;
   int fionbio_int;

   memset(&address, 0, sizeof(address)); /* na wszelki wypadek wyzeruj calosc */
   address.sin_family = AF_INET;

   if ( argc < 3 )
   {
     printf( "Syntax error: %s <server addresss> <port>\n", argv[0] );
     exit( 1 );
   }

   if (argc>1)
   {
       struct hostent *h;

       h = gethostbyname(argv[1]);
       if (h == NULL)
       {
         printf("Could not solve the host address %s\n", argv[1]);
         exit(1);
       };
       memcpy(&address.sin_addr, h->h_addr, 4);
   }

   address.sin_port = htons(atol(argv[2]));

   s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
         fionbio_int = 1;
   ioctl( s, FIONBIO, &fionbio_int );

   f = fopen( "in.txt", "r" );
   f_fd = fileno( f );
   if ( f == NULL )
   {
      printf( "Could not open 'in.txt' file for reading\n" );
   }
   g = fopen( "out.txt", "w+" );
   if ( g == NULL )
   {
     printf( "Could not open 'out.txt' for writing\n" );
   }

   while (!feof(f))
   {
     int i;
     int pos;
     int c;
     char buf[MAX_PACKET];
     char buf_out[MAX_PACKET];
     int errors;

     pos = 0;
     errors = 0;

     for (i = 0; i<MAX_PACKET; i++) {
       if ( (c = fgetc( f ))==EOF ) { break; }
       buf[ pos ] = c;
       pos++;
     }
     while( try_to_relay( s, buf, pos, address, buf_out ) != 0 ) {
       errors++;
       if ( errors > MAX_ERRORS ) {
         printf( "Maximum number of errors exceeded\n" );
         exit(2);
       };
     }
     for (i=0; i<pos; i++) {
       fputc( buf_out[i], g );
     }
   }
   printf( "EOF\n" );
   fclose( f );
   fclose( g );
   close( s );

   return 0;
}

$ scripts/ver_linux
Linux paweusz 2.6.15-1-k7 #2 Tue Mar 7 02:52:03 CET 2006 i686 GNU/Linux

Gnu C                  3.3.5
Gnu make               3.81
binutils               2.15
util-linux             2.12p
mount                  2.12p
module-init-tools      3.2.2
e2fsprogs              1.37
reiserfsprogs          line
reiser4progs           line
PPP                    2.4.3
nfs-utils              1.0.7
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.2.1
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.2.1
udev                   089
Modules Loaded         ipv6 lp nls_cp437 vfat fat nls_iso8859_1 ntfs nvidia 
usblp joydev parport_pc parport snd_ens1371 snd_rawmidi snd_seq_device 
snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore 
snd_page_alloc snd_ac97_bus ehci_hcd ide_cd floppy rtc amd64_agp agpgart 
i2c_nforce2 ohci_hcd cdrom forcedeth psmouse analog usbcore i2c_core pcspkr 
serio_raw shpchp pci_hotplug gameport ext3 jbd mbcache ide_disk ide_generic 
amd74xx generic ide_core sata_nv libata scsi_mod evdev mousedev

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 2800+
stepping        : 8
cpu MHz         : 1808.679
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 3620.09

$ cat /proc/modules
ipv6 230080 10 - Live 0xe0bad000
lp 11012 0 - Live 0xe0b53000
nls_cp437 5824 2 - Live 0xe0b13000
vfat 12288 2 - Live 0xe0b18000
fat 47836 1 vfat, Live 0xe0b5d000
nls_iso8859_1 4160 3 - Live 0xe09fd000
ntfs 200208 1 - Live 0xe0b1c000
nvidia 4091216 12 - Live 0xe0f0f000
usblp 12160 0 - Live 0xe08bf000
joydev 9408 0 - Live 0xe097a000
parport_pc 33028 1 - Live 0xe0a10000
parport 33160 2 lp,parport_pc, Live 0xe0a1b000
snd_ens1371 22368 1 - Live 0xe0a09000
snd_rawmidi 23264 1 snd_ens1371, Live 0xe0a02000
snd_seq_device 8396 1 snd_rawmidi, Live 0xe0920000
snd_ac97_codec 83488 1 snd_ens1371, Live 0xe09c0000
snd_pcm_oss 46944 0 - Live 0xe09ed000
snd_mixer_oss 16576 1 snd_pcm_oss, Live 0xe09a1000
snd_pcm 79048 3 snd_ens1371,snd_ac97_codec,snd_pcm_oss, Live 0xe09d8000
snd_timer 22148 1 snd_pcm, Live 0xe09a9000
snd 50724 10 
snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer, 
Live 0xe09b2000
soundcore 9312 1 snd, Live 0xe0953000
snd_page_alloc 10440 1 snd_pcm, Live 0xe094f000
snd_ac97_bus 2304 1 snd_ac97_codec, Live 0xe094d000
ehci_hcd 29640 0 - Live 0xe0957000
ide_cd 39172 0 - Live 0xe096f000
floppy 57092 0 - Live 0xe0960000
rtc 11892 0 - Live 0xe091c000
amd64_agp 12036 1 - Live 0xe08bb000
agpgart 33096 2 nvidia,amd64_agp, Live 0xe0943000
i2c_nforce2 6400 0 - Live 0xe087e000
ohci_hcd 18564 0 - Live 0xe0901000
cdrom 36576 1 ide_cd, Live 0xe090d000
forcedeth 20804 0 - Live 0xe08c3000
psmouse 33796 0 - Live 0xe08d6000
analog 10592 0 - Live 0xe0881000
usbcore 117636 4 usblp,ehci_hcd,ohci_hcd, Live 0xe0925000
i2c_core 19984 1 i2c_nforce2, Live 0xe0871000
pcspkr 1924 0 - Live 0xe082b000
serio_raw 6916 0 - Live 0xe0802000
shpchp 42752 0 - Live 0xe08ca000
pci_hotplug 26228 1 shpchp, Live 0xe0886000
gameport 14536 2 snd_ens1371,analog, Live 0xe0877000
ext3 126792 2 - Live 0xe08e1000
jbd 51028 1 ext3, Live 0xe08ad000
mbcache 8964 1 ext3, Live 0xe0842000
ide_disk 16320 7 - Live 0xe0848000
ide_generic 1408 0 [permanent], Live 0xe0827000
amd74xx 13468 0 [permanent], Live 0xe082d000
generic 4612 0 [permanent], Live 0xe0805000
ide_core 116000 5 ide_cd,ide_disk,ide_generic,amd74xx,generic, Live 0xe088f000
sata_nv 9220 0 - Live 0xe0823000
libata 53132 1 sata_nv, Live 0xe0834000
scsi_mod 135784 1 libata, Live 0xe084e000
evdev 9216 0 - Live 0xe081f000
mousedev 11232 1 - Live 0xe081b000

$ cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
0970-0977 : 0000:00:0a.0
   0970-0977 : sata_nv
09f0-09f7 : 0000:00:0a.0
   09f0-09f7 : sata_nv
0b70-0b73 : 0000:00:0a.0
   0b70-0b73 : sata_nv
0bf0-0bf3 : 0000:00:0a.0
   0bf0-0bf3 : sata_nv
0cf8-0cff : PCI conf1
1000-107f : motherboard
   1000-1003 : PM1a_EVT_BLK
   1004-1005 : PM1a_CNT_BLK
   1008-100b : PM_TMR
   1020-1027 : GPE0_BLK
1080-10ff : motherboard
   1080-10ff : pnp 00:00
1400-147f : motherboard
   1400-147f : pnp 00:00
1480-14ff : motherboard
   14a0-14af : GPE1_BLK
1800-187f : motherboard
   1800-187f : pnp 00:00
1880-18ff : motherboard
   1880-18ff : pnp 00:00
1c00-1c3f : 0000:00:01.1
   1c00-1c07 : nForce2_smbus
2000-203f : 0000:00:01.1
   2000-2007 : nForce2_smbus
9000-9fff : PCI Bus #02
   9000-903f : 0000:02:0a.0
     9000-903f : Ensoniq AudioPCI
a800-a807 : 0000:00:05.0
   a800-a807 : forcedeth
c400-c40f : 0000:00:0a.0
   c400-c40f : sata_nv
c800-c87f : 0000:00:0a.0
   c800-c87f : sata_nv
cc00-cc1f : 0000:00:01.1
f000-f00f : 0000:00:08.0
   f000-f007 : ide0
   f008-f00f : ide1

$ cat /proc/iomem
00000000-0009f7ff : System RAM
   00000000-00000000 : Crash kernel
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cf7ff : Video ROM
000f0000-000fffff : System ROM
00100000-1ffeffff : System RAM
   00100000-0026e97c : Kernel code
   0026e97d-00303f03 : Kernel data
1fff0000-1fff2fff : ACPI Non-volatile Storage
1fff3000-1fffffff : ACPI Tables
e8000000-efffffff : 0000:00:00.0
   e8000000-efffffff : aperture
f0000000-f7ffffff : PCI Bus #01
   f0000000-f7ffffff : 0000:01:00.0
f8000000-f9ffffff : PCI Bus #01
   f8000000-f8ffffff : 0000:01:00.0
     f8000000-f8ffffff : nvidia
   f9000000-f901ffff : 0000:01:00.0
fa000000-fa0000ff : 0000:00:02.2
   fa000000-fa0000ff : ehci_hcd
fa001000-fa001fff : 0000:00:05.0
   fa001000-fa001fff : forcedeth
fa003000-fa003fff : 0000:00:02.0
   fa003000-fa003fff : ohci_hcd
fa004000-fa004fff : 0000:00:02.1
   fa004000-fa004fff : ohci_hcd
fec00000-fec00fff : reserved
fee00000-fee00fff : reserved
ffff0000-ffffffff : reserved

# lspci -vvv
0000:00:00.0 Host bridge: nVidia Corporation: Unknown device 00e1 (rev a1)
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0
         Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
         Capabilities: [44] #08 [01c0]
         Capabilities: [c0] AGP version 3.0
                 Status: RQ=32 Iso- ArqSz=2 Cal=0 SBA+ ITACoh- GART64- HTrans- 
64bit- FW+ AGP3+ Rate=x4,x8
                 Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x8

0000:00:01.0 ISA bridge: nVidia Corporation: Unknown device 00e0 (rev a2)
         Subsystem: Giga-byte Technology: Unknown device 0c11
         Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0

0000:00:01.1 SMBus: nVidia Corporation: Unknown device 00e4 (rev a1)
         Subsystem: Giga-byte Technology: Unknown device 0c11
         Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Interrupt: pin A routed to IRQ 10
         Region 0: I/O ports at cc00 [size=32]
         Region 4: I/O ports at 1c00 [size=64]
         Region 5: I/O ports at 2000 [size=64]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot+,D3cold+)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.0 USB Controller: nVidia Corporation: Unknown device 00e7 (rev a1) 
(prog-if 10 [OHCI])
         Subsystem: Giga-byte Technology: Unknown device 5004
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (750ns min, 250ns max)
         Interrupt: pin A routed to IRQ 193
         Region 0: Memory at fa003000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.1 USB Controller: nVidia Corporation: Unknown device 00e7 (rev a1) 
(prog-if 10 [OHCI])
         Subsystem: Giga-byte Technology: Unknown device 5004
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (750ns min, 250ns max)
         Interrupt: pin B routed to IRQ 177
         Region 0: Memory at fa004000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:02.2 USB Controller: nVidia Corporation: Unknown device 00e8 (rev a2) 
(prog-if 20 [EHCI])
         Subsystem: Giga-byte Technology: Unknown device 5004
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (750ns min, 250ns max)
         Interrupt: pin C routed to IRQ 185
         Region 0: Memory at fa000000 (32-bit, non-prefetchable) [size=256]
         Capabilities: [44] #0a [2098]
         Capabilities: [80] Power Management version 2
                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:05.0 Bridge: nVidia Corporation: Unknown device 00df (rev a2)
         Subsystem: Giga-byte Technology: Unknown device e000
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (250ns min, 5000ns max)
         Interrupt: pin A routed to IRQ 185
         Region 0: Memory at fa001000 (32-bit, non-prefetchable) [size=4K]
         Region 1: I/O ports at a800 [size=8]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                 Status: D0 PME-Enable+ DSel=0 DScale=0 PME-

0000:00:08.0 IDE interface: nVidia Corporation: Unknown device 00e5 (rev a2) 
(prog-if 8a [Master SecP PriP])
         Subsystem: Giga-byte Technology: Unknown device 5002
         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (750ns min, 250ns max)
         Region 4: I/O ports at f000 [size=16]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:0a.0 IDE interface: nVidia Corporation: Unknown device 00e3 (rev a2) 
(prog-if 85 [Master SecO PriO])
         Subsystem: Giga-byte Technology: Unknown device b002
         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0 (750ns min, 250ns max)
         Interrupt: pin A routed to IRQ 177
         Region 0: I/O ports at 09f0 [size=8]
         Region 1: I/O ports at 0bf0 [size=4]
         Region 2: I/O ports at 0970 [size=8]
         Region 3: I/O ports at 0b70 [size=4]
         Region 4: I/O ports at c400 [size=16]
         Region 5: I/O ports at c800 [size=128]
         Capabilities: [44] Power Management version 2
                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0000:00:0b.0 PCI bridge: nVidia Corporation: Unknown device 00e2 (rev a2) 
(prog-if 00 [Normal decode])
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
         Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
         Latency: 16
         Bus: primary=00, secondary=01, subordinate=01, sec-latency=10
         I/O behind bridge: 0000f000-00000fff
         Memory behind bridge: f8000000-f9ffffff
         Prefetchable memory behind bridge: f0000000-f7ffffff
         BridgeCtl: Parity- SERR+ NoISA+ VGA+ MAbort- >Reset- FastB2B-

0000:00:0e.0 PCI bridge: nVidia Corporation: Unknown device 00ed (rev a2) 
(prog-if 00 [Normal decode])
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Latency: 0
         Bus: primary=00, secondary=02, subordinate=02, sec-latency=128
         I/O behind bridge: 00009000-00009fff
         Memory behind bridge: fff00000-000fffff
         Prefetchable memory behind bridge: fff00000-000fffff
         BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-

0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
         Capabilities: [80] #08 [2101]

0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-

0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-

0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-

0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 
5200] (rev a1) (prog-if 00 [VGA])
         Subsystem: PROLINK Microsystems Corp: Unknown device 1152
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
         Latency: 248 (1250ns min, 250ns max)
         Interrupt: pin A routed to IRQ 209
         Region 0: Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
         Region 1: Memory at f0000000 (32-bit, prefetchable) [size=128M]
         Expansion ROM at f9000000 [disabled] [size=128K]
         Capabilities: [60] Power Management version 2
                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [44] AGP version 3.0
                 Status: RQ=32 Iso- ArqSz=0 Cal=3 SBA+ ITACoh- GART64- HTrans- 
64bit- FW- AGP3+ Rate=x4,x8
                 Command: RQ=32 ArqSz=2 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x8

0000:02:0a.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 08)
         Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V, AudioPCI128
         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort+ 
<MAbort+ >SERR- <PERR-
         Latency: 32 (3000ns min, 32000ns max)
         Interrupt: pin A routed to IRQ 201
         Region 0: I/O ports at 9000 [size=64]
         Capabilities: [dc] Power Management version 1
                 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

$ cat /proc/scsi/scsi
Attached devices:

$ workarounds
My friend told me the program works when he creates

char buff[xxxx]; /* xxxx - size of the structure */

and recv_from puts data to this buffer and he memcpys that to the structure.

When I was trying to test it I used dynamic array:

char* buff = malloc(sizeof(packet));

and it also didn't work.

$ thanks
Thanks for reading my e-mail. I'm sorry if it isn't kernel bug - i don't know 
where to post it to. Please tell me if applies. Hope to hear from you soon.
Pawel Jaworski <paweusz@mallorn.ii.uj.edu.pl>


^ permalink raw reply

* problem compiling DSP BIOS Link on MontaVista Linux Preview Kit 3.1
From: Liem Pham Tan @ 2006-05-12  9:43 UTC (permalink / raw)
  To: linux-omap-open-source

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

Hi All!
I followed the Linux DSP Tools Getting Started Guide to setup an environment
for DSP development.
But when I started to build the ARM side of DSP/BIOS Link by:
#cd $DSPLINK/gpp/src
#gmake clean
#gmake
.................
some outputs
.................
then the following error occured  when compiling mem.c in OS Adaptation
Layer module:

echo Compiling mem.c...
Compiling mem.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall
-Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc
-I/root/dsplink_1_12_01/gpp/inc/Linux
-I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP
-I/root/dsplink_1_12_01/gpp/src/osal
-I/root/dsplink_1_12_01/gpp/src/osal/Linux
-I/root/dsplink_1_12_01/gpp/src/osal/Linux/OMAP
-I/root/montavista/kernel/linux/include
-I/root/montavista/kernel/linux/include
-I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT
-DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE
-DTRACE_KERNEL -DDDSP_DEBUG
-o/root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/mem.o mem.c
In file included from /root/montavista/kernel/linux/include/asm/io.h:28,
                 from mem.c:22:
/root/montavista/kernel/linux/include/asm/arch/hardware.h:41:28: asm/mach-
types.h: No such file or directory
gmake[2]: *** [mem.c.deb] Error 1
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal/Linux'
gmake[1]: *** [objdeb] Error 2
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake: *** [osal.objdeb] Error 2

then I checked the MontaVista Linux kernel and I couldn't find
include/asm/mach-types.h.
Has anyone faced the same problem like me?
Thank you a lot.

[-- Attachment #2: dsplink_build_error.txt --]
[-- Type: text/plain, Size: 49252 bytes --]

/usr/bin/perl /root/dsplink_1_12_01/config/bin/cfg2c.pl GPP /root/dsplink_1_12_01/config/all/CFG_OMAP.TXT /root/dsplink_1_12_01/config/all/CFG_OMAP.c
================================================================
Current Configuration : /root/dsplink_1_12_01/config/CURRENTCFG.MK
Created on            : MAY 12, 2006  14:3:06
================================================================
GPP OS          = Linux
DSP OS          = DspBios
GPPDISTRIBUTION = osk5912_mvlpreviewkit3.1
DSPDISTRIBUTION = c55xx_5.00_linux

GPPPLATFORM     = OMAP
DSPPLATFORM     = OMAP

USE_MSGQ        = 1
USE_CHNL        = 1
USE_PROC        = 1
USE_DSP         = 1
TRACE           = 0
PROFILE         = 0
PROBE           = 0
================================================================
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/hal/platform/OMAP" "cp /root/dsplink_1_12_01/gpp/src/hal/platform/OMAP/*.* /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP > /dev/null"

[SRC                 ] ======= DIRS ================== INCLUDE ============
gmake -f Makefile -C gen   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   dirinc
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- DIRS ------------------ INCLUDE ------------
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= DIRS ================== DEBUG ==============
gmake -f Makefile -C gen   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   dirdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/BIN/DEBUG"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= DIRS ================== RELEASE ============
gmake -f Makefile -C gen   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/LDRV/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/PMGR/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   dirrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- DIRS ------------------ RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/RELEASE"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/BIN/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/API/BIN/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= DIRS ================== EXPORT =============
gmake -f Makefile -C gen   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   direxp
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- DIRS ------------------ EXPORT -------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/DEBUG"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/EXPORT/RELEASE"
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= CLEAN ================= DEBUG ==============
gmake -f Makefile -C gen   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   cleandeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- CLEAN ----------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/DEBUG" "rm -f /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/DEBUG/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= CLEAN ================= RELEASE ============
gmake -f Makefile -C gen   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/LDRV/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/PMGR/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   cleanrel
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- CLEAN ----------------- RELEASE ------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/RELEASE" "rm -f /root/dsplink_1_12_01/gpp/BUILD/API/OBJ/RELEASE/*.*" "" >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= INCLUDES ===================================
gmake -f Makefile -C gen   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- INCLUDES -----------------------------------
[GEN                 ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/gen/coff.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/coff_55x.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/coff_64x.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/coff_int.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/gen_utils.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/list.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/gen/buf.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- INCLUDES -----------------------------------
[HAL                 ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_object.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_mpui.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_clkrst.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_inth.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_mailbox.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_mmu.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_io.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/hal_rtc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- INCLUDES -----------------------------------
[OSAL                ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/osal/dpc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/isr.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/kfile.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/mem.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/prcs.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/sync.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/trc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/cfg.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/print.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/osal.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/osal/Linux/mem_os.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake -f Makefile -C ldrv   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/ldrv'
[LDRV                ] ------- INCLUDES -----------------------------------
[LDRV                ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/dsp.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_io.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_proc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_chnl.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_msgq.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_mqt.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/ldrv_mqa.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/mqabuf.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/lmqt.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/rmqt.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/ldrv/shm.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/ldrv'
gmake -f Makefile -C pmgr   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/pmgr'
[PMGR                ] ------- INCLUDES -----------------------------------
[PMGR                ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/pmgr/pmgr_proc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/pmgr/pmgr_chnl.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/pmgr/pmgr_msgq.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/pmgr/Linux/drv_pmgr.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/pmgr'
gmake -f Makefile -C api   includes
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/api'
[API                 ] ------- INCLUDES -----------------------------------
[API                 ] ------- DIRS ------------------ INCLUDE ------------
cp /root/dsplink_1_12_01/gpp/src/api/Linux/drv_api.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/api/proc.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/api/msgq.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
cp /root/dsplink_1_12_01/gpp/src/api/chnl.h /root/dsplink_1_12_01/gpp/BUILD/INCLUDE/. >/dev/null
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/api'

[SRC                 ] ======= OBJECTS =============== DEBUG ==============
gmake -f Makefile -C gen   objdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
[GEN                 ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/GEN/BIN/DEBUG"
[GEN                 ] ------- OBJECT ---------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/gen" "gmake -C /root/dsplink_1_12_01/gpp/src/gen -f  /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[2]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen'
echo Compiling gen_utils.c...
Compiling gen_utils.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/gen_utils.o gen_utils.c
echo Compiling list.c...
Compiling list.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/list.o list.c
echo Compiling buf.c...
Compiling buf.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/buf.o buf.c
echo Compiling coff.c...
Compiling coff.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/coff.o coff.c
echo Compiling coff_64x.c...
Compiling coff_64x.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/coff_64x.o coff_64x.c
echo Compiling coff_55x.c...
Compiling coff_55x.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/coff_55x.o coff_55x.c
echo Compiling coff_int.c...
Compiling coff_int.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/gen -I/root/dsplink_1_12_01/gpp/src/gen/Linux -I/root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/GEN/OBJ/DEBUG/coff_int.o coff_int.c
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/gen/Linux" "gmake -C /root/dsplink_1_12_01/gpp/src/gen/Linux -f    /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[2]: Entering directory `/root/dsplink_1_12_01/gpp/src/gen/Linux'
gmake[2]: Nothing to be done for `objdeb'.
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen/Linux'
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP" "gmake -C /root/dsplink_1_12_01/gpp/src/gen/Linux/OMAP -f /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/gen'
gmake -f Makefile -C hal   objdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal'
[HAL                 ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/HAL/BIN/DEBUG"
[HAL                 ] ------- OBJECT ---------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP" "gmake -C /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -f  /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[2]: Entering directory `/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP'
echo Compiling hal_mpui.c...
Compiling hal_mpui.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_mpui.o hal_mpui.c
echo Compiling hal_clkrst.c...
Compiling hal_clkrst.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_clkrst.o hal_clkrst.c
echo Compiling hal_io.c...
Compiling hal_io.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_io.o hal_io.c
echo Compiling hal_mailbox.c...
Compiling hal_mailbox.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_mailbox.o hal_mailbox.c
echo Compiling hal_mmu.c...
Compiling hal_mmu.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_mmu.o hal_mmu.c
echo Compiling hal_object.c...
Compiling hal_object.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_object.o hal_object.c
echo Compiling hal_rtc.c...
Compiling hal_rtc.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -I/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/HAL/OBJ/DEBUG/hal_rtc.o hal_rtc.c
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP'
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux" "gmake -C /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux -f    /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP" "gmake -C /root/dsplink_1_12_01/gpp/src/hal/Linux/OMAP/Linux/OMAP -f /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/hal'
gmake -f Makefile -C osal   objdeb
gmake[1]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
[OSAL                ] ------- DIRS ------------------ DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN"
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/DEBUG" "" "mkdir /root/dsplink_1_12_01/gpp/BUILD/OSAL/BIN/DEBUG"
[OSAL                ] ------- OBJECT ---------------- DEBUG --------------
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/osal" "gmake -C /root/dsplink_1_12_01/gpp/src/osal -f  /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[2]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal'
echo Compiling osal.c...
Compiling osal.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/osal -I/root/dsplink_1_12_01/gpp/src/osal/Linux -I/root/dsplink_1_12_01/gpp/src/osal/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/osal.o osal.c
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
/usr/bin/perl /root/dsplink_1_12_01/make/bin/runif.pl LINUX "exist /root/dsplink_1_12_01/gpp/src/osal/Linux" "gmake -C /root/dsplink_1_12_01/gpp/src/osal/Linux -f    /root/dsplink_1_12_01/make/Linux/OMAP/compile.mk objdeb VERBOSE=0" ""
gmake[2]: Entering directory `/root/dsplink_1_12_01/gpp/src/osal/Linux'
echo Compiling trc.c...
Compiling trc.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/osal -I/root/dsplink_1_12_01/gpp/src/osal/Linux -I/root/dsplink_1_12_01/gpp/src/osal/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/trc.o trc.c
echo Compiling cfg.c...
Compiling cfg.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/osal -I/root/dsplink_1_12_01/gpp/src/osal/Linux -I/root/dsplink_1_12_01/gpp/src/osal/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/cfg.o cfg.c
echo Compiling mem.c...
Compiling mem.c...
/opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc -g -Wall -Wno-strict-aliasing -c -I/root/dsplink_1_12_01/gpp/inc -I/root/dsplink_1_12_01/gpp/inc/Linux -I/root/dsplink_1_12_01/gpp/inc/Linux/OMAP -I/root/dsplink_1_12_01/gpp/src/osal -I/root/dsplink_1_12_01/gpp/src/osal/Linux -I/root/dsplink_1_12_01/gpp/src/osal/Linux/OMAP -I/root/montavista/kernel/linux/include -I/root/montavista/kernel/linux/include -I/root/dsplink_1_12_01/gpp/BUILD/INCLUDE -O2   -DOS_LINUX -DMSGQ_COMPONENT -DCHNL_COMPONENT -DPROC_COMPONENT -DDSP_COMPONENT -D__KERNEL__ -DMODULE -DTRACE_KERNEL -DDDSP_DEBUG -o/root/dsplink_1_12_01/gpp/BUILD/OSAL/OBJ/DEBUG/mem.o mem.c
In file included from /root/montavista/kernel/linux/include/asm/io.h:28,
                 from mem.c:22:
/root/montavista/kernel/linux/include/asm/arch/hardware.h:41:28: asm/mach-types.h: No such file or directory
gmake[2]: *** [mem.c.deb] Error 1
gmake[2]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal/Linux'
gmake[1]: *** [objdeb] Error 2
gmake[1]: Leaving directory `/root/dsplink_1_12_01/gpp/src/osal'
gmake: *** [osal.objdeb] Error 2

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply

* Re: Xen Kernel (3.0.2) breaks b44 module
From: Keir Fraser @ 2006-05-12  9:28 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen, xen-devel
In-Reply-To: <44646E49.76E4.0078.0@novell.com>


On 12 May 2006, at 10:15, Jan Beulich wrote:

> I agree, but this wouldn't help this specific case, as the driver also 
> (and mostly) uses pci_map_single on skb->data,
> which ends up in swiotlb. Since swiotlb does its allocation and range 
> restriction during init, adjusting things here
> would likely be more complicated (or cost performance, if one wanted 
> to further restrict the range upon use when
> needed).

When we support more flexible allocation in Xen, we'll fix up the 
swiotlb to automatically try to grab some lower memory and/or allow the 
address mask for the physical memory in the swiotlb to be specified on 
the kernel command line.

It sounds like 30-bit-addressable memory will be a good thing to try 
for automatically at init. I'd thought that 31-bit was really as bad as 
it got (except for old ISA-ish hardware with 24-bit limitations, which 
we'll never support).

  -- Keir

^ permalink raw reply

* Re: [PATCH] ide_cs: Make ide_cs work with the memory space of CF-Cards if IO space is not available (2nd revision)
From: Thomas Kleffel (maintech GmbH) @ 2006-05-12  9:27 UTC (permalink / raw)
  To: David Vrabel; +Cc: Alan Cox, linux-kernel, linux-pcmcia, Iain Barker
In-Reply-To: <446452F5.10909@cantab.net>

David Vrabel wrote:

>Thomas Kleffel (maintech GmbH) wrote:
>  
>
>>+void outb_io(unsigned char value, unsigned long port) {
>>+	outb(value, port);
>>+}
>>+
>>+void outb_mem(unsigned char value, unsigned long port) {
>>+	writeb(value, (void __iomem *) port);
>> }
>>    
>>
>
>[...]
>
>  
>
>>+    if(is_mmio) 
>>+    	my_outb = outb_mem;
>>+    else
>>+    	my_outb = outb_io;
>>    
>>
>
>
>Shouldn't you convert ide_cs to use iowrite8 (and friends) instead of
>doing this?
>  
>
You're right. I didn't know about iowrite8.

I'll post a new revision soon.

Thomas

^ permalink raw reply

* [U-Boot-Users] Intel P30, HowTo?
From: Konstantin Kletschke @ 2006-05-12  9:22 UTC (permalink / raw)
  To: u-boot

Am 2006-05-11 18:22 +0200 schrieb Wolfgang Denk:

> Are you sure that  your  board  configuration  is  OK?  Checked  your
> CFG_MAX_FLASH_SECT definiton?

ARGH! The value was too less.

Bank # 1: CFI conformant FLASH (16 x 16)  Size: 32 MB in 259 Sectors
 Erase timeout 4096 ms, write timeout 1 ms, buffer write timeout 2 ms, buffer size 64
  Sector Start Addresses:
    10000000 (RO) 10008000 (RO) 10010000 (RO) 10018000 (RO) 10020000 (RO)
    10040000 (RO) 10060000 (RO) 10080000 (RO) 100A0000 (RO) 100C0000 (RO)
    100E0000 (RO) 10100000 (RO) 10120000 (RO) 10140000 (RO) 10160000 (RO)
    10180000 (RO) 101A0000 (RO) 101C0000 (RO) 101E0000 (RO) 10200000 (RO)
    10220000 (RO) 10240000 (RO) 10260000 (RO) 10280000 (RO) 102A0000 (RO)
    102C0000 (RO) 102E0000 (RO) 10300000 (RO) 10320000 (RO) 10340000 (RO)
    10360000 (RO) 10380000 (RO) 103A0000 (RO) 103C0000 (RO) 103E0000 (RO)
    10400000 (RO) 10420000 (RO) 10440000 (RO) 10460000 (RO) 10480000 (RO)
    104A0000 (RO) 104C0000 (RO) 104E0000 (RO) 10500000 (RO) 10520000 (RO)
    10540000 (RO) 10560000 (RO) 10580000 (RO) 105A0000 (RO) 105C0000 (RO)
    105E0000 (RO) 10600000 (RO) 10620000 (RO) 10640000 (RO) 10660000 (RO)
    10680000 (RO) 106A0000 (RO) 106C0000 (RO) 106E0000 (RO) 10700000 (RO)
    10720000 (RO) 10740000 (RO) 10760000 (RO) 10780000 (RO) 107A0000 (RO)
    107C0000 (RO) 107E0000 (RO) 10800000 (RO) 10820000 (RO) 10840000 (RO)
    10860000 (RO) 10880000 (RO) 108A0000 (RO) 108C0000 (RO) 108E0000 (RO)
    10900000 (RO) 10920000 (RO) 10940000 (RO) 10960000 (RO) 10980000 (RO)
    109A0000 (RO) 109C0000 (RO) 109E0000 (RO) 10A00000 (RO) 10A20000 (RO)
    10A40000 (RO) 10A60000 (RO) 10A80000 (RO) 10AA0000 (RO) 10AC0000 (RO)
    10AE0000 (RO) 10B00000 (RO) 10B20000 (RO) 10B40000 (RO) 10B60000 (RO)
    10B80000 (RO) 10BA0000 (RO) 10BC0000 (RO) 10BE0000 (RO) 10C00000 (RO)
    10C20000 (RO) 10C40000 (RO) 10C60000 (RO) 10C80000 (RO) 10CA0000 (RO)
    10CC0000 (RO) 10CE0000 (RO) 10D00000 (RO) 10D20000 (RO) 10D40000 (RO)
    10D60000 (RO) 10D80000 (RO) 10DA0000 (RO) 10DC0000 (RO) 10DE0000 (RO)
    10E00000 (RO) 10E20000 (RO) 10E40000 (RO) 10E60000 (RO) 10E80000 (RO)
    10EA0000 (RO) 10EC0000 (RO) 10EE0000 (RO) 10F00000 (RO) 10F20000 (RO)
    10F40000 (RO) 10F60000 (RO) 10F80000 (RO) 10FA0000 (RO) 10FC0000 (RO)
    10FE0000 (RO) 11000000 (RO) 11020000 (RO) 11040000 (RO) 11060000 (RO)
    11080000 (RO) 110A0000 (RO) 110C0000 (RO) 110E0000 (RO) 11100000 (RO)
    11120000 (RO) 11140000 (RO) 11160000 (RO) 11180000 (RO) 111A0000 (RO)
    111C0000 (RO) 111E0000 (RO) 11200000 (RO) 11220000 (RO) 11240000 (RO)
    11260000 (RO) 11280000 (RO) 112A0000 (RO) 112C0000 (RO) 112E0000 (RO)
    11300000 (RO) 11320000 (RO) 11340000 (RO) 11360000 (RO) 11380000 (RO)
    113A0000 (RO) 113C0000 (RO) 113E0000 (RO) 11400000 (RO) 11420000 (RO)
    11440000 (RO) 11460000 (RO) 11480000 (RO) 114A0000 (RO) 114C0000 (RO)
    114E0000 (RO) 11500000 (RO) 11520000 (RO) 11540000 (RO) 11560000 (RO)
    11580000 (RO) 115A0000 (RO) 115C0000 (RO) 115E0000 (RO) 11600000 (RO)
    11620000 (RO) 11640000 (RO) 11660000 (RO) 11680000 (RO) 116A0000 (RO)
    116C0000 (RO) 116E0000 (RO) 11700000 (RO) 11720000 (RO) 11740000 (RO)
    11760000 (RO) 11780000 (RO) 117A0000 (RO) 117C0000 (RO) 117E0000 (RO)
    11800000 (RO) 11820000 (RO) 11840000 (RO) 11860000 (RO) 11880000 (RO)
    118A0000 (RO) 118C0000 (RO) 118E0000 (RO) 11900000 (RO) 11920000 (RO)
    11940000 (RO) 11960000 (RO) 11980000 (RO) 119A0000 (RO) 119C0000 (RO)
    119E0000 (RO) 11A00000 (RO) 11A20000 (RO) 11A40000 (RO) 11A60000 (RO)
    11A80000 (RO) 11AA0000 (RO) 11AC0000 (RO) 11AE0000 (RO) 11B00000 (RO)
    11B20000 (RO) 11B40000 (RO) 11B60000 (RO) 11B80000 (RO) 11BA0000 (RO)
    11BC0000 (RO) 11BE0000 (RO) 11C00000 (RO) 11C20000 (RO) 11C40000 (RO)
    11C60000 (RO) 11C80000 (RO) 11CA0000 (RO) 11CC0000 (RO) 11CE0000 (RO)
    11D00000 (RO) 11D20000 (RO) 11D40000 (RO) 11D60000 (RO) 11D80000 (RO)
    11DA0000 (RO) 11DC0000 (RO) 11DE0000 (RO) 11E00000 (RO) 11E20000 (RO)
    11E40000 (RO) 11E60000 (RO) 11E80000 (RO) 11EA0000 (RO) 11EC0000 (RO)
    11EE0000 (RO) 11F00000 (RO) 11F20000 (RO) 11F40000 (RO) 11F60000 (RO)
    11F80000 (RO) 11FA0000 (RO) 11FC0000 (RO) 11FE0000 (RO)
scb9328>


Now it unlocks erases and programs the flash fine so far.
But what is this variable for?
flinfo gets the right capacity and number of sectors automatically.
Is it harmful the variable being too big? I have
CFG_MAX_FLASH_SECT set to 266 now, because I don't now the number of
sectors of p30 flash exactly...

Now jffs2 of 2.6.14 crashes in jffs2_scan_medium, but I have to check
this with the kernel guys...

Regards, Konsti

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF

^ permalink raw reply

* Re: rt20 patch question
From: Ingo Molnar @ 2006-05-12  9:21 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Mark Hounschell, linux-kernel, Daniel Walker, Thomas Gleixner
In-Reply-To: <Pine.LNX.4.58.0605120435570.28581@gandalf.stny.rr.com>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> > one solution would be to forbid disable_irq() from softirq contexts, and
> > to convert the vortex timeout function to a workqueue and use the
> > *_delayed_work() APIs to drive it - and cross fingers there's not many
> > places to fix.
> 
> I prefer the above. Maybe even add a WARN_ON(in_softirq()) in 
> disable_irq.
> 
> But I must admit, I wouldn't know how to make that change without 
> spending more time on it then I have for this.

the simplest fix for now would be to use the _nosync variant in the 
vortex timeout function.

Mark, does this fix the problem?

	Ingo

Index: linux-rt.q/drivers/net/3c59x.c
===================================================================
--- linux-rt.q.orig/drivers/net/3c59x.c
+++ linux-rt.q/drivers/net/3c59x.c
@@ -1897,7 +1897,8 @@ vortex_timer(unsigned long data)
 
 	if (vp->medialock)
 		goto leave_media_alone;
-	disable_irq(dev->irq);
+	/* hack! */
+	disable_irq_nosync(dev->irq);
 	old_window = ioread16(ioaddr + EL3_CMD) >> 13;
 	EL3WINDOW(4);
 	media_status = ioread16(ioaddr + Wn4_Media);

^ permalink raw reply

* Re: [PATCH] reenabling ptrace for paravirtualized guests
From: Simon Kagstrom @ 2006-05-12  9:21 UTC (permalink / raw)
  To: xen-devel list; +Cc: Ryan Harper, Hollis Blanchard
In-Reply-To: <87zmho4na4.wl%simon.kagstrom@bth.se>

Here is a new version of the patch which reenables ptrace for
paravirtualized guests and enables single-stepping in GDB. Changes:

- Added to_ma function which translates a physical address to a
  machine address for HVM guests and just returns the address for PV
  guests.

- Use to_ma() in map_domain_va_32, map_domain_va_pae and
  map_domain_va_64 to abstract away differences between HVM and PV
  guests.

- Reenable single-stepping for attached domains

- (From Keir, Ryan) Export CR0 to PV guests as well.

I've removed the address checks against 0 since the last version since
physical/machine address 0 should be valid. Invalid translations
should be catched in xc_map_foreign_domain.

As before, I have not been able to test the patch on HVM, PAE or
64-bit domains and would appreciate if someone could give the patch a
try.

Signed-Off-By: Simon Kagstrom <simon.kagstrom@bth.se>

===File /tmp/xc_ptrace.patch================================
diff -r 5df90f95916e tools/libxc/xc_ptrace.c
--- a/tools/libxc/xc_ptrace.c	Fri May 12 10:36:26 2006 +0200
+++ b/tools/libxc/xc_ptrace.c	Fri May 12 11:13:14 2006 +0200
@@ -157,6 +157,27 @@ static long                     nr_pages
 static long                     nr_pages = 0;
 static unsigned long           *page_array = NULL;
 
+
+/*
+ * Translates physical addresses to machine addresses for HVM
+ * guests. For paravirtual domains the function will just return the
+ * given address.
+ *
+ * This function should be used when reading page directories/page
+ * tables.
+ *
+ */
+static unsigned long
+to_ma(int cpu,
+      unsigned long in_addr)
+{
+    unsigned long maddr = in_addr;
+
+    if ( (ctxt[cpu].flags & VGCF_HVM_GUEST) && paging_enabled(&ctxt[cpu]) )
+        maddr = page_array[maddr >> PAGE_SHIFT] << PAGE_SHIFT;
+    return maddr;
+}
+
 static void *
 map_domain_va_32(
     int xc_handle,
@@ -188,10 +209,7 @@ map_domain_va_32(
         if ( cr3_virt[cpu] == NULL )
             return NULL;
     }
-    if ( (pde = cr3_virt[cpu][vtopdi(va)]) == 0 )
-        return NULL;
-    if ( (ctxt[cpu].flags & VGCF_HVM_GUEST) && paging_enabled(&ctxt[cpu]) )
-        pde = page_array[pde >> PAGE_SHIFT] << PAGE_SHIFT;
+    pde = to_ma(cpu, cr3_virt[cpu][vtopdi(va)]);
     if ( pde != pde_phys[cpu] )
     {
         pde_phys[cpu] = pde;
@@ -203,10 +221,8 @@ map_domain_va_32(
         if ( pde_virt[cpu] == NULL )
             return NULL;
     }
-    if ( (page = pde_virt[cpu][vtopti(va)]) == 0 )
-        return NULL;
-    if (ctxt[cpu].flags & VGCF_HVM_GUEST)
-        page = page_array[page >> PAGE_SHIFT] << PAGE_SHIFT;
+    page = to_ma(cpu, pde_virt[cpu][vtopti(va)]);
+
     if ( (page != page_phys[cpu]) || (perm != prev_perm[cpu]) )
     {
         page_phys[cpu] = page;
@@ -243,25 +259,22 @@ map_domain_va_pae(
     if ( l3 == NULL )
         return NULL;
 
-    l2p = l3[l3_table_offset_pae(va)] >> PAGE_SHIFT;
-    l2p = page_array[l2p];
-    l2 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l2p);
+    l2p = to_ma(cpu, l3[l3_table_offset_pae(va)]);
+    l2 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l2p >> PAGE_SHIFT);
     munmap(l3, PAGE_SIZE);
     if ( l2 == NULL )
         return NULL;
 
-    l1p = l2[l2_table_offset_pae(va)] >> PAGE_SHIFT;
-    l1p = page_array[l1p];
-    l1 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, l1p);
+    l1p = to_ma(cpu, l2[l2_table_offset_pae(va)]);
+    l1 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, l1p >> PAGE_SHIFT);
     munmap(l2, PAGE_SIZE);
     if ( l1 == NULL )
         return NULL;
 
-    p = l1[l1_table_offset_pae(va)] >> PAGE_SHIFT;
-    p = page_array[p];
+    p = to_ma(cpu, l1[l1_table_offset_pae(va)]);
     if ( v != NULL )
         munmap(v, PAGE_SIZE);
-    v = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, p);
+    v = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, p >> PAGE_SHIFT);
     munmap(l1, PAGE_SIZE);
     if ( v == NULL )
         return NULL;
@@ -289,38 +302,35 @@ map_domain_va_64(
     if ( l4 == NULL )
         return NULL;
 
-    l3p = l4[l4_table_offset(va)] >> PAGE_SHIFT;
-    l3p = page_array[l3p];
-    l3 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l3p);
+    l3p = to_ma(cpu, l4[l4_table_offset(va)]);
+    l3 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l3p >> PAGE_SHIFT);
     munmap(l4, PAGE_SIZE);
     if ( l3 == NULL )
         return NULL;
 
-    l2p = l3[l3_table_offset(va)] >> PAGE_SHIFT;
-    l2p = page_array[l2p];
-    l2 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l2p);
+    l2p = to_ma(cpu, l3[l3_table_offset(va)]);
+    l2 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, PROT_READ, l2p >> PAGE_SHIFT);
     munmap(l3, PAGE_SIZE);
     if ( l2 == NULL )
         return NULL;
 
     l1 = NULL;
-    l1e = l2[l2_table_offset(va)];
+    l1e = to_ma(cpu, l2[l2_table_offset(va)]);
     l1p = l1e >> PAGE_SHIFT;
     if (l1e & 0x80)  { /* 2M pages */
-        p = (l1p + l1_table_offset(va));
+        p = to_ma(cpu, (l1p + l1_table_offset(va)) << PAGE_SHIFT);
     } else { /* 4K pages */
-        l1p = page_array[l1p];
-        l1 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, l1p);
+        l1p = to_ma(cpu, l1e[l1_table_offset(va)]);
+        l1 = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, l1p >> PAGE_SHIFT);
         munmap(l2, PAGE_SIZE);
         if ( l1 == NULL )
             return NULL;
 
-        p = l1[l1_table_offset(va)] >> PAGE_SHIFT;
-    }
-    p = page_array[p];
+        p = to_ma(cpu, l1[l1_table_offset(va)]);
+    }
     if ( v != NULL )
         munmap(v, PAGE_SIZE);
-    v = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, p);
+    v = xc_map_foreign_range(xc_handle, current_domid, PAGE_SIZE, perm, p >> PAGE_SHIFT);
     if (l1)
         munmap(l1, PAGE_SIZE);
     if ( v == NULL )
@@ -381,7 +391,7 @@ map_domain_va(
         if ( v != NULL )
             munmap(v, PAGE_SIZE);
 
-        page = page_array[va >> PAGE_SHIFT] << PAGE_SHIFT;
+        page = to_ma(cpu, page_array[va >> PAGE_SHIFT]);
 
         v = xc_map_foreign_range( xc_handle, current_domid, PAGE_SIZE, 
                 perm, page >> PAGE_SHIFT);
@@ -526,7 +536,7 @@ xc_ptrace(
         break;
 
     case PTRACE_SINGLESTEP:
-        if (!current_isfile)
+        if (current_isfile)
               goto out_unspported; /* XXX not yet supported */
         /*  XXX we can still have problems if the user switches threads
          *  during single-stepping - but that just seems retarded
diff -r 5df90f95916e xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c	Fri May 12 10:36:26 2006 +0200
+++ b/xen/arch/x86/domain.c	Fri May 12 11:13:14 2006 +0200
@@ -379,6 +379,9 @@ int arch_set_info_guest(
         v->arch.flags |= TF_kernel_mode;
 
     memcpy(&v->arch.guest_context, c, sizeof(*c));
+    /* Only CR0.TS is modifiable by guest or admin. */
+    v->arch.guest_context.ctrlreg[0] &= X86_CR0_TS;
+    v->arch.guest_context.ctrlreg[0] |= read_cr0() & ~X86_CR0_TS;
     init_int80_direct_trap(v);
 
     if ( !(c->flags & VGCF_HVM_GUEST) )
============================================================

^ permalink raw reply

* Re: rt20 patch question
From: Steven Rostedt @ 2006-05-12  9:20 UTC (permalink / raw)
  To: Mark Hounschell; +Cc: Mark Hounschell, Ingo Molnar, linux-kernel, Daniel Walker
In-Reply-To: <4464509B.4080206@cfl.rr.com>


On Fri, 12 May 2006, Mark Hounschell wrote:

> Steven Rostedt wrote:
>
> Done. Keep in mind it was taken only after one of those BUGs that seemed
> to cause a network connection loss into the emulation. It was not taken
> after one of those "stops" in 'complete preempt' mode. Did the logdev
> output show anything of interest concerning the "stops"?

Damn, your logdev email got lost in the noise.  I'm glad you mentioned it
otherwise I would have never known you sent it.  I'll look at it now.

>
> So do you think this BUG reported in 'preempt kernel' mode is related to
> the "stops" I am having in 'complete preempt mode?
>

Yes.  That BUG thread that I included you on affects you if hardirqs are
threaded in any preempt mode.  So yes it is a bug in 'complete preempt
mode' too.  So that driver really does need to be fixed for you.
Unfortunately, I don't have the time now to fix that.

Perhaps someone else can?

-- Steve


^ permalink raw reply

* Re: [PATCH] ide_cs: Make ide_cs work with the memory space of CF-Cards if IO space is not available (2nd revision)
From: David Vrabel @ 2006-05-12  9:18 UTC (permalink / raw)
  To: Thomas Kleffel (maintech GmbH)
  Cc: Alan Cox, linux-kernel, linux-pcmcia, Iain Barker
In-Reply-To: <44643B80.5080109@maintech.de>

Thomas Kleffel (maintech GmbH) wrote:
> 
> +void outb_io(unsigned char value, unsigned long port) {
> +	outb(value, port);
> +}
> +
> +void outb_mem(unsigned char value, unsigned long port) {
> +	writeb(value, (void __iomem *) port);
>  }

[...]

> +    if(is_mmio) 
> +    	my_outb = outb_mem;
> +    else
> +    	my_outb = outb_io;


Shouldn't you convert ide_cs to use iowrite8 (and friends) instead of
doing this?

David Vrabel

^ permalink raw reply

* latest ACPI patch vs 2.6.17-rc4
From: Len Brown @ 2006-05-12  9:18 UTC (permalink / raw)
  To: linux-acpi

Folks,
The latest ACPI patch is against 2.6.17-rc4 and is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git test
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/test/2.6.17/acpi-test-20060310-2.6.17-rc4.diff.gz

Note that I removed the acpi_in_resume workaround, so you'll get some oops'
 during resume, until we replace it with something else.

Note that the kmalloc patches allow CONFIG_DEBUG_SLAB_LEAKS to put more
useful entries in /proc/slab_allocators for acpi.

cheers,
-Len


 Documentation/kernel-parameters.txt               |    3 
 arch/i386/kernel/acpi/boot.c                      |    5 
 arch/i386/kernel/acpi/processor.c                 |    2 
 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c       |  289 +++++--
 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c |  250 ++++--
 arch/ia64/Kconfig                                 |    1 
 arch/x86_64/Kconfig                               |    1 
 arch/x86_64/kernel/acpi/Makefile                  |    1 
 arch/x86_64/kernel/acpi/processor.c               |   74 -
 drivers/acpi/Kconfig                              |    3 
 drivers/acpi/ac.c                                 |   72 -
 drivers/acpi/acpi_memhotplug.c                    |  179 +---
 drivers/acpi/asus_acpi.c                          |   34 
 drivers/acpi/battery.c                            |  145 +--
 drivers/acpi/bus.c                                |  140 +--
 drivers/acpi/button.c                             |   82 --
 drivers/acpi/container.c                          |   42 -
 drivers/acpi/debug.c                              |   21 
 drivers/acpi/dispatcher/dsfield.c                 |    1 
 drivers/acpi/dispatcher/dsmethod.c                |    5 
 drivers/acpi/dispatcher/dsmthdat.c                |    3 
 drivers/acpi/dispatcher/dsobject.c                |   15 
 drivers/acpi/dispatcher/dsopcode.c                |    4 
 drivers/acpi/dispatcher/dsutils.c                 |    9 
 drivers/acpi/dispatcher/dswexec.c                 |    3 
 drivers/acpi/dispatcher/dswload.c                 |   10 
 drivers/acpi/dispatcher/dswscope.c                |    2 
 drivers/acpi/dispatcher/dswstate.c                |   13 
 drivers/acpi/ec.c                                 |  198 +----
 drivers/acpi/event.c                              |   21 
 drivers/acpi/events/evevent.c                     |    2 
 drivers/acpi/events/evgpe.c                       |    5 
 drivers/acpi/events/evgpeblk.c                    |   52 -
 drivers/acpi/events/evmisc.c                      |    6 
 drivers/acpi/events/evregion.c                    |   12 
 drivers/acpi/events/evrgnini.c                    |   14 
 drivers/acpi/events/evxface.c                     |   82 +-
 drivers/acpi/events/evxfevnt.c                    |   41 -
 drivers/acpi/events/evxfregn.c                    |    9 
 drivers/acpi/executer/exconfig.c                  |    9 
 drivers/acpi/executer/exconvrt.c                  |    2 
 drivers/acpi/executer/exdump.c                    |    4 
 drivers/acpi/executer/exfield.c                   |    6 
 drivers/acpi/executer/exfldio.c                   |    5 
 drivers/acpi/executer/exmisc.c                    |    1 
 drivers/acpi/executer/exmutex.c                   |    3 
 drivers/acpi/executer/exnames.c                   |   10 
 drivers/acpi/executer/exoparg1.c                  |   61 +
 drivers/acpi/executer/exoparg2.c                  |   81 +-
 drivers/acpi/executer/exoparg3.c                  |   11 
 drivers/acpi/executer/exoparg6.c                  |    1 
 drivers/acpi/executer/exprep.c                    |   17 
 drivers/acpi/executer/exregion.c                  |   11 
 drivers/acpi/executer/exresnte.c                  |    5 
 drivers/acpi/executer/exresolv.c                  |   43 -
 drivers/acpi/executer/exresop.c                   |    4 
 drivers/acpi/executer/exstore.c                   |    2 
 drivers/acpi/executer/exstoren.c                  |    3 
 drivers/acpi/executer/exstorob.c                  |   11 
 drivers/acpi/executer/exsystem.c                  |    2 
 drivers/acpi/executer/exutils.c                   |    3 
 drivers/acpi/fan.c                                |   60 -
 drivers/acpi/glue.c                               |    8 
 drivers/acpi/hardware/hwgpe.c                     |    2 
 drivers/acpi/hardware/hwregs.c                    |   12 
 drivers/acpi/hardware/hwsleep.c                   |   19 
 drivers/acpi/hardware/hwtimer.c                   |   10 
 drivers/acpi/hotkey.c                             |  157 +---
 drivers/acpi/motherboard.c                        |   69 -
 drivers/acpi/namespace/nsaccess.c                 |   26 
 drivers/acpi/namespace/nsalloc.c                  |   14 
 drivers/acpi/namespace/nsdump.c                   |    4 
 drivers/acpi/namespace/nsdumpdv.c                 |    2 
 drivers/acpi/namespace/nseval.c                   |    5 
 drivers/acpi/namespace/nsinit.c                   |    7 
 drivers/acpi/namespace/nsload.c                   |    3 
 drivers/acpi/namespace/nsnames.c                  |   10 
 drivers/acpi/namespace/nsobject.c                 |    3 
 drivers/acpi/namespace/nsparse.c                  |    2 
 drivers/acpi/namespace/nssearch.c                 |    5 
 drivers/acpi/namespace/nsutils.c                  |   23 
 drivers/acpi/namespace/nswalk.c                   |    4 
 drivers/acpi/namespace/nsxfeval.c                 |   86 +-
 drivers/acpi/namespace/nsxfname.c                 |   17 
 drivers/acpi/namespace/nsxfobj.c                  |   11 
 drivers/acpi/osl.c                                |  101 --
 drivers/acpi/parser/psargs.c                      |    7 
 drivers/acpi/parser/psloop.c                      |    7 
 drivers/acpi/parser/psopcode.c                    |    2 
 drivers/acpi/parser/psparse.c                     |    8 
 drivers/acpi/parser/psscope.c                     |    1 
 drivers/acpi/parser/pstree.c                      |    8 
 drivers/acpi/parser/psutils.c                     |    9 
 drivers/acpi/parser/pswalk.c                      |    3 
 drivers/acpi/parser/psxface.c                     |    2 
 drivers/acpi/pci_bind.c                           |   91 +-
 drivers/acpi/pci_irq.c                            |   98 +-
 drivers/acpi/pci_link.c                           |  217 ++---
 drivers/acpi/pci_root.c                           |   43 -
 drivers/acpi/power.c                              |  162 +---
 drivers/acpi/processor_core.c                     |  203 +----
 drivers/acpi/processor_idle.c                     |   96 --
 drivers/acpi/processor_perflib.c                  |  374 +++++++---
 drivers/acpi/processor_thermal.c                  |   53 -
 drivers/acpi/processor_throttling.c               |   50 -
 drivers/acpi/resources/rscalc.c                   |  122 +--
 drivers/acpi/resources/rscreate.c                 |    2 
 drivers/acpi/resources/rsinfo.c                   |    1 
 drivers/acpi/resources/rslist.c                   |   18 
 drivers/acpi/resources/rsmisc.c                   |   12 
 drivers/acpi/resources/rsutils.c                  |   65 -
 drivers/acpi/resources/rsxface.c                  |   31 
 drivers/acpi/scan.c                               |  174 +---
 drivers/acpi/sleep/wakeup.c                       |    3 
 drivers/acpi/system.c                             |   29 
 drivers/acpi/tables/tbconvrt.c                    |   11 
 drivers/acpi/tables/tbget.c                       |   11 
 drivers/acpi/tables/tbgetall.c                    |    1 
 drivers/acpi/tables/tbinstal.c                    |    9 
 drivers/acpi/tables/tbrsdt.c                      |    1 
 drivers/acpi/tables/tbutils.c                     |    2 
 drivers/acpi/tables/tbxface.c                     |   18 
 drivers/acpi/tables/tbxfroot.c                    |   33 
 drivers/acpi/thermal.c                            |  261 ++----
 drivers/acpi/utilities/utalloc.c                  |   25 
 drivers/acpi/utilities/utcache.c                  |   14 
 drivers/acpi/utilities/utcopy.c                   |   25 
 drivers/acpi/utilities/utdebug.c                  |   27 
 drivers/acpi/utilities/utdelete.c                 |    7 
 drivers/acpi/utilities/uteval.c                   |    8 
 drivers/acpi/utilities/utglobal.c                 |    8 
 drivers/acpi/utilities/utinit.c                   |    8 
 drivers/acpi/utilities/utmisc.c                   |   39 -
 drivers/acpi/utilities/utmutex.c                  |    4 
 drivers/acpi/utilities/utobject.c                 |    7 
 drivers/acpi/utilities/utresrc.c                  |    4 
 drivers/acpi/utilities/utstate.c                  |    2 
 drivers/acpi/utilities/utxface.c                  |   24 
 drivers/acpi/utils.c                              |  112 +-
 drivers/acpi/video.c                              |  338 +++------
 drivers/char/hpet.c                               |    5 
 drivers/char/sonypi.c                             |   10 
 drivers/pci/hotplug/acpi_pcihp.c                  |   16 
 drivers/pci/hotplug/acpiphp_dock.c                |    4 
 drivers/pci/hotplug/acpiphp_glue.c                |    2 
 drivers/pci/hotplug/pciehp_hpc.c                  |    4 
 drivers/pnp/pnpacpi/rsparser.c                    |  199 ++---
 include/acpi/acconfig.h                           |   10 
 include/acpi/acdisasm.h                           |   24 
 include/acpi/aclocal.h                            |    8 
 include/acpi/acmacros.h                           |   50 -
 include/acpi/acnamesp.h                           |    5 
 include/acpi/acpiosxf.h                           |    7 
 include/acpi/actypes.h                            |   25 
 include/acpi/acutils.h                            |    6 
 include/acpi/amlresrc.h                           |   61 -
 include/acpi/pdc_intel.h                          |    5 
 include/acpi/platform/acenv.h                     |   10 
 include/acpi/platform/aclinux.h                   |   29 
 include/acpi/processor.h                          |   27 
 include/asm-i386/apicdef.h                        |    1 
 include/asm-x86_64/acpi.h                         |    2 
 include/asm-x86_64/apicdef.h                      |    2 
 include/linux/cpufreq.h                           |    4 
 164 files changed, 3044 insertions(+), 3168 deletions(-)

through these commits:

Adrian Bunk:
      [ACPI] drivers/acpi/video.c: fix error path NULL pointer dereference
      ACPI: Kconfig: ACPI should depend on, not select PCI

Andi Kleen:
      [ACPI] fix "nolapic" flag in ACPI mode

Andrew Morton:
      ACPI: UP build fix for bugzilla-5737

Ashok Raj:
      ACPI: build fix for u8 cpu_index
      ACPI: Allow hot-add of ejected processor
      x86_64: Remove stale lapic definition from apicdef.h 

Bjorn Helgaas:
      PNPACPI: fix non-memory address space descriptor handling 
      PNPACPI: remove some code duplication
      PNPACPI: whitespace cleanup
      ACPI: request correct fixed hardware resource type (MMIO vs I/O port) 
      ACPI: Display "ACPI" to motherboard resources in /proc/io{mem,port} 
      ACPI: make acpi_bus_register_driver() return success/failure, not device 
count 
      ACPI: update asus_acpi driver registration to unload on failure
      ACPI: fix sonypi ACPI driver registration to unregister on failure
      ACPI: simplify scan.c coding
      ACPI: fix memory hotplug range length handling
      HPET: fix ACPI memory range length handling
      ACPI: remove __init/__exit from Asus .add()/.remove() methods 
      ACPI: Don't print internal BIOS names of wakeup devices

Bob Moore:
      [ACPI] ACPICA 20060210
      ACPI: ACPICA 20060217
      ACPI: ACPICA 20060310

Dave Jones:
      [ACPI] fix possible acpi thermal leak in failure path

Davi Arnaut:
      ACPI: acpi_os_acquire_object (GFP_KERNEL) called with IRQs disabled 
through suspend-resume 

David Shaohua Li:
      [ACPI] enable SMP C-states on x86_64

Irwan Djajadi:
      [ACPI] drivers/acpi/hotkey.c: check kmalloc return value

Jiri Slaby:
      ACPI: EC acpi-ecdt-uid-hack

Len Brown:
      ACPI: enable BIOS warning
      [ACPI] document cmdline acpi_os_name=
      Revert "ACPI: fix vendor resource length computation"
      ACPI: inline trivial acpi_os_get_thread_id()
      ACPI: delete remaining function tracing macros from drivers/acpi/*.c
      ACPI: delete newly added debugging macros in processor_perflib.c
      ACPI: disable ACPI_DBG_TRACK_ALLOCATIONS on debug kernel
      ACPI: use kfree(), delete acpi_os_free()
      ACPI: delete acpi_in_resume workaround
      ACPI: use kmalloc() and kzalloc(), delete acpi_os_allocate()
      ACPI: repair damage from overzealous bus.c cleanup patch

Patrick Mochel:
      ACPI: Remove debugging macros from drivers/acpi/thermal.c
      ACPI: Remove debugging macros from drivers/acpi/system.c
      ACPI: Remove debugging macros from drivers/acpi/processor_throttling.c
      ACPI: Remove debugging macros from drivers/acpi/processor_thermal.c
      ACPI: Remove debugging macros from drivers/acpi/processor_perflib.c
      ACPI: Remove debugging macros from drivers/acpi/processor_core.c
      ACPI: Remove debugging macros from drivers/acpi/processor_idle.c
      ACPI: Remove debugging macros from drivers/acpi/ec.c
      ACPI: Remove debugging macros from drivers/acpi/pci_link.c
      ACPI: Remove debugging macros from drivers/acpi/event.c
      ACPI: Remove debugging macros from drivers/acpi/power.c
      ACPI: Remove debugging macros from drivers/acpi/pci_root.c
      ACPI: Remove debugging macros from drivers/acpi/pci_irq.c
      ACPI: Remove debugging macros from drivers/acpi/motherboard.c
      ACPI: Remove debugging macros from drivers/acpi/hotkey.c
      ACPI: Remove debugging macros from drivers/acpi/pci_bind.c
      ACPI: Remove debugging macros from drivers/acpi/fan.c
      ACPI: Remove debugging macros from drivers/acpi/container.c
      ACPI: Remove debugging macros from drivers/acpi/debug.c
      ACPI: Remove debugging macros from drivers/acpi/button.c
      ACPI: Remove debugging macros from drivers/acpi/battery.c
      ACPI: Remove debugging macros from drivers/acpi/bus.c
      ACPI: Remove debugging macros from drivers/acpi/acpi_memhotplug.c
      ACPI: Remove debugging macros from drivers/acpi/ac.c

Thomas Renniger:
      [ACPI] Enable ACPI error messages w/o CONFIG_ACPI_DEBUG

Thomas Renninger:
      [ACPI] Export symbols for ACPI_ERROR/EXCEPTION/WARNING macros
      [ACPI] Print error message if remove/install notify handler fails

Venkatesh Pallipadi:
      P-state software coordination for ACPI core
      P-state software coordination for acpi-cpufreq
      P-state software coordination for speedstep-centrino
      Enable P-state software coordination via _PDC

with this log:

commit 42e3a90e5deafdbf482820158fc56696137d1730
Merge: cfab935... e4218b8...
Author: Len Brown <len.brown@intel.com>
Date:   Fri May 12 05:01:20 2006 -0400

    Pull kmalloc into test branch
    
    Conflicts:
    
    	drivers/acpi/acpi_memhotplug.c
    	drivers/acpi/osl.c
    	drivers/acpi/pci_link.c
    	drivers/acpi/scan.c
    	drivers/acpi/video.c
    	include/acpi/acmacros.h
    	include/acpi/platform/aclinux.h
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit cfab93573f6d0a65752648279d07282cf4dec2f5
Merge: b5689e1... d8c3291...
Author: Len Brown <len.brown@intel.com>
Date:   Fri May 12 04:25:23 2006 -0400

    merge linus into test branch

commit b5689e13f0b0e33acc7a1705c398c1f22a3bd46f
Merge: 7378614... 2637566...
Author: Len Brown <len.brown@intel.com>
Date:   Fri May 12 04:21:45 2006 -0400

    Pull dmesg into test branch

commit 26375665dd6ba2140790889f1761981dbda6efab
Author: Len Brown <len.brown@intel.com>
Date:   Fri May 12 04:19:11 2006 -0400

    ACPI: repair damage from overzealous bus.c cleanup patch
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit e4218b8328d570082de636b865d6e874a451644d
Author: Len Brown <len.brown@intel.com>
Date:   Fri May 12 00:47:25 2006 -0400

    ACPI: use kmalloc() and kzalloc(), delete acpi_os_allocate()
    
    Also skip acpi_ut_allocate().
    
    In addition to deleting unnecessary code,
    this allows CONFIG_DEBUG_SLAB_LEAK to better track kmalloc users.
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 6e1f1f6ef94d38b78f56ba728491a94de52cda0b
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 01:43:04 2006 -0400

    ACPI: delete acpi_in_resume workaround
    
    All this workaround does is silence the may_sleep warning.
    But that can be silenced by using global system states in resume,
    just they are used during boot.
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1b35d6f69aad8780fbe01d0b21497aa2d616f392
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 01:37:05 2006 -0400

    ACPI: use kfree(), delete acpi_os_free()
    
    acpi_os_free() serves no purpose.
    Inside the ACPICA core, ACPI_FREE() is used.
    Outside the ACPICA core, native kfree() can be used.
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit a2412c16d852826365d2caf7238dea6fb356c3c7
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 01:17:16 2006 -0400

    ACPI: disable ACPI_DBG_TRACK_ALLOCATIONS on debug kernel
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 7378614c128b5ae7034899445537d49464ff0db0
Merge: 3f0bd1a... 9011bff...
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 00:30:29 2006 -0400

    Pull bugzilla-5737 into test branch

commit 9011bff4bdc0fef1f9a782d7415c306ee61826c9
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 00:28:12 2006 -0400

    ACPI: delete newly added debugging macros in processor_perflib.c
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 3f0bd1a08a992106c11b11d4b1230fcfbe919e24
Merge: 5b31856... 5d882e6...
Author: Len Brown <len.brown@intel.com>
Date:   Thu May 11 00:18:35 2006 -0400

    Pull dmesg into test branch
    
    Conflicts:
    
    	drivers/acpi/processor_core.c
    	drivers/acpi/scan.c
    	drivers/acpi/thermal.c

commit 5b31856b24f2e2874fa3fd2a87f4bcdcccad6b59
Merge: a4250b0... 0e44dc3...
Author: Len Brown <len.brown@intel.com>
Date:   Wed May 10 22:58:25 2006 -0400

    Pull linus into test branch
    
    Conflicts:
    
    	arch/i386/kernel/acpi/boot.c

commit a4250b0b64cfde4d1e8e805d62a75125f2e4a611
Merge: 46ae90f... e6f1f3c...
Author: Len Brown <len.brown@intel.com>
Date:   Wed May 10 22:56:12 2006 -0400

    Pull trivial1 into test branch

commit 5d882e684aafea30c508d86d235327d94e1d38ae
Author: Len Brown <len.brown@intel.com>
Date:   Tue May 9 10:55:56 2006 -0400

    ACPI: delete remaining function tracing macros from drivers/acpi/*.c
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 14394600cdfe0c952ce662a32a68c5c5524d32ac
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/ac.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit da95181baf3cf6a2bd81c0c8af1d4c6790703e4f
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/acpi_memhotplug.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit b128440ed11d108c375772b7fe9ad46d2ac07084
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/bus.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 61ce94e1f8b16b1694475adba9bf2e07fac02020
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/battery.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit a48142ea89e02ed0aba0a481ead1e9302e1a4160
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/button.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit d5c11d3ba31d6ead24f27de648dc2dcfde5092e3
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/debug.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit f6a08bf2cb06ee3d5be749cf20685b677619bc8e
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/container.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 2cb7f1704275905b7548eee299c554bcdc5cf357
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/fan.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 2ce2b16467f0d43d0f8933eb4821b2369b31888c
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/pci_bind.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 8ec0cbd9386a40a3afffad78334f4403b256dc4b
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/hotkey.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit ba8acc597cff47fcbbd7b9f0d73a59e784852d8b
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/motherboard.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 7e9e8344848d80c9b6e1b9eaf32dd498b48ca5bb
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/pci_irq.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit d2606159ffdf8e435f6a7714f8e8910672b944d5
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/pci_root.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 8fb1d47b74e2bad912f74783048b433a1e313799
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/power.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit f7c0fce6da5cb68b8b0e203df4ff8ef9b3265105
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/event.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 61e295946a248e43cf244cb24097e284d1d00e35
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/pci_link.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit a32283362a7a8e7cff608fe25299a59925daea4d
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/ec.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 4cd5611ca16348b3805ddcf89b97fe670e76faaa
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/processor_idle.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 529758bad4b0f9a8eec56fcc5cad342e9680ea36
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/processor_core.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 91afb9e683426ff238aab159e60f6d6e792e7488
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/processor_perflib.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 9f102deee398ea4dfcee3b2108dc00bc59ea877b
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/processor_thermal.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit e85eb9a47f19a26b636b58106e309f8db6b2415d
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/processor_throttling.c
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 4597ac50598b85a09417df531849b80ce2e8e44b
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/system.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 74951d613e758f9709d6f2173107be68f18f77f4
Author: Patrick Mochel <mochel@linux.intel.com>
Date:   Mon Apr 17 21:22:00 2006 -0400

    ACPI: Remove debugging macros from drivers/acpi/thermal.c
    
    Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit e6f1f3c54974a30c65ea0b699809d12f0aa04272
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Mon Apr 3 13:14:00 2006 -0400

    ACPI: Don't print internal BIOS names of wakeup devices
    
    Internal BIOS names like these should be exposed
    to the user as little as possible:
    
    ACPI wakeup devices: C069 C0CE C1D1 C0DE C1D4
    
    Eventually, the "wakeup" property of a device should be exported via the
    device tree, not by a printk of an internal BIOS name.  For the hard-core,
    these are still available in /proc/acpi/wakeup_devices, just not
    printed to dmesg.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 46ae90f0b636c22f05d46ea7a10f451f1034d939
Merge: 9d3482d... e4513a5...
Author: Len Brown <len.brown@intel.com>
Date:   Sat Apr 1 23:18:22 2006 -0500

    Pull acpi_bus_register_driver into test branch
    
    Conflicts:
    
    	drivers/acpi/asus_acpi.c

commit 9d3482d05b2bc317ef03013626248aff6091065a
Merge: e560d25... 5e15b92... 9224a86... eefa27a... ff2fc3e... 1300124... 
cd090ee... 1c6e7d0... c12ea91...
Author: Len Brown <len.brown@intel.com>
Date:   Sat Apr 1 23:15:50 2006 -0500

    merge acpi_in_resume address-range cpu-hotplug ec Kconfig motherboard 
pnpacpi trivial1 into test

commit e560d2547a203cb822d490f4be8ad65b75244b6f
Merge: 7b6efc8... 7e1f19e...
Author: Len Brown <len.brown@intel.com>
Date:   Sat Apr 1 23:15:08 2006 -0500

    merge bugzilla-5737 into test

commit c12ea918ee175ceb3a258cd81f1c43e897d0c0bc
Author: Ashok Raj <ashok.raj@intel.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    x86_64: Remove stale lapic definition from apicdef.h 
    
    Signed-off-by: Ashok Raj <ashok.raj@intel.com>
    Cc: Andi Kleen <ak@muc.de>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit eefa27a93a0490902f33837ac86dbcf344b3aa29
Author: Ashok Raj <ashok.raj@intel.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: Allow hot-add of ejected processor
    
    acpi_eject_store() didn't trim processors, causing subsequent
    hot-add to fail.
    
    Signed-off-by: Ashok Raj <ashok.raj@intel.com>
    Cc: Andi Kleen <ak@muc.de>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit ff2fc3e9e3edb918b6c6b288485c6cb267bc865e
Author: Jiri Slaby <jirislaby@gmail.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: EC acpi-ecdt-uid-hack
    
    On some boxes ecdt uid may be equal to 0, so do not test for uids 
equality,
    so that fake handler will be unconditionally removed to allow loading the
    real one.
    
    See http://bugzilla.kernel.org/show_bug.cgi?id=6111
    
    Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
    Cc: Luming Yu <luming.yu@intel.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit df42baa0d8e54df18dd9366dd7c93d6be7d5d063
Author: Ashok Raj <ashok.raj@intel.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: build fix for u8 cpu_index
    
    Local apic entries are only 8 bits, but it seemed to not be caught with u8
    return value result in the check
    
    cpu_index >= NR_CPUS becomming always false.
    
    drivers/acpi/processor_core.c: In function `acpi_processor_get_info':
    drivers/acpi/processor_core.c:483: warning: comparison is always false due 
to limited range of data type
    
    Signed-off-by: Ashok Raj <ashok.raj@intel.com>
    Cc: Dave Jones <davej@codemonkey.org.uk>
    Cc: Kenji Kaneshige <kaneshige.kenji@soft.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 200739c179c63d21804e9e8e2ced265243831579
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: remove __init/__exit from Asus .add()/.remove() methods 
    
    Even though the devices claimed by asus_acpi.c can not be hot-plugged, the
    driver registration infrastructure allows the .add() and .remove() methods 
to
    be called at any time while the driver is registered.  So remove __init 
and
    __exit from them.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 5e15b92d07fb11490c886c5dd7567f523ea43e2d
Author: Davi Arnaut <davi.arnaut@gmail.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: acpi_os_acquire_object (GFP_KERNEL) called with IRQs disabled 
through suspend-resume 
    
    acpi_os_acquire_object() gets called, with IRQs disabled, from:
    
    Debug: sleeping function called from invalid context at mm/slab.c:2499
    in_atomic():0, irqs_disabled():1
     [<c01462f3>] kmem_cache_alloc+0x40/0x4f     [<c0202c85>] 
acpi_os_acquire_object+0xb/0x3c
     [<c02171b1>] acpi_ut_allocate_object_desc_dbg+0x13/0x49     [<c021704b>] 
acpi_ut_create_internal_object_dbg+0xf/0x5e
     [<c02136d4>] acpi_rs_set_srs_method_data+0x3d/0xb9     [<c021aa3d>] 
acpi_pci_link_set+0x102/0x17b
     [<c021aecb>] irqrouter_resume+0x1e/0x3c     [<c024d921>] 
__sysdev_resume+0x11/0x6b
     [<c024dbde>] sysdev_resume+0x34/0x52     [<c0251cb7>] 
device_power_up+0x5/0xa
     [<c0138787>] suspend_enter+0x44/0x46     [<c01386e5>] 
suspend_prepare+0x63/0xc1
     [<c0138813>] enter_state+0x5e/0x7c     [<c013894c>] state_store+0x81/0x8f
     [<c01388cb>] state_store+0x0/0x8f     [<c0196a0a>] 
subsys_attr_store+0x1e/0x22
     [<c0196c12>] flush_write_buffer+0x22/0x28     [<c0196c64>] 
sysfs_write_file+0x4c/0x71
     [<c0196c18>] sysfs_write_file+0x0/0x71     [<c015b2c9>] 
vfs_write+0xa2/0x15a
     [<c015b42c>] sys_write+0x41/0x6a     [<c0102e75>] syscall_call+0x7/0xb
    
    The patch also fixes a missing check for NULL return from
    acpi_os_acquire_object().
    
    Signed-off-by: Davi Arnaut <davi.arnaut@gmail.com>
    Cc: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 9224a867c497053842dc595e594ca6d32112221f
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    HPET: fix ACPI memory range length handling
    
    ACPI address space descriptors contain _MIN, _MAX, and _LEN.  _MIN and 
_MAX
    are the bounds within which the region can be moved (this is clarified in
    Table 6-38 of the ACPI 3.0 spec).  We should use _LEN to determine the 
size
    of the region, not _MAX - _MIN + 1.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 459c7266d7a5c1730169258217e25fdd1b7ca854
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: fix memory hotplug range length handling
    
    Address space descriptors contain _MIN, _MAX, and _LEN.  _MIN and _MAX are
    the bounds within which the region can be moved (this is clarified in 
Table
    6-38 of the ACPI 3.0 spec).  We should use _LEN to determine the size of
    the region, not _MAX - _MIN + 1.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1a36561607abf1405b56a41aac2fd163429cd1f8
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: simplify scan.c coding
    
    No functional changes; just remove leftover, unused "buffer" and simplify
    control flow (no need to remember error values and goto the end, when we 
can
    simply return the value directly).
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit e4513a57ef719d3d6d1cee0ca4d9f4016aa452bb
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: fix sonypi ACPI driver registration to unregister on failure
    
    Remove the assumption that acpi_bus_register_driver() returns the number 
of
    devices claimed.  Returning the count is unreliable because devices may be
    hot-plugged in the future (admittedly not applicable for this driver).
    
    This also fixes a bug: if sonypi_acpi_driver was registered but found no
    devices, sonypi_exit() did not unregister it.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 578b333bfe8eb1360207a08a53c321822a8f40f3
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: update asus_acpi driver registration to unload on failure
    
    Remove the assumption that acpi_bus_register_driver() returns the number 
of
    devices claimed.  Returning the count is unreliable because devices may be
    hot-plugged in the future (admittedly not applicable for this driver).
    
    Since the hardware for this driver is not hot-pluggable, determine whether 
the
    hardware is present by noticing calls to the .add() method.  It would be
    better to probe the ACPI namespace for the ASUS HIDs, and load the driver 
only
    when we find one, but ACPI doesn't support that yet.
    
    I don't have an ASUS laptop to test on, but on my HP dl360, it does report 
the
    appropriate error when attempting to load the module:
    
        $ sudo insmod drivers/acpi/asus_acpi.ko
        insmod: error inserting 'drivers/acpi/asus_acpi.ko': -1 No such device
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 9d9f749b316ac21cb59ad3e595cbce469b409e1a
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: make acpi_bus_register_driver() return success/failure, not device 
count 
    
    acpi_bus_register_driver() should not return the number of devices 
claimed.
    We're not asking to find devices, we're making a driver available to 
devices,
    including hot-pluggable devices that may appear in the future.
    
    I audited all callers of acpi_bus_register_driver(), and except 
asus_acpi.c
    and sonypi.c (fixed in previous patches), all either ignore the return 
value
    or test only for failure (<0).
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit cd090eedd85256829f762677d0752a846c1b88b9
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: Display "ACPI" to motherboard resources in /proc/io{mem,port} 
    
    Add "ACPI" to motherboard resource allocation names, so people have a clue
    about where to look.  And remove some trailing spaces.
    
    Changes these /proc/iomem entries from this:
    
        ff5c1004-ff5c1007 : PM_TMR
        ff5c1008-ff5c100b : PM1a_EVT_BLK
        ff5c100c-ff5c100d : PM1a_CNT_BLK
        ff5c1010-ff5c1013 : GPE0_BLK
        ff5c1014-ff5c1017 : GPE1_BLK
    
    to this:
    
        ff5c1004-ff5c1007 : ACPI PM_TMR
        ff5c1008-ff5c100b : ACPI PM1a_EVT_BLK
        ff5c100c-ff5c100d : ACPI PM1a_CNT_BLK
        ff5c1010-ff5c1013 : ACPI GPE0_BLK
        ff5c1014-ff5c1017 : ACPI GPE1_BLK
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 81507ea9cfa64e9851b53e0fefebfa776eda9ecb
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: request correct fixed hardware resource type (MMIO vs I/O port) 
    
    ACPI supports fixed hardware (PM_TMR, GPE blocks, etc) in either I/O port
    or MMIO space, but used to always request the regions from I/O space
    because it didn't check the address_space_id.
    
    Sample ACPI fixed hardware in MMIO space (HP rx2600), was incorrectly
    reported in /proc/ioports, now reported in /proc/iomem:
    
        ff5c1004-ff5c1007 : PM_TMR
        ff5c1008-ff5c100b : PM1a_EVT_BLK
        ff5c100c-ff5c100d : PM1a_CNT_BLK
        ff5c1010-ff5c1013 : GPE0_BLK
        ff5c1014-ff5c1017 : GPE1_BLK
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1c6e7d0aeecac38e66b1bb63e3eff07b2a1c2f2c
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    PNPACPI: whitespace cleanup
    
    Tidy up whitespace.  No functional change.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit b5f2490b6e3317059e87ba40d4f659d1c30afc1f
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:04:00 2006 -0500

    PNPACPI: remove some code duplication
    
    Factor out the duplicated switch from pnpacpi_count_resources() and
    pnpacpi_type_resources().  Remove the unnecessary re-initialization of
    resource->type and length from all the encode functions (id and length are
    originally set in the pnpacpi_build_resource_template() ->
    pnpacpi_type_resources() path).
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1acfb7f2b0d460ee86bdb25ad0679070ec8a5f0d
Author: Bjorn Helgaas <bjorn.helgaas@hp.com>
Date:   Tue Mar 28 17:03:00 2006 -0500

    PNPACPI: fix non-memory address space descriptor handling 
    
    Fix resource_type handling for QWORD, DWORD, and WORD Address Space
    Descriptors.  Previously we ignored the resource_type, so I/O ports and 
bus
    number ranges were incorrectly parsed as memory ranges.
    
    Sample PCI root bridge resources from HP rx2600 before this patch:
    
        # cat /sys/bus/pnp/devices/00:02/resources
        state = active
        mem 0x0-0x1f
        mem 0x0-0x3af
        mem 0x3e0-0x1fff
        mem 0x80000000-0x8fffffff
    
    With this patch:
    
        # cat /sys/bus/pnp/devices/00:02/resources
        state = active
        io 0x0-0x3af
        io 0x3e0-0x1fff
        mem 0x80000000-0x8fffffff
        mem 0x80004000000-0x80103fffffe
    
    Changes:
        0x0-0x1f PCI bus number range was incorrectly reported as memory, now
    	not reported at all
        0x0-0x3af I/O port range was incorrectly reported as memory
        0x3e0-0x1fff I/O port range was incorrectly reported as memory
        0x80004000000-0x80103fffffe memory range wasn't reported at all 
because
    	we only support PNP_MAX_MEM (4) memory resources
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 7e1f19e50371e1d148226b64c8edc77fec47fa5b
Author: Andrew Morton <akpm@osdl.org>
Date:   Tue Mar 28 17:03:00 2006 -0500

    ACPI: UP build fix for bugzilla-5737
    
    cpu_online_map doesn't exist if !CONFIG_SMP.
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1300124f69cafc54331bc06e968a8dd67863f989
Author: Adrian Bunk <bunk@stusta.de>
Date:   Tue Mar 28 17:04:00 2006 -0500

    ACPI: Kconfig: ACPI should depend on, not select PCI
    
    Otherwise, illegal configurations like X86_VOYAGER=y, PCI=y are
    possible.
    
    This patch also fixes the options select'ing ACPI to also select PCI.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 7b6efc8b701de5de4ec11d13fcee05b2ac3c1550
Merge: 7bddf82... 683aa40...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 20:54:11 2006 -0500

    merge linus into test branch

commit 7bddf826d950dee0e0b3400cc45f6786ed4e5e75
Merge: 2ac9a40... f9ea7fd...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:30:10 2006 -0500

    Pull dmesg into test branch
    
    Conflicts:
    
    	drivers/acpi/processor_core.c
    	drivers/acpi/video.c

commit 2ac9a40c2d27754eab5f24a7b24a9dc144ce10d3
Merge: 2d50670... 9cfda2c... 0eacee5...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:27:55 2006 -0500

    Pull novell-bugzilla-156426 bugzilla-5452  into test branch

commit 2d50670edd7b34cfbef2683ff6fbe8103d4c2d31
Merge: ab87bbd... 6665bda...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:27:32 2006 -0500

    Pull trivial into test branch

commit ab87bbd9264362ec955414cc7b617cf088a5d978
Merge: 1900d67... ec7381d...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:24:29 2006 -0500

    Pull acpica into test branch

commit 1900d6702264e1193873bf849f20fe130e71d60b
Merge: 7d2c215... ffd642e...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:23:50 2006 -0500

    Pull bugzilla-5653 into test branch
    
    Conflicts:
    
    	arch/x86_64/kernel/acpi/processor.c

commit 7d2c215b6bcf746b940224bde9f0c7b64048b1b1
Merge: a0f0678... d52bb94...
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:22:23 2006 -0500

    Pull bugzilla-5737 into test branch

commit ec7381d6bfd3e7b8d2880dd5e9d03b131b0603f6
Author: Len Brown <lenb@toshiba.site>
Date:   Sat Apr 1 05:12:23 2006 -0500

    ACPI: inline trivial acpi_os_get_thread_id()
    
    acpi_os_get_thread_id() is used only for debugging
    code that is not enabled on Linux, so stub it out.
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 8313524a0d466f451a62709aaedf988d8257b21c
Author: Bob Moore <robert.moore@intel.com>
Date:   Tue Oct 3 00:00:00 2006 -0400

    ACPI: ACPICA 20060310
    
    Tagged all external interfaces to the subsystem with the
    new ACPI_EXPORT_SYMBOL macro. This macro can be defined
    as necessary to assist kernel integration. For Linux,
    the macro resolves to the EXPORT_SYMBOL macro. The default
    definition is NULL.
    
    Added the ACPI_THREAD_ID type for the return value from
    acpi_os_get_thread_id(). This allows the host to define this
    as necessary to simplify kernel integration. The default
    definition is ACPI_NATIVE_UINT.
    
    Valery Podrezov fixed two interpreter problems related
    to error processing, the deletion of objects, and placing
    invalid pointers onto the internal operator result stack.
    http://bugzilla.kernel.org/show_bug.cgi?id=6028
    http://bugzilla.kernel.org/show_bug.cgi?id=6151
    
    Increased the reference count threshold where a warning is
    emitted for large reference counts in order to eliminate
    unnecessary warnings on systems with large namespaces
    (especially 64-bit.) Increased the value from 0x400
    to 0x800.
    
    Due to universal disagreement as to the meaning of the
    'c' in the calloc() function, the ACPI_MEM_CALLOCATE
    macro has been renamed to ACPI_ALLOCATE_ZEROED so that the
    purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and
    ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE.
    
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit ea936b78f46cbe089a4ac363e1682dee7d427096
Author: Bob Moore <robert.moore@intel.com>
Date:   Fri Feb 17 00:00:00 2006 -0500

    ACPI: ACPICA 20060217
    
    Implemented a change to the IndexField support to match
    the behavior of the Microsoft AML interpreter. The value
    written to the Index register is now a byte offset,
    no longer an index based upon the width of the Data
    register. This should fix IndexField problems seen on
    some machines where the Data register is not exactly one
    byte wide. The ACPI specification will be clarified on
    this point.
    
    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.
    
    Fixed a problem where individual resource descriptors were
    misaligned within the internal buffer, causing alignment
    faults on IA64 platforms.
    
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 52fc0b026e99b5d5d585095148d997d5634bbc25
Author: Bob Moore <robert.moore@intel.com>
Date:   Mon Oct 2 00:00:00 2006 -0400

    [ACPI] ACPICA 20060210
    
    Removed a couple of extraneous ACPI_ERROR messages that
    appeared during normal execution. These became apparent
    after the conversion from ACPI_DEBUG_PRINT.
    
    Fixed a problem where the CreateField operator could hang
    if the BitIndex or NumBits parameter referred to a named
    object. From Valery Podrezov.
    http://bugzilla.kernel.org/show_bug.cgi?id=5359
    
    Fixed a problem where a DeRefOf operation on a buffer
    object incorrectly failed with an exception. This also
    fixes a couple of related RefOf and DeRefOf issues.
    From Valery Podrezov.
    http://bugzilla.kernel.org/show_bug.cgi?id=5360
    http://bugzilla.kernel.org/show_bug.cgi?id=5387
    http://bugzilla.kernel.org/show_bug.cgi?id=5392
    
    Fixed a problem where the AE_BUFFER_LIMIT exception was
    returned instead of AE_STRING_LIMIT on an out-of-bounds
    Index() operation. From Valery Podrezov.
    http://bugzilla.kernel.org/show_bug.cgi?id=5480
    
    Implemented a memory cleanup at the end of the execution
    of each iteration of an AML While() loop, preventing the
    accumulation of outstanding objects. From Valery Podrezov.
    http://bugzilla.kernel.org/show_bug.cgi?id=5427
    
    Eliminated a chunk of duplicate code in the object
    resolution code. From Valery Podrezov.
    http://bugzilla.kernel.org/show_bug.cgi?id=5336
    
    Fixed several warnings during the 64-bit code generation.
    
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 46358614ed5b031797522f1020e989c959a8d8a6
Author: Len Brown <lenb@toshiba.site>
Date:   Fri Mar 31 02:16:19 2006 -0500

    Revert "[PATCH] ACPI: fix vendor resource length computation"
    
    fixed in a different way by a subsequent ACPICA patch
    
    This reverts 35b73ceb9a7d10c81bd9e79e8485f7079ef2b40e commit.

commit 6665bda76461308868bd1e52caf627f4cb29ed32
Author: Adrian Bunk <bunk@stusta.de>
Date:   Sat Mar 11 10:12:00 2006 -0500

    [ACPI] drivers/acpi/video.c: fix error path NULL pointer dereference
    
    The Coverity checker spotted this bug in
    acpi_video_device_lcd_query_levels().
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit fdc136ccd3332938e989439c025c363f8479f3e6
Author: Dave Jones <davej@redhat.com>
Date:   Wed Mar 8 22:12:00 2006 -0500

    [ACPI] fix possible acpi thermal leak in failure path
    
    Coverity: #601
    
    Signed-off-by: Dave Jones <davej@redhat.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit a1f9e65e2085e0a87f28a4d5a8ae43b32c087f24
Author: Len Brown <len.brown@intel.com>
Date:   Wed Jan 25 23:47:36 2006 -0500

    [ACPI] document cmdline acpi_os_name=
    
    This can sometimes be used to work around broken BIOS.
    Use "Microsoft Windows" to take the same path
    through the BIOS as Windows98 would.
    
    The default is "Microsoft Windows NT", which
    is what NT and later versions of Windows use,
    and is the most tested path through most BIOS.
    
    Set it to anything else, including "Linux", at your
    own risk, as it seems that virtually no BIOS
    has been tested with anything but the two options above.
    
    Note that this uses the legacy _OS interface, so
    we don't expect this to ever change.
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1fee94034917aa711fcbd4ebf4c36f7ebd9fa7d6
Author: Irwan Djajadi <irwan.djajadi@iname.com>
Date:   Fri Jan 20 15:28:00 2006 -0500

    [ACPI] drivers/acpi/hotkey.c: check kmalloc return value
    
    Signed-off-by: Irwan Djajadi <irwan.djajadi@iname.com>
    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 0eacee585a89ce5827b572a73a024931506bef48
Author: Len Brown <lenb@toshiba.site>
Date:   Fri Mar 31 00:37:23 2006 -0500

    ACPI: enable BIOS warning
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5452
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 9cfda2c94df61c9f859b474abe774c65a4464d0a
Author: Andi Kleen <ak@suse.de>
Date:   Mon Mar 27 02:24:32 2006 -0500

    [ACPI] fix "nolapic" flag in ACPI mode
    
    Signed-off-by: Len Brown <len.brown@intel.com>

commit d52bb94d56676acd9bdac8e097257a87b4b1b2e1
Author: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Date:   Wed Dec 14 15:05:00 2005 -0500

    Enable P-state software coordination via _PDC
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5737
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit c52851b60cc0aaaf974ff0e49989fb698220447d
Author: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Date:   Wed Dec 14 15:05:00 2005 -0500

    P-state software coordination for speedstep-centrino
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5737
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 09b4d1ee881c8593bfad2a42f838d85070365c3e
Author: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Date:   Wed Dec 14 15:05:00 2005 -0500

    P-state software coordination for acpi-cpufreq
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5737
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 3b2d99429e3386b6e2ac949fc72486509c8bbe36
Author: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Date:   Wed Dec 14 15:05:00 2005 -0500

    P-state software coordination for ACPI core
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5737
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit ffd642e748c867a7339b57225b8bf8b9a0dcd9c5
Author: David Shaohua Li <shaohua.li@intel.com>
Date:   Wed Feb 8 17:35:00 2006 -0500

    [ACPI] enable SMP C-states on x86_64
    
    http://bugzilla.kernel.org/show_bug.cgi?id=5653
    
    Signed-off-by: David Shaohua Li <shaohua.li@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit f9ea7fd8be9827791f407ca1191ff70ec25eb2d9
Author: Thomas Renninger <trenn@suse.de>
Date:   Fri Jun 2 15:58:00 2006 -0400

    [ACPI] Print error message if remove/install notify handler fails
    
    Signed-off-by: Thomas Renniger <trenn@suse.de>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit b60e49b2383db0334bef1f0d9cdad9bec2336050
Author: Thomas Renninger <trenn@suse.de>
Date:   Fri Jun 2 15:58:00 2006 -0400

    [ACPI] Export symbols for ACPI_ERROR/EXCEPTION/WARNING macros
    
    Signed-off-by: Thomas Renninger <trenn@suse.de>
    Signed-off-by: Len Brown <len.brown@intel.com>

commit 1ca218d3bd6acca0922a349cb76e3244d27ebfba
Author: Thomas Renniger <trenn@suse.de>
Date:   Fri Jun 2 15:58:00 2006 -0400

    [ACPI] Enable ACPI error messages w/o CONFIG_ACPI_DEBUG
    
    Signed-off-by: Thomas Renniger <trenn@suse.de>
    Signed-off-by: Len Brown <len.brown@intel.com>

^ permalink raw reply

* Re: rt20 patch question
From: Ingo Molnar @ 2006-05-12  9:16 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Mark Hounschell, linux-kernel, Daniel Walker, Thomas Gleixner
In-Reply-To: <Pine.LNX.4.58.0605120435570.28581@gandalf.stny.rr.com>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> 
> On Fri, 12 May 2006, Ingo Molnar wrote:
> 
> >
> > > So I guess we have a case that we can schedule, but while atomic and
> > > BUG when it's really not bad.  Should we add something like this:
> >
> > that's not good enough, we must not schedule with the preempt_count()
> > set.
> 
> It gets even worse, with your new fix, the softirq will schedule with 
> interrutps disabled, which would definitely BUG.

i dont think so. Calling __do_softirq() with hardirqs disabled is not a 
problem, it does an explicit local_irq_enable().

	Ingo

^ permalink raw reply

* Re: Xen Kernel (3.0.2) breaks b44 module
From: Jan Beulich @ 2006-05-12  9:15 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen, xen-devel
In-Reply-To: <ab5f6f611c7a89a5a17aff1a2bed869f@cl.cam.ac.uk>

>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 12.05.06 11:03 >>>
>
>On 12 May 2006, at 09:57, Jan Beulich wrote:
>
>> This ought to be attributed to the fact that B44 supports only 30-bit 
>> DMA addresses (and does special checking), but
>> XenLinux doesn't have a distinct DMA zone restricted to 24-bit 
>> addresses, and both dma_alloc_coherent() and swiotlb are
>> restricting physical addresses to 31 bits only (at least the former 
>> could certainly look at the device's DMA mask and
>> use that value rather than hard-coding 31).
>
>If dma_alloc_coherent isn't doing that then it should be patched to do 
>so. Even though it won't help right now (since Xen will reject any 
>requests more restricted than 31 bits) it will be needed when Xen is 
>fixed to support basket-case hardware.

I agree, but this wouldn't help this specific case, as the driver also (and mostly) uses pci_map_single on skb->data,
which ends up in swiotlb. Since swiotlb does its allocation and range restriction during init, adjusting things here
would likely be more complicated (or cost performance, if one wanted to further restrict the range upon use when
needed).

Jan

^ permalink raw reply

* Re: [PATCH] Silly bitmap size accounting fix
From: Ingo Molnar @ 2006-05-12  9:14 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: akpm, LKML
In-Reply-To: <Pine.LNX.4.58.0605120403540.28581@gandalf.stny.rr.com>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> -#define BITMAP_SIZE ((((MAX_PRIO+1+7)/8)+sizeof(long)-1)/sizeof(long))
> +#define BITMAP_SIZE ((((MAX_PRIO+7)/8)+sizeof(long)-1)/sizeof(long))

Acked-by: Ingo Molnar <mingo@elte.hu>

	Ingo

^ permalink raw reply

* Linux doesn't boot if USB is enabled
From: IGOR LURI @ 2006-05-12  8:53 UTC (permalink / raw)
  To: linuxppc-embedded

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

Hi all,

We have a mpc5200 Icecube board with u-boot 1.1.3 and linux 2.4.25 from Denx where linux boots with USB enabled. 

We also have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux 2.4.25 from Denx. We have realized that when USB is enabled linux doen´t boot, it hungs after u-boot uncompresses linux image.

				=> usb reset
				(Re)start USB...
				USB:   scanning bus for devices... 1 USB Device(s) found
				       scanning bus for storage devices... 0 Storage Device(s) found
				=>run bootcmd
				BOOTP broadcast 1
				DHCP client bound to address 10.0.17.102
				Using FEC ETHERNET device
				TFTP from server 10.0.7.228; our IP address is 10.0.17.102
				Filename 'vmlinux.UBoot'.
				Load address: 0x500000
				Loading: #################################################################
				         #################################################################
				         #################################################################
				         #
				done
				Bytes transferred = 1000231 (f4327 hex)
				=> bootm 0x500000
				## Booting image at 00500000 ...
				   Image Name:   Linux-2.4.25-rthal5-TRACE
				   Created:      2006-05-11  15:08:31 UTC
				   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
				   Data Size:    1000167 Bytes = 976.7 kB
				   Load Address: 00000000
				   Entry Point:  00000000
				   Verifying Checksum ... OK
				   Uncompressing Kernel Image ... OK
				Memory BAT mapping: BAT2=256Mb, BAT3=0Mb, residual: 0Mb
				Linux version 2.4.25-rthal5-TRACE (igor@ILURI_LINUX) (gcc version 3.3.6) #301 jue may 11 17:08:00 CEST 2006
				On node 0 totalpages: 65536
				zone(0): 65536 pages.
				zone(1): 0 pages.
				zone(2): 0 pages.
				Kernel command line: root=/dev/nfs rw console=ttyS0 console=ttyS0 init=/sbin/init ip=on
				Console: colour dummy device 80x25
				Calibrating delay loop... 307.20 BogoMIPS
				Memory: 256012k available (1824k kernel code, 612k data, 96k init, 0k highmem)
				Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)


If we disable USB with the command 

				=> usb stop
				stopping USB..

linux boots as usual.

I don't found changes in USB part between u-boot 1.1.3 and u-boot 1.1.4. I have readen MPC5200 revision B chip errata and there is nothing about USB. But I have found  a  manual named  U-Boot Bootloader for MPL Single Board Computer that says the following:

	Warning: Please make sure to stop the USB subsystem before booting an OS. This can be done by
	adding the command usb stop to the variable bootcmd:

This board uses a ppc405 and also it has the same problem.


Someone knows why linux doesn't boot with USB enabled on a mpc5200liteB board? Is this a hardware  problem?Is a revision B chip errata? Or, a software problem?


Thanks in advance.


Igor Luri
R&D Software Department
Fagor Automation S. Coop.
P. O. Box 144
E-20500 Mondragón-Arrasate
Tel. 	++34 943 71 92 00 
	++34 943 71 92 01 (Ext. 44124)
Fax. 	++34 943 79 92 03
www.fagorautomation.com

[-- Attachment #2: Type: text/html, Size: 6648 bytes --]

^ permalink raw reply

* Re: rt20 patch question
From: Mark Hounschell @ 2006-05-12  9:08 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Mark Hounschell, Ingo Molnar, linux-kernel, Daniel Walker
In-Reply-To: <Pine.LNX.4.58.0605120221410.26721@gandalf.stny.rr.com>

Steven Rostedt wrote:
> On Thu, 11 May 2006, Mark Hounschell wrote:
> 
>> Here is a detailed list of the RT tasks running with prios, cpu masks
>> etc. There are 3 nics. eth1 is the nic being used by the emulation. eth2
>> is currently unused.
> 
>> pid      SCHED        PRIO      CPUM TASK
>> ---      ----         ----      ---- ----
> 
> This being a SMP machine, pid 2 and 3 must be the migration threads.
> 
>> 2        FIFO         99           1 (unknown)
>> 3        FIFO         99           1 (unknown)
> 
>> 4        FIFO         1            1 (unknown)
>> 5        FIFO         1            1 (unknown)
>> 6        FIFO         1            1 (unknown)
>> 7        FIFO         1            1 (unknown)
>> 8        FIFO         1            1 (unknown)
>> 9        FIFO         1            1 (unknown)
>> 10       FIFO         1            1 (unknown)
> 
> Do you know what these processes are (12 and 13)?
> 

    2 ?        S      0:00 [migration/0]
    3 ?        S      0:00 [posix_cpu_timer]
.
.
   14 ?        S      0:00 [migration/1]
   15 ?        S      0:00 [posix_cpu_timer]

>> 12       FIFO         99           2 (unknown)
>> 13       FIFO         99           2 (unknown)
> 
> [...]
> 
>> 39       FIFO  acpi   49 [IRQ 9]   1 (unknown)
>> 1129     FIFO  rtc    48 [IRQ 8]   1 (unknown)
>> 1135     FIFO  i8042  47 [IRQ 12]  1 (unknown)
>> 1145     FIFO  floppy 46 [IRQ 6]   1 (unknown)
>> 1178     FIFO  i8042  45 [IRQ 1]   1 (unknown)
>> 1268     FIFO  ide0   44 [IRQ 14]  1 (unknown)
>> 1313     FIFO  ide1   43 [IRQ 15]  1 (unknown)
>>
> 
> FYI, The above are all of higher priority than the below.
> 
>> 1362     FIFO         42 [IRQ 169] 1 (unknown)
>>      ide2, aic7xxx, aic7xxx, eth1, eth2,
>>      gpiohsd, gpiohsd, gpiohsd, gpiohsd, eprm
> 
> Wow! that's a lot on a shared IRQ.  Do you have the ide2 being used. If
> one of these where to spin for a while, then all the below would freeze.
> Also them being preempted will also have a problem.  Perhaps you want to
> raise the priority of this interrupt thread.
> 
I'll try that when I get to work this morning.

>> 2663     FIFO ???     41 [IRQ 4]   1 (unknown)
>> 2667     FIFO ???     40 [IRQ 3]   1 (unknown)
>> 3420     FIFO 82801BA 39 [IRQ 177] 1 (unknown)
>> 5788     FIFO eth0    38 [IRQ 185] 1 (unknown)
>> 8036     FIFO rtom    37 [IRQ 193] 2 (unknown)
>> 10338    FIFO EMU-CPU 33           2 ./vrsx
> 
> [...]
> 
>>> What seems to be happening is that the vortex_timer is going off while the
>>> interrupt is running.  Hence the disable_irq fails and schedules.
>>>
>>> Perhaps the interrupt thread has been preempted by some high priority task
>>> and causes it to lose a connection.
>>>
>>> Yeah that task output would be helpful to see if you can get it to work.
>> Ok I have this but it is 2000+ lines. I probably don't want to put it on
>> the list. Should I send it to you directly?
> 

Done. Keep in mind it was taken only after one of those BUGs that seemed
to cause a network connection loss into the emulation. It was not taken
after one of those "stops" in 'complete preempt' mode. Did the logdev
output show anything of interest concerning the "stops"?

> Yes please (compress it as well).  With so much shared on an IRQ and you
> are disabling it, it might cause some large timeouts. The disable irq with
> the hardirqs as threads is a sleep (that's where you hit the bug) where as
> otherwise it just spins and waits.  So it can be a timing issue.
> 
> Could also you try running the RT kernel without hardirqs as threads to
> see if it works fine then?
> 

I assume you mean in preemptable kernel mode. Will do asap. I have 4
machines I'm attempting to use the rt20 kernel on. All 4 have the
"stop/pause" problem in complete preempt mode. This is the only one of
the 4 that I have seen the BUGs message on so I suspect you are correct
that it may be a result of hardware/configuration. I guess if raising
that irq prio or eliminating the irq threads fixes it, then.....

>>> Also can you show us the output of /proc/interrupts so we know which
>>> threads are associated to the network card interrupt, and see where they
>>> are.
>>>
>> harley:/home/markh/work/lcrs-linux # cat /proc/interrupts
>>            CPU0       CPU1
>>   0:     450333          0  IO-APIC-edge   [........N/  0]  pit
>>   1:       4288          0  IO-APIC-edge   [........./  1]  i8042
>>   8:          2          0  IO-APIC-edge   [........./  0]  rtc
>>   9:          0          0  IO-APIC-level  [........./  0]  acpi
>>  12:      66129          0  IO-APIC-edge   [........./  1]  i8042
>>  14:       3523          0  IO-APIC-edge   [........./  0]  ide0
>>  15:      65675          0  IO-APIC-edge   [........./  0]  ide1
>> 169:     219209          0  IO-APIC-level  [........./  0]  ide2,
>> aic7xxx, aic7xxx, eth1, eth2, gpiohsd, gpiohsd, gpiohsd, gpiohsd, eprm
>> 177:       1821          0  IO-APIC-level  [........./  0]  Intel
>> 82801BA-ICH2
>> 185:     185550          0  IO-APIC-level  [........./  0]  eth0
>> 193:          0      76740  IO-APIC-level  [........./  0]  rtom
>> NMI:          0          0
>> LOC:    2657906     587751
>> ERR:          0
>> MIS:          0
> 
> I see you are pinning all the irqs to CPU0
> 

All except the rtom irq. It is on the same processor as the emulations
CPU thread. Even with the rt20 patch, this is still the only way to
insure deterministic delivery of signals and such from the rtom driver
to the emulations CPU thread. What I find with the rt20 patch (so far)
is that now there seems to be an acceptable(sort of) "max" latency
(-200usec) that allows me to use the machine for things other than just
the emulation.

>> The aic7xxx controllers are both connected to external legacy scsi
>> racks. eth1, eth2, and the aix7xxx cards are in an SBS pci expansion
>> chassis. The 3 gpiohsd and the 1 eprm cards are also in the expansion
>> rack but are not being used at all in this.
> 
> So all but the 3 gpiohsd and eprm are being used?  Still that seems to be
> a lot.  But anyway, send me the compressed task dump, and I'll take a
> look.  Maybe it will shed some light.

Actually eth2 is not being used either. Only one of the scsi controllers
is being used and it only when I boot the emulation from one of the
legacy scsi drives. One scsi card has a bus of tapes the other disks.
When I boot the emulation from a virtual disk file it's not used at all.
IDE2 is my 'linux' boot drive however.

So do you think this BUG reported in 'preempt kernel' mode is related to
the "stops" I am having in 'complete preempt mode?

Mark

^ permalink raw reply


This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.