Still getting this newsletter. Please UNSUBSCRIBE! ___________________________________________________________
Begin forwarded message: From: freebsd-bugs-requ...@freebsd.org<mailto:freebsd-bugs-requ...@freebsd.org> Subject: freebsd-bugs Digest, Vol 399, Issue 9 Date: November 19, 2010 6:00:25 AM CST To: freebsd-bugs@freebsd.org<mailto:freebsd-bugs@freebsd.org> Reply-To: freebsd-bugs@freebsd.org<mailto:freebsd-bugs@freebsd.org> Send freebsd-bugs mailing list submissions to freebsd-bugs@freebsd.org<mailto:freebsd-bugs@freebsd.org> To subscribe or unsubscribe via the World Wide Web, visit http://lists.freebsd.org/mailman/listinfo/freebsd-bugs or, via email, send a message with subject or body 'help' to freebsd-bugs-requ...@freebsd.org<mailto:freebsd-bugs-requ...@freebsd.org> You can reach the person managing the list at freebsd-bugs-ow...@freebsd.org<mailto:freebsd-bugs-ow...@freebsd.org> When replying, please edit your Subject line so it is more specific than "Re: Contents of freebsd-bugs digest..." Today's Topics: 1. kern/152363: Apache can not serve images from TMPFS (Karlo Luiten) 2. Re: kern/152363: Apache can not serve images from TMPFS (Mateusz Guzik) 3. Re: ports/152361: [PATCH] multimedia/playd update (lini...@freebsd.org<mailto:lini...@freebsd.org>) 4. Re: misc/152296: wrong message when trying to checkout using old repository path (arun...@freebsd.org<mailto:arun...@freebsd.org>) 5. Re: kern/152360: [dummynet] [panic] Crash related to dummynet. (lini...@freebsd.org<mailto:lini...@freebsd.org>) 6. Re: kern/69066: [panic] nmdm(4) page fault when slattach on a null modem device (j...@freebsd.org<mailto:j...@freebsd.org>) 7. Re: misc/152296: wrong message when trying to checkout using old repository path (Eir Nym) 8. Re: kern/145999: [request] optional offset for `mdconfig -t vnode' (Mateusz Guzik) 9. Re: kern/79295: umount oddity with NFS (fwe) over VIA Fire II card (j...@freebsd.org<mailto:j...@freebsd.org>) 10. Re: kern/85450: [ata] [panic] subdisk6 detached (appears to be a sata problem, SiI 3112) (j...@freebsd.org<mailto:j...@freebsd.org>) 11. kern/152378: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses (Jason Harmening) 12. Re: kern/152378: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses (arun...@freebsd.org<mailto:arun...@freebsd.org>) 13. bin/152385: ee(1) has different keybindings in the livefs environment (Bruce Cran) 14. Re: bin/38727: [patch] mptable(1) should complain about garbage arguments (arun...@freebsd.org<mailto:arun...@freebsd.org>) 15. Re: bin/38727: [patch] mptable(1) should complain about garbage arguments (Alexander Best) 16. Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs (Garrett Cooper) 17. Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs (Garrett Cooper) 18. Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs (Andriy Gapon) ---------------------------------------------------------------------- Message: 1 Date: Thu, 18 Nov 2010 14:27:14 +0100 (CET) From: Karlo Luiten <ka...@anywi.com<mailto:ka...@anywi.com>> Subject: kern/152363: Apache can not serve images from TMPFS To: freebsd-gnats-sub...@freebsd.org<mailto:freebsd-gnats-sub...@freebsd.org> Message-ID: <20101118132714.32ad229b...@arenal.anywi.com<mailto:20101118132714.32ad229b...@arenal.anywi.com>> Number: 152363 Category: kern Synopsis: Apache can not serve images from TMPFS Confidential: no Severity: non-critical Priority: high Responsible: freebsd-bugs State: open Quarter: Keywords: Date-Required: Class: sw-bug Submitter-Id: current-users Arrival-Date: Thu Nov 18 13:50:06 UTC 2010 Closed-Date: Last-Modified: Originator: Karlo Luiten Release: FreeBSD 8.1-STABLE amd64 Organization: AnyWi Technologies Environment: System: FreeBSD arenal.anywi.com<http://arenal.anywi.com/> 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Sep 13 15:48:43 CEST 2010 r...@arenal.anywi.com:/usr/obj/usr/src/sys/ARENAL amd64 Description: When /tmp is mounted via TMPFS, and an apache virtualhost is set up to serve images from a directory within /tmp (documentroot), images are not displayed proberly in browsers (Opera,Chrome). Tested with .jpg. 1st line of hexdump of original file: 0000000 d8ff e0ff 1000 464a 4649 0100 0001 0100 1st lines of hexdump of apache-served file: 0000000 0000 0000 0000 0000 0000 0000 0000 0000 * 0000140 8600 0065 0008 0000 2200 0053 0008 0000 How-To-Repeat: Mount tmpfs: (/etc/fstab): tmpfs /tmp tmpfs rw,size=536870912,mode=01777 0 0 Setup a virtualhost within Apache with document root /tmp/any_dir Place a jpg file in this directory, try to access it Fix: None (use mdconfig disk instead of tmpfs). Release-Note: Audit-Trail: Unformatted: ------------------------------ Message: 2 Date: Thu, 18 Nov 2010 14:30:14 GMT From: Mateusz Guzik <mjgu...@gmail.com<mailto:mjgu...@gmail.com>> Subject: Re: kern/152363: Apache can not serve images from TMPFS To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011181430.oaieuebd092...@freefall.freebsd.org<mailto:201011181430.oaieuebd092...@freefall.freebsd.org>> The following reply was made to PR kern/152363; it has been noted by GNATS. From: Mateusz Guzik <mjgu...@gmail.com<mailto:mjgu...@gmail.com>> To: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org>, ka...@anywi.com<mailto:ka...@anywi.com> Cc: Subject: Re: kern/152363: Apache can not serve images from TMPFS Date: Thu, 18 Nov 2010 14:59:42 +0100 Your issue is probably already fixed in STABLE - see http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127213 Can you update your system and try to reproduce this problem? -- Mateusz Guzik ------------------------------ Message: 3 Date: Thu, 18 Nov 2010 15:46:04 GMT From: lini...@freebsd.org<mailto:lini...@freebsd.org> Subject: Re: ports/152361: [PATCH] multimedia/playd update To: lini...@freebsd.org<mailto:lini...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org>, freebsd-ports-b...@freebsd.org<mailto:freebsd-ports-b...@freebsd.org> Message-ID: <201011181546.oaifk4fb074...@freefall.freebsd.org<mailto:201011181546.oaifk4fb074...@freefall.freebsd.org>> Synopsis: [PATCH] multimedia/playd update Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs Responsible-Changed-By: linimon Responsible-Changed-When: Thu Nov 18 15:45:38 UTC 2010 Responsible-Changed-Why: ports PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=152361 ------------------------------ Message: 4 Date: Thu, 18 Nov 2010 17:15:35 GMT From: arun...@freebsd.org<mailto:arun...@freebsd.org> Subject: Re: misc/152296: wrong message when trying to checkout using old repository path To: ken...@gmail.com<mailto:ken...@gmail.com>, arun...@freebsd.org<mailto:arun...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org>, freebsd-po...@freebsd.org<mailto:freebsd-po...@freebsd.org> Message-ID: <201011181715.oaihfzdk070...@freefall.freebsd.org<mailto:201011181715.oaihfzdk070...@freefall.freebsd.org>> Synopsis: wrong message when trying to checkout using old repository path State-Changed-From-To: open->suspended State-Changed-By: arundel State-Changed-When: Thu Nov 18 16:58:58 UTC 2010 State-Changed-Why: I'm very sorry for handling this PR inappropriatly. Somehow I was under the impression that we had a version of svn in the base tree. However that is not the case! I think marking this as suspended is the best option for now, since there was no patch attached to correct svn's handling of the wrong URL. Since the svn port seems to get updated very regularly we can assume that the development version of svn is still containing this issue. If somebody wants to provide a patch we could try convincing the svn developers to push it upstream in order to have it in one of the next svn releases and thus ports. A different approach would be to add a local ports patch to devel/subversion{-freebsd}/files. Responsible-Changed-From-To: freebsd-bugs->freebsd-ports Responsible-Changed-By: arundel Responsible-Changed-When: Thu Nov 18 16:58:58 UTC 2010 Responsible-Changed-Why: This is a ports related PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=152296 ------------------------------ Message: 5 Date: Thu, 18 Nov 2010 17:34:48 GMT From: lini...@freebsd.org<mailto:lini...@freebsd.org> Subject: Re: kern/152360: [dummynet] [panic] Crash related to dummynet. To: lini...@freebsd.org<mailto:lini...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org>, freebsd-...@freebsd.org<mailto:freebsd-...@freebsd.org> Message-ID: <201011181734.oaihymle090...@freefall.freebsd.org<mailto:201011181734.oaihymle090...@freefall.freebsd.org>> Old Synopsis: Crash related to dummynet. New Synopsis: [dummynet] [panic] Crash related to dummynet. Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Thu Nov 18 17:34:27 UTC 2010 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=152360 ------------------------------ Message: 6 Date: Thu, 18 Nov 2010 17:44:30 GMT From: j...@freebsd.org<mailto:j...@freebsd.org> Subject: Re: kern/69066: [panic] nmdm(4) page fault when slattach on a null modem device To: rwat...@freebsd.org<mailto:rwat...@freebsd.org>, j...@freebsd.org<mailto:j...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011181744.oaihiurh000...@freefall.freebsd.org<mailto:201011181744.oaihiurh000...@freefall.freebsd.org>> Synopsis: [panic] nmdm(4) page fault when slattach on a null modem device State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Thu Nov 18 17:41:42 UTC 2010 State-Changed-Why: There is no evidence that the problem still exists. SLIP has been removed from head and stable/8. http://www.freebsd.org/cgi/query-pr.cgi?pr=69066 ------------------------------ Message: 7 Date: Thu, 18 Nov 2010 20:38:48 +0300 From: Eir Nym <eir...@gmail.com<mailto:eir...@gmail.com>> Subject: Re: misc/152296: wrong message when trying to checkout using old repository path To: arun...@freebsd.org<mailto:arun...@freebsd.org> Cc: ken...@gmail.com<mailto:ken...@gmail.com>, freebsd-bugs@freebsd.org<mailto:freebsd-bugs@freebsd.org>, freebsd-po...@freebsd.org<mailto:freebsd-po...@freebsd.org>, FreeBSD Mail Lists <bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org>> Message-ID: <aanlktimt7rmky5rnec2hp1mrmaacinzfgwmha_rp2...@mail.gmail.com<mailto:aanlktimt7rmky5rnec2hp1mrmaacinzfgwmha_rp2...@mail.gmail.com>> Content-Type: text/plain; charset=UTF-8 On 18 November 2010 20:15, <arun...@freebsd.org<mailto:arun...@freebsd.org>> wrote: Synopsis: wrong message when trying to checkout using old repository path State-Changed-From-To: open->suspended State-Changed-By: arundel State-Changed-When: Thu Nov 18 16:58:58 UTC 2010 State-Changed-Why: I'm very sorry for handling this PR inappropriatly. Somehow I was under the impression that we had a version of svn in the base tree. However that is not the case! I think marking this as suspended is the best option for now, since there was no patch attached to correct svn's handling of the wrong URL. Since the svn port seems to get updated very regularly we can assume that the development version of svn is still containing this issue. If somebody wants to provide a patch we could try convincing the svn developers to push it upstream in order to have it in one of the next svn releases and thus ports. A different approach would be to add a local ports patch to devel/subversion{-freebsd}/files. Responsible-Changed-From-To: freebsd-bugs->freebsd-ports Responsible-Changed-By: arundel Responsible-Changed-When: Thu Nov 18 16:58:58 UTC 2010 Responsible-Changed-Why: This is a ports related PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=152296 _______________________________________________ freebsd-po...@freebsd.org<mailto:freebsd-po...@freebsd.org> mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org<mailto:freebsd-ports-unsubscr...@freebsd.org>" I see only two possible ways to fix this problem: If you have checkouted source tree before, you can use following command to relocate it: find /usr/src -name .svn|xargs -n 1 -J XXX sed -i '.bak' 's,http://svn.freebsd.org/viewvc/base/head/usr.bin/,http://svn.freebsd.org/base/head/usr.bin/,' XXX/entries If you can't checkout source tree with wrong url - fix your script, which check out source tree, but never svn. ------------------------------ Message: 8 Date: Thu, 18 Nov 2010 18:30:14 GMT From: Mateusz Guzik <mjgu...@gmail.com<mailto:mjgu...@gmail.com>> Subject: Re: kern/145999: [request] optional offset for `mdconfig -t vnode' To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011181830.oaiiuezb042...@freefall.freebsd.org<mailto:201011181830.oaiiuezb042...@freefall.freebsd.org>> The following reply was made to PR kern/145999; it has been noted by GNATS. From: Mateusz Guzik <mjgu...@gmail.com<mailto:mjgu...@gmail.com>> To: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org>, m...@aldan.algebra.com<mailto:m...@aldan.algebra.com> Cc: Subject: Re: kern/145999: [request] optional offset for `mdconfig -t vnode' Date: Thu, 18 Nov 2010 19:29:05 +0100 This can be achieved with gnop(8). $ mdocnfig -t vnode <image> md0 $ gnop create -o <offset in bytes> md0 $ ls /dev/md0* /dev/md0 /dev/md0.nop /dev/md0.nops1 /dev/md0.nops1a /dev/md0.nops1b /dev/md0.nops1d Have fun. :) -- Mateusz Guzik ------------------------------ Message: 9 Date: Thu, 18 Nov 2010 20:32:32 GMT From: j...@freebsd.org<mailto:j...@freebsd.org> Subject: Re: kern/79295: umount oddity with NFS (fwe) over VIA Fire II card To: r...@schmalzbauer.de<mailto:r...@schmalzbauer.de>, j...@freebsd.org<mailto:j...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011182032.oaikwwjl076...@freefall.freebsd.org<mailto:201011182032.oaikwwjl076...@freefall.freebsd.org>> Synopsis: umount oddity with NFS (fwe) over VIA Fire II card State-Changed-From-To: open->feedback State-Changed-By: jh State-Changed-When: Thu Nov 18 20:32:32 UTC 2010 State-Changed-Why: Can you still reproduce this on recent FreeBSD versions? http://www.freebsd.org/cgi/query-pr.cgi?pr=79295 ------------------------------ Message: 10 Date: Thu, 18 Nov 2010 20:35:39 GMT From: j...@freebsd.org<mailto:j...@freebsd.org> Subject: Re: kern/85450: [ata] [panic] subdisk6 detached (appears to be a sata problem, SiI 3112) To: b.vand...@chello.nl<mailto:b.vand...@chello.nl>, j...@freebsd.org<mailto:j...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011182035.oaikzdkh078...@freefall.freebsd.org<mailto:201011182035.oaikzdkh078...@freefall.freebsd.org>> Synopsis: [ata] [panic] subdisk6 detached (appears to be a sata problem, SiI 3112) State-Changed-From-To: open->feedback State-Changed-By: jh State-Changed-When: Thu Nov 18 20:35:39 UTC 2010 State-Changed-Why: Can you still reproduce this on recent FreeBSD versions? http://www.freebsd.org/cgi/query-pr.cgi?pr=85450 ------------------------------ Message: 11 Date: Thu, 18 Nov 2010 20:55:34 GMT From: Jason Harmening <jason.harmen...@gmail.com<mailto:jason.harmen...@gmail.com>> Subject: kern/152378: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses To: freebsd-gnats-sub...@freebsd.org<mailto:freebsd-gnats-sub...@freebsd.org> Message-ID: <201011182055.oaiktye5057...@www.freebsd.org<mailto:201011182055.oaiktye5057...@www.freebsd.org>> Number: 152378 Category: kern Synopsis: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses Confidential: no Severity: non-critical Priority: medium Responsible: freebsd-bugs State: open Quarter: Keywords: Date-Required: Class: change-request Submitter-Id: current-users Arrival-Date: Thu Nov 18 21:00:18 UTC 2010 Closed-Date: Last-Modified: Originator: Jason Harmening Release: 8.1-STABLE Organization: Environment: FreeBSD riviera.austin.rr.com<http://riviera.austin.rr.com/> 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Nov 14 12:01:19 CST 2010 ja...@riviera.austin.rr.com:/usr/obj/usr/src/sys/CUSTOM amd64 Description: --Allow DMA addresses anywhere in the lower 4GB--Envy24HT has a 32-bit DMA engine, not 28-bit like Envy24 --Mark interrupt handler as MPSAFE, seems to be correctly synchronized Testing done: daily usage of envy24ht-based sound card for ~1yr on machine w/ 6GB RAM How-To-Repeat: Fix: Patch attached with submission follows: --- envy24ht.h.orig 2007-05-27 14:58:39.000000000 -0500 +++ envy24ht.h 2009-05-06 10:49:56.000000000 -0500 @@ -176,8 +176,7 @@ #define ENVY24HT_VOL_MIN 96 /* -144db(negate) */ #define ENVY24HT_VOL_MUTE 127 /* mute */ -#define BUS_SPACE_MAXADDR_ENVY24 0x0fffffff /* Address space beyond 256MB is not - supported */ +#define BUS_SPACE_MAXADDR_ENVY24 0xffffffff #define BUS_SPACE_MAXSIZE_ENVY24 0x3fffc /* 64k x 4byte(1dword) */ #define ENVY24HT_CCS_GPIO_HDATA 0x1E --- envy24ht.c 2009-05-07 09:09:31.000000000 -0500 +++ envy24ht.c 2009-05-07 09:22:38.000000000 -0500 @@ -2421,7 +2421,7 @@ sc->irq = bus_alloc_resource(sc->dev, SYS_RES_IRQ, &sc->irqid, 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); if (!sc->irq || - snd_setup_intr(sc->dev, sc->irq, 0, envy24ht_intr, sc, &sc->ih)) { + snd_setup_intr(sc->dev, sc->irq, INTR_MPSAFE, envy24ht_intr, sc, &sc->ih)) { device_printf(sc->dev, "unable to map interrupt\n"); return ENXIO; } @@ -2431,7 +2431,7 @@ /*alignment*/4, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_ENVY24, - /*highaddr*/BUS_SPACE_MAXADDR_ENVY24, + /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/BUS_SPACE_MAXSIZE_ENVY24, /*nsegments*/1, /*maxsegsz*/0x3ffff, Release-Note: Audit-Trail: Unformatted: ------------------------------ Message: 12 Date: Thu, 18 Nov 2010 21:22:42 GMT From: arun...@freebsd.org<mailto:arun...@freebsd.org> Subject: Re: kern/152378: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses To: arun...@freebsd.org<mailto:arun...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org>, freebsd-multime...@freebsd.org<mailto:freebsd-multime...@freebsd.org> Message-ID: <201011182122.oailmgu7030...@freefall.freebsd.org<mailto:201011182122.oailmgu7030...@freefall.freebsd.org>> Synopsis: [sound][patch] Update snd_envy24ht to be MPSAFE and use 32-bit DMA addresses Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia Responsible-Changed-By: arundel Responsible-Changed-When: Thu Nov 18 21:20:59 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=152378 ------------------------------ Message: 13 Date: Thu, 18 Nov 2010 21:42:16 GMT From: Bruce Cran <br...@cran.org.uk<mailto:br...@cran.org.uk>> Subject: bin/152385: ee(1) has different keybindings in the livefs environment To: freebsd-gnats-sub...@freebsd.org<mailto:freebsd-gnats-sub...@freebsd.org> Message-ID: <201011182142.oailgger093...@www.freebsd.org<mailto:201011182142.oailgger093...@www.freebsd.org>> Number: 152385 Category: bin Synopsis: ee(1) has different keybindings in the livefs environment Confidential: no Severity: non-critical Priority: low Responsible: freebsd-bugs State: open Quarter: Keywords: Date-Required: Class: sw-bug Submitter-Id: current-users Arrival-Date: Thu Nov 18 21:50:08 UTC 2010 Closed-Date: Last-Modified: Originator: Bruce Cran Release: 9.0-CURRENT Organization: Environment: N/A Description: In the 9-CURRENT snapshot livefs environment the keybindings for ee(1) are different to those when it's used in an installed system. This makes it rather frustrating to use. How-To-Repeat: Run ee from a livefs environment. Fix: Release-Note: Audit-Trail: Unformatted: ------------------------------ Message: 14 Date: Thu, 18 Nov 2010 23:32:27 GMT From: arun...@freebsd.org<mailto:arun...@freebsd.org> Subject: Re: bin/38727: [patch] mptable(1) should complain about garbage arguments To: zait...@redhat.com<mailto:zait...@redhat.com>, arun...@freebsd.org<mailto:arun...@freebsd.org>, freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011182332.oainwrlh064...@freefall.freebsd.org<mailto:201011182332.oainwrlh064...@freefall.freebsd.org>> Synopsis: [patch] mptable(1) should complain about garbage arguments State-Changed-From-To: open->analyzed State-Changed-By: arundel State-Changed-When: Thu Nov 18 23:31:29 UTC 2010 State-Changed-Why: Can somebody please commit this patch? I'll send in an updated version which applies cleanly to HEAD right away. http://www.freebsd.org/cgi/query-pr.cgi?pr=38727 ------------------------------ Message: 15 Date: Fri, 19 Nov 2010 00:00:34 GMT From: Alexander Best <arun...@freebsd.org<mailto:arun...@freebsd.org>> Subject: Re: bin/38727: [patch] mptable(1) should complain about garbage arguments To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011190000.oaj00ywk084...@freefall.freebsd.org<mailto:201011190000.oaj00ywk084...@freefall.freebsd.org>> The following reply was made to PR bin/38727; it has been noted by GNATS. From: Alexander Best <arun...@freebsd.org<mailto:arun...@freebsd.org>> To: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org> Cc: Subject: Re: bin/38727: [patch] mptable(1) should complain about garbage arguments Date: Thu, 18 Nov 2010 23:53:39 +0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline here's an updated patch which applies cleanly to HEAD. cheers. alex -- a13x --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mptable.c.diff" diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c index a16a1b9..b461e61 100644 --- a/usr.sbin/mptable/mptable.c +++ b/usr.sbin/mptable/mptable.c @@ -322,20 +322,21 @@ main( int argc, char *argv[] ) if ( strcmp( optarg, "mesg") == 0 ) dmesg = 1; else - dmesg = 0; - break; - case 'h': - if ( strcmp( optarg, "elp") == 0 ) - usage(); + usage(); break; case 'g': if ( strcmp( optarg, "rope") == 0 ) grope = 1; + else + usage(); break; case 'v': if ( strcmp( optarg, "erbose") == 0 ) verbose = 1; + else + usage(); break; + case 'h': default: usage(); } --+QahgC5+KEYLbs62-- ------------------------------ Message: 16 Date: Fri, 19 Nov 2010 00:10:12 GMT From: Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011190010.oaj0acwk095...@freefall.freebsd.org<mailto:201011190010.oaj0acwk095...@freefall.freebsd.org>> The following reply was made to PR kern/145385; it has been noted by GNATS. From: Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> To: Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> Cc: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org> Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs Date: Thu, 18 Nov 2010 16:09:46 -0800 On Wed, Nov 17, 2010 at 4:34 PM, Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> wrote= : On Thu, Oct 7, 2010 at 10:03 AM, Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> wrote: Here's a patch to remove halted logical processors from root cpu set (cp= uset number zero) and consequently all child sets: http://people.freebsd.org/~avg/cpu-halt.diff Please note that unhalting CPUs will add them to cpuset zero, but will n= ot (re-)add them cpusets of the running processes. =A0So additional action = will be required from system administrator if e would like existing processes to= make use of unhalted CPUs. Also, interrupts that are bound to halted CPUs are not rebound on halt, = and so will be delivered to halted CPUs. =A0This should not be a problem for ty= pical environments, but would be nice to fix anyway. =A0 =A0Sorry for taking so long to get back on this item. The patch looks ok as far as setting the CPUSET is concerned (setting machdep.hlt_logical_cpus=3D1 works on an r710 with 8 logical procs as SCHED_ULE schedules all of the tasks on the non-logical SMT cores, not the logical ones, and the patch properly detects that there aren't any logical processors on a Core2 Quad I have at home), but it's missing a key case where I go from... machdep.hlt_logical_cpus: 1 -> 0 =A0 =A0... it should reset CPUSETZERO. =A0 =A0The overall CPU topology should probably be cached and restored when reset, or at least CPUSETZERO should be reset (probably the simpler and cleaner route to go). =A0 =A0After that all that's required is work for i386 and I'd vote for a commit of the patch. Thanks for the hard work Andriy :)! Just to illustrate, here's how I reproduced the successful behavior (and the problem): 1. Execute the following script: #!/bin/sh i=3D0 ncpus=3D`sysctl -n kern.smp.cpus` while [ $i -lt $ncpus ] ; do while : ; do : ; done & : $(( i +=3D 1 )) done 2. Execute sysctl machdep.hlt_logical_cpus=3D1 . 3. Look at cpuset info; example: Before: # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 pid 2180 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 After: # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 2, 4, 6, 8, 10, 12, 14 pid 2180 mask: 0, 2, 4, 6, 8, 10, 12, 14 # sysctl machdep.hlt_logical_cpus=3D0 machdep.hlt_logical_cpus: 1 -> 0 # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 2, 4, 6, 8, 10, 12, 14 pid 2180 mask: 0, 2, 4, 6, 8, 10, 12, 14 I'm taking the patch and running with it now to try and get it working 100%= . ------------------------------ Message: 17 Date: Fri, 19 Nov 2010 03:10:15 GMT From: Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011190310.oaj3afng082...@freefall.freebsd.org<mailto:201011190310.oaj3afng082...@freefall.freebsd.org>> The following reply was made to PR kern/145385; it has been noted by GNATS. From: Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> To: Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> Cc: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org> Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs Date: Thu, 18 Nov 2010 19:01:08 -0800 --0016e6567d28366ef604955f1e9a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Nov 18, 2010 at 4:09 PM, Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> wrote= : On Wed, Nov 17, 2010 at 4:34 PM, Garrett Cooper <gcoo...@freebsd.org<mailto:gcoo...@freebsd.org>> wro= te: On Thu, Oct 7, 2010 at 10:03 AM, Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> wrote: Here's a patch to remove halted logical processors from root cpu set (c= puset number zero) and consequently all child sets: http://people.freebsd.org/~avg/cpu-halt.diff Please note that unhalting CPUs will add them to cpuset zero, but will = not (re-)add them cpusets of the running processes. =A0So additional action= will be required from system administrator if e would like existing processes t= o make use of unhalted CPUs. Also, interrupts that are bound to halted CPUs are not rebound on halt,= and so will be delivered to halted CPUs. =A0This should not be a problem for t= ypical environments, but would be nice to fix anyway. =A0 =A0Sorry for taking so long to get back on this item. The patch look= s ok as far as setting the CPUSET is concerned (setting machdep.hlt_logical_cpus=3D1 works on an r710 with 8 logical procs as SCHED_ULE schedules all of the tasks on the non-logical SMT cores, not the logical ones, and the patch properly detects that there aren't any logical processors on a Core2 Quad I have at home), but it's missing a key case where I go from... machdep.hlt_logical_cpus: 1 -> 0 =A0 =A0... it should reset CPUSETZERO. =A0 =A0The overall CPU topology should probably be cached and restored when reset, or at least CPUSETZERO should be reset (probably the simpler and cleaner route to go). =A0 =A0After that all that's required is work for i386 and I'd vote for = a commit of the patch. Thanks for the hard work Andriy :)! Just to illustrate, here's how I reproduced the successful behavior (and the problem): 1. Execute the following script: #!/bin/sh i=3D0 ncpus=3D`sysctl -n kern.smp.cpus` while [ $i -lt $ncpus ] ; do =A0 =A0while : ; do : ; done & =A0 =A0: $(( i +=3D 1 )) done 2. Execute sysctl machdep.hlt_logical_cpus=3D1 . 3. Look at cpuset info; example: Before: # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 pid 2180 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 After: # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 2, 4, 6, 8, 10, 12, 14 pid 2180 mask: 0, 2, 4, 6, 8, 10, 12, 14 # sysctl machdep.hlt_logical_cpus=3D0 machdep.hlt_logical_cpus: 1 -> 0 # for i in `ps aux | grep gcooper | grep -v grep | awk '{ print $2 }'` ; do cpuset -g -p $i ; done pid 2179 mask: 0, 2, 4, 6, 8, 10, 12, 14 pid 2180 mask: 0, 2, 4, 6, 8, 10, 12, 14 I'm taking the patch and running with it now to try and get it working 10= 0%. This output was from a patch in progress based on Andriy's work, that seems to get the bits in place properly: test-26# sysctl machdep.hlt_logical_cpus=3D1 sysctl_hlt_logical_cpus: mask: 43690 cpuset_zero_modify (before): cpuset_zero: 65535, mask: 21845 cpuset_update (after): set: 21845, mask: 21845 cpuset_update (after): set: 21845, mask: 21845 cpuset_zero_modify (after): cpuset_zero: 21845, mask: 21845 machdep.hlt_logical_cpus: 0 -> 1 test-26# sysctl machdep.hlt_logical_cpus=3D0 sysctl_hlt_logical_cpus: mask: 0 cpuset_zero_modify (before): cpuset_zero: 21845, mask: 65535 cpuset_update (after): set: 21845, mask: 65535 cpuset_update (after): set: 21845, mask: 21845 cpuset_zero_modify (after): cpuset_zero: 65535, mask: 65535 machdep.hlt_logical_cpus: 1 -> 0 test-26# Weird thing is that the CPU affinity isn't adjusted even though cpuset_zero appears to be modified. I think this is the problem: static int cpuset_testupdate(struct cpuset *set, cpuset_t *mask) { struct cpuset *nset; cpuset_t newmask; int error; mtx_assert(&cpuset_lock, MA_OWNED); if (set->cs_flags & CPU_SET_RDONLY) return (EPERM); if (!CPU_OVERLAP(&set->cs_mask, mask)) return (EDEADLK); CPU_COPY(&set->cs_mask, &newmask); CPU_AND(&newmask, mask); error =3D 0; LIST_FOREACH(nset, &set->cs_children, cs_siblings) if ((error =3D cpuset_testupdate(nset, &newmask)) !=3D 0) break; return (error); } ... /* * Applies the mask 'mask' without checking for empty sets or permissions. */ static void cpuset_update(struct cpuset *set, cpuset_t *mask) { struct cpuset *nset; mtx_assert(&cpuset_lock, MA_OWNED); CPU_AND(&set->cs_mask, mask); LIST_FOREACH(nset, &set->cs_children, cs_siblings) cpuset_update(nset, &set->cs_mask); return; } Note that it's doing CPU_AND, not CPU_OR, in both routines that get called from cpuset_modify. This makes sense to reject bad input (because scheduling on non-existent CPUs is a bad thing :/), but sucks in our case because it means that we can't use cpuset_modify [easily]... Thanks! -Garrett --0016e6567d28366ef604955f1e9a Content-Type: text/x-patch; charset=US-ASCII; name="kern.145385.patch" Content-Disposition: attachment; filename="kern.145385.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ggohebzt1 SW5kZXg6IHN5cy9hbWQ2NC9hbWQ2NC9tcF9tYWNoZGVwLmMKPT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2Ft ZDY0L2FtZDY0L21wX21hY2hkZXAuYwkocmV2aXNpb24gMjE1NDE3KQorKysgc3lzL2FtZDY0L2Ft ZDY0L21wX21hY2hkZXAuYwkod29ya2luZyBjb3B5KQpAQCAtMzksNiArMzksNyBAQAogI2lmZGVm IEdQUk9GIAogI2luY2x1ZGUgPHN5cy9nbW9uLmg+CiAjZW5kaWYKKyNpbmNsdWRlIDxzeXMvY3B1 c2V0Lmg+CiAjaW5jbHVkZSA8c3lzL2tlcm5lbC5oPgogI2luY2x1ZGUgPHN5cy9rdHIuaD4KICNp bmNsdWRlIDxzeXMvbG9jay5oPgpAQCAtODUsNyArODYsNyBAQAogaW50CW1wX25hcHM7CQkvKiAj IG9mIEFwcGxpY2F0aW9ucyBwcm9jZXNzb3JzICovCiBpbnQJYm9vdF9jcHVfaWQgPSAtMTsJLyog ZGVzaWduYXRlZCBCU1AgKi8KIAotZXh0ZXJuICBzdHJ1Y3QgcGNwdSBfX3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o= --0016e6567d28366ef604955f1e9a-- ------------------------------ Message: 18 Date: Fri, 19 Nov 2010 09:10:12 GMT From: Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs To: freebsd-bugs@FreeBSD.org<mailto:freebsd-bugs@FreeBSD.org> Message-ID: <201011190910.oaj9ac2p091...@freefall.freebsd.org<mailto:201011190910.oaj9ac2p091...@freefall.freebsd.org>> The following reply was made to PR kern/145385; it has been noted by GNATS. From: Andriy Gapon <a...@freebsd.org<mailto:a...@freebsd.org>> To: bug-follo...@freebsd.org<mailto:bug-follo...@freebsd.org>, gcoo...@freebsd.org<mailto:gcoo...@freebsd.org> Cc: Subject: Re: kern/145385: [cpu] Logical processor cannot be disabled for some SMT-enabled Intel procs Date: Fri, 19 Nov 2010 11:08:30 +0200 I think that I have explained the behavior that you see and other problems with the patch in the email in which I submitted the patch. -- Andriy Gapon ------------------------------ _______________________________________________ freebsd-bugs@freebsd.org<mailto:freebsd-bugs@freebsd.org> mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org<mailto:freebsd-bugs-unsubscr...@freebsd.org>" End of freebsd-bugs Digest, Vol 399, Issue 9 ******************************************** _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"