Re: 2.6.13-mm3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 12, 2005 at 05:49:45PM -0400, Sonny Rao wrote:
> On Mon, Sep 12, 2005 at 11:06:32PM +0200, Jiri Slaby wrote:
> > > I'm getting some build errors on ppc64 in drivers/char/hvc_console.c
> > > 
> > > 
> > >   CC      drivers/char/hvc_console.o
> > > drivers/char/hvc_console.c: In function `hvc_poll':
> > > drivers/char/hvc_console.c:600: error: `count' undeclared (first use in this
> > > function)
> > > drivers/char/hvc_console.c:600: error: (Each undeclared identifier is reported
> > > only once
> > > drivers/char/hvc_console.c:600: error: for each function it appears in.)
> > > drivers/char/hvc_console.c:636: error: structure has no member named `flip'
> > > make[1]: *** [drivers/char/hvc_console.o] Error 1
> > > make: *** [_module_drivers/char] Error 2
> > > 
> > > The count undeclared one was easy to fix but I coldn't fix the filp
> > > structure element in 2-3 minutes so I'm punting.
> > > 
> > > Anyone have a patch to fix this driver?
> > 
> > Try this:
> > ---
> 
> Hmm, that didn't build.  I made my own version based on yours,
> unfortunately I don't know if it boots because all my network just went
> down.  Hopefully, someone will confirm that the fix is correct.
> 
> 
> --- linux-2.6.13-mm3/drivers/char/hvc_console.c~orig	2005-09-12 16:37:14.434077464 -0500
> +++ linux-2.6.13-mm3/drivers/char/hvc_console.c	2005-09-12 16:37:25.466998360 -0500
> @@ -597,7 +597,7 @@ static int hvc_poll(struct hvc_struct *h
>  
>  	/* Read data if any */
>  	for (;;) {
> -		count = tty_buffer_request_room(tty, N_INBUF);
> +		int count = tty_buffer_request_room(tty, N_INBUF);
>  
>  		/* If flip is full, just reschedule a later read */
>  		if (count == 0) {
> @@ -633,7 +633,7 @@ static int hvc_poll(struct hvc_struct *h
>  			tty_insert_flip_char(tty, buf[i], 0);
>  		}
>  
> -		if (tty->flip.count)
> +		if (tty->buf.tail->used)
>  			tty_schedule_flip(tty);
>  
>  		/*

Ok so that at least started to boot (i.e. I got output to the virtual
console), now my SCSI controller won't come up:  

ipr: IBM Power RAID SCSI Device Driver version: 2.0.14 (May 2, 2005)
ipr 0001:c0:01.0: Found IOA with IRQ: 337
PCI: Unable to reserve mem region #3:8000000@400b8000000 for device
0001:c0:01.0
ipr 0001:c0:01.0: Couldn't map memory range of registers
Trying to free nonexistent resource <400b8000000-400bfffffff>


I've seen it get hang right there or try to mount root fs and then
fail.  Not sure if this is a PCI issue or an IPR issue, Brian?

(Adding brking to cc)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux