All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Is there a "make hole" (truncate in middle) syscall?
From: Rob Landley @ 2003-12-15 11:52 UTC (permalink / raw)
  To: Vladimir Saveliev; +Cc: linux-kernel
In-Reply-To: <1071482402.11042.36.camel@tribesman.namesys.com>

On Monday 15 December 2003 04:00, Vladimir Saveliev wrote:

> > Truncate doesn't look at the contents of the file, it just frees the
> > space regardless of what the data was.  (It doesn't have to load the
> > contents of the blocks into memory and look at them in order to make the
> > file's length shorter in the metadata and de-allocate those blocks.)
> >
> > What was suggested a bit earlier was automatically looking at the
> > contents of the data being written to disk, and not allocating actual
> > blocks if the data is all zeroes.  (A bit like looking at pages of memory
> > and copy-on-write aliasing them to the zero page whenever the page is
> > entirely zeroes.)
> >
> > Truncate doesn't do any of that.  Truncate only plays with metadata, and
> > doesn't care about the contents of the file.
>
> I thought we are talking about something which would allow to create
> holes inside of non sparse file

Yes.  With a syscall that says "from here, to here, punch hole".

The earlier suggestion I was disagreeing with would automatically create holes 
in any file that wrote a sufficiently large range of zero bytes.  Hence the 
cache poisoning and general defeating the purpose of DMA and such.  Neither 
truncate, nor a punch syscall, would mess with the normal "write" path 
(beyond locking so write and truncate/punch didn't stomp each other).

Rob

^ permalink raw reply

* reset on NAND flash
From: Stephan Linke @ 2003-12-15 11:49 UTC (permalink / raw)
  To: Linux-Mtd

Hi,

when scanning the nand device shouldn't the reset command being issued first?
I am thinking of these situations where the flash is left out of sync after a soft reset. Maybe ID detection can fail since
NAND_CMD_READID is not recognised by NAND chip?

I would prefer having a NAND_CMD_RESET in nand_scan(). What do you think?

Regards, Stephan

^ permalink raw reply

* Re: [linux-lvm] LVM and devfs
From: Jord Tanner @ 2003-12-15 11:49 UTC (permalink / raw)
  To: linux-lvm
In-Reply-To: <20031214113328.74647.qmail@web13505.mail.yahoo.com>

I believe your problem is that you need an initrd that includes LVM
stuff. Try the command "lvmcreate_initrd", then ensure that the new
lvm_initrd file is loaded with lilo (I use grub so I can't help you with
lilo). RH uses their own initrd, so you should be able to use the
existing lilo.conf as a guide. If you have an unusual setup you may have
to mount the initrd file, and edit it yourself. 

Jord Tanner



On Sun, 2003-12-14 at 03:33, Stuart Felenstein wrote:
> I didn't see a search option in the archives and I apologize if this
> is more appropriate to the devfs list.  I installed RedHat9 , and
> partitioned with DiskDruid using LVM.  The only partition that is not
> LVM is /boot.
> However I have now compiled kernel 2.4.23 with LVM and devfs and
> running into a problem with kernel panics.  I'm not sure if having LVM
> is causing the issue.  Even though I've tried many different append
> roots, looking at the working kernel in lilo.conf I see root =
> /dev/Volume00/LogVol01.  So I'm' wondering how I translate that to
> /dev/ide/host0..... .
>  
> Here is my current /etc/fstab: 
> /dev/Volume00/LogVol01           /                       ext3
> LABEL =/boot                          /boot                 ext3
> /dev/Volume00/LogVol02           /cache              ext3
> /dev/Volume00/LogVol03           /myth                ext3
> none                                       /proc                  proc
> none                                       /dev/shm            tmpfs
> /dev/Volume00/LogVol00          /swap                 swap
> /dev/cdrom
> 
> Greatly appreciate some help, pointers and / or links.
> Thank you,
> Stuart
-- 
Jord Tanner <jord@indygecko.com>

^ permalink raw reply

* Re: [patch] Re: Problem with exiting threads under NPTL
From: Ingo Molnar @ 2003-12-15 11:43 UTC (permalink / raw)
  To: dan carpenter
  Cc: Linus Torvalds, Petr Vandrovec, Kernel Mailing List,
	Andrew Morton, Roland McGrath
In-Reply-To: <200312142230.20952.error27@email.com>


On Sun, 14 Dec 2003, dan carpenter wrote:

>  [<c012a65b>] exit_notify+0x2eb/0x900
>  [<c012b08f>] do_exit+0x41f/0x5c0
>  [<c012b3d7>] do_group_exit+0x107/0x190
>  [<c010aa8f>] syscall_call+0x7/0xb
> 
> There are some process that are stuck but not in zombie state that look
> like this.

do they go away if you do a kill -CONT on them?

	Ingo

^ permalink raw reply

* Re: [RFC]correction - cloned skbs - if i am right there is a bug in ipt_ECN.c
From: Maciej Soltysiak @ 2003-12-15 11:44 UTC (permalink / raw)
  To: netfilter-devel
In-Reply-To: <20031213085805.GG8950@obroa-skai.de.gnumonks.org>

Yeey, another bug squashed. Thanks Harald.
Glad to be useful :-)

I know my contributions are small, but I think I ought to start keeping
track of them, hehe.

Regards,
Maciej

^ permalink raw reply

* Re: Linux/ACPI 2.4 release status and cpufreq
From: Luca Capello @ 2003-12-15 11:42 UTC (permalink / raw)
  To: ML ACPI-devel
In-Reply-To: <20031215112626.GB5898-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

on 12/15/03 12:26, Micha Feigin wrote:
| The cvs version (iirc mentioned earlier in this thread, otherwise
| search the archives) applied cleanly to 2.4.23 last time I checked.
well, I just got an error applying the latest 'cpufreq' from
	http://ftp.linux.org.uk/pub/linux/cpufreq/

Here's the error (I used a fresh 2.4.23 with the latest ACPI patch):
| gismo:/usr/src/linux-2.4.23# bunzip2 -c
../kernel/cpufreq-LINUX_2_4-20031215.tar.bz2 | patch -p1
| missing header for unified diff at line 57 of patch
| patching file Documentation/00-INDEX
| patching file Documentation/Configure.help
| patching file Makefile
| patching file arch/i386/boot/setup.S
| patching file arch/i386/config.in
| patching file arch/i386/kernel/Makefile
| patching file arch/i386/kernel/i386_ksyms.c
| patching file arch/i386/kernel/setup.c
| patching file arch/i386/kernel/time.c
| patching file drivers/Makefile
| patching file include/asm-i386/ist.h
| patching file include/asm-i386/msr.h
| patching file include/asm-i386/smp.h
| patching file include/linux/smp.h
| patch unexpectedly ends in middle of line
| gismo:/usr/src/linux-2.4.23#

Thx, bye,
Gismo / Luca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQE/3Z42VAp7Xm10JmkRAjl6AJ956SUyP5EK5YxIntR9lLdaD3igDQCfYNsw
FH5MhlkTBT/le4358VeqbA4=
=azW0
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply

* Re: Fixes for nforce2 hard lockup, apic, io-apic, udma133 covered
From: Bob @ 2003-12-15 11:41 UTC (permalink / raw)
  To: linux-kernel
In-Reply-To: <200312140407.28580.ross@datscreative.com.au>

Ross Dickson wrote:

>It also reports its existence on boot if used. e.g.
>
>..APIC TIMER ack delay, reload:16701, safe:16691
>
>And if  
>
>#define APIC_DEBUG 0
>
>is set to 1 in 
>
>/usr/src/linux-2.4.23-rd2/include/asm-i386/apic.h
>  
>
I'm trying the two new patches with 2.6 and my Award
bios which fixes the crash problem itself but didn't turn
on edge timer without a patch, and didn't turn on
nmi_watchdog=1 with the first patch, only =2.

nmi_watchdog gets a lot more ticks with =1, too.

bob@where  cat /proc/interrupts
           CPU0      
  0:     924534    IO-APIC-edge  timer
  1:       1070    IO-APIC-edge  i8042
  2:          0          XT-PIC  cascade
  8:          1    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:      14077    IO-APIC-edge  i8042
 14:         10    IO-APIC-edge  ide0
 15:         10    IO-APIC-edge  ide1
 16:      44086   IO-APIC-level  ide2, ide3, eth0
 17:          0   IO-APIC-level  yenta, yenta
 19:      35570   IO-APIC-level  ide4, ide5
 21:          0   IO-APIC-level  NVidia nForce2
NMI:     924555
LOC:     924432
ERR:          0
MIS:         22

I stayed with 600UL 100ndelay just to see if anything
breaks with amd XP3000+ and patches with a bios
that doesn't crash with nforce2 but needs help from
patches on other points(to get edge timer on and
to use nmi_watchdog=1 rather than =2). Also hope
we get a clue about what Award bios update does
that Phoenix does not do so far.

/usr/src/kernel-source-2.6.0/include/asm-i386/apic.h
#define APIC_DEBUG 1

...but I don't see any

calibrating APIC timer ...
..... CPU clock speed is 2079.0146 MHz.
..... host bus clock speed is 332.0663 MHz.
NET: Registered protocol family 16
..APIC TIMER ack delay, reload:20791, safe:20779
..APIC TIMER ack delay, predelay count: 20769

etc

in the area of "NET: Registered" I see the following--

Dec 15 05:34:30 where kernel: PCI: Setting latency timer of device 
0000:00:06.0 to 64
Dec 15 05:34:30 where kernel: intel8x0: clocking to 47414
Dec 15 05:34:30 where kernel: ALSA device list:
Dec 15 05:34:30 where kernel:   #0: Dummy 1
Dec 15 05:34:30 where kernel:   #1: Virtual MIDI Card 1
Dec 15 05:34:30 where kernel:   #2: NVidia nForce2 at 0xe5080000, irq 21
Dec 15 05:34:30 where kernel: NET: Registered protocol family 2
Dec 15 05:34:30 where kernel: IP: routing cache hash table of 8192 
buckets, 64Kbytes
Dec 15 05:34:30 where kernel: TCP: Hash tables configured (established 
262144 bind 65536)
Dec 15 05:34:30 where kernel: ip_conntrack version 2.1 (8191 buckets, 
65528 max) - 296 bytes per conntrack
Dec 15 05:34:30 where kernel: ip_tables: (C) 2000-2002 Netfilter core team
Dec 15 05:34:30 where kernel: ipt_recent v0.3.1: Stephen Frost 
<sfrost@snowman.net>.  http://snowman.net/projects/ipt_rece
nt/
Dec 15 05:34:30 where kernel: NET: Registered protocol family 1
Dec 15 05:34:30 where kernel: NET: Registered protocol family 17
Dec 15 05:34:30 where kernel: BIOS EDD facility v0.10 2003-Oct-11, 4 
devices found
Dec 15 05:34:30 where kernel: Please report your BIOS at 
http://domsch.com/linux/edd30/results.html
Dec 15 05:34:30 where kernel: md: Autodetecting RAID arrays.

Dec 15 05:34:30 where kernel: NFORCE2: chipset revision 162

log starts with this acpi stuff--

Dec 15 05:34:30 where kernel: klogd 1.4.1#10, log source = /proc/kmsg 
started.
Dec 15 05:34:30 where kernel: Inspecting /boot/System.map-2.6.0.nf2
Dec 15 05:34:30 where kernel: Loaded 33440 symbols from 
/boot/System.map-2.6.0.nf2.
Dec 15 05:34:30 where kernel: Symbols match kernel version 2.6.0.
Dec 15 05:34:30 where kernel: No module symbols loaded - kernel modules 
not enabled.
Dec 15 05:34:30 where kernel: IRQs 3 4 *5 6 7 10 11 12 14 15)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [LFIR] (IRQs 3 4 
5 6 7 10 11 12 14 15)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [L3CM] (IRQs 3 4 
5 6 7 10 11 12 14 15)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [LIDE] (IRQs 3 4 
5 6 7 10 11 12 14 15)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC1] (IRQs *16)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC2] (IRQs *17)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC3] (IRQs *18)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC4] (IRQs *19)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC5] (IRQs 16)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCF] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCG] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCH] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCI] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCJ] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCK] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCS] (IRQs *23)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCL] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCM] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [AP3C] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCZ] (IRQs 20 
21 22)
Dec 15 05:34:30 where kernel: Linux Plug and Play Support v0.97 (c) Adam 
Belay
Dec 15 05:34:30 where kernel: pnp: the driver 'system' has been registered
Dec 15 05:34:30 where kernel: PnPBIOS: Scanning system for PnP BIOS 
support...
Dec 15 05:34:30 where kernel: PnPBIOS: Found PnP BIOS installation 
structure at 0xc00fc660
Dec 15 05:34:30 where kernel: PnPBIOS: PnP BIOS version 1.0, entry 
0xf0000:0xc690, dseg 0xf0000
Dec 15 05:34:30 where kernel: pnp: match found with the PnP device 
'00:07' and the driver 'system'
Dec 15 05:34:30 where kernel: pnp: match found with the PnP device 
'00:08' and the driver 'system'
Dec 15 05:34:30 where kernel: PnPBIOS: 13 nodes reported by PnP BIOS; 13 
recorded by driver
Dec 15 05:34:30 where kernel: SCSI subsystem initialized
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCS] enabled at 
IRQ 23
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-23 -> 
0xa9 -> IRQ 23 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:00:01[A] -> 2-23 -> IRQ 23
Dec 15 05:34:30 where kernel: Pin 2-23 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCF] enabled at 
IRQ 20
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-20 -> 
0xb1 -> IRQ 20 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:00:02[A] -> 2-20 -> IRQ 20
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCG] enabled at 
IRQ 22
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-22 -> 
0xb9 -> IRQ 22 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:00:02[B] -> 2-22 -> IRQ 22
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCL] enabled at 
IRQ 21
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-21 -> 
0xc1 -> IRQ 21 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:00:02[C] -> 2-21 -> IRQ 21
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCH] enabled at 
IRQ 20
Dec 15 05:34:30 where kernel: Pin 2-20 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCI] enabled at 
IRQ 22
Dec 15 05:34:30 where kernel: Pin 2-22 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCJ] enabled at 
IRQ 21
Dec 15 05:34:30 where kernel: Pin 2-21 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCK] enabled at 
IRQ 20
Dec 15 05:34:30 where kernel: Pin 2-20 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCM] enabled at 
IRQ 22
Dec 15 05:34:30 where kernel: Pin 2-22 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [AP3C] enabled at 
IRQ 21
Dec 15 05:34:30 where kernel: Pin 2-21 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APCZ] enabled at 
IRQ 20
Dec 15 05:34:30 where kernel: Pin 2-20 already programmed
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC4] enabled at 
IRQ 19
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-19 -> 
0xc9 -> IRQ 19 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:01:06[A] -> 2-19 -> IRQ 19
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC1] enabled at 
IRQ 16
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-16 -> 
0xd1 -> IRQ 16 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:01:06[B] -> 2-16 -> IRQ 16
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC2] enabled at 
IRQ 17
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-17 -> 
0xd9 -> IRQ 17 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:01:06[C] -> 2-17 -> IRQ 17
Dec 15 05:34:30 where kernel: ACPI: PCI Interrupt Link [APC3] enabled at 
IRQ 18
Dec 15 05:34:30 where kernel: IOAPIC[0]: Set PCI routing entry (2-18 -> 
0xe1 -> IRQ 18 Mode:1 Active:0)
Dec 15 05:34:30 where kernel: 00:01:06[D] -> 2-18 -> IRQ 18
Dec 15 05:34:30 where kernel: Pin 2-16 already programmed
Dec 15 05:34:30 where kernel: Pin 2-17 already programmed
Dec 15 05:34:30 where kernel: Pin 2-18 already programmed
Dec 15 05:34:30 where kernel: Pin 2-19 already programmed
Dec 15 05:34:30 where kernel: Pin 2-17 already programmed
Dec 15 05:34:30 where kernel: Pin 2-18 already programmed
Dec 15 05:34:30 where kernel: Pin 2-19 already programmed
Dec 15 05:34:30 where kernel: Pin 2-16 already programmed
Dec 15 05:34:30 where kernel: Pin 2-19 already programmed
Dec 15 05:34:30 where kernel: Pin 2-16 already programmed
Dec 15 05:34:30 where kernel: Pin 2-17 already programmed
Dec 15 05:34:30 where kernel: Pin 2-18 already programmed
Dec 15 05:34:30 where kernel: Pin 2-16 already programmed
Dec 15 05:34:30 where kernel: Pin 2-17 already programmed
Dec 15 05:34:30 where kernel: Pin 2-18 already programmed
Dec 15 05:34:30 where kernel: Pin 2-19 already programmed
Dec 15 05:34:30 where kernel: Pin 2-18 already programmed
Dec 15 05:34:30 where last message repeated 3 times
Dec 15 05:34:30 where kernel: Pin 2-19 already programmed
Dec 15 05:34:30 where kernel: PCI: Using ACPI for IRQ routing



^ permalink raw reply

* Re: 2.6.0-test11 intio.o build errors
From: Adrian Bunk @ 2003-12-15 11:39 UTC (permalink / raw)
  To: RunNHide; +Cc: linux-kernel
In-Reply-To: <3FD918D8.7020100@verizon.net>

On Thu, Dec 11, 2003 at 08:24:40PM -0500, RunNHide wrote:
> okay - I'm not a n00b but I'm no C programmer or driver developer, 
> either - figured I'd post this - understand there's not a lot of this 
> hardware out there so maybe this will be helpful:
> 
>  CC [M]  drivers/scsi/ini9100u.o
> drivers/scsi/ini9100u.c:111:2: #error Please convert me to 
> Documentation/DMA-mapping.txt
> drivers/scsi/ini9100u.c:146: warning: initialization from incompatible 
> pointer type
> drivers/scsi/ini9100u.c:151: warning: initialization from incompatible 
> pointer type
> drivers/scsi/ini9100u.c:152: warning: initialization from incompatible 
> pointer type
> drivers/scsi/ini9100u.c: In function `i91uAppendSRBToQueue':
> drivers/scsi/ini9100u.c:241: error: structure has no member named `next'
> drivers/scsi/ini9100u.c:246: error: structure has no member named `next'
> drivers/scsi/ini9100u.c: In function `i91uPopSRBFromQueue':
> drivers/scsi/ini9100u.c:268: error: structure has no member named `next'
> drivers/scsi/ini9100u.c:269: error: structure has no member named `next'
> drivers/scsi/ini9100u.c: In function `i91uBuildSCB':
> drivers/scsi/ini9100u.c:507: error: structure has no member named `address'
> drivers/scsi/ini9100u.c:516: error: structure has no member named `address'
> make[2]: *** [drivers/scsi/ini9100u.o] Error 1
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2

This is a known problem.

The driver is marked BROKEN in the Kconfig file, and you were only able 
to choose it since you said "no" to
  Select only drivers expected to compile cleanly
.

Unless someone fixes this driver it will not be available in kernel 2.6.

> Thanks,
> RunNHide

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply

* Re: Status of qlogic tcp/ip (fc0) support
From: Fabien Salvi @ 2003-12-15 11:38 UTC (permalink / raw)
  To: Mario Giammarco; +Cc: linux-scsi
In-Reply-To: <1071483139.1433.3.camel@cala>



Mario Giammarco a écrit:
> Hello,
> I now have a qlogic 2200 card and I am trying tcp/ip support:
> 
> - standard qlogicfc built in kernel seems to not support ip (I heard
> there is a patch somewhere, is it right?)
> 
> - qla drivers 6.00 of qlogic website should support it but I am not able
> to compile them with IP=1 option (I have tried on kernels 2.4.22 2.4.23)

Hello, using qla2200 from qlogic is IMHO the good solution.
I've already tested it a few months ago and it worked fine except very 
poor performance (around 20MB/s with a Qlogic switch despite of no load 
at all).

You should send your compile errors...

-- 
Fabien SALVI

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply

* Masquerade problems
From: john bowers @ 2003-12-15 11:34 UTC (permalink / raw)
  To: netfilter

Hi , I have a Nat/firewall box that  has worked beautifully for me for quite 
a while. The only thing I have not been able to fiigure out is that  I have 
never been able to initiate any kind of services from inside the firewall 
box to the local network. I can ssh from the local net into the firewall no 
problem, but if i try to ssh back into my local network it just disapears, 
but shows up in the iptables -v -L stats for the rules that would allow it 
as having passed the filter.  If I try to ping an address on my local 
private addressed network I just get the message "operation not allowed", or 
something of that sort.  I have a route for the local network entered in the 
routing table and actually routes for each of the individual host , but I 
don't know what is going on. Is this a routing problem or am I misusing the 
Masquerade function? when Any help would greatly be appreciated as I don't 
know where else to ask

Here is a abreviated portion of my Nat router rules.

iptables --flush
iptables -t nat --flush
iptables -t mangle --flush

iptables --delete-chain
iptables -t nat --delete-chain
iptables -t mangle --delete-chain

iptables --policy INPUT DROP
iptables --policy OUTPUT DROP
iptables --policy FORWARD DROP

iptables -t nat --policy POSTROUTING DROP

iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
###############################################################################


iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


################################################################################
# INPUT RULES

#RELATED & ESTABLISHED RULES
iptables -A INPUT -i ppp0 \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A OUTPUT -o ppp0 \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A OUTPUT -o eth0 \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A FORWARD -i ppp0 -o $LAN_INTERFACE \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

###################################################################################
# Forward related, established rules

iptables -A FORWARD -i $LAN_INTERFACE -o ppp0 \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A FORWARD -o ppp0 \
	-m state --state ESTABLISHED,RELATED -j ACCEPT

_________________________________________________________________
Get holiday tips for festive fun. 
http://special.msn.com/network/happyholidays.armx



^ permalink raw reply

* [LARTC] Nano and "stateful" protocols?
From: Steen Suder, privat @ 2003-12-15 11:33 UTC (permalink / raw)
  To: lartc

On some of nano-setups that I run, the users complain (dont they always? 
;-) about being unable to use https and sometimes http, tyically in 
cases where there is a login (and a corresponding cookie), ICQ and other 
systems that not always keeps the initial connection.

They complain about being "thrown off" and the like.

To me it seems to me that the nano-setup and, thus, the routing is to 
blame in some way.

To resolve the issue in a quick way I can just tie, say, https to a 
given Internetconnection, but I'd rather avoid this because the systems 
are made with a bunch of el-cheapo DSLs and they break down every once 
in a while and I'd like all DSLs to be used equally.

Can these protocols be "helped" in some way while still keeping the 
nano-setup in some form?

-- 
Mvh. / Best regards,
Steen Suder		<http://www.suder.dk/>
ICQ UIN			4133803

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply

* dummy_con
From: v.sudeep @ 2003-12-15 11:29 UTC (permalink / raw)
  To: linuxppc-embedded


Hi !!!
I am a relatively newbie in both embedded stuff and Linux and would
appreciate any help that is given.

I am trying to bring up the Display on the system. It has a S3 ViRGE/GX
card.
the other m/c Specifications:
Host Machine :  Intel x86 having RedHat 7.0 installed
Target Board: IBM Walnut board - 405GP with PowerPC processor.
Cross-Compiler: MonteVista Hard Hat Linux 2.0  for the ibm-walnut board



THE PROBLEM:  While compiling the kernel I get the following error.
arch/ppc/kernel/kernel.o: In function `ppc4xx_setup_arch':
arch/ppc/kernel/kernel.o(.text.init+0xbee): undefined reference to
`dummy_con'
arch/ppc/kernel/kernel.o(.text.init+0xbf2): undefined reference to
`dummy_con'
arch/ppc/kernel/kernel.o(.text.init+0xbf6): undefined reference to
`conswitchp'
arch/ppc/kernel/kernel.o(.text.init+0xbfa): undefined reference to
`conswitchp'
drivers/char/char.o: In function `chr_dev_init':
drivers/char/char.o(.text.init+0x248): undefined reference to `fbmem_init'
drivers/char/char.o(.text.init+0x248): relocation truncated to fit:
R_PPC_REL24 fbmem_init
make: *** [vmlinux] Error 1

If its not too much of a trouble someone help me with how to get this
working...

Thanks in advance....
- S u d e e p    V
If at first you dont succeed, skydiving is not for you.





-----Original Message-----
From: Sudeep, V
Sent: Friday, December 05, 2003 4:10 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Loading Linux on the Walnut Board



Hi !!!

I am a Linux newbie.. And recently I was trying to bring up the Walnut Board
with Linux and found that the documentation for the whole thing was vastly
inadequate. So I decided to pen my experience for everyone else's benefit.
So here goes....
Regs
Sudeep V



Aim: As a first step in the process of learning about Embedded Linux, we
thought we would try the relatively easy part of trying to bring up Linux on
the Walnut Board.

Specifications:
Host Machine : Intel x86 having Red Hat 9 installed (& Intel x86 having Red
Hat 7.0 installed for compiling the kernel since we had issues with RH9)
Target Board: IBM Walnut board - 405GP with PowerPC processor.
Cross-Compiler: MonteVista Hard Hat Linux 2.0  for the ibm-walnut board

The Success Story:
1. Connected the PPC board to the Host machine by the serial cable and the
network cable. Started minicom (version 1.83.1) which is being used as the
serial communication program.
2. Using minicom set the local(walnut board) and remote(host) ip-address.
3. Set up and start the Internet Boot Protocol Server(bootpd implements an
Internet Bootstrap protocol{BOOTP} server) in standalone mode (we used it
with debug level 5 ----  /usr/sbin/bootpd -d5). In the config file
/etc/bootptab, specify the following:
*	Bootfile Home Directory (hd),
*	Bootfile (bf),
*	Host IP Address (ip),
*	TFTP server address client should use(sa),
*	Host subnet mask (sm),
*	Host Hardware address (ha),
*	Root path to mount as root(rp).

4. Start the ftp service Trivial File Transfer Protocol (TFTP - A simple
file transfer protocol used for down-loading boot code to diskless
workstations.) /usr/sbin/in.tftpd

5.  Building the kernel image: We had issues compiling the MonteVista Hard
Hat 2.0 kernel source from the Red Hat 9 Host machine (probably due to a
incompatible version of Perl). So we installed the MonteVista Hard Hat 2.0
kernel on a Red Hat Linux 7.0 machine. And built the kernel as usual.
Steps while building the kernel
*	cd /opt/hardhat/devkit/lsp/ibm-walnut/linux-2.4.2_hhl120/
*	make walnut_config
*	make clean
*	make dep
*	make zImage

6. The image created is available at
/opt/hardhat/devkit/lsp/ibm-walnut/linux-2.4.2_hhl120//arch/ppc/boot/images/
as vmlinux.tree.img.
Copy this to the /tftpboot/ directory or wherever the Bootfile Home
Directory has been set to.

7. Now power on or reset the board and Bingo !!!! the kernel must be loading
....

Lessons Learnt:
1. This whole exercise was very useful in understanding the way things are
done in the embedded world.
2. We have begun to understand the  A B Cs involved in bringing up a board.
3. Never trust anything. After installing MonteVista Hard Hat Linux on the
Host machine with RH9, we tried to build the kernel for the target board.
After many unsuccessful attempts and a little bit of debugging, we realised
that probably the errors were due to the incompatible versions of Perl. (RH7
uses Perl v5.6.0 while RH9 uses Perl v5.8.0)
4. Leave no stone unturned. After successfully building the kernel, we had
to search with quite a few of files created to find which was the correct
image. Most of the documentation that we found on the net did misguide us on
this count.
5. Its fun to work with stuff with very less documentation. But there are
many people having trouble getting things working in this field, we are not
alone......



Notes :
TFTP (Trivial File Transfer Protocol) is used on light-weight Internet
devices in order to transfer files. Specifically, it is one of the most
popular methods for "remote booting". It is such a simple protocol that it
can be implemented within the firmware on network devices that do not
contain hard-disks. It is often used in conjunction with bootp
<http://www.iss.net/security_center/advice/Services/bootp/default.htm>: the
device first contacts the bootp server, which then tells it which TFTP to
load the "boot image" from.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply

* RE: 405 TLB miss reduction
From: Joakim Tjernlund @ 2003-12-15 11:26 UTC (permalink / raw)
  To: 'Matt Porter', 'Wolfgang Grandegger'; +Cc: linuxppc-embedded
In-Reply-To: <20031211104505.C26110@home.com>


> > > I've also been thinking about dynamically using large
> TLB/PTE mappings
> > > for ioremap on 405/440.
> >
> > OK, I expect not so much benefit from this measure but it
> depends on the
> > application, of course.
>
> Yes, I've seen a lot of apps with huge shared memory areas across PCI
> that can benefit from this...they used BATs on classic PPCs.

hmm, I wonder if this would be useful for systems using JFFS2/MTD?
JFFS2/MTD usually ioremaps the underlying FLASH memory, which can be
many MB.

 Jocke

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply

* Re: [2.4.23] kernel BUG at page_alloc.c:235!
From: Marcelo Tosatti @ 2003-12-15 11:24 UTC (permalink / raw)
  To: Vladimir Saveliev; +Cc: Stephan von Krawczynski, linux-kernel
In-Reply-To: <200312091907.04707.vs@namesys.com>



On Tue, 9 Dec 2003, Vladimir Saveliev wrote:

> On Tuesday 09 December 2003 18:59, Stephan von Krawczynski wrote:
> > On Mon, 8 Dec 2003 19:39:07 +0300
> > Vladimir Saveliev <vs@namesys.com> wrote:
> > 
> > > Hi
> > > 
> > > A program which reads spontaneously 4k blocks from a device (sda1) causes the following quite fast.
> > 
> > > [...]
> > > Ksymoops provides
> > > 
> > > vs@tribesman:/tmp/> ksymoops -m System.map file2 -V -O -K
> > > ksymoops 2.4.9 on i686 2.4.21-144-default.  Options used
> > 
> > What kind of a kernel is this? Are you sure you are running 2.4.23 ?
> > 
> Yes, oops happened on 2.4.23. I ksymoopsed it with proper System.map having 2.4.21-144 running, though

After tracking this down we discovered its hardware problem (motherboard 
was changed and the problem has vanished).




^ permalink raw reply

* Re: Linux/ACPI 2.4 release status and cpufreq
From: Micha Feigin @ 2003-12-15 11:26 UTC (permalink / raw)
  To: ACPI Developers
In-Reply-To: <C386328088ED7F4E9F81AFBABDDF60DA0378C85A-Yw6hFe9C1vnHQcBQSaPqJq0fmWJ9l57d0E9HWUfgJXw@public.gmane.org>

On Mon, Dec 15, 2003 at 09:26:48AM +0800, Ow Mun Heng wrote:
> 
> 
> > -----Original Message-----
> > From: S?rgio Monteiro Basto [mailto:sergiomb-hHo3WeeoaswVhHzd4jOs4w@public.gmane.org]
> > Sent: Saturday, December 13, 2003 1:06 AM
> > To: Len Brown
> > Cc: ACPI Developers
> > Subject: Re: [ACPI] Linux/ACPI 2.4 release status and cpufreq
> >
> > have you any plan? to integrated cpufreq that cames in 
> > 2.22-ac4 kernels.
> > or does anybody have any implantation of cpufreq for kernel 2.4.23? 
> 
> I've made a patch for the 2.4.23 kernel for cpufreq. It's a patch to the
> vanilla 2.4.23 kernel from kernel.org. I'm using it right now on my lappy.
> 
> if you want it, mail me off-line
> 
> OW

The cvs version (iirc mentioned earlier in this thread, otherwise
search the archives) applied cleanly to 2.4.23 last time I checked.

> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

^ permalink raw reply

* Information
From: Carlos Anísio Monteiro @ 2003-12-15 11:25 UTC (permalink / raw)
  To: selinux

Hi.

I have seen that the binary policy file (policy.15) have "15" as version 
of the checkpolicy utility, right ?
The change done in the sysvinit package load the policy as: 
/sbin/load_policy /etc/security/selinux/policy.15, right?
If yes, a change in the version of the checkpolicy, I have that change 
the sysvinit too ?

Is this a good idea ?
This is only a question.

Cheers.
Thanks.


-- 
Carlos Anisio Monteiro  <monteiro@ipen.br>
IPEN/CNEN-SP
Sao Paulo - Brasil



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply

* Re: udev sysfs docs Re: State of devfs in 2.6?
From: Mark Mielke @ 2003-12-15  3:51 UTC (permalink / raw)
  To: Miles Bader; +Cc: Måns Rullgård, linux-kernel
In-Reply-To: <buo1xr6q15p.fsf@mcspd15.ucom.lsi.nec.co.jp>

On Mon, Dec 15, 2003 at 11:12:50AM +0900, Miles Bader wrote:
> mru@kth.se (Måns Rullgård) writes:
> > Please, don't CC me.  I'm subscribed to linux-kernel and don't need
> > two copies of all mails.
> You ought to put in one of those magic headers that says so (I don't see
> one in your messages, though maybe I overlooked something), as you can
> hardly expect everybody to remember who's subscribed to the list and
> who's not.

I am also a believer that it is the sender's responsibility to communicate
their wishes according to the generally accepted protocols.

At the moment, I believe the most popular and implemented one is
Mail-Followup-To. Set it however you want. Don't complain until you have
set it.

This is standard mailing list trivia, though, and so, please keep "don't
CC me requests" off the mailing list. :-)

My excuse for posting this is to offer Mail-Followup-To as a researching
starting point, rather than let people become frustrated.

Cheers,
mark

-- 
mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


^ permalink raw reply

* Re: PCI Express support for 2.4 kernel
From: Vladimir Kondratiev @ 2003-12-15 11:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg KH, Alan Cox, Marcelo Tosatti
In-Reply-To: <20031215100724.GA1950@kroah.com>

Greg KH wrote:

>>Hi,
>>PCI-Express platforms will soon appear on the market. It is worth to
>>support it.
>>    
>>
>
>Yes it is worth it, any chance to get access to hardware to test this
>out on?
>  
>
If it were up to me, I will give away full specs and test platforms. But 
it is not...

>No, we need to get this into 2.6 first.  Can you please forward port
>this to 2.6, clean up the formatting and address the issues everyone
>else has made so far and post it?
>  
>
I will. It take some time, I did not installed 2.6 yet.

>> * command line argument "pci=exp" to force PCI Express, similar to "conf1" and "conf2"
>>    
>>
>
>We should be able to do this automatically, and not force this on the
>boot command line, correct?
>  
>
Yes. Default is autodetect. Command line is to suppress autodetection.

>How about information on how to detect it as per chipset type?  We need
>to do this automatically some how.
>+ * 
>+ * There is no standard method to recognize presence of PCI Express,
>  
>
>
>Are you sure?  I thought there was (don't have my spec in front of me
>right now...)
>  
>
I thought this way also. But I found that it is not. You may know 
several chipsets,
and do per-chipset stuff, but there is no generic procedure. At least 
authors of PCI-E
don't know (it is nice to have access to the authors ;-) ).

Vladimir.


^ permalink raw reply

* Re: kernel 2.4.23
From: Marc Schmitt @ 2003-12-15 11:19 UTC (permalink / raw)
  To: Roberto Sebastiano; +Cc: nfs
In-Reply-To: <1070631829.19181.8.camel@newdeal>

Hi Roberto,

I wanted to ask the same question.
Did someone answer you?

Regards,
    Marc

Roberto Sebastiano wrote:

>Hi,
>I would like to know if there is any outstanding patch to apply to
>2.4.23 to make NFS works nicely in mid-high load environment
>
>I ask this question as I had to apply some patches to 2.4.22 to avoid
>"server down .. still trying" messages
>
>Thanks,
>  
>




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply

* Re: no DRQ after issuing WRITE
From: Daniel Lux @ 2003-12-15 11:08 UTC (permalink / raw)
  To: steve; +Cc: linux-kernel
In-Reply-To: <OKSD.5oD.5@gated-at.bofh.it>

Hi,

I had the same problem on a slow system with high load, I made a patch 
against this problem. Which kernel version are you using and would you 
be willing to try my patch?

Regards
Daniel Lux

Systems Developer
LIAB Electronics Aps				Tel: +45 97370644
Støvring Vækstcenter, Østre Allé 6 		Email: lux@liab.dk
DK-9530 Støvring,  Denmark	

steve@drifthost.com wrote:
> Well i only just started getting them and i started with 2.4.20 and
> upgraded to 2.4.21 about 6weeks or so ago (or when it came out)
> 
> Started gettig errors about 4-5days ago..
> 
> Ive seen alot of other ppl with the same error on early kernels..
> 
> Any idea what it is
> 
> 
>>I do not have time to pause and trace/fix the mess.
>>However if you both can kindly finger the last kernel when you did not
>>have this error, it will help constrain the pain.
>>
>>Cheers,
>>
>>Andre Hedrick
>>LAD Storage Consulting Group
>>
>>On Wed, 5 Nov 2003, Robert L. Harris wrote:
>>
>>
>>>
>>>No answer for you but I've gotten this message also and was hoping
>>>someone would know what/why...
>>>
>>>
>>>Thus spake Steven Adams (steve@drifthost.com):
>>>
>>>
>>>>anyone?
>>>>----- Original Message -----
>>>>From: <steve@drifthost.com>
>>>>To: <linux-kernel@vger.kernel.org>
>>>>Sent: Wednesday, November 05, 2003 2:05 PM
>>>>Subject: hda: no DRQ after issuing WRITE
>>>>
>>>>
>>>>
>>>>>Hey guys,
>>>>>
>>>>>i keep getting things like this in my dmesg
>>>>>
>>>>>============================================
>>>>>hda: status timeout: status=0xd0 { Busy }
>>>>>
>>>>>hda: no DRQ after issuing WRITE
>>>>>ide0: reset: success
>>>>>hda: status timeout: status=0xd0 { Busy }
>>>>>
>>>>>hda: no DRQ after issuing WRITE
>>>>>ide0: reset: success
>>>>>=============================================
>>>>>
>>>>>From hdparm
>>>>>============================================
>>>>>/dev/hda:
>>>>>
>>>>> Model=IC35L080AVVA07-0, FwRev=VA4OA52A, SerialNo=VNC402A4CBRJLA
>>>
>>>Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
>>>
>>>>> RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
>>>>> BuffType=DualPortCache, BuffSize=1863kB, MaxMultSect=16,
>>>
>>>MultSect=off CurCHS=16383/16/63, CurSects=16514064, LBA=yes,
>>>LBAsects=160836480 IORDY=on/off, tPIO={min:240,w/IORDY:120},
>>>tDMA={min:120,rec:120} PIO modes:  pio0 pio1 pio2 pio3 pio4
>>>
>>>>> DMA modes:  mdma0 mdma1 mdma2
>>>>> UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
>>>>> AdvancedPM=yes: disabled (255) WriteCache=enabled
>>>>> Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:  2 3 4 5
>>>>>=================================================
>>>>>
>>>>>Ive searched high and low to try find out what this means, all ive
>>>
>>>found it people keep saying its all different kinds of things..
>>>
>>>>>I was wondering if this means my hdd is drying or is ti a setting?
>>>>>
>>>>>Thanks guys,
>>>>>Steve
>>>>>
>>>>>
>>>>>-
>>>>>To unsubscribe from this list: send the line "unsubscribe
>>>
>>>linux-kernel" in the body of a message to
>>>majordomo@vger.kernel.org
>>>
>>>>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>Please read the FAQ at  http://www.tux.org/lkml/
>>>
>>>>-
>>>>To unsubscribe from this list: send the line "unsubscribe
>>>
>>>linux-kernel" in the body of a message to majordomo@vger.kernel.org
>>>
>>>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>Please read the FAQ at  http://www.tux.org/lkml/
>>>
>>>:wq!
>>>---------------------------------------------------------------------------
>>>Robert L. Harris                     | GPG Key ID: E344DA3B
>>>                                         @ x-hkp://pgp.mit.edu
>>>DISCLAIMER:
>>>      These are MY OPINIONS ALONE.  I speak for no-one else.
>>>
>>>Life is not a destination, it's a journey.
>>>  Microsoft produces 15 car pileups on the highway.
>>>    Don't stop traffic to stand and gawk at the tragedy.
>>>
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply

* Re: PCI lib for 2.4
From: Damien Couroussé @ 2003-12-15 10:56 UTC (permalink / raw)
  To: Peter Chubb; +Cc: linux-kernel
In-Reply-To: <16348.59126.537876.178991@wombat.chubb.wattle.id.au>

Hi,

Actually, it will be first a user-space driver.

Maybe I wasn't clear:

I link the PCI library with '-lpci' option, but it seems the library is 
not complete, ie I can't use the whole lib. For example, the compiler 
cannot link pci_resource_start() func. or pci_fond_device(). I think 
these are usually in all pci libraries... My lib does not support dma 
abilities too.

My problem is that I have several pci.h files which contain these 
function (the 'whole package?'), but I don't have the lib that fits 
to...

For example
 >>grep pci_resource_start /usr/lib/pcilib.a
returns nothing. I think it should.

I was just wondering how I will be able to retrieve the good lib, which 
I can't find on my PC.  Tried to update the Red Hat (and kernel), but 
it didn't change anything in my lib. I guess someone installed sthg on 
my PC, which removed the 'good' pci library, or changed it for an other 
lighter version.

Is there anything related with CONFIG_... flags??

Damien

Le dimanche, 14 déc 2003, à 23:40 Europe/Paris, Peter Chubb a écrit :

>>>>>> "Damien" == Damien Courouss <Damien> writes:
>
> Damien> Hi all, I'm a rookie in Linux development, and I have to
> Damien> develop a small driver for a data-acquisition card on PCI
> Damien> port.
>
> Is this a user=space or in-kernel driver?  A user-space driver will
> link with -lpci; an in-kernel driver needs to be built as if part
> of the kernel.
>
> --
> Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT 
> gelato.unsw.edu.au
> The technical we do immediately,  the political takes *forever*
>
  
  

^ permalink raw reply

* 2.4.23 Oops
From: Frank van Maarseveen @ 2003-12-15 11:02 UTC (permalink / raw)
  To: linux-kernel
In-Reply-To: <20031210084827.GA27823@iapetus.localdomain>

Got a new kernel oops. Same machine as the previous reported oops
in journal_try_to_free_buffers(). Something seems definately wrong
in 2.4.23.

Marcelo, I'll follow your suggestion te revert a particular change.

ksymoops 2.4.9 on i686 2.4.23-x91.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.23-x91/ (default)
     -m /boot/System.map-2.4.23-x91 (specified)

Dec 15 11:31:26 tornio kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000
Dec 15 11:31:26 tornio kernel: c0147c56
Dec 15 11:31:26 tornio kernel: *pde = 00000000
Dec 15 11:31:26 tornio kernel: Oops: 0000
Dec 15 11:31:26 tornio kernel: CPU:    0
Dec 15 11:31:26 tornio kernel: EIP:    0010:[<c0147c56>]    Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
Dec 15 11:31:26 tornio kernel: EFLAGS: 00010217
Dec 15 11:31:26 tornio kernel: eax: 00000000   ebx: fffffff0   ecx: 0000000e   edx: a4946908
Dec 15 11:31:26 tornio kernel: esi: c4aecdd4   edi: c4aece40   ebp: c2973ec4   esp: c2973ea4
Dec 15 11:31:26 tornio kernel: ds: 0018   es: 0018   ss: 0018
Dec 15 11:31:26 tornio kernel: Process sh (pid: 17607, stackpage=c2973000)
Dec 15 11:31:27 tornio kernel: Stack: c2973f1c c4aecdd4 c4aece40 00000000 c11a1078 c442000f a4946908 0000000c 
Dec 15 11:31:27 tornio kernel:        c2973ee0 c013f8e7 c4b7fbf8 c2973f1c c2973f1c 00000000 c2973f84 c2973f28 
Dec 15 11:31:27 tornio kernel:        c0140055 c4b7fbf8 c2973f1c 00000000 c2973f84 c4420000 00000000 c2973fb4 
Dec 15 11:31:27 tornio kernel: Call Trace:    [<c013f8e7>] [<c0140055>] [<c0116230>] [<c01402ed>] [<c014044e>]
Dec 15 11:31:27 tornio kernel:   [<c01407e0>] [<c013654e>] [<c013688e>] [<c0108ab3>]
Dec 15 11:31:27 tornio kernel: Code: 8b 00 89 45 ec 39 53 44 75 78 8b 45 08 39 43 0c 75 70 8b 40 


>>EIP; c0147c56 <d_lookup+66/10c>   <=====

>>esi; c4aecdd4 <_end+4662d54/846ffe0>
>>edi; c4aece40 <_end+4662dc0/846ffe0>
>>ebp; c2973ec4 <_end+24e9e44/846ffe0>
>>esp; c2973ea4 <_end+24e9e24/846ffe0>

Trace; c013f8e7 <real_lookup+27/cc>
Trace; c0140055 <link_path_walk+5d5/850>
Trace; c0116230 <do_page_fault+1a4/4c7>
Trace; c01402ed <path_walk+1d/24>
Trace; c014044e <path_lookup+1e/2c>
Trace; c01407e0 <open_namei+64/4c8>
Trace; c013654e <filp_open+32/50>
Trace; c013688e <sys_open+36/88>
Trace; c0108ab3 <system_call+33/40>

Code;  c0147c56 <d_lookup+66/10c>
00000000 <_EIP>:
Code;  c0147c56 <d_lookup+66/10c>   <=====
   0:   8b 00                     mov    (%eax),%eax   <=====
Code;  c0147c58 <d_lookup+68/10c>
   2:   89 45 ec                  mov    %eax,0xffffffec(%ebp)
Code;  c0147c5b <d_lookup+6b/10c>
   5:   39 53 44                  cmp    %edx,0x44(%ebx)
Code;  c0147c5e <d_lookup+6e/10c>
   8:   75 78                     jne    82 <_EIP+0x82>
Code;  c0147c60 <d_lookup+70/10c>
   a:   8b 45 08                  mov    0x8(%ebp),%eax
Code;  c0147c63 <d_lookup+73/10c>
   d:   39 43 0c                  cmp    %eax,0xc(%ebx)
Code;  c0147c66 <d_lookup+76/10c>
  10:   75 70                     jne    82 <_EIP+0x82>
Code;  c0147c68 <d_lookup+78/10c>
  12:   8b 40 00                  mov    0x0(%eax),%eax

Dec 15 11:35:01 tornio kernel:  kernel BUG at slab.c:1218!
Dec 15 11:35:01 tornio kernel: invalid operand: 0000
Dec 15 11:35:01 tornio kernel: CPU:    0
Dec 15 11:35:01 tornio kernel: EIP:    0010:[<c012e38c>]    Not tainted
Dec 15 11:35:01 tornio kernel: EFLAGS: 00010002
Dec 15 11:35:01 tornio kernel: eax: 01b0a3db   ebx: 00000000   ecx: 00000074   edx: c11833f0
Dec 15 11:35:01 tornio kernel: esi: c40a3f60   edi: c40a3040   ebp: c11cbf18   esp: c11cbf04
Dec 15 11:35:01 tornio kernel: ds: 0018   es: 0018   ss: 0018
Dec 15 11:35:01 tornio kernel: Process kswapd (pid: 4, stackpage=c11cb000)
Dec 15 11:35:01 tornio kernel: Stack: c40a3040 c40a3f64 c11833f0 01b0a3db c1bf9424 c11cbf48 c012e921 c11833f0 
Dec 15 11:35:01 tornio kernel:        c40a3040 c40a3f60 c6542220 c40a3f64 c37cc254 c014998d 0000006c c40a3f60 
Dec 15 11:35:01 tornio kernel:        00000246 c11cbf64 c0147716 c11833f0 c40a3f64 0000003c 000001d0 0000000c 
Dec 15 11:35:01 tornio kernel: Call Trace:    [<c012e921>] [<c014998d>] [<c0147716>] [<c01479e0>] [<c012fe14>]
Dec 15 11:35:01 tornio kernel:   [<c012ff9b>] [<c0130007>] [<c013013d>] [<c01073b4>]
Dec 15 11:35:01 tornio kernel: Code: 0f 0b c2 04 e0 37 33 c0 0f af 4d f8 8d 04 19 39 c6 74 08 0f 


>>EIP; c012e38c <kmem_extra_free_checks+30/74>   <=====

>>edx; c11833f0 <_end+cf9370/846ffe0>
>>esi; c40a3f60 <_end+3c19ee0/846ffe0>
>>edi; c40a3040 <_end+3c18fc0/846ffe0>
>>ebp; c11cbf18 <_end+d41e98/846ffe0>
>>esp; c11cbf04 <_end+d41e84/846ffe0>

Trace; c012e921 <kmem_cache_free+1c9/270>
Trace; c014998d <iput+45/1d8>
Trace; c0147716 <prune_dcache+116/150>
Trace; c01479e0 <shrink_dcache_memory+1c/34>
Trace; c012fe14 <try_to_free_pages_zone+70/d8>
Trace; c012ff9b <kswapd_balance_pgdat+5f/b4>
Trace; c0130007 <kswapd_balance+17/34>
Trace; c013013d <kswapd+9d/c0>
Trace; c01073b4 <arch_kernel_thread+28/38>

Code;  c012e38c <kmem_extra_free_checks+30/74>
00000000 <_EIP>:
Code;  c012e38c <kmem_extra_free_checks+30/74>   <=====
   0:   0f 0b                     ud2a      <=====
Code;  c012e38e <kmem_extra_free_checks+32/74>
   2:   c2 04 e0                  ret    $0xe004
Code;  c012e391 <kmem_extra_free_checks+35/74>
   5:   37                        aaa    
Code;  c012e392 <kmem_extra_free_checks+36/74>
   6:   33 c0                     xor    %eax,%eax
Code;  c012e394 <kmem_extra_free_checks+38/74>
   8:   0f af 4d f8               imul   0xfffffff8(%ebp),%ecx
Code;  c012e398 <kmem_extra_free_checks+3c/74>
   c:   8d 04 19                  lea    (%ecx,%ebx,1),%eax
Code;  c012e39b <kmem_extra_free_checks+3f/74>
   f:   39 c6                     cmp    %eax,%esi
Code;  c012e39d <kmem_extra_free_checks+41/74>
  11:   74 08                     je     1b <_EIP+0x1b>
Code;  c012e39f <kmem_extra_free_checks+43/74>
  13:   0f 00 00                  sldtl  (%eax)


-- 
Frank

^ permalink raw reply

* Re: Fixes for nforce2 hard lockup, apic, io-apic, udma133 covered
From: ross.alexander @ 2003-12-15 10:57 UTC (permalink / raw)
  To: linux-kernel

Hi all,

Just a quick note saying I've been running my nforce2 for nearly four
days with considerable I/O and no trouble.

Processor: AMD Athlon XP 2700+
MB: ASUS A7N8X Deluxe
APCI: Turned off in kernel config
Boot params: acpi=off noapic
Kernel: 2.6.0-test11-bk7 + disconnect quirk patch

I still have a considerable number of spurious IRQs (but < 1%
compared to IRQ0 / LINT).  I'm not running the timer patch
at all.

I will try with latest bk kernel + disconnect  + acpi compiled in.

Questions.

1) Does anybody know the state of play ala 2.6.0 release and which
patches we can get in?

2) If the local apic is running is it necessary to use the 8254 as a 
timer?

3) Does anybody, anywhere, have any nvidia documentation and
is it worth trying to bully them into releasing some?

Cheers,

Ross

---------------------------------------------------------------------------------
Ross Alexander                           "We demand clearly defined
MIS - NEC Europe Limited            boundaries of uncertainty and
Work ph: +44 20 8752 3394         doubt."

^ permalink raw reply

* Re: 2.4 vs 2.6
From: Anssi Saari @ 2003-12-15 10:56 UTC (permalink / raw)
  To: linux-kernel
In-Reply-To: <fa.m5245vp.h0ukb5@ifi.uio.no>

>   -- modules don't autoload for some reason (though I'm sure that could
>      be solved),

I've had this too, with autofs4 and 3c59x. After patching lirc into the
kernel, the only real issue is with the console. I found a patch for radeonfb,
but didn't get anywhere with it.

The rest of my problems is userland stuff:

- Murasaki (a hotplug agent) doesn't react when USB things are plugged in
- swapon -a takes two minutes to complete for some reason
- rpc.lockd doesn't start, it says lockdsvc: Function not implemented. I don't
  know if I really need this anyway, nfs seems to work fine
- zsh doesn't complete make targets like menuconfig
- I'd also like to point out that cdrecord isn't sufficient for my 
  CD writing needs, I need cdrdao too and it doesn't seem to support
  direct access to ATAPI drives. 


^ permalink raw reply

* Re: PCI Express support for 2.4 kernel
From: Martin Mares @ 2003-12-15 10:42 UTC (permalink / raw)
  To: Vladimir Kondratiev; +Cc: linux-kernel
In-Reply-To: <3FDD8691.80206@intel.com>

Hi!

> I did not found this feature in standard.

I did :-)  C99, section 6.7.8 "Initialization", constraint 10:

"... If an object that has static storage duration is not initialized
explicitly, then:

   - if it has pointer type, it is initialized to a null pointer;
   - if it has arithmetic type, it is initialized to (positive or unsigned) zero;

..."

> More, future versions of gcc will give at least warning, if not error, like
> "use of uninitialized variable".

Yes, such warning exists, but only for automatic variables.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Quote of the day: '

^ 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.