Picon
Gravatar

[KJ][PATCH] ROUND_UP macro cleanup in arch/parisc

ROUND_UP macro cleanup, use ALIGN where ever appropriate

Signed-off-by: Milind Arun Choudhary <milindchoudhary <at> gmail.com>

---
 hpux/fs.c             |    5 ++---
 kernel/sys_parisc32.c |    3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c
index 4204cd1..7ff5546 100644
--- a/arch/parisc/hpux/fs.c
+++ b/arch/parisc/hpux/fs.c
@@ -21,6 +21,7 @@
  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */

+#include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/sched.h>
 #include <linux/file.h>
@@ -70,7 +71,6 @@ struct getdents_callback {
 };

 #define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
-#define ROUND_UP(x) (((x)+sizeof(long)-1) & ~(sizeof(long)-1))

 static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
 		u64 ino, unsigned d_type)
@@ -78,7 +78,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
(Continue reading)

Grant Grundler | 2 Apr 07:37

FW diag is broken?

Hi,
gsyprf11.external.hp.com is having problems and the latest manifestation
is this very odd output from the console when trying to netboot the
PF_CHAW4350.frm in order to update firmware:

Main Menu: Enter command or menu > bo lan
Interact with IPL (Y, N, or Cancel)?> n

Booting... 
Network Station Address 00306e-2661a3
System IP Address 192.6.38.61
Server IP Address 192.6.38.60

Boot IO Dependent Code (IODC) revision 2

IPL error: bad LIF magic.

************* SYSTEM ALERT **************
SYSTEM NAME: rp2470c
DATE: 04/02/2007 TIME: 04:21:21
ALERT LEVEL: 6 = Boot possible, pending failure - action required

REASON FOR ALERT
SOURCE: 8 = I/O 
SOURCE DETAIL: 6 = disk   SOURCE ID: 0
PROBLEM DETAIL: 0 = no problem detail

LEDs:  RUN      ATTENTION     FAULT     REMOTE     POWER
       FLASH    FLASH         ON        ON         ON
LED State: Boot Failed.  Running non-OS code.  Non-critical error detected.
(Continue reading)

Thibaut VARENE | 2 Apr 13:24

Re: FW diag is broken?

(Sorry for top posting)

I think you have 2 different problems. I do recall trying to netboot
an HP firmware upgrade that yielded Bad Lif Magic as you experience,
so this is not surprising. I can scrub my IRC logs if you want to
figure out if that was precisely this particular image.

The GSP messages might be unrelated: a possible explanation is that
you've got some pending failure on the disk (dying disk, improperly
seated, maybe controller issue...) that the GSP is spitting at you
everytime the box is booted.

I would change both disks see if that fixes the problem. If not I'd
suspect a controller issue.

HTH

T-Bone

On 4/2/07, Grant Grundler <grundler <at> parisc-linux.org> wrote:

[snip]

--

-- 
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
Grant Grundler | 4 Apr 07:02

Re: [KJ][PATCH] ROUND_?UP macro cleanup in drivers/parisc

On Sat, Mar 31, 2007 at 04:27:46PM +0530, Milind Arun Choudhary wrote:
> Clean up ROUND_?UP, Use ALIGN where ever appropriate.
> 
> Signed-off-by: Milind Arun Choudhary <milindchoudhary <at> gmail.com>

Milind,
Looks good to me.

Signed-off-by: Grant Grundler <grundler <at> parisc-linux.org>

Kyle,
can you remind me how these patches should be pushed into your tree?
Or do you want to directly apply them yourself?

I have the impression git.parisc-linux.org tree is stale and I should
be using something different. I just don't know what.

thanks,
grant

> 
> ---
>  ccio-dma.c      |    8 ++++----
>  iommu-helpers.h |    4 ++--
>  sba_iommu.c     |    6 ++----
>  3 files changed, 8 insertions(+), 10 deletions(-)
> 
> 
> 
> diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
(Continue reading)

Grant Grundler | 4 Apr 07:05

Re: [KJ][PATCH] ROUND_UP macro cleanup in arch/parisc

On Sun, Apr 01, 2007 at 01:06:46PM +0530, Milind Arun Choudhary wrote:
> ROUND_UP macro cleanup, use ALIGN where ever appropriate
> 
> Signed-off-by: Milind Arun Choudhary <milindchoudhary <at> gmail.com>

Also looks good to me. Just one white space nit we can fixup by hand.

Signed-off-by: Grant Grundler <grundler <at> parisc-linux.org>

> 
> ---
>  hpux/fs.c             |    5 ++---
>  kernel/sys_parisc32.c |    3 +--
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
> 
> 
> diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c
> index 4204cd1..7ff5546 100644
> --- a/arch/parisc/hpux/fs.c
> +++ b/arch/parisc/hpux/fs.c
> @@ -21,6 +21,7 @@
>   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
>   */
>  
> +#include <linux/kernel.h>
>  #include <linux/mm.h>
>  #include <linux/sched.h>
>  #include <linux/file.h>
> @@ -70,7 +71,6 @@ struct getdents_callback {
(Continue reading)

John David Anglin | 7 Apr 22:42
Picon

parisc tree?

) can you remind me how these patches should be pushed into your tree?
> Or do you want to directly apply them yourself?
> 
> I have the impression git.parisc-linux.org tree is stale and I should
> be using something different. I just don't know what.

I'd thought that patches once approved would somehow get pushed upstream.

Where parisc needs to maintain its own changes, I would be happy
to just be able to download a diff against the upstream tree.  I believe
that Kyle posted a patch set sometime back.  Ideally the upstream tree
would be usable without patches.

It would be nice if the process could be documented on the web site.

PS: There is a problem with web access to the parisc-linux archive.

Dave
--

-- 
J. David Anglin                                  dave.anglin <at> nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
Matt Taggart | 8 Apr 06:08
Favicon

Re: parisc tree?


"John David Anglin" writes...

> PS: There is a problem with web access to the parisc-linux archive.

The HP site where it is hosted had a scheduled cooling outage this weekend. It 
started at 5pm MDT Friday and should be done a couple hours from now (10pm MDT 
Saturday), but the machine may not get turned back on until Monday morning.

--

-- 
Matt Taggart
matt <at> lackof.org
Paul (NCC/CS). | 12 Apr 05:19
Picon
Picon
Favicon

almost booted a K420...


Hello,

thought i'd have another go at my HP sitting in the corner,
with the new CD debian-40r0-hppa-netinst.iso .

It seemed to boot the kernel but eventually I got:
>>>
Freeing unused kernel memory: 328k freed

FLT  0000Kernel panic - not syncing: Kernel Fault
>>>

It's a HP9000/869 K420 with PA7200 cpu's.

The debian info seems to suggest this should boot
with a serial console.

Can anyone offer me a direction in which to go to
from here?

the boot output is attached,

thanks,
chs,
Paul.

--

____________________________________________
(Continue reading)

Andrew Gaylard | 12 Apr 08:41
Picon

Re: almost booted a K420...

On 4/12/07, Paul (NCC/CS). <pts <at> bom.gov.au> wrote:


thought i'd have another go at my HP sitting in the corner,
with the new CD debian-40r0-hppa-netinst.iso .

It seemed to boot the kernel but eventually I got:
>>>
Freeing unused kernel memory: 328k freed

FLT  0000Kernel panic - not syncing: Kernel Fault
>>>

It's a HP9000/869 K420 with PA7200 cpu's.

The debian info seems to suggest this should boot
with a serial console.

Can anyone offer me a direction in which to go to
from here?

Hi Paul,

I'm using a K370 with great success. I'm not sure whether
the Debian install CD will work on a multi-CPU box.  You can
try unplugging all but the first CPU and see if that makes a
difference.  Also, you may have to add "console=ttyB0" or
somesuch to PALO's boot line -- the K classes (and perhaps
a few other boxes) have very different serial hardware.  Oh
wait, I see you have it already.

Sorry this  is a bit vague; I run Gentoo and it was very simple
to boot the install CD.  So if you hit a dead-end, you might
give it a try.

Good luck,
Andrew
_______________________________________________
parisc-linux mailing list
parisc-linux <at> lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
ram | 12 Apr 12:50
Picon

Re: almost booted a K420...


Hi Paul,

I'm using a K370 with great success. I'm not sure whether
the Debian install CD will work on a multi-CPU box.  You can
try unplugging all but the first CPU and see if that makes a
difference.  Also, you may have to add "console=ttyB0" or
somesuch to PALO's boot line -- the K classes (and perhaps
a few other boxes) have very different serial hardware.  Oh
wait, I see you have it already.

Sorry this  is a bit vague; I run Gentoo and it was very simple
to boot the install CD.  So if you hit a dead-end, you might
give it a try.
 
Hi
 
some time back i posted the problem, but  some one responded, but i did not solve the problem
 
after i saw the new version released, i want to try, but i see the same problem
 
Kernel Panic- not syncing:drivers/parisc/ccio-dma.c: ccio_alloc_range() I/O MMU is out of mapping resources
 
iam using  webconsole and installing
 
any suggestion make my system working with Debian 4.X
 
HP R Class 9000, 1GB RAM, Built in CD ROM
 
thanks
ram 
_______________________________________________
parisc-linux mailing list
parisc-linux <at> lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

Gmane