Linux PARISC architecture development
 help / color / mirror / Atom feed
* Re: [parisc-linux] Re: backport sba change to ccio
       [not found]         ` <4227575A.4060901@tiscali.be>
@ 2005-03-04  5:03           ` Grant Grundler
       [not found]             ` <42075CE80000B426@mail-6-bnl.tiscali.it>
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Grundler @ 2005-03-04  5:03 UTC (permalink / raw)
  To: Joel Soete; +Cc: parisc-linux

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

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

* Re: [parisc-linux] Re: backport sba change to ccio
       [not found]                 ` <42298B2A.702@tiscali.be>
@ 2005-03-06 23:52                   ` Grant Grundler
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Grundler @ 2005-03-06 23:52 UTC (permalink / raw)
  To: Joel Soete; +Cc: parisc-linux

On Sat, Mar 05, 2005 at 10:34:18AM +0000, Joel Soete wrote:
> The snow let me play a bit and the test pass as well as previously as far 
> as my c110 is a 32bit and so not affected by my mistake.
> btw what's up of __LP64__ and CONFIG_64BIT ?

Use CONFIG_64BIT. The cc dependencies will catch when if one wants
to re-use the same tree for different builds.

> I just attached the last udiff file to allow others to test it eventually 
> on 64bit model :-)

shouldn't matter if a system has 32 or 64bit kernel for these changes.
I've committed the "diff4" patch.

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

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

end of thread, other threads:[~2005-03-06 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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           ` [parisc-linux] Re: backport sba change to ccio Grant Grundler
     [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                   ` Grant Grundler

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