Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: Joel Soete <soete.joel@tiscali.be>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Re: backport sba change to ccio
Date: Thu, 3 Mar 2005 22:03:24 -0700	[thread overview]
Message-ID: <20050304050324.GA30252@colo.lackof.org> (raw)
In-Reply-To: <4227575A.4060901@tiscali.be>

On Thu, Mar 03, 2005 at 06:28:42PM +0000, Joel Soete wrote:
> >replace ioc_count in just that one context with
> >	count_parisc_drivers(ccio_driver)
...
> -/* Ratio of Host MEM to IOV Space size */
> -static unsigned long ccio_mem_ratio = 4;
>  static struct ioc *ioc_list;
> -static int ioc_count;
> +static int ioc_count = 0;
> +static int global_ioc_cnt = 0;

You won't need global_ioc_cnt.
Just call count_parisc_drivers() every time.
It's walking a short list and hopefully gives back
the same result everytime.

> 
>  /**************************************************************
>  *
> @@ -559,7 +558,7 @@
>  ccio_io_pdir_entry(u64 *pdir_ptr, space_t sid, unsigned long vba,
>  		   unsigned long hints)
>  {
> -	register unsigned long pa = (volatile unsigned long) vba;
> +	register unsigned long pa;
>  	register unsigned long ci; /* coherent index */
> 
>  	/* We currently only support kernel addresses */
> @@ -1269,17 +1268,16 @@
>  	** Hot-Plug/Removal of PCI cards. (aka PCI OLARD).
>  	*/
> 
> +	iova_space_size = (u32) (num_physpages / global_ioc_cnt);

call count_parisc_drivers() here instead of global_ioc_cnt.

> -/* We *can't* support JAVA (T600). Venture there at your own risk. */
> -static struct parisc_device_id ccio_tbl[] = {
> -	{ HPHW_IOA, HVERSION_REV_ANY_ID, U2_IOA_RUNWAY, 0xb }, /* U2 */
> -	{ HPHW_IOA, HVERSION_REV_ANY_ID, UTURN_IOA_RUNWAY, 0xb }, /* UTurn */
> -	{ 0, }
> -};

Yeah, you'll have to move this (and related bits) further up.

> that boot fine and no more crash after stress test :-)
> (I hope the same results with previous disk failing ;-)

Very good. At least we are on the right track.

thanks,
grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

       reply	other threads:[~2005-03-04  5:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4208898700009474@mail-4-bnl.tiscali.it>
     [not found] ` <42271F19.6010406@tiscali.be>
     [not found]   ` <20050303154531.GA18286@colo.lackof.org>
     [not found]     ` <20050303155332.GG28741@parcelfarce.linux.theplanet.co.uk>
     [not found]       ` <20050303170405.GC18286@colo.lackof.org>
     [not found]         ` <4227575A.4060901@tiscali.be>
2005-03-04  5:03           ` Grant Grundler [this message]
     [not found]             ` <42075CE80000B426@mail-6-bnl.tiscali.it>
     [not found]               ` <20050304163610.GA7363@colo.lackof.org>
     [not found]                 ` <42298B2A.702@tiscali.be>
2005-03-06 23:52                   ` [parisc-linux] Re: backport sba change to ccio Grant Grundler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050304050324.GA30252@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=soete.joel@tiscali.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox