Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 2009 14:33:49 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Rafal Jaworowski <raj@semihalf.com>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r196945 - projects/ppc64/sys/boot/common
Message-ID:  <4AA5601D.9040004@freebsd.org>
In-Reply-To: <E363990B-0567-4047-A461-12CB52DAD0EE@semihalf.com>
References:  <200909071901.n87J1Yn7023803@svn.freebsd.org> <E363990B-0567-4047-A461-12CB52DAD0EE@semihalf.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rafal Jaworowski wrote:
>
> On 2009-09-07, at 21:01, Nathan Whitehorn wrote:
>
>> Author: nwhitehorn
>> Date: Mon Sep  7 19:01:34 2009
>> New Revision: 196945
>> URL: http://svn.freebsd.org/changeset/base/196945
>>
>> Log:
>>  r60506 broke netbooting on PowerPC/OFW completely. We need a way of
>>  reverting this in a way that doesn't break Book-E.
>>
>> Modified:
>>  projects/ppc64/sys/boot/common/dev_net.c
>>
>> Modified: projects/ppc64/sys/boot/common/dev_net.c
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> ======================================================================
>> --- projects/ppc64/sys/boot/common/dev_net.c    Mon Sep  7 18:54:55 
>> 2009    (r196944)
>> +++ projects/ppc64/sys/boot/common/dev_net.c    Mon Sep  7 19:01:34 
>> 2009    (r196945)
>> @@ -145,7 +145,7 @@ net_open(struct open_file *f, ...)
>>                 return (error);
>>             }
>>         }
>> -#if defined(__sparc64__)
>> +#if defined(__sparc64__) || defined(__powerpc__)
>>         netdev_opens++;
>> #endif
>>     }
>
> In general it's not a Book-E thing at all. It's clearly a bug not to 
> update the open counter (with the above change the loader will not 
> reach netif_close(), which is bad); I know some firmware versions have 
> had problems here, that lead to unresponsiveness or so, but it 
> shouldn't really depend on powerpc/sparc64 define: it's rather a 
> broken firmware/platform thing and should be handled as a platform 
> workaround (build option?), not something arch-related.
>
> Rafal
>
True. Basically, we should never try to reopen the net device on Open 
Firmware platforms. Maybe a new define so that the common loader code 
can check for OF? This firmware bug is *very* prevalent on Apple hardware.
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AA5601D.9040004>