Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Kernel .126 compile problem - acct.c
@ 1998-11-07  7:25 y0000218
  1998-11-07 19:54 ` Michal Jaegermann
  1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
  0 siblings, 2 replies; 10+ messages in thread
From: y0000218 @ 1998-11-07  7:25 UTC (permalink / raw)


Hi,

as I havent seen it on the list (Sorry if it was here):

gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes -O2 -g -pipe -mno-fp-regs -ffixed-8   -c -o acct.o acct.c
acct.c: In function `check_free_space':
acct.c:90: structure has no member named `f_inode'
acct.c:85: warning: `sb' might be used uninitialized in this function
make[2]: *** [acct.o] Error 1
make[2]: Leaving directory `/tmp/olaf/linux/kernel'

90 is:
sb = acct_file->f_dentry->f_inode->i_sb;

where 

static struct file *acct_file = NULL;

where (fs.h)

struct file {
	struct file		*f_next, **f_pprev;
	struct dentry		*f_dentry;
	struct file_operations	*f_op;
	mode_t			f_mode;
	loff_t			f_pos;
	unsigned short 		f_count, f_flags;
	unsigned long 		f_reada, f_ramax, f_raend, f_ralen, f_rawin;
	struct fown_struct	f_owner;

	unsigned long		f_version;

	/* needed for tty driver, and maybe others */
	void			*private_data;
};

Hmmmm, weird or am I blind? 

struct file is surrounded by a #ifdef __KERNEL__ but that
is defined. 

Hints?

Bear with me if i am dumb ;)

olaf


-- 
"The number of Unix installations       Olaf Schnapauff,
has grown to 10, with more expected."   O.Schnapauff@tu-bs.de  
- The Unix Programmer's Manual,1972     http://www.tu-bs.de/~c0033014/
       See Web page and keyservers  for pgp public key


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

* Re: Kernel .126 compile problem - acct.c
  1998-11-07  7:25 Kernel .126 compile problem - acct.c y0000218
@ 1998-11-07 19:54 ` Michal Jaegermann
  1998-11-11  0:50   ` LX164 Eide motherboard DMA? savages
  1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
  1 sibling, 1 reply; 10+ messages in thread
From: Michal Jaegermann @ 1998-11-07 19:54 UTC (permalink / raw)
  To: axp-list

y0000218@rzrtr1.rz.tu-bs.de wrote:
> 
> as I havent seen it on the list (Sorry if it was here):

Things like that are on linux-kernel list. :-)  If you hack
development kernels you should likely watch it.

> gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes -O2 -g -pipe -mno-fp-regs -ffixed-8   -c -o acct.o acct.c
> acct.c: In function `check_free_space':
> acct.c:90: structure has no member named `f_inode'

This is one letter typo.

--- linux-2.1.126/kernel/acct.c~	Mon Nov  2 12:50:29 1998
+++ linux-2.1.126/kernel/acct.c	Mon Nov  2 14:46:20 1998
@@ -87,7 +87,7 @@
 	if (!acct_file || !acct_needcheck)
 		return;
 
-	sb = acct_file->f_dentry->f_inode->i_sb;
+	sb = acct_file->f_dentry->d_inode->i_sb;
 	if (!sb->s_op || !sb->s_op->statfs)
 		return;
 
   Michal
   (michal@harddata.com - to make a vendor presence more prominent :-)


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

* Re: Kernel .126 compile problem - acct.c
  1998-11-07  7:25 Kernel .126 compile problem - acct.c y0000218
  1998-11-07 19:54 ` Michal Jaegermann
@ 1998-11-09  8:52 ` Francois LAPERRUQUE
  1998-11-09  9:33   ` dmcgown
  1998-11-10  7:42   ` Peter Rye
  1 sibling, 2 replies; 10+ messages in thread
From: Francois LAPERRUQUE @ 1998-11-09  8:52 UTC (permalink / raw)
  To: axp-list

On Sat, 07 Nov 1998, y0000218@rzrtr1.rz.tu-bs.de wrote:
>Hi,
>
>as I havent seen it on the list (Sorry if it was here):
>
>gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes -O2 -g -pipe -mno-fp-regs -ffixed-8   -c -o acct.o acct.c
>acct.c: In function `check_free_space':
>acct.c:90: structure has no member named `f_inode'
>acct.c:85: warning: `sb' might be used uninitialized in this function
>make[2]: *** [acct.o] Error 1
>make[2]: Leaving directory `/tmp/olaf/linux/kernel'
>

I have the same problem whith egcs on my SX164...
--
Francois
--
mailto:flap@germinal.toulouse.inra.fr
---------------------- [ LINUX : just boot it! ] -------------------------
               Linux-CULTe http://savage.iut-blagnac.fr/


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

* Re: Kernel .126 compile problem - acct.c
  1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
@ 1998-11-09  9:33   ` dmcgown
  1998-11-09 10:38     ` Matthew Geier
  1998-11-10  7:42   ` Peter Rye
  1 sibling, 1 reply; 10+ messages in thread
From: dmcgown @ 1998-11-09  9:33 UTC (permalink / raw)
  To: flap; +Cc: axp-list

Try disabling bsd process accounting (CONFIG_BSD_PROCESS_ACCT=n)

On  9 Nov, Francois LAPERRUQUE wrote:
> On Sat, 07 Nov 1998, y0000218@rzrtr1.rz.tu-bs.de wrote:
>>Hi,
>>
>>as I havent seen it on the list (Sorry if it was here):
>>
>>gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes -O2 -g -pipe -mno-fp-regs -ffixed-8   -c -o acct.o acct.c
>>acct.c: In function `check_free_space':
>>acct.c:90: structure has no member named `f_inode'
>>acct.c:85: warning: `sb' might be used uninitialized in this function
>>make[2]: *** [acct.o] Error 1
>>make[2]: Leaving directory `/tmp/olaf/linux/kernel'
>>
> 
> I have the same problem whith egcs on my SX164...
> --
> Francois
> --
> mailto:flap@germinal.toulouse.inra.fr
> ---------------------- [ LINUX : just boot it! ] -------------------------
>                Linux-CULTe http://savage.iut-blagnac.fr/
> 

-- 
======================================================================
                            David R. McGown                               
dmcgown@megacats.com            -o-O-o-                LINUX INSIDE!     
 Home: (703)683-1599         206 Adams Ave           ALPHA GENERATION! 
 Work: (703)416-1240      Alexandria, VA 22301                                 


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

* Re: Kernel .126 compile problem - acct.c
  1998-11-09  9:33   ` dmcgown
@ 1998-11-09 10:38     ` Matthew Geier
  0 siblings, 0 replies; 10+ messages in thread
From: Matthew Geier @ 1998-11-09 10:38 UTC (permalink / raw)
  To: axp-list

 Well .127 compiled for me after removing the parallel port stuff. Unfortunatly
the kernel paniced when it started init. (Or so it appeared).
-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | +61 2 9587 9773  
matthew@law.usyd.edu.au        |   018 977 356


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

* Re: Kernel .126 compile problem - acct.c
  1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
  1998-11-09  9:33   ` dmcgown
@ 1998-11-10  7:42   ` Peter Rye
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Rye @ 1998-11-10  7:42 UTC (permalink / raw)
  To: flap; +Cc: axp-list

>>>>> "Francois" == Francois LAPERRUQUE <flap@germinal.toulouse.inra.fr> writes:

    Francois> On Sat, 07 Nov 1998, y0000218@rzrtr1.rz.tu-bs.de wrote:
    >> Hi,
    >> 
    >> as I havent seen it on the list (Sorry if it was here):
    >> 
    >> gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes
    >> -O2 -g -pipe -mno-fp-regs -ffixed-8 -c -o acct.o acct.c acct.c: In
    >> function `check_free_space': acct.c:90: structure has no member
    >> named `f_inode' acct.c:85: warning: `sb' might be used uninitialized
    >> in this function make[2]: *** [acct.o] Error 1 make[2]: Leaving
    >> directory `/tmp/olaf/linux/kernel'
    >> 

    Francois> I have the same problem whith egcs on my SX164...  --

It's nothing to do with egcs. If you look through the source you'll see
that it's a simple typo. Here's a patch for this problem and for a problem
with the sound driver.
2.1.127 is out now, but unfortunately bombs on boot with an unaligned
access (well it does here anyway).

--- linux/kernel/acct.c.orig	Sat Oct 24 22:00:01 1998
+++ linux/kernel/acct.c	Sat Oct 24 22:00:17 1998
@@ -87,7 +87,7 @@
 	if (!acct_file || !acct_needcheck)
 		return;
 
-	sb = acct_file->f_dentry->f_inode->i_sb;
+	sb = acct_file->f_dentry->d_inode->i_sb;
 	if (!sb->s_op || !sb->s_op->statfs)
 		return;
 
--- linux/include/linux/soundcard.h.orig	Mon Oct 26 23:39:05 1998
+++ linux/include/linux/soundcard.h	Mon Oct 26 23:46:42 1998
@@ -771,6 +771,9 @@
 #define SOUND_MIXER_CAPS	0xfc
 #	define SOUND_CAP_EXCL_INPUT	0x00000001	/* Only one recording source at a time */
 #define SOUND_MIXER_STEREODEVS	0xfb	/* Mixer channels supporting stereo */
+#define SOUND_MIXER_OUTSRC	0xfa	/* Arg contains a bit for each input source to output */
+#define SOUND_MIXER_OUTMASK	0xf9	/* Arg contains a bit for each supported input source to output */
+
 
 /*	Device mask bits	*/
 


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

* LX164 Eide motherboard DMA?
  1998-11-07 19:54 ` Michal Jaegermann
@ 1998-11-11  0:50   ` savages
  1998-11-11  2:43     ` Greg Johnson
  1998-11-11  2:47     ` Wes Bauske
  0 siblings, 2 replies; 10+ messages in thread
From: savages @ 1998-11-11  0:50 UTC (permalink / raw)
  To: axp-list


I did hdparm on my Alpha 164LX EIDE hrad drives and was getting about
1.5M/sec.
 I did on a ASUS K6 EIDE and was getting about 5.5 and using a 2940UW SCSI
I was getting 5.5 and 9.1 depending on the the drive.  I wuols like to
increase the Alpha 164LX EIDE speed, which kernel optimization/switches
should I compile with to get better hard disk speed(DMA on,...)?  I am
using kernel 2.1.127 ( I had to comment out SMP=1 in the make file)

Shaun Savage


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

* Re: LX164 Eide motherboard DMA?
  1998-11-11  0:50   ` LX164 Eide motherboard DMA? savages
@ 1998-11-11  2:43     ` Greg Johnson
  1998-11-12 16:22       ` Adam C. Powell, IV
  1998-11-11  2:47     ` Wes Bauske
  1 sibling, 1 reply; 10+ messages in thread
From: Greg Johnson @ 1998-11-11  2:43 UTC (permalink / raw)
  To: axp-list

> 
> I did hdparm on my Alpha 164LX EIDE hrad drives and was getting about
> 1.5M/sec.
>  I did on a ASUS K6 EIDE and was getting about 5.5 and using a 2940UW SCSI
> I was getting 5.5 and 9.1 depending on the the drive.  I wuols like to
> increase the Alpha 164LX EIDE speed, which kernel optimization/switches
> should I compile with to get better hard disk speed(DMA on,...)?  I am
> using kernel 2.1.127 ( I had to comment out SMP=1 in the make file)
> 
> Shaun Savage
> 

I have seen this as well.  It WAS working around 2.1.120 or so.  There was a
patch to a Config.in file to enable the DMA option for the CMD646.  I got more
than 9MB/sec. with kernel 2.1.120.  Unfortunately, DMA is now broken.  Without
the config option for CMD646 I get 1.5MB/s.  Even with the CMD646 option on I
only get about 5.5MB/sec AND I get a fair amount of messages like: 

hda: dma_intr: bad DMA status
hda: dma_intr: status=0x50 { DriveReady SeekComplete }

You are the first other person I've seen report this, and I haven't had time to
look into it further.  I hope it gets fixed.  If anyone has any suggestions,
please let me know.

Greg

-- 
Greg Johnson                            gjohnson@bethe.clarku.edu
http://bethe.clarku.edu/~gjohnson              finger for PGP key


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

* Re: LX164 Eide motherboard DMA?
  1998-11-11  0:50   ` LX164 Eide motherboard DMA? savages
  1998-11-11  2:43     ` Greg Johnson
@ 1998-11-11  2:47     ` Wes Bauske
  1 sibling, 0 replies; 10+ messages in thread
From: Wes Bauske @ 1998-11-11  2:47 UTC (permalink / raw)
  To: axp-list

savages@rasta.hemp.org wrote:
> 
> I did hdparm on my Alpha 164LX EIDE hrad drives and was getting about
> 1.5M/sec.
>  I did on a ASUS K6 EIDE and was getting about 5.5 and using a 2940UW SCSI
> I was getting 5.5 and 9.1 depending on the the drive.  I wuols like to
> increase the Alpha 164LX EIDE speed, which kernel optimization/switches
> should I compile with to get better hard disk speed(DMA on,...)?  I am
> using kernel 2.1.127 ( I had to comment out SMP=1 in the make file)
> 

It was discussed previously but look around for flags
with CMD646. Those are what turn on enhanced support for
the LX board.


Wes


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

* Re: LX164 Eide motherboard DMA?
  1998-11-11  2:43     ` Greg Johnson
@ 1998-11-12 16:22       ` Adam C. Powell, IV
  0 siblings, 0 replies; 10+ messages in thread
From: Adam C. Powell, IV @ 1998-11-12 16:22 UTC (permalink / raw)
  To: axp-list

Greg Johnson wrote:
> 
> >
> > I did hdparm on my Alpha 164LX EIDE hrad drives and was getting about
> > 1.5M/sec.
> >  I did on a ASUS K6 EIDE and was getting about 5.5 and using a 2940UW SCSI
> > I was getting 5.5 and 9.1 depending on the the drive.  I wuols like to
> > increase the Alpha 164LX EIDE speed, which kernel optimization/switches
> > should I compile with to get better hard disk speed(DMA on,...)?  I am
> > using kernel 2.1.127 ( I had to comment out SMP=1 in the make file)

My directions from August 18 on how to configure a CMD646-capable
kernel:

1. (from Dave Gilbert) Go in and edit drivers/block/Config.in and just
under the line about NS87415 support add (one line, unnecessary for
2.1.126 and above):

  bool '     CMD646 chipset support (EXPERIMENTAL)'
CONFIG_BLK_DEV_CMD646

2. Re-configure the kernel, making sure to:
 - Answer 'y' to "Prompt for development and/or incomplete
code/drivers", which should be the first question.
 - Answer 'y' to "Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support".
 - Answer 'y' to "Generic PCI IDE chipset support", "Generic PCI
bus-master DMA support", and "Use DMA by default when available".
 - Finally, answer 'y' to "CMD646 chipset support".

> I have seen this as well.  It WAS working around 2.1.120 or so.  There was a
> patch to a Config.in file to enable the DMA option for the CMD646.  I got more
> than 9MB/sec. with kernel 2.1.120.  Unfortunately, DMA is now broken.  Without
> the config option for CMD646 I get 1.5MB/s.  Even with the CMD646 option on I
> only get about 5.5MB/sec AND I get a fair amount of messages like:
> 
> hda: dma_intr: bad DMA status
> hda: dma_intr: status=0x50 { DriveReady SeekComplete }
> 
> You are the first other person I've seen report this, and I haven't had time to
> look into it further.  I hope it gets fixed.  If anyone has any suggestions,
> please let me know.

I reported this on August 18 (an hour before posting the above
solution). The problem: I wasn't setting _all_ of the proper
configuration flags as above.

So you were getting faster transfers under 2.1.120 than .127?  I have
noticed no performance differences from .115 (when CMD646 first
appeared) to .125 (.126 and .127 didn't boot; haven't applied
yesterday's .127 patch by Nikita Schmidt).  I don't know how hdparm
works, but my little dd tests only work once per reboot because of
Linux's extensive caching.  I never got more than 3-4x speedup (but with
1/4 the CPU load), so I'm amazed by your 9 MB/s number for .120.

Please elaborate...

-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST)  |\ ||<  |
Center for Theoretical and Computational Materials Science  | \||_> |


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

end of thread, other threads:[~1998-11-12 16:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-07  7:25 Kernel .126 compile problem - acct.c y0000218
1998-11-07 19:54 ` Michal Jaegermann
1998-11-11  0:50   ` LX164 Eide motherboard DMA? savages
1998-11-11  2:43     ` Greg Johnson
1998-11-12 16:22       ` Adam C. Powell, IV
1998-11-11  2:47     ` Wes Bauske
1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
1998-11-09  9:33   ` dmcgown
1998-11-09 10:38     ` Matthew Geier
1998-11-10  7:42   ` Peter Rye

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