Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: man(1) (Bob Willcox)
2. RE: ATA driver races with interrupts (Daniel Eriksson)
3. Re: HEADS UP: tar -l is now (intentionally) broken.
(Fernan Aguero)
4. radeon.ko doesn't load on recent current (Toxa)
5. Re: strange sendmail behavior (was: Re: Please test
/etc/rc.d/sendmail patch) (Gregory Neil Shapiro)
6. Re: radeon.ko doesn't load on recent current
(Rossam Souza da Silva)
7. Re: man(1) (Ruslan Ermilov)
8. Re: man(1) (Bob Willcox)
9. problems with altq (Divacky Roman)
10. Re: problems with altq (Divacky Roman)
11. Re: 5.3-RELEASE TODO (Scott Long)
12. Re: problems with altq (Dan Cojocar)
13. Re: No new snapshot of 5-CURRENT anymore? (Rostislav Krasny)
14. Re: ATA driver races with interrupts (S?ren Schmidt)
15. Re: man(1) (Rahul Siddharthan)
16. Re: No new snapshot of 5-CURRENT anymore? (Will Andrews)
17. Re: man(1) (Steve Kargl)
18. Re: No new snapshot of 5-CURRENT anymore? (Rostislav Krasny)
19. RE: ATA driver races with interrupts (Daniel Eriksson)
20. Re: ATA driver races with interrupts (S?ren Schmidt)
21. Re: man(1) (Ruslan Ermilov)
22. Re: No new snapshot of 5-CURRENT anymore? (Rostislav Krasny)
23. Re: man(1) (Ruslan Ermilov)
24. Unable to build recent kernels (Robin P. Blanchard)
25. Re: Unable to build recent kernels (Scott Long)
26. Re: Unable to build recent kernels (Maxim Konovalov)
27. Re: 5.3-RELEASE TODO (Kenneth Culver)
28. Re: radeon.ko doesn't load on recent current (Franz Klammer)
29. USB drivers (Chris)
30. Re: 5.3-RELEASE TODO (Ruslan Ermilov)
31. Re: GEOM is too verbose (John-Mark Gurney)
32. [current tinderbox] failure on powerpc/powerpc (FreeBSD Tinderbox)
33. Re: radeon.ko doesn't load on recent current (Maxime Henrion)
34. Re: Unable to build recent kernels (Dennis Berger)
35. Re: radeon.ko doesn't load on recent current (Franz Klammer)
----------------------------------------------------------------------
Message: 1
Date: Wed, 4 Aug 2004 07:15:25 -0500
From: Bob Willcox <bob@immure.com>
Subject: Re: man(1)
To: "Simon L. Nielsen" <simon@freebsd.org>
Cc: Rahul Siddharthan <rsidd@online.fr>
Message-ID: <20040804121525.GA2273@luke.immure.com>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 01:53:44PM +0200, Simon L. Nielsen wrote:
> On 2004.08.04 10:35:32 +0300, Ruslan Ermilov wrote:
> > On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> >
> > > Well, it can be done without a patch... I use the following tcsh alias
> > > so I can just write 'manf foo.1' :
> > >
> > > groff -Wall -Tascii -te -mandoc !^ | less
> > >
> > You need to use ``-mtty-char -man'' to get the correct output. (-man
> > or -mandoc doesn't matter.)
>
> OK, I will update my alias :).
>
> So the most correct command would be:
>
> groff -Wall -Tascii -te -mtty-char -man
What's wrong with:
nroff -man
?
--
Bob Willcox Serocki's Stricture:
bob@immure.com Marriage is always a bachelor's last option.
Austin, TX
------------------------------
Message: 2
Date: Wed, 4 Aug 2004 14:20:24 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: "'Ville-Pertti Keinonen'" <will+freebsd-current@will.iki.fi>
Cc: freebsd-current@freebsd.org
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAN7kcl8le1EWCe5i4TwG85QEAAAAA@telia.com>
Content-Type: text/plain; charset="iso-8859-1"
Ville-Pertti Keinonen wrote:
> The attached patch should enable serialization for the
> controller, which is the only completely reliable fix
> (without chipset documentation) according to S�ren.
> Obviously it reduces performance since it doesn't
> allow both channels to operate simultaneously.
After applying the patch to sources cvsuped 2004.08.04.01.00.00, everything
seems to be working correctly. I've run a few stress-tests successfully, and
I also started smartd (/usr/ports/sysutils/smartmontools/) which previously
always managed to lock up one of the SATA channels.
I am going to run some more stress-tests later today, but it looks pretty
promising.
/Daniel Eriksson
------------------------------
Message: 3
Date: Tue, 3 Aug 2004 12:29:27 -0300
From: Fernan Aguero <fernan@iib.unsam.edu.ar>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: Adam Weinberger <adamw@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803152927.GA57655@iib.unsam.edu.ar>
Content-Type: text/plain; charset=us-ascii
+----[ Adam Weinberger <adamw@freebsd.org> (03.Aug.2004 12:01):
|
| >> (08.03.2004 @ 0709 PST): Mike Bristow said, in 1.4K: <<
| > Means FreeBSD gets a POSIX tar; -STABLE users see the warning for ages;
| > -CURRENT users see the warning for a while. Everyone has ice-cream.
| >> end of "Re: HEADS UP: tar -l is now (intentionally) broken." from Mike Bristow <<
|
| I do not digest ice cream well. I demand that a suitable ice cream
| replacement be made available by default. Ice cream should be served
| only if it receives --with-lactose.
|
| Furthermore, which flavour and colour of ice cream are we talking here?
A bikeshed in an ice-cream disguise! It's amazing how things transmute ;)
| # Adam
|
| What. I just woke up.
|
+----]
Have a nice day!
Fernan
--
Fernan Aguero - fernan at iib.unsam.edu.ar
Phone: +54 11 4580-7255/7 ext 310, Fax: +54 11 4752-9639
Check http://genoma.unsam.edu.ar/~fernan for more info.
------------------------------
Message: 4
Date: Tue, 3 Aug 2004 22:42:18 +0400
From: Toxa <postfix@senmail.ru>
Subject: radeon.ko doesn't load on recent current
To: current@freebsd.org
Message-ID: <20040803184218.GA16698@laptoxa.toxa.lan>
Content-Type: text/plain; charset=koi8-r
today kernel biuld, when trying to load radeon.ko for my ATI
Mobility M6:
# kldload radeon.ko:
link_elf: symbol mem_range_attr_set undefined
kldload: can't load radeon.ko: No such file or directory
radeon.ko exists but cannot be loaded. Any suggestion?
Thanks
--
Anton A. Karpov
------------------------------
Message: 5
Date: Tue, 3 Aug 2004 09:48:20 -0700
From: Gregory Neil Shapiro <gshapiro@gshapiro.net>
Subject: Re: strange sendmail behavior (was: Re: Please test
/etc/rc.d/sendmail patch)
To: Alexander Leidinger <Alexander@Leidinger.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803164820.GU32424@horsey.gshapiro.net>
Content-Type: text/plain; charset=us-ascii
> �$��h�(@trings /usr/libexec/sendmail/sendmail |grep 8.9.3
>
> �$���(@trings /usr/libexec/sendmail/sendmail | grep 8.12.11
> 8.12.11
Make sure these commands are all symlinks to mailwrapper:
/usr/bin/newaliases
/usr/bin/mailq
/usr/sbin/hoststat
/usr/sbin/purgestat
Also, look to see if there are other sendmail, newaliases,
mailq, hoststat, or purgestat binaries in your path (including
/usr/local/bin, /usr/local/sbin, and /usr/local/libexec).
------------------------------
Message: 6
Date: Wed, 4 Aug 2004 09:28:48 -0300 (BRT)
From: Rossam Souza da Silva <rss@cesar.org.br>
Subject: Re: radeon.ko doesn't load on recent current
To: Toxa <postfix@senmail.ru>
Cc: current@freebsd.org
Message-ID: <20040804092719.E838@DaeMoN.InTraNeT.CESAR.OrG.BR>
Content-Type: text/plain; charset="iso-8859-1"
I have the same problem with VMWare3 kernel modules...
no one is loaded, with error messages about symbols.
Rossam.
------------------------------------------------------
"Das Leben auf Erden ist ein gemeiner Krieg.
Wir spielen, wir k�mpfen, wir setzen alles auf Sieg."
Megaherz
------------------------------------------------------
On Tue, 3 Aug 2004, Toxa wrote:
> today kernel biuld, when trying to load radeon.ko for my ATI
> Mobility M6:
>
> # kldload radeon.ko:
>
> link_elf: symbol mem_range_attr_set undefined
> kldload: can't load radeon.ko: No such file or directory
>
> radeon.ko exists but cannot be loaded. Any suggestion?
> Thanks
>
> --
> Anton A. Karpov
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
------------------------------
Message: 7
Date: Wed, 4 Aug 2004 15:47:56 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Re: man(1)
To: Bob Willcox <bob@immure.com>
Cc: Rahul Siddharthan <rsidd@online.fr>
Message-ID: <20040804124756.GA25436@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"
On Wed, Aug 04, 2004 at 07:15:25AM -0500, Bob Willcox wrote:
> On Wed, Aug 04, 2004 at 01:53:44PM +0200, Simon L. Nielsen wrote:
> > On 2004.08.04 10:35:32 +0300, Ruslan Ermilov wrote:
> > > On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> > >
> > > > Well, it can be done without a patch... I use the following tcsh alias
> > > > so I can just write 'manf foo.1' :
> > > >
> > > > groff -Wall -Tascii -te -mandoc !^ | less
> > > >
> > > You need to use ``-mtty-char -man'' to get the correct output. (-man
> > > or -mandoc doesn't matter.)
> >
> > OK, I will update my alias :).
> >
> > So the most correct command would be:
> >
> > groff -Wall -Tascii -te -mtty-char -man
>
> What's wrong with:
>
> nroff -man
>
In most cases it will do, but nroff(1) doesn't provide an option to tell
groff(1) to preprocess with eqn(1), and some manpages require preprocessing
with it.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/da95b4d2/attachment-0001.bin
------------------------------
Message: 8
Date: Wed, 4 Aug 2004 07:53:40 -0500
From: Bob Willcox <bob@immure.com>
Subject: Re: man(1)
To: Ruslan Ermilov <ru@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040804125340.GA2718@luke.immure.com>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 03:47:56PM +0300, Ruslan Ermilov wrote:
> On Wed, Aug 04, 2004 at 07:15:25AM -0500, Bob Willcox wrote:
> > On Wed, Aug 04, 2004 at 01:53:44PM +0200, Simon L. Nielsen wrote:
> > > So the most correct command would be:
> > >
> > > groff -Wall -Tascii -te -mtty-char -man
> >
> > What's wrong with:
> >
> > nroff -man
> >
> In most cases it will do, but nroff(1) doesn't provide an option to tell
> groff(1) to preprocess with eqn(1), and some manpages require preprocessing
> with it.
Ah, I see. Thanks.
--
Bob Willcox Serocki's Stricture:
bob@immure.com Marriage is always a bachelor's last option.
Austin, TX
------------------------------
Message: 9
Date: Wed, 4 Aug 2004 14:56:40 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: problems with altq
To: current@freebsd.org
Message-ID: <20040804125640.GA78633@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii
I am getting this
pfctl: DIOCADDALTQ: Cannot allocate memory
if I try to enable altq on pf configured as
altq on $ext_if bandwidth 256Kb cbq queue { ssh_i web other}
queue ssh_i bandwidth 25�bq(borrow red)
queue web bandwidth 25�bq(borrow red)
queue other bandwidth 50�bq(borrow default red)
without that "red" it works ok...
roman
------------------------------
Message: 10
Date: Wed, 4 Aug 2004 15:05:30 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: Re: problems with altq
To: current@freebsd.org
Message-ID: <20040804130530.GA78973@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii
struct pf_altq *altq, *a;
if (pa->ticket != ticket_altqs_inactive) {
error = EBUSY;
break;
}
altq = pool_get(&pf_altq_pl, PR_NOWAIT);
^^^^^^^^^^
shouldnt this be initalized to NULL? at least its not nice to have it
uninitalized...
On Wed, Aug 04, 2004 at 02:56:40PM +0200, Divacky Roman wrote:
> I am getting this
> pfctl: DIOCADDALTQ: Cannot allocate memory
> if I try to enable altq on pf configured as
>
> altq on $ext_if bandwidth 256Kb cbq queue { ssh_i web other}
> queue ssh_i bandwidth 25�bq(borrow red)
> queue web bandwidth 25�bq(borrow red)
> queue other bandwidth 50�bq(borrow default red)
>
>
> without that "red" it works ok...
>
>
> roman
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
------------------------------
Message: 11
Date: Wed, 04 Aug 2004 07:08:23 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: 5.3-RELEASE TODO
To: "Steve O'Hara-Smith" <steve@sohara.org>
Cc: re@freebsd.org
Message-ID: <4110DFC7.8000200@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Steve O'Hara-Smith wrote:
> On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
> Scott Long <scottl@FreeBSD.org> wrote:
>
>
>> | Source upgrade | Not done | David Schultz | problematic. The |
>> | incompatibility | | | 5.3 world sources |
>> | | | | must be buildable |
>> | | | | and installable |
>> | | | | from a 5.2.1 |
>> | | | | system. |
>
>
> Should they not also be buildable and installable from a 4.10 or 4.11 system
> in order to preserve the -stable upgrade route ?
>
This would be good, yes, but there are so many other gotchas with that
upgrade path that I don't consider it a show-stopper for it not to work.
Once the 5.2 -> 5.3 path is fixed, then we can focus on 4.x -> 5.3 path.
Scott
------------------------------
Message: 12
Date: Wed, 4 Aug 2004 16:15:55 +0300
From: Dan Cojocar <dan.cojocar@gmail.com>
Subject: Re: problems with altq
To: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc: freebsd-current@freebsd.org
Message-ID: <b37cb097040804061562cdc751@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
On Wed, 4 Aug 2004 14:56:40 +0200, Divacky Roman
<xdivac02@stud.fit.vutbr.cz> wrote:
> I am getting this
> pfctl: DIOCADDALTQ: Cannot allocate memory
> if I try to enable altq on pf configured as
>
> altq on $ext_if bandwidth 256Kb cbq queue { ssh_i web other}
> queue ssh_i bandwidth 25�bq(borrow red)
> queue web bandwidth 25�bq(borrow red)
> queue other bandwidth 50�bq(borrow default red)
>
> without that "red" it works ok...
Hi,
I'm using red too, and i don't have that problem.
I tested your config and it's working here:
5.2-CURRENT FreeBSD 5.2-CURRENT #4: Tue Aug 3 12:16:27 EEST 2004
What driver are you using?
Dan
------------------------------
Message: 13
Date: Wed, 4 Aug 2004 06:24:04 -0700 (PDT)
From: Rostislav Krasny <rosti_bsd@yahoo.com>
Subject: Re: No new snapshot of 5-CURRENT anymore?
To: Will Andrews <will@csociety.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804132404.81709.qmail@web14823.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
--- Will Andrews <will@csociety.org> wrote:
> On Mon, Aug 02, 2004 at 06:37:09AM -0700, Rostislav Krasny wrote:
> > Could you please tell more about how are they different from the JP
> > snapshots, except the building time? IMHO the
> > ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/README.TXT should
> > mention your FTP server too. Or, are your snapshts not official?
>
> *shrug* Not many people use the site yet & no one has approached
> me about making them "official". The scripts are based on the JP
> ones but have some modifications to improve them. I should point
> out that although they build at a different time, the code (for
> each day) is the same, since they're checked out from the
> repository as of 00:00 on the day they are run.
I just tried to install 5.2-CURRENT-20040804-SESNAP snapshot using FTP
installation with floppies, but I failed. First of all, the sysinstall
have only one FTP URL of snapshots - the JP one. Secondly, it isn't
obvious what manual URL should be used. So I've tried following URLs:
ftp://snapshots.se.freebsd.org
ftp://snapshots.se.freebsd.org/snapshots
ftp://snapshots.se.freebsd.org/snapshots/i386
ftp://snapshots.se.freebsd.org/snapshots/i386/5.2-CURRENT-20040804-SESNAP
No one did work and I always got the same error message about that
sysinstall can't find the '5.2-CURRENT' distribution on the FTP server.
Should it look for the '5.2-CURRENT-20040804-SESNAP' distribution
instead? It looks like a build bug. When I looked at a sniffer dump I
saw that sysinstall tried to find the '5.2-CURRENT' directory, not the
'5.2-CURRENT-20040804-SESNAP' one. Can you fix it?
IMHO adding the exact FTP URL into the sysinstall as the second
snapshots source would be a good thing. Other alternative is writing on
your site an instruction about what should be entered as the manual URL
during the FTP installation. According to the sniffer dump it is
probably the ftp://snapshots.se.freebsd.org/snapshots/i386 URL for i386.
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
------------------------------
Message: 14
Date: Wed, 04 Aug 2004 15:33:34 +0200
From: S?ren Schmidt<sos@DeepCore.dk>
Subject: Re: ATA driver races with interrupts
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <4110E5AE.7050602@DeepCore.dk>
Content-Type: text/plain; charset="iso-8859-1"
Daniel Eriksson wrote:
> Ville-Pertti Keinonen wrote:
>
>
>>The attached patch should enable serialization for the
>>controller, which is the only completely reliable fix
>>(without chipset documentation) according to S�ren.
>>Obviously it reduces performance since it doesn't
>>allow both channels to operate simultaneously.
>
>
> After applying the patch to sources cvsuped 2004.08.04.01.00.00, everything
> seems to be working correctly. I've run a few stress-tests successfully, and
> I also started smartd (/usr/ports/sysutils/smartmontools/) which previously
> always managed to lock up one of the SATA channels.
>
> I am going to run some more stress-tests later today, but it looks pretty
> promising.
OK, but that seriously hurts performance which I'd like to avoid if
possible. Could you try the attached patch and let me know how that
works out ? I does solve the problem here in a simulated setup, but as
we all know simulated is just that :)
--
-S�ren
-------------- next part --------------
Index: ata-all.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v
retrieving revision 1.217
diff -u -r1.217 ata-all.c
--- ata-all.c 1 Aug 2004 12:31:38 -0000 1.217
+++ ata-all.c 3 Aug 2004 10:28:47 -0000
@@ -231,7 +231,6 @@
int
ata_reinit(struct ata_channel *ch)
{
- struct ata_request *request = ch->running;
int devices, misdev, newdev;
if (!ch->r_irq)
@@ -242,10 +241,8 @@
ata_printf(ch, -1, "reiniting channel ..\n");
ATA_FORCELOCK_CH(ch);
ch->flags |= ATA_IMMEDIATE_MODE;
- ch->running = NULL;
devices = ch->devices;
ch->hw.reset(ch);
- ATA_UNLOCK_CH(ch);
if (bootverbose)
ata_printf(ch, -1, "resetting done ..\n");
@@ -254,10 +251,6 @@
if ((misdev = devices & ~ch->devices)) {
if ((misdev & (ATA_ATA_MASTER | ATA_ATAPI_MASTER)) &&
ch->device[MASTER].detach) {
- if (request && (request->device == &ch->device[MASTER])) {
- request->result = ENXIO;
- request->retries = 0;
- }
ch->device[MASTER].detach(&ch->device[MASTER]);
ata_fail_requests(ch, &ch->device[MASTER]);
free(ch->device[MASTER].param, M_ATA);
@@ -265,10 +258,6 @@
}
if ((misdev & (ATA_ATA_SLAVE | ATA_ATAPI_SLAVE)) &&
ch->device[SLAVE].detach) {
- if (request && (request->device == &ch->device[SLAVE])) {
- request->result = ENXIO;
- request->retries = 0;
- }
ch->device[SLAVE].detach(&ch->device[SLAVE]);
ata_fail_requests(ch, &ch->device[SLAVE]);
free(ch->device[SLAVE].param, M_ATA);
@@ -276,6 +265,9 @@
}
}
+ ch->running = NULL;
+ ATA_UNLOCK_CH(ch);
+
/* identify what is present on the channel now */
ata_identify_devices(ch);
Index: ata-all.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-all.h,v
retrieving revision 1.79
diff -u -r1.79 ata-all.h
--- ata-all.h 30 Apr 2004 16:21:34 -0000 1.79
+++ ata-all.h 3 Aug 2004 18:27:52 -0000
@@ -297,8 +297,9 @@
u_int32_t max_iosize; /* DMA engine max IO size */
u_int32_t cur_iosize; /* DMA engine current IO size */
int flags;
-#define ATA_DMA_ACTIVE 0x01 /* DMA transfer in progress */
-#define ATA_DMA_READ 0x02 /* transaction is a read */
+#define ATA_DMA_READ 0x01 /* transaction is a read */
+#define ATA_DMA_LOADED 0x02 /* DMA tables etc loaded */
+#define ATA_DMA_ACTIVE 0x04 /* DMA transfer in progress */
void (*alloc)(struct ata_channel *ch);
void (*free)(struct ata_channel *ch);
Index: ata-chipset.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.77
diff -u -r1.77 ata-chipset.c
--- ata-chipset.c 30 Jul 2004 13:33:09 -0000 1.77
+++ ata-chipset.c 4 Aug 2004 15:12:22 -0000
@@ -1433,12 +1433,14 @@
static int
ata_promise_mio_dmastart(struct ata_channel *ch)
{
+ ch->flags |= ATA_DMA_ACTIVE;
return 0;
}
static int
ata_promise_mio_dmastop(struct ata_channel *ch)
{
+ ch->flags &= ~ATA_DMA_ACTIVE;
/* get status XXX SOS */
return 0;
}
@@ -1777,6 +1779,7 @@
ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
((ch->dma->flags & ATA_DMA_READ) ? ATA_BMCMD_WRITE_READ : 0) |
ATA_BMCMD_START_STOP);
+ ch->flags |= ATA_DMA_ACTIVE;
return 0;
}
@@ -1795,6 +1798,7 @@
error = ATA_IDX_INB(ch, ATA_BMSTAT_PORT);
ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_START_STOP);
+ ch->flags &= ~ATA_DMA_ACTIVE;
ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, ATA_BMSTAT_INTERRUPT | ATA_BMSTAT_ERROR);
return error;
}
Index: ata-dma.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-dma.c,v
retrieving revision 1.126
diff -u -r1.126 ata-dma.c
--- ata-dma.c 13 Apr 2004 09:44:20 -0000 1.126
+++ ata-dma.c 3 Aug 2004 18:25:11 -0000
@@ -265,8 +265,7 @@
dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
ch->dma->cur_iosize = count;
- ch->dma->flags = dir ? (ATA_DMA_ACTIVE | ATA_DMA_READ) : ATA_DMA_ACTIVE;
-
+ ch->dma->flags = dir ? (ATA_DMA_LOADED | ATA_DMA_READ) : ATA_DMA_LOADED;
return 0;
}
@@ -281,7 +280,6 @@
bus_dmamap_unload(ch->dma->ddmatag, ch->dma->ddmamap);
ch->dma->cur_iosize = 0;
- ch->dma->flags = 0;
-
+ ch->dma->flags &= ~ATA_DMA_LOADED;
return 0;
}
Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.40
diff -u -r1.40 ata-lowlevel.c
--- ata-lowlevel.c 24 Jul 2004 19:03:28 -0000 1.40
+++ ata-lowlevel.c 3 Aug 2004 18:29:23 -0000
@@ -80,9 +80,6 @@
return ATA_OP_FINISHED;
}
- /* record the request as running */
- ch->running = request;
-
ATA_DEBUG_RQ(request, "transaction");
/* disable ATAPI DMA writes if HW doesn't support it */
@@ -120,10 +117,8 @@
else
printf("ATAPI_RESET timeout\n");
- if (request->status & ATA_S_ERROR) {
+ if (request->status & ATA_S_ERROR)
request->error = ATA_IDX_INB(ch, ATA_ERROR);
- //request->result = EIO;
- }
break;
}
@@ -139,7 +134,8 @@
}
}
- /* return and wait for interrupt */
+ /* record the request as running and return for interrupt */
+ ch->running = request;
return ATA_OP_CONTINUES;
/* ATA DMA data transfer commands */
@@ -168,7 +164,8 @@
break;
}
- /* return and wait for interrupt */
+ /* record the request as running and return for interrupt */
+ ch->running = request;
return ATA_OP_CONTINUES;
/* ATAPI PIO commands */
@@ -192,8 +189,10 @@
}
/* command interrupt device ? just return and wait for interrupt */
- if ((request->device->param->config & ATA_DRQ_MASK) == ATA_DRQ_INTR)
+ if ((request->device->param->config & ATA_DRQ_MASK) == ATA_DRQ_INTR) {
+ ch->running = request;
return ATA_OP_CONTINUES;
+ }
/* wait for ready to write ATAPI command block */
{
@@ -224,7 +223,8 @@
(request->device->param->config & ATA_PROTO_MASK) ==
ATA_PROTO_ATAPI_12 ? 6 : 8);
- /* return and wait for interrupt */
+ /* record the request as running and return for interrupt */
+ ch->running = request;
return ATA_OP_CONTINUES;
case ATA_R_ATAPI|ATA_R_DMA:
@@ -289,14 +289,14 @@
break;
}
- /* return and wait for interrupt */
+ /* record the request as running and return for interrupt */
+ ch->running = request;
return ATA_OP_CONTINUES;
}
/* request finish here */
- if (ch->dma->flags & ATA_DMA_ACTIVE)
+ if (ch->dma->flags & ATA_DMA_LOADED)
ch->dma->unload(ch);
- ch->running = NULL;
return ATA_OP_FINISHED;
}
Index: ata-pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.c,v
retrieving revision 1.85
diff -u -r1.85 ata-pci.c
--- ata-pci.c 15 Jun 2004 11:02:09 -0000 1.85
+++ ata-pci.c 3 Aug 2004 18:21:50 -0000
@@ -454,6 +454,7 @@
(ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_WRITE_READ) |
((ch->dma->flags & ATA_DMA_READ) ? ATA_BMCMD_WRITE_READ : 0) |
ATA_BMCMD_START_STOP);
+ ch->dma->flags |= ATA_DMA_ACTIVE;
return 0;
}
@@ -465,6 +466,7 @@
error = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_START_STOP);
+ ch->dma->flags &= ~ATA_DMA_ACTIVE;
ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, ATA_BMSTAT_INTERRUPT | ATA_BMSTAT_ERROR);
return error;
}
Index: ata-queue.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-queue.c,v
retrieving revision 1.29
diff -u -r1.29 ata-queue.c
--- ata-queue.c 1 Jun 2004 12:26:08 -0000 1.29
+++ ata-queue.c 1 Aug 2004 15:56:07 -0000
@@ -160,15 +160,8 @@
if (ch->flags & ATA_IMMEDIATE_MODE)
return;
- /* lock the ATA HW for this request */
- mtx_lock(&ch->queue_mtx);
- ch->locking(ch, ATA_LF_LOCK);
- if (!ATA_LOCK_CH(ch)) {
- mtx_unlock(&ch->queue_mtx);
- return;
- }
-
/* if we dont have any work, ask the subdriver(s) */
+ mtx_lock(&ch->queue_mtx);
if (TAILQ_EMPTY(&ch->ata_queue)) {
mtx_unlock(&ch->queue_mtx);
if (ch->device[MASTER].start)
@@ -177,7 +170,15 @@
ch->device[SLAVE].start(&ch->device[SLAVE]);
mtx_lock(&ch->queue_mtx);
}
+
+ /* if we have work todo, try to lock the ATA HW and start transaction */
if ((request = TAILQ_FIRST(&ch->ata_queue))) {
+ ch->locking(ch, ATA_LF_LOCK);
+ if (!ATA_LOCK_CH(ch)) {
+ mtx_unlock(&ch->queue_mtx);
+ return;
+ }
+
TAILQ_REMOVE(&ch->ata_queue, request, chain);
mtx_unlock(&ch->queue_mtx);
@@ -192,15 +193,14 @@
/* kick HW into action and wait for interrupt if it flies*/
if (ch->hw.transaction(request) == ATA_OP_CONTINUES)
return;
- }
- /* unlock ATA channel HW */
- ATA_UNLOCK_CH(ch);
- ch->locking(ch, ATA_LF_UNLOCK);
+ /* unlock ATA channel HW */
+ ATA_UNLOCK_CH(ch);
+ ch->locking(ch, ATA_LF_UNLOCK);
- /* if we have a request here it failed and should be completed */
- if (request)
+ /* finish up this (failed) request */
ata_finish(request);
+ }
else
mtx_unlock(&ch->queue_mtx);
}
------------------------------
Message: 15
Date: Wed, 4 Aug 2004 09:39:38 -0400
From: Rahul Siddharthan <rsidd@online.fr>
Subject: Re: man(1)
To: Ruslan Ermilov <ru@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804133938.GA3067@online.fr>
Content-Type: text/plain; charset=us-ascii
Ruslan Ermilov said on Aug 4, 2004 at 10:35:32:
> On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> > On 2004.08.04 00:29:51 -0400, Rahul Siddharthan wrote:
> > > I was wrong about calling it BSD man... it's GNU man, but a much older
> > > version than what current linux systems ship.
> > >
> > > I can work on a patch for this specific feature when I get some time.
> > > Before I start, is there any reason people may think this is a bad
> > > idea?
> >
> > Well, it can be done without a patch... I use the following tcsh alias
> > so I can just write 'manf foo.1' :
> >
> > groff -Wall -Tascii -te -mandoc !^ | less
> >
> You need to use ``-mtty-char -man'' to get the correct output. (-man
> or -mandoc doesn't matter.)
Well that kinds of proves my point... you expect new users to know all
this? I myself have used something like "groff -Tascii -mandoc" but
only after a few years of using unix.
Rahul
------------------------------
Message: 16
Date: Wed, 4 Aug 2004 08:43:32 -0500
From: Will Andrews <will@csociety.org>
Subject: Re: No new snapshot of 5-CURRENT anymore?
To: Rostislav Krasny <rosti_bsd@yahoo.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804134332.GG26004@sirius.firepipe.net>
Content-Type: text/plain; charset="us-ascii"
On Wed, Aug 04, 2004 at 06:24:04AM -0700, Rostislav Krasny wrote:
> I just tried to install 5.2-CURRENT-20040804-SESNAP snapshot using FTP
> installation with floppies, but I failed. First of all, the sysinstall
> have only one FTP URL of snapshots - the JP one. Secondly, it isn't
> obvious what manual URL should be used. So I've tried following URLs:
Someone else reported the same problem with the AMD64 snaps.
Unfortunately, I don't have time to investigate this until after
Friday, so it will be a few days before I can figure out why the
snaps aren't being built with knowledge of the custom name. :-/
(A reminder sent to my email address on Friday afternoon would be
greatly appreciated.)
Regards,
--
wca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/2604ff3e/attachment-0001.bin
------------------------------
Message: 17
Date: Wed, 4 Aug 2004 06:50:56 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: Re: man(1)
To: Ruslan Ermilov <ru@freebsd.org>
Cc: Rahul Siddharthan <rsidd@online.fr>
Message-ID: <20040804135055.GA6640@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 03:47:56PM +0300, Ruslan Ermilov wrote:
> On Wed, Aug 04, 2004 at 07:15:25AM -0500, Bob Willcox wrote:
> > On Wed, Aug 04, 2004 at 01:53:44PM +0200, Simon L. Nielsen wrote:
> > > On 2004.08.04 10:35:32 +0300, Ruslan Ermilov wrote:
> > > > On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> > > >
> > > > > Well, it can be done without a patch... I use the following tcsh alias
> > > > > so I can just write 'manf foo.1' :
> > > > >
> > > > > groff -Wall -Tascii -te -mandoc !^ | less
> > > > >
> > > > You need to use ``-mtty-char -man'' to get the correct output. (-man
> > > > or -mandoc doesn't matter.)
> > >
> > > OK, I will update my alias :).
> > >
> > > So the most correct command would be:
> > >
> > > groff -Wall -Tascii -te -mtty-char -man
> >
> > What's wrong with:
> >
> > nroff -man
> >
> In most cases it will do, but nroff(1) doesn't provide an option to tell
> groff(1) to preprocess with eqn(1), and some manpages require preprocessing
> with it.
>
What's wrong with a pipe? My alias looks like
cat !* | eqn | tbl | nroff -mdoc | more
--
Steve
------------------------------
Message: 18
Date: Wed, 4 Aug 2004 07:06:05 -0700 (PDT)
From: Rostislav Krasny <rosti_bsd@yahoo.com>
Subject: Re: No new snapshot of 5-CURRENT anymore?
To: CHOI Junho <cjh@kr.FreeBSD.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804140605.13387.qmail@web14821.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
--- CHOI Junho <cjh@kr.FreeBSD.org> wrote:
> From: Rostislav Krasny <rosti_bsd@yahoo.com>
> Subject: Re: No new snapshot of 5-CURRENT anymore?
> Date: Wed, 4 Aug 2004 06:24:04 -0700 (PDT)
>
> > I just tried to install 5.2-CURRENT-20040804-SESNAP snapshot using
> FTP
> > installation with floppies, but I failed. First of all, the
> sysinstall
> > have only one FTP URL of snapshots - the JP one. Secondly, it isn't
> > obvious what manual URL should be used. So I've tried following
> URLs:
> >
> > ftp://snapshots.se.freebsd.org
> > ftp://snapshots.se.freebsd.org/snapshots
> > ftp://snapshots.se.freebsd.org/snapshots/i386
> >
>
ftp://snapshots.se.freebsd.org/snapshots/i386/5.2-CURRENT-20040804-SESNAP
> >
> > No one did work and I always got the same error message about that
> > sysinstall can't find the '5.2-CURRENT' distribution on the FTP
> server.
> > Should it look for the '5.2-CURRENT-20040804-SESNAP' distribution
> > instead? It looks like a build bug. When I looked at a sniffer dump
> I
> > saw that sysinstall tried to find the '5.2-CURRENT' directory, not
> the
> > '5.2-CURRENT-20040804-SESNAP' one. Can you fix it?
>
> Did you try to set 'Options' - 'Release Name' to
> '5.2-CURRENT-20040804-SESNAP' in sysinstall menu? sysinstall tries to
> find necessary files using it. Maybe default value is '5.2-CURRENT'.
No I didn't try it at that time. But I did it now and it helped me to
continue the installation. Thank you! :-) Yes, the default value there
is '5.2-CURRENT'.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
------------------------------
Message: 19
Date: Wed, 4 Aug 2004 16:06:28 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: 'S?ren Schmidt'<sos@DeepCore.dk>
Cc: freebsd-current@freebsd.org
Message-ID:
<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAB3/jqBdhQUyzHLIFxfORbQEAAAAA@telia.com>
Content-Type: text/plain; charset="iso-8859-1"
S�ren Schmidt wrote:
> OK, but that seriously hurts performance which I'd like to avoid if
> possible. Could you try the attached patch and let me know how that
> works out ? I does solve the problem here in a simulated
> setup, but as we all know simulated is just that :)
I will try the patch next time I take the server offline, but that might
take a couple of days. If it is very important that I test it asap, please
let me know.
/Daniel Eriksson
------------------------------
Message: 20
Date: Wed, 04 Aug 2004 16:10:45 +0200
From: S?ren Schmidt<sos@DeepCore.dk>
Subject: Re: ATA driver races with interrupts
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <4110EE65.8070207@DeepCore.dk>
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Daniel Eriksson wrote:
> S�ren Schmidt wrote:
>
>
>>OK, but that seriously hurts performance which I'd like to avoid if
>>possible. Could you try the attached patch and let me know how that
>>works out ? I does solve the problem here in a simulated
>>setup, but as we all know simulated is just that :)
>
>
> I will try the patch next time I take the server offline, but that might
> take a couple of days. If it is very important that I test it asap, please
> let me know.
No rush, it'll go into cvs at some point in time anyways as its part of
some larger changes I'm working on, but it would benice to know if it
solves your problem..
--
-S�ren
------------------------------
Message: 21
Date: Wed, 4 Aug 2004 17:12:33 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Re: man(1)
To: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc: current@FreeBSD.org
Message-ID: <20040804141233.GA26281@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"
On Wed, Aug 04, 2004 at 06:50:56AM -0700, Steve Kargl wrote:
[...]
> What's wrong with a pipe? My alias looks like
>
> cat !* | eqn | tbl | nroff -mdoc | more
>
Nothing wrong, it's correct as well. This is basically what man(1)
actually does (try ``man -d''). I personally use groff(1) because
I pass it the -ww option, which it then passes to troff(1) to display
all possible warnings.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/497d873e/attachment-0001.bin
------------------------------
Message: 22
Date: Wed, 4 Aug 2004 07:15:21 -0700 (PDT)
From: Rostislav Krasny <rosti_bsd@yahoo.com>
Subject: Re: No new snapshot of 5-CURRENT anymore?
To: Will Andrews <will@csociety.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804141521.14886.qmail@web14821.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
--- Will Andrews <will@csociety.org> wrote:
> On Wed, Aug 04, 2004 at 06:24:04AM -0700, Rostislav Krasny wrote:
> > I just tried to install 5.2-CURRENT-20040804-SESNAP snapshot using
> > FTP installation with floppies, but I failed. First of all, the
> > sysinstall have only one FTP URL of snapshots - the JP one.
> > Secondly, it isn't obvious what manual URL should be used. So I've
> > tried following URLs:
>
> Someone else reported the same problem with the AMD64 snaps.
> Unfortunately, I don't have time to investigate this until after
> Friday, so it will be a few days before I can figure out why the
> snaps aren't being built with knowledge of the custom name. :-/
> (A reminder sent to my email address on Friday afternoon would be
> greatly appreciated.)
Please, read my reply to CHOI Junho. It would help you during the
investigation of the problem. I will try not forget about sending you
the reminder on Friday afternoon. Thanks for your work!
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
------------------------------
Message: 23
Date: Wed, 4 Aug 2004 17:15:39 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Re: man(1)
To: Rahul Siddharthan <rsidd@online.fr>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040804141539.GB26281@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"
On Wed, Aug 04, 2004 at 09:39:38AM -0400, Rahul Siddharthan wrote:
> Ruslan Ermilov said on Aug 4, 2004 at 10:35:32:
> > On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> > > On 2004.08.04 00:29:51 -0400, Rahul Siddharthan wrote:
> > > > I was wrong about calling it BSD man... it's GNU man, but a much older
> > > > version than what current linux systems ship.
> > > >
> > > > I can work on a patch for this specific feature when I get some time.
> > > > Before I start, is there any reason people may think this is a bad
> > > > idea?
> > >
> > > Well, it can be done without a patch... I use the following tcsh alias
> > > so I can just write 'manf foo.1' :
> > >
> > > groff -Wall -Tascii -te -mandoc !^ | less
> > >
> > You need to use ``-mtty-char -man'' to get the correct output. (-man
> > or -mandoc doesn't matter.)
>
>
> Well that kinds of proves my point... you expect new users to know all
> this? I myself have used something like "groff -Tascii -mandoc" but
> only after a few years of using unix.
>
No, I don't even expect new users to worry about formatting the
manpage source files like ``man /usr/src/bin/cat/cat.1''. ;)
And someone could put this hint into the FreeBSD fortune file.
I'm not opposed to the idea of man(1) being able to work with
a pathname arguments, if the patch is small.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/cd849ad7/attachment-0001.bin
------------------------------
Message: 24
Date: Wed, 4 Aug 2004 10:22:52 -0400
From: "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Subject: Unable to build recent kernels
To: <current@freebsd.org>
Message-ID: <9B5C1FCAFB35084787C21EFFFA78DD9E612D52@EBE1.gc.nat>
Content-Type: text/plain; charset="us-ascii"
[snip]
linking kernel.debug
mp_machdep.o(.text+0x705): In function `init_secondary':
/usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
`mem_range_AP_init'
*** Error code 1
---------------------------------------
Robin P. Blanchard
Systems Integration Specialist
Georgia Center for Continuing Education
fon: 706.542.2404 < > fax: 706.542.6546
---------------------------------------
------------------------------
Message: 25
Date: Wed, 04 Aug 2004 08:24:45 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: Unable to build recent kernels
To: "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Cc: current@freebsd.org
Message-ID: <4110F1AD.9000203@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Robin P. Blanchard wrote:
> [snip]
> linking kernel.debug
> mp_machdep.o(.text+0x705): In function `init_secondary':
> /usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
> `mem_range_AP_init'
> *** Error code 1
>
>
You need to include 'device mem' in your kernel config. Look at
src/UPDATING and the GENERIC config file for devices that were recently
added.
Scott
------------------------------
Message: 26
Date: Wed, 4 Aug 2004 18:28:59 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: Unable to build recent kernels
To: "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Cc: current@freebsd.org
Message-ID: <20040804182454.H33888@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 4 Aug 2004, 10:22-0400, Robin P. Blanchard wrote:
>
> [snip]
> linking kernel.debug
> mp_machdep.o(.text+0x705): In function `init_secondary':
> /usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
> `mem_range_AP_init'
> *** Error code 1
cat >> your_kernel_config_file <<EOF
device mem
device null
device zero
EOF
--
Maxim Konovalov
------------------------------
Message: 27
Date: Wed, 4 Aug 2004 10:33:24 -0400
From: Kenneth Culver <culverk@sweetdreamsracing.biz>
Subject: Re: 5.3-RELEASE TODO
To: Scott Long <scottl@freebsd.org>
Cc: re@freebsd.org
Message-ID:
<20040804103324.sqsg48s40c48g444@www.sweetdreamsracing.biz>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Quoting Scott Long <scottl@freebsd.org>:
> Steve O'Hara-Smith wrote:
>
>> On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
>> Scott Long <scottl@FreeBSD.org> wrote:
>>
>>
>>> | Source upgrade | Not done | David Schultz | problematic. The |
>>> | incompatibility | | | 5.3 world sources |
>>> | | | | must be buildable |
>>> | | | | and installable |
>>> | | | | from a 5.2.1 |
>>> | | | | system. |
>>
>>
>> Should they not also be buildable and installable from a 4.10 or
>> 4.11 system
>> in order to preserve the -stable upgrade route ?
>>
>
> This would be good, yes, but there are so many other gotchas with that
> upgrade path that I don't consider it a show-stopper for it not to work.
> Once the 5.2 -> 5.3 path is fixed, then we can focus on 4.x -> 5.3 path.
>
> Scott
Just to let people know, I recently installed from 5.2.1, then updated to
-CURRENT via source without a single problem. So what's not working here?
Ken
------------------------------
Message: 28
Date: Wed, 04 Aug 2004 16:32:06 +0200
From: Franz Klammer <klammer@webonaut.com>
Subject: Re: radeon.ko doesn't load on recent current
To: Rossam Souza da Silva <rss@cesar.org.br>
Cc: current@freebsd.org
Message-ID: <4110F366.5030307@webonaut.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Rossam Souza da Silva wrote:
>
> I have the same problem with VMWare3 kernel modules...
> no one is loaded, with error messages about symbols.
>
> Rossam.
>
> ------------------------------------------------------
> "Das Leben auf Erden ist ein gemeiner Krieg.
> Wir spielen, wir k�mpfen, wir setzen alles auf Sieg."
>
> Megaherz
> ------------------------------------------------------
>
> On Tue, 3 Aug 2004, Toxa wrote:
>
>> today kernel biuld, when trying to load radeon.ko for my ATI
>> Mobility M6:
>>
>> # kldload radeon.ko:
>>
>> link_elf: symbol mem_range_attr_set undefined
>> kldload: can't load radeon.ko: No such file or directory
same here with matrox mga.ko. after i compiled the
devices agp, mem, null and io into the kernel it loads normaly.
franz.
>>
>> radeon.ko exists but cannot be loaded. Any suggestion?
>> Thanks
>>
>> --
>> Anton A. Karpov
------------------------------
Message: 29
Date: Wed, 04 Aug 2004 10:41:50 -0400
From: Chris <chris@tellme3times.com>
Subject: USB drivers
To: freebsd-current@freebsd.org
Message-ID: <4110F5AE.6030403@tellme3times.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
The last time I programed was over 15 years ago and I was thinking of
looking into the USB drivers for FreeBSD concerning multifunction
devices. If I ask stupid questions forgive me because I am seeing this
as a user.
First I would like to know if there is a technical reason why two
different divers cannot attach to the same device. If each driver works
well independently, what is the reason to prevent the second one from
attaching? I would assume that if you attempted to use both drivers at
the same time you would get a device busy error.
Am I misunderstanding something here? I see ulpt: and unlpt: attaching
to the same device and the choice of which one to use is up to the user
and the hardware they have. If we have two drivers attach in one case
why, and where, do we prevent other drivers from attaching if they meet
the minimum requirements?
Any help on how to write drivers for FreeBSD would be appreciated.
Chris
------------------------------
Message: 30
Date: Wed, 4 Aug 2004 17:43:09 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Re: 5.3-RELEASE TODO
To: "Steve O'Hara-Smith" <steve@sohara.org>
Cc: scottl@FreeBSD.org
Message-ID: <20040804144309.GC26422@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"
On Wed, Aug 04, 2004 at 10:21:01AM +0100, Steve O'Hara-Smith wrote:
> On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
> Scott Long <scottl@FreeBSD.org> wrote:
>
> > | Source upgrade | Not done | David Schultz | problematic. The |
> > | incompatibility | | | 5.3 world sources |
> > | | | | must be buildable |
> > | | | | and installable |
> > | | | | from a 5.2.1 |
> > | | | | system. |
>
> Should they not also be buildable and installable from a 4.10 or 4.11 system
> in order to preserve the -stable upgrade route ?
>
I believe this item is not about builds/installs, but about the API
compatibility of libm.so.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040804/5d8b6e33/attachment-0001.bin
------------------------------
Message: 31
Date: Wed, 4 Aug 2004 07:43:50 -0700
From: John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Subject: Re: GEOM is too verbose
To: Maxim Sobolev <sobomax@portaone.com>
Cc: current@freebsd.org
Message-ID: <20040804144350.GX991@funkthat.com>
Content-Type: text/plain; charset=us-ascii
Maxim Sobolev wrote this message on Wed, Aug 04, 2004 at 12:27 +0200:
> On Tue, Aug 03, 2004 at 02:22:27PM -0700, John-Mark Gurney wrote:
> > Maxim Sobolev wrote this message on Sat, Jul 31, 2004 at 20:15 +0300:
> > > >>It is python program, so that ioctl() is out of question. Usage of
> > > >
> > > >
> > > >Hm python has ioctl support, where is the problem?
> > >
> > > Really? Anyway, I doubt that name of this ioctl is the same on the
> > > different unices, so that binary search is still the best from the
> > > portability POV.
> >
> > fcntl.ioctl... it might take some hand expansion of the ioctl macros
> > to get it though... the old pytoh that would generate these couldn't
> > handle FreeBSD's ioctl defines (but this was back in the early 4.x
> > days)... You could always write a simple C program to get the value
> > necessary..
>
> Heh, but I have other means to spend my spare time. Rewriting perfectly
> working code for perfection sake is not one of them.
I only suggested:
#include <sys/disk.h>
#include <stdio.h>
void
main()
{
printf("135134376l\n", DIOCGMEDIASIZE);
}
and then use that value in python's fctl.ioctl.
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
------------------------------
Message: 32
Date: Wed, 4 Aug 2004 10:46:17 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on powerpc/powerpc
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<powerpc@freebsd.org>
Message-ID: <20040804144617.88AE27303F@freebsd-current.sentex.ca>
TB --- 2004-08-04 14:28:40 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2004-08-04 14:28:40 - starting CURRENT tinderbox run for powerpc/powerpc
TB --- 2004-08-04 14:28:40 - cleaning the sandbox
TB --- 2004-08-04 14:30:01 - checking out the source tree
TB --- 2004-08-04 14:30:01 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc
TB --- 2004-08-04 14:30:01 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A src
TB --- 2004-08-04 14:38:08 - WARNING: /home/tinderbox/sandbox/powerpc.diff does not exist
TB --- 2004-08-04 14:38:08 - building world (CFLAGS=-O -pipe)
TB --- 2004-08-04 14:38:08 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc/src
TB --- 2004-08-04 14:38:08 - /usr/bin/make -B buildworld
>>> Building an up-to-date make(1)
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_TGS_REP.c -o asn1_TGS_REP.So
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_TGS_REQ.c -o asn1_TGS_REQ.So
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_Ticket.c -o asn1_Ticket.So
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_TicketFlags.c -o asn1_TicketFlags.So
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_TransitedEncoding.c -o asn1_TransitedEncoding.So
cc -fpic -DPIC -O -pipe -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6 -c asn1_UNSIGNED.c -o asn1_UNSIGNED.So
building shared library libasn1.so.7
Abort trap (core dumped)
*** Error code 134
Stop in /tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1
Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
TB --- 2004-08-04 14:46:17 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-08-04 14:46:17 - ERROR: failed to build world
TB --- 2004-08-04 14:46:17 - tinderbox aborted
------------------------------
Message: 33
Date: Wed, 4 Aug 2004 16:47:57 +0200
From: Maxime Henrion <mux@freebsd.org>
Subject: Re: radeon.ko doesn't load on recent current
To: Franz Klammer <klammer@webonaut.com>
Cc: anholt@FreeBSD.org
Message-ID: <20040804144757.GI13608@elvis.mu.org>
Content-Type: text/plain; charset="us-ascii"
Franz Klammer wrote:
> Rossam Souza da Silva wrote:
> >
> >I have the same problem with VMWare3 kernel modules...
> >no one is loaded, with error messages about symbols.
> >
> >Rossam.
> >
> >------------------------------------------------------
> >"Das Leben auf Erden ist ein gemeiner Krieg.
> > Wir spielen, wir k?mpfen, wir setzen alles auf Sieg."
> >
> > Megaherz
> >------------------------------------------------------
> >
> >On Tue, 3 Aug 2004, Toxa wrote:
> >
> >>today kernel biuld, when trying to load radeon.ko for my ATI
> >>Mobility M6:
> >>
> >># kldload radeon.ko:
> >>
> >>link_elf: symbol mem_range_attr_set undefined
> >>kldload: can't load radeon.ko: No such file or directory
>
> same here with matrox mga.ko. after i compiled the
> devices agp, mem, null and io into the kernel it loads normaly.
Can you try to remove mem from your kernel config and try this patch?
The DRM drivers are missing a dependency to mem(4) since mem(4) was
made a kernel module. The DRM drivers need mem(4) because they use
mem_range_attr_set(). With this patch, you should be able to load
your DRM driver without errors, even if mem(4) isn't compiled in the
kernel. You must of course have it as a module though.
Cheers,
Maxime
-------------- next part --------------
Index: drm_drv.h
===================================================================
RCS file: /space2/ncvs/src/sys/dev/drm/drm_drv.h,v
retrieving revision 1.25
diff -u -p -r1.25 drm_drv.h
--- drm_drv.h 16 Jun 2004 09:46:42 -0000 1.25
+++ drm_drv.h 4 Aug 2004 14:41:00 -0000
@@ -124,6 +124,7 @@ static void DRM(cleanup)(drm_device_t *d
#if __REALLY_HAVE_AGP
MODULE_DEPEND(DRIVER_NAME, agp, 1, 1, 1);
#endif
+MODULE_DEPEND(DRIVER_NAME, mem, 1, 1, 1);
#endif /* __FreeBSD__ */
#ifdef __NetBSD__
------------------------------
Message: 34
Date: Wed, 4 Aug 2004 16:27:59 +0200
From: Dennis Berger <db@nipsi.de>
Subject: Re: Unable to build recent kernels
To: "Robin P. Blanchard" <robin.blanchard@gactr.uga.edu>
Cc: current@freebsd.org
Message-ID: <20040804142759.GA63693@nipsi.home.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 10:22:52AM -0400, Robin P. Blanchard wrote:
>
> [snip]
> linking kernel.debug
> mp_machdep.o(.text+0x705): In function `init_secondary':
> /usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
> `mem_range_AP_init'
> *** Error code 1
remove your kernel obj files... and rebuiling the kernel works for me
>
>
>
> ---------------------------------------
> Robin P. Blanchard
> Systems Integration Specialist
> Georgia Center for Continuing Education
> fon: 706.542.2404 < > fax: 706.542.6546
> ---------------------------------------
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
------------------------------
Message: 35
Date: Wed, 04 Aug 2004 17:00:26 +0200
From: Franz Klammer <klammer@webonaut.com>
Subject: Re: radeon.ko doesn't load on recent current
To: Maxime Henrion <mux@freebsd.org>
Cc: anholt@FreeBSD.org
Message-ID: <4110FA0A.3040702@webonaut.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Maxime Henrion wrote:
>>>># kldload radeon.ko:
>>>>
>>>>link_elf: symbol mem_range_attr_set undefined
>>>>kldload: can't load radeon.ko: No such file or directory
>>
>>same here with matrox mga.ko. after i compiled the
>>devices agp, mem, null and io into the kernel it loads normaly.
>
>
> Can you try to remove mem from your kernel config and try this patch?
> The DRM drivers are missing a dependency to mem(4) since mem(4) was
> made a kernel module. The DRM drivers need mem(4) because they use
> mem_range_attr_set(). With this patch, you should be able to load
> your DRM driver without errors, even if mem(4) isn't compiled in the
> kernel. You must of course have it as a module though.
>
sure! but not in the next one or two hours.
maybe someone else who has the same problem is faster then me.
franz.
> Cheers,
> Maxime
>
>
> ------------------------------------------------------------------------
>
> Index: drm_drv.h
> ===================================================================
> RCS file: /space2/ncvs/src/sys/dev/drm/drm_drv.h,v
> retrieving revision 1.25
> diff -u -p -r1.25 drm_drv.h
> --- drm_drv.h 16 Jun 2004 09:46:42 -0000 1.25
> +++ drm_drv.h 4 Aug 2004 14:41:00 -0000
> @@ -124,6 +124,7 @@ static void DRM(cleanup)(drm_device_t *d
> #if __REALLY_HAVE_AGP
> MODULE_DEPEND(DRIVER_NAME, agp, 1, 1, 1);
> #endif
> +MODULE_DEPEND(DRIVER_NAME, mem, 1, 1, 1);
> #endif /* __FreeBSD__ */
>
> #ifdef __NetBSD__
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 71, Issue 10
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[33m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m