Valeriy E. Ushakov | 6 Mar 2009 23:39
Picon

Re: atabus <at> wdc can't attach

[Cc'ing Matthias who made the wdc_pcmcia_enable change in question]

On Thu, Feb 26, 2009 at 18:15:20 +0900, KIYOHARA Takashi wrote:

> Hi! all,
> 
> My hpcsh machine(PERSONA HPW-50PA) can't attach atabus <at> wdc at current
> (20090221).  Maybe since this change.
> 
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pcmcia/wdc_pcmcia.c.diff?r1=1.112&r2=1.113&f=h
> 
> We will have to delay attaching until kthread runs.

> Index: hd64461pcmcia.c
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c,v
> retrieving revision 1.43
> diff -u -r1.43 hd64461pcmcia.c
> --- hd64461pcmcia.c	28 Apr 2008 20:23:22 -0000	1.43
> +++ hd64461pcmcia.c	23 Feb 2009 17:49:39 -0000
>  <at>  <at>  -269,14 +269,6  <at>  <at> 
>  			       &sc->sc_event_thread,
>  			       "%s", device_xname(self));
>  	KASSERT(error == 0);
> -
> -#if !defined(HD64461PCMCIA_REORDER_ATTACH)
> -	hd64461pcmcia_attach_channel(sc, CHANNEL_0);
> -	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
> -#else
> -	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
(Continue reading)

Valeriy E. Ushakov | 7 Mar 2009 00:23
Picon

Re: kern/40531 (5.0_BETA/i386 doesn't power off on Dell Latitude X1 with CF card plugged in)

On Fri, Mar 06, 2009 at 23:04:32 +0000, uwe <at> NetBSD.org wrote:

> State-Changed-From-To: feedback->open
> State-Changed-By: uwe <at> NetBSD.org
> State-Changed-Why:
> The change introduces regression for platforms with their primary disk
> on wdc <at> pcmcia (at least all hpc* platforms, I guess).  See
> http://mail-index.netbsd.org/port-hpcsh/2009/02/26/msg000834.html

The following patch makes my hpcsh properly attach CF at boot time.
Please, review and test.

--- wdc_pcmcia.c	21 Feb 2009 03:29:25 +0300	1.113
+++ wdc_pcmcia.c	07 Mar 2009 02:16:09 +0300	
 <at>  <at>  -86,6 +86,7  <at>  <at> 
 static int wdc_pcmcia_validate_config_io(struct pcmcia_config_entry *);
 static int wdc_pcmcia_validate_config_memory(struct pcmcia_config_entry *);
 static void wdc_pcmcia_attach(device_t, device_t, void *);
+static void wdc_pcmcia_interrupts(device_t);
 static int wdc_pcmcia_detach(device_t, int);

 CFATTACH_DECL_NEW(wdc_pcmcia, sizeof(struct wdc_pcmcia_softc),
 <at>  <at>  -302,15 +303,28  <at>  <at> 
 	sc->ata_channel.ch_ndrive = wdcp ? wdcp->wdc_ndrive : 2;
 	wdc_init_shadow_regs(&sc->ata_channel);

-	error = wdc_pcmcia_enable(self, 1);
-	if (error)
-		goto fail;
-
(Continue reading)

John Klos | 14 Mar 2009 20:56

Re: kern/40531 (5.0_BETA/i386 doesn't power off on Dell Latitude X1 with CF card plugged in)

> The following patch makes my hpcsh properly attach CF at boot time.
> Please, review and test.
>
> --- wdc_pcmcia.c	21 Feb 2009 03:29:25 +0300	1.113
> +++ wdc_pcmcia.c	07 Mar 2009 02:16:09 +0300

Tested and happy with wdc_pcmcia.c in netbsd-5 on hpcsh (Jornada 690).

Thanks,
John Klos

John Klos | 24 Mar 2009 08:21
Favicon

Self hosting works

Hi,

Just a FYI: self hosting on a Jornada 690 works, albeit a little slowly:

make distribution started at:  Tue Mar 17 05:36:40 UTC 2009
make distribution finished at: Tue Mar 24 07:09:28 UTC 2009

It's just in time to start again with 5.0_RC3!

John Klos


Gmane