From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 26 13:25:06 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51F16106566B; Sun, 26 Dec 2010 13:25:06 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id A62F48FC1B; Sun, 26 Dec 2010 13:25:05 +0000 (UTC) Received: by eyf6 with SMTP id 6so3870724eyf.13 for ; Sun, 26 Dec 2010 05:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=gnb546zqpdYb+Aw2wCtUxk/a/n1JVJkXJangg2OPPlQ=; b=ujjKazxTYQdotfYZRmikv9zkm6AV2SE/n032U3vThovkRHdNHCh0WqK54IBX0ND5cW xjcynIyomNwgqFJaHxQjCA+/06WXl8Rqs52bJ/9EfpEZIR69uu7eAi35qnrA9M8i6Q/O f7CcBGpHpdvbSqd4kd/PJizYPkUtbzskxHmjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=CN2tXtkPFbdnxoP3qlD5c97/IXeGS11WysowRRkkPQpmX+dJHXWii9g23ixyVy4Cax ai4/8WQ2ksPU+nwRA3cW72PopzyHlLAKCp0wrz20sa1Wf5lk//fiQ/QCc9HL5PmPEggS YA4BKxaKyLKRNFMqoyTSQcsylxM89lI3ch7Gc= Received: by 10.14.22.8 with SMTP id s8mr3377396ees.17.1293369903587; Sun, 26 Dec 2010 05:25:03 -0800 (PST) Received: from localhost ([212.98.186.134]) by mx.google.com with ESMTPS id x54sm8027481eeh.5.2010.12.26.05.25.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Dec 2010 05:25:02 -0800 (PST) Date: Sun, 26 Dec 2010 15:24:31 +0200 From: Gleb Kurtsou To: Ivan Voras Message-ID: <20101226132431.GA16490@tops> References: <20101223224619.GA21984@tops> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 13:25:06 -0000 On (25/12/2010 20:29), Ivan Voras wrote: > On 23.12.2010 23:46, Gleb Kurtsou wrote: > > > For testing I've used dbench with 16 processes on 1 Gb swap back md > > device, UFS + SoftUpdates: > > Old hash (Mb/s): 599.94 600.096 599.536 > > SFH hash (Mb/s): 612.439 612.341 609.673 > > > > It's just ~1% improvement, but dbench is not a VFS metadata intensive > > benchmark. Subjectively it feels faster accessing maildir mailboxes > > with ~10.000 messages : ) > > Try blogbench if you need metadata-intensive operations, or even fsx. blogbench should be good, but I've always had hard time interpreting its results. Besides results tend to very a lot, there is no way to set seed value like in fsx, so that I could run exactly the same test in different configurations. I prefer to use blogbench for stability testing. fsx is a different beast, it reads/writes/truncates at random offsets - great tool for debugging mmap/truncate issues. Patch doesn't improve it in any way. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 26 14:44:09 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8D10106564A for ; Sun, 26 Dec 2010 14:44:09 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A66F8FC18 for ; Sun, 26 Dec 2010 14:44:08 +0000 (UTC) Received: by qyk36 with SMTP id 36so7594152qyk.13 for ; Sun, 26 Dec 2010 06:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=9ts8BMjbe4BbLMHcrIxeM4sag+rgmLhx38TSRb7shI8=; b=Cv4faTVBqcWOR/KT2F4KEuCZDzOC+WCObWAGVBrpNtEhz0FJW3MTgAt0cql0DutuT8 vwyHS+pvlOvXt/ZDk3SAjrKZ9rvap3TKCH1d7Pq5TS0wF53W2ta6CYqptncoDsE+/Tdl wsiG4hsls/FHaNIItlsvR81S7MytDbToobKUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=IhY8M7bhW9WtSuy6ONCrndWQf8ZTUW4RO+Lz/ubb7AuRD0dtNeETcwS/TDoQw2VWSW UGD0IIzzx/yUePcTFjGwtrm6hv1JyLxsW1n2rd3wdeax4vZw5VBug5oqDfy5x/HOrctR dIZJGOZbN86EJt40FoDbZaa1bpiwppuLsTV9E= Received: by 10.229.190.204 with SMTP id dj12mr4013850qcb.101.1293373290124; Sun, 26 Dec 2010 06:21:30 -0800 (PST) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.44.70 with HTTP; Sun, 26 Dec 2010 06:20:50 -0800 (PST) In-Reply-To: <20101226132431.GA16490@tops> References: <20101223224619.GA21984@tops> <20101226132431.GA16490@tops> From: Ivan Voras Date: Sun, 26 Dec 2010 15:20:50 +0100 X-Google-Sender-Auth: jwctn3du5m2mtshTi1eaHDCSVNI Message-ID: To: Gleb Kurtsou Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 14:44:09 -0000 On 26 December 2010 14:24, Gleb Kurtsou wrote: > On (25/12/2010 20:29), Ivan Voras wrote: >> On 23.12.2010 23:46, Gleb Kurtsou wrote: >> >> > For testing I've used dbench with 16 processes on 1 Gb swap back md >> > device, UFS + SoftUpdates: >> > Old hash (Mb/s): 599.94 =C2=A0600.096 599.536 >> > SFH hash (Mb/s): 612.439 612.341 609.673 >> > >> > It's just ~1% improvement, but dbench is not a VFS metadata intensive >> > benchmark. Subjectively it feels faster accessing maildir mailboxes >> > with ~10.000 messages : ) >> >> Try blogbench if you need metadata-intensive operations, or even fsx. > blogbench should be good, but I've always had hard time interpreting its > results. Besides results tend to very a lot, there is no way to set seed > value like in fsx, so that I could run exactly the same test in different > configurations. I think the exact sequence of blogbench operations depends on duration of previous operations (it's multithreaded) so from that angle you are right - you can't do a repeatable run except in the trivial cases. On the other hand, it uses rand() without seeding it with srand()/sranddev() so this part is actually very repeatable :) > fsx is a different beast, it reads/writes/truncates at random offsets - > great tool for debugging mmap/truncate issues. Patch doesn't improve it > in any way. It depends on what metadata operations you require - blogbench will create, find and write files (if we ignore atime); fsx will create a decent amount of traffic with file size and mtime changes. In your case you'll probably need to run it on a memory file system or tmpfs due to sensitivity to disk IO latencies (if your improvements is on the order of few percent). From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 26 17:47:27 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5396106564A; Sun, 26 Dec 2010 17:47:27 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 18BC98FC0A; Sun, 26 Dec 2010 17:47:26 +0000 (UTC) Received: by ewy24 with SMTP id 24so4142671ewy.13 for ; Sun, 26 Dec 2010 09:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=L3wR/TL/iVvWhrWIYGfnCA5cPHIiOpIqwhvW7aUoeMg=; b=HMtfzy3GUBpYQxWMmEOrpcpKtp47ybMrb2mNFNmTZxMGj5n5csG/1EAf87gR4cDvML KJ/lUf192l7jX2ZDv8+FHZIB7Wx7AqiRx2DO0nI+NLnpiWB7kdeTDPBC0lD5kgAb2J9T 1TONeTwxvqZn1oyQ/zRBmI8GOgIjS/YcjEYAY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=aM+8UMV+pRNIWoV2bnKHLdS7dxPsPJYAF6DquucanF/33rRN95t1F2iDCMDs/SAKc6 6UcHhB768yRAIOWIBOYirADkZ8Z7Z/Q7KmJ7kSX6lFhcs/dhjvS8zhHCM2WbX66+/P2r M4WkbbvlwUb5/6RgbbGAbbX/V9A5OpVLL1+kM= Received: by 10.213.27.136 with SMTP id i8mr9420743ebc.11.1293385645818; Sun, 26 Dec 2010 09:47:25 -0800 (PST) Received: from localhost ([212.98.186.134]) by mx.google.com with ESMTPS id b52sm8190561eei.7.2010.12.26.09.47.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Dec 2010 09:47:25 -0800 (PST) Date: Sun, 26 Dec 2010 19:46:53 +0200 From: Gleb Kurtsou To: Ivan Voras Message-ID: <20101226174653.GA45598@tops> References: <20101223224619.GA21984@tops> <20101226132431.GA16490@tops> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: [rfc] Replacing FNV and hash32 with Paul Hsieh's SuperFastHash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 17:47:27 -0000 On (26/12/2010 15:20), Ivan Voras wrote: > On 26 December 2010 14:24, Gleb Kurtsou wrote: > > On (25/12/2010 20:29), Ivan Voras wrote: > >> On 23.12.2010 23:46, Gleb Kurtsou wrote: > >> > >> > For testing I've used dbench with 16 processes on 1 Gb swap back md > >> > device, UFS + SoftUpdates: > >> > Old hash (Mb/s): 599.94  600.096 599.536 > >> > SFH hash (Mb/s): 612.439 612.341 609.673 > >> > > >> > It's just ~1% improvement, but dbench is not a VFS metadata intensive > >> > benchmark. Subjectively it feels faster accessing maildir mailboxes > >> > with ~10.000 messages : ) > >> > >> Try blogbench if you need metadata-intensive operations, or even fsx. > > > blogbench should be good, but I've always had hard time interpreting its > > results. Besides results tend to very a lot, there is no way to set seed > > value like in fsx, so that I could run exactly the same test in different > > configurations. > > I think the exact sequence of blogbench operations depends on duration > of previous operations (it's multithreaded) so from that angle you are Why should it? Operation order in dbench or fsx doesn't depend on duration of previous operations. > right - you can't do a repeatable run except in the trivial cases. On > the other hand, it uses rand() without seeding it with > srand()/sranddev() so this part is actually very repeatable :) I've once tried to make its behaviour more predictable, I can't find the patch and can't recall any specifics, but there were architectural issues. You are right, setting seed and calling rand() should give stable results, that's what I was trying to achieve. The other way to work around such "limitation" is too run sufficiently large number of tests. Which requires patience :) > > fsx is a different beast, it reads/writes/truncates at random offsets - > > great tool for debugging mmap/truncate issues. Patch doesn't improve it > > in any way. > > It depends on what metadata operations you require - blogbench will > create, find and write files (if we ignore atime); fsx will create a > decent amount of traffic with file size and mtime changes. In your > case you'll probably need to run it on a memory file system or tmpfs > due to sensitivity to disk IO latencies (if your improvements is on > the order of few percent). I meant create/readdir/remove as metadata intensive operations -- blogbench is very good for it. fsx creates single file. Most people will only notice changes in vfs_cache.c and UFS' dirhash, that's 600 Mb/s vs 613 Mb/s improvement I've written about above. I'd appreciate if someone could benchmark if_lagg, it was using hash32 for binary data, which could result in poor hash table usage, which could possibly make most of the data go on single interface. But there would be hardly any performance improvement due to limited network bandwidth. Besides old hash32 is faster than new SFH. From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 27 11:07:37 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9243D10659D4 for ; Mon, 27 Dec 2010 11:07:37 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76815.mail.sg1.yahoo.com (web76815.mail.sg1.yahoo.com [124.108.123.119]) by mx1.freebsd.org (Postfix) with SMTP id E3D568FC19 for ; Mon, 27 Dec 2010 11:07:36 +0000 (UTC) Received: (qmail 65658 invoked by uid 60001); 27 Dec 2010 11:07:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293448055; bh=CwSMfBX4zJh55RRtdVprc5Hld5cX+4K6WoXnQxCqC70=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Enwf3Ph4i57pTpZmrKmDqcWOBL4wNDCOnT7/617uVMovR9DmmTZWTq+2uCq/QK4BcrdkesyGJO0PKd7yBjBUHFneJjt7z228HufHTcCW0U7qNHU2JnFagMrcEGnKO2RunLCFLx7pTt2kCsGtki8NDLEbqCTmw8APsmRVMu5vdXE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=rnhHV/q5nOCff9I+ayjGnep8RLSlPqOnRiS7erNKP2l0oSnbXqVmp5eg8rBEZxEXItRvoT0ytqv0D87Q0pHLG35S1NftMYIsjB2z9Z4nS7Ar6w3gsJaQY+FFd8kEKDb/5NAUPflxD/BitE1fKoB9gHrNIXUE+6mbjN3Zbw2sm4Y=; Message-ID: <511355.65650.qm@web76815.mail.sg1.yahoo.com> X-YMail-OSG: 4a36FFcVM1muo2PLzGIil78wOI7Bnn2s94uPir2tXHu3e9V cIdDs3UcIsLagXQedt9zyrHIcsE_3oyqs1Y65LSUTZpnN2oMoYZGHwbwl0IB m2Hx44nmFubJOS2ZfYVcmwRMG46IwOx2nSRxwW0YmvkAvVb2tiOy2ANX1Qys U9friANVA_p_9aS_drD6h5D4OSs6fqkH5FcISylVIER1mt0zKsv8aLKxENnj B_LInETcaC5CR0DF4L7YtJRQlM7SjmG54HMtR8u3.Ac8MEOH5U8JBe2cG31e JcoTqHlBkfsRor50VcQQYrWD_lcV5Di6WKH97.w-- Received: from [125.163.31.214] by web76815.mail.sg1.yahoo.com via HTTP; Mon, 27 Dec 2010 19:07:35 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Mon, 27 Dec 2010 19:07:35 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 11:07:37 -0000 Hi, I'm trying to install FreeBSD 8.0 on AMD Geode LX800 (CS5536 "southbridge"). However, it cannot detect the IDE controller (in the CS5536) correctly. It says something similar to this: "IDE controller not present" I did lspci in Linux (BackTrack 3) and I saw that the IDE controller Base Address Registers (BARs) are all disabled (only contains zeros), except for one of them (BAR4). BAR4 decodes 16-bytes I/O ports (FFF0h-FFFFh). The decoded ports "seems" to conform to the PCI IDE specification for "native-PCI IDE controller" (relocatable within the 16-bit I/O address space). I did "cat /proc/ioports" and I found that the following I/O port address ranges decoded correctly to the IDE controller in the CS5536 "southbridge": 1F0h-1F7h 3F6h 170h-177h FFF0h-FFFFh My question: Does FreeBSD require the IDE controller BARs to be programmed to also decode legacy I/O ports ranges (1F0h-1F7h,3F6h and 170h-177h)? What if those ranges are not programmed into the BARs of the IDE controller? Would the IDE controller be considered not present (disabled)? TIA, Darmawan PS: I'm working on the BIOS for this particular system but I have yet to be able to program the BARs to the aforementioned legacy I/O port ranges. This system is very peculiar because the PCI subsystem is virtualized. From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 27 12:45:54 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6781F106564A; Mon, 27 Dec 2010 12:45:54 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from services.syscare.sk (services.syscare.sk [188.40.39.36]) by mx1.freebsd.org (Postfix) with ESMTP id 26E518FC15; Mon, 27 Dec 2010 12:45:54 +0000 (UTC) Received: from services.syscare.sk (services [188.40.39.36]) by services.syscare.sk (Postfix) with ESMTP id BFA956A912; Mon, 27 Dec 2010 13:26:41 +0100 (CET) X-Virus-Scanned: amavisd-new at rulez.sk Received: from services.syscare.sk ([188.40.39.36]) by services.syscare.sk (services.rulez.sk [188.40.39.36]) (amavisd-new, port 10024) with ESMTP id 9ub6yXdchtfU; Mon, 27 Dec 2010 13:26:41 +0100 (CET) Received: from danger-mbp.local (adsl-dyn25.91-127-61.t-com.sk [91.127.61.25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: danger@rulez.sk) by services.syscare.sk (Postfix) with ESMTPSA id 88F676A908; Mon, 27 Dec 2010 13:26:41 +0100 (CET) Message-ID: <4D188601.5060204@FreeBSD.org> Date: Mon, 27 Dec 2010 13:26:41 +0100 From: Daniel Gerzo Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14pre) Gecko/20101225 Lanikai/3.1.8pre MIME-Version: 1.0 To: current@freebsd.org, hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: HEADSUP: Call for FreeBSD Status Reports - 4Q/2010 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 12:45:54 -0000 Dear all, I would like to remind you that the next round of status reports covering the last quarter of 2010 is due on January 15th, 2011. This initiative is very welcome in our community. Therefore, I would like to ask you to submit your status reports soon, so that we can compile the report on time. Do not hesitate and write us a few lines - a short description about what you are working on, what are your plans and goals, so we can inform our community about your great work! Check out the reports from the past to get some inspiration of what your submission should look like. If you know about a project that should be included in the status report, please let us know as well, so we can poke the responsible people to provide us with something useful. Updates to submissions from the last report are welcome too. Note that the submissions are accepted from anyone involved within the FreeBSD community, you do not have to be a FreeBSD committer. Submissions about anything related to FreeBSD are very welcome! Please email us the filled-in XML template which can be found at http://www.freebsd.org/news/status/report-sample.xml to monthly@FreeBSD.org, or alternatively use our web based form located at http://www.freebsd.org/cgi/monthly.cgi. For more information, please visit http://www.freebsd.org/news/status/. We are looking forward to see your submissions! -- S pozdravom / Best regards Daniel Gerzo, FreeBSD committer From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 10:25:00 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E5C7106564A for ; Tue, 28 Dec 2010 10:25:00 +0000 (UTC) (envelope-from lists-freebsd@silverwraith.com) Received: from chiku.silverwraith.com (chiku.silverwraith.com [66.228.208.227]) by mx1.freebsd.org (Postfix) with ESMTP id 6B3848FC08 for ; Tue, 28 Dec 2010 10:25:00 +0000 (UTC) Received: from avleen by chiku.silverwraith.com with local (Exim 4.72) (envelope-from ) id 1PXW5P-0006Er-1v for freebsd-hackers@freebsd.org; Tue, 28 Dec 2010 01:43:19 -0800 Date: Tue, 28 Dec 2010 01:43:19 -0800 From: Avleen Vig To: freebsd-hackers@freebsd.org Message-ID: <20101228094318.GA4405@silverwraith.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Creating an LVM-backed FreeBSD DomU in a Linux Dom0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 10:25:00 -0000 After searching high and low and not finding exactly what I wanted (although Adrian Chadd's documents came close), I decided to document a lengthy but worthwhile procedure: How to install a FreeBSD DomU guest in a Linux Dom0 Xen host, from scratch, with LVM-backed storage (rather than file based), and without the need to rely on random kernels and ISO[1] http://bit.ly/dVhfFe Hopefully people find it useful :-) I haven't yet broached configuring inside the Xen host. Again there is scattered documentation available. I'll try to bring it together next. [1] I gave serious thought to uploading my own stuff along with the other similar things available already, but in the end I thought it better if people try out how to do it, given that the amount of work will be almost the same, or even slightly less building it yourself. Plus there are the usual security and availability concerns.. :) -- Avleen Vig Systems Administrator Personal: www.silverwraith.com From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 13:03:37 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D603A106566B for ; Tue, 28 Dec 2010 13:03:37 +0000 (UTC) (envelope-from s@samu.pl) Received: from samu.pl (samu.pl [IPv6:2001:41d0:1:f0cf::1]) by mx1.freebsd.org (Postfix) with ESMTP id 73DCC8FC1D for ; Tue, 28 Dec 2010 13:03:37 +0000 (UTC) Received: by samu.pl (Postfix, from userid 80) id 0101CCD5FC; Tue, 28 Dec 2010 14:03:35 +0100 (CET) To: MIME-Version: 1.0 Date: Tue, 28 Dec 2010 14:03:35 +0100 From: =?UTF-8?Q?Jakub_Szafra=C5=84ski?= Organization: PIRC.PL Message-ID: <610581cbf67aec26205e429adc2c42b1@samu.pl> X-Sender: s@samu.pl User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Getting full binary path in MAC Framework X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 13:03:37 -0000 Hi, At first sory for my bad english and for my behaviour - english is not my native language, and I am new to mail lists. I'm trying to get the *FULL* path to a binary launched by the user, so that I could use it later. I've managed to get just the binary name, OR get the binary name from /proc, but I'd like it to be better (and don't require /proc). This is what I've already written: #include #include #include #include #include #include #include #include #include #include #include #include SYSCTL_DECL(_security_mac); SYSCTL_NODE(_security_mac, OID_AUTO, veriexec, CTLFLAG_RW, 0, "MAC veriexec implementation"); static int veriexec_enabled = 0; SYSCTL_INT(_security_mac_veriexec, OID_AUTO, enabled, CTLFLAG_RW, &veriexec_enabled, 0, "Enforce mac_veriexec policy"); static int veriexec_level = 0; SYSCTL_INT(_security_mac_veriexec, OID_AUTO, level, CTLFLAG_RW, &veriexec_level, 0, "Veriexec security level"); static int veriexec_vnode_check_exec(struct ucred *cred, struct vnode *vp, struct label *vplabel, struct image_params *imgp, struct label *execlabel) { if (veriexec_enabled) { if (cred && imgp && imgp->execpath) { log(LOG_NOTICE, "UID %d launched PID %d, veriexec_level: %d %s\n", cred->cr_uid, imgp->proc->p_pid, veriexec_level, imgp->execpath); } } return 0; } static struct mac_policy_ops veriexec_ops = { .mpo_vnode_check_exec = veriexec_vnode_check_exec, }; MAC_POLICY_SET(&veriexec_ops, mac_veriexec, "MAC veriexec implementation", MPC_LOADTIME_FLAG_UNLOADOK, NULL); I'll be glad for any help Jakub 'samu' Szafrański From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 13:40:07 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0BF71065670 for ; Tue, 28 Dec 2010 13:40:07 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 418F28FC0C for ; Tue, 28 Dec 2010 13:40:06 +0000 (UTC) Received: by eyf6 with SMTP id 6so4405883eyf.13 for ; Tue, 28 Dec 2010 05:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=SPUeCzW7+SENpEVV9Dq09JXchLVbTA6KoFujIllhqzo=; b=OuMpVA11gZsdKBWdGZ9W6droz6qb95owTwuMFyuoJsTwVDtcYmPTLebmk0/u0M9yJH 7M3tZ/ctGwPF294htV6+NKYMUTEuP1UqOfmnQ7bbAwMWUJFjkF3wwKqhZISLCc+kvTO2 P8n7DmpPMwgdX+mdtPUCTABYE/W10FxCxQ/QU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=u8cFuiZw2BfsTQ9qFuQxLs0gXE68z01hk0wrn8vHFJziEg/Ji8TlZ8ozI7/shY2lNA 3QzKrY4yTja+u4eNPt/0NFYRJSszfLIQMSTj8tPyIlhbbl/EmHI1LTYM1IOanPFN9p2j xp/og9yAob97KBMSX4gkA/wlxRSXCzCkUDpWU= Received: by 10.14.119.1 with SMTP id m1mr7881250eeh.28.1293543606082; Tue, 28 Dec 2010 05:40:06 -0800 (PST) Received: from localhost ([212.98.186.134]) by mx.google.com with ESMTPS id t5sm9717291eeh.20.2010.12.28.05.40.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Dec 2010 05:40:05 -0800 (PST) Date: Tue, 28 Dec 2010 15:39:29 +0200 From: Gleb Kurtsou To: Jakub =?utf-8?Q?Szafra=C5=84ski?= Message-ID: <20101228133928.GA3986@tops> References: <610581cbf67aec26205e429adc2c42b1@samu.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <610581cbf67aec26205e429adc2c42b1@samu.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: Getting full binary path in MAC Framework X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 13:40:07 -0000 On (28/12/2010 14:03), Jakub Szafrański wrote: > Hi, > At first sory for my bad english and for my behaviour - english is not my > native language, and I am new to mail lists. > > I'm trying to get the *FULL* path to a binary launched by the user, so > that I could use it later. I've managed to get just the binary name, OR get > the binary name from /proc, but I'd like it to be better (and don't require > /proc). Due to VFS design there is no reliable way of getting full path to vnode. In some cases getting full path is impossible, e.g. file may be deleted but still open. It looks like you are working on a security policy to verify executable before running it, I'd suggest you attach signature to executable itself or use extended attributes. Among other issues path-based security solutions are inherently race-prone and thus generally not as secure as advertised. > > This is what I've already written: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > #include > > > SYSCTL_DECL(_security_mac); > > SYSCTL_NODE(_security_mac, OID_AUTO, veriexec, CTLFLAG_RW, 0, > "MAC veriexec implementation"); > > > static int veriexec_enabled = 0; > SYSCTL_INT(_security_mac_veriexec, OID_AUTO, enabled, CTLFLAG_RW, > &veriexec_enabled, 0, "Enforce mac_veriexec policy"); > > static int veriexec_level = 0; > SYSCTL_INT(_security_mac_veriexec, OID_AUTO, level, CTLFLAG_RW, > &veriexec_level, 0, "Veriexec security level"); > > static int veriexec_vnode_check_exec(struct ucred *cred, struct vnode *vp, > struct label *vplabel, struct image_params *imgp, > struct label *execlabel) > { > if (veriexec_enabled) { > if (cred && imgp && imgp->execpath) { > log(LOG_NOTICE, "UID %d launched PID %d, veriexec_level: %d %s\n", > cred->cr_uid, imgp->proc->p_pid, veriexec_level, imgp->execpath); > } > } > return 0; > } > > static struct mac_policy_ops veriexec_ops = > { > .mpo_vnode_check_exec = veriexec_vnode_check_exec, > }; > > MAC_POLICY_SET(&veriexec_ops, mac_veriexec, "MAC veriexec implementation", > MPC_LOADTIME_FLAG_UNLOADOK, NULL); > > I'll be glad for any help > > Jakub 'samu' Szafrański > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 15:20:17 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D0FE106564A for ; Tue, 28 Dec 2010 15:20:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 083D68FC0C for ; Tue, 28 Dec 2010 15:20:17 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9631546B2C; Tue, 28 Dec 2010 10:20:16 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A3A988A027; Tue, 28 Dec 2010 10:20:15 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 28 Dec 2010 10:20:11 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <511355.65650.qm@web76815.mail.sg1.yahoo.com> In-Reply-To: <511355.65650.qm@web76815.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012281020.11953.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 28 Dec 2010 10:20:15 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Darmawan Salihun Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 15:20:17 -0000 On Monday, December 27, 2010 6:07:35 am Darmawan Salihun wrote: > Hi, > > I'm trying to install FreeBSD 8.0 on AMD Geode LX800 (CS5536 "southbridge"). However, it cannot detect the IDE controller (in the CS5536) correctly. It says something similar to this: > "IDE controller not present" Hmm, I can't find a message like that anywhere. Can you get the exact message you are seeing? > I did lspci in Linux (BackTrack 3) > and I saw that the IDE controller Base Address Registers (BARs) > are all disabled (only contains zeros), > except for one of them (BAR4). > BAR4 decodes 16-bytes I/O ports (FFF0h-FFFFh). > The decoded ports "seems" to conform to the PCI IDE specification > for "native-PCI IDE controller" (relocatable within the > 16-bit I/O address space). > > I did "cat /proc/ioports" and I found that > the following I/O port address ranges decoded correctly > to the IDE controller in the CS5536 "southbridge": > > 1F0h-1F7h > 3F6h > 170h-177h > FFF0h-FFFFh > > My question: > Does FreeBSD require the IDE controller BARs > to be programmed to also decode > legacy I/O ports ranges (1F0h-1F7h,3F6h and 170h-177h)? No. We hardcode the ISA ranges for BARs 0 through 3 if a PCI IDE controller has the "Primary" or "Secondary" bits set in its programming interface register and don't even look at the BARs. We do always examines BARs 4 and 5 using the normal probing scheme of writing all 1's, etc. The code in question looks like this: /* * For ATA devices we need to decide early what addressing mode to use. * Legacy demands that the primary and secondary ATA ports sits on the * same addresses that old ISA hardware did. This dictates that we use * those addresses and ignore the BAR's if we cannot set PCI native * addressing mode. */ static void pci_ata_maps(device_t bus, device_t dev, struct resource_list *rl, int force, uint32_t prefetchmask) { struct resource *r; int rid, type, progif; #if 0 /* if this device supports PCI native addressing use it */ progif = pci_read_config(dev, PCIR_PROGIF, 1); if ((progif & 0x8a) == 0x8a) { if (pci_mapbase(pci_read_config(dev, PCIR_BAR(0), 4)) && pci_mapbase(pci_read_config(dev, PCIR_BAR(2), 4))) { printf("Trying ATA native PCI addressing mode\n"); pci_write_config(dev, PCIR_PROGIF, progif | 0x05, 1); } } #endif progif = pci_read_config(dev, PCIR_PROGIF, 1); type = SYS_RES_IOPORT; if (progif & PCIP_STORAGE_IDE_MODEPRIM) { pci_add_map(bus, dev, PCIR_BAR(0), rl, force, prefetchmask & (1 << 0)); pci_add_map(bus, dev, PCIR_BAR(1), rl, force, prefetchmask & (1 << 1)); } else { rid = PCIR_BAR(0); resource_list_add(rl, type, rid, 0x1f0, 0x1f7, 8); r = resource_list_reserve(rl, bus, dev, type, &rid, 0x1f0, 0x1f7, 8, 0); rid = PCIR_BAR(1); resource_list_add(rl, type, rid, 0x3f6, 0x3f6, 1); r = resource_list_reserve(rl, bus, dev, type, &rid, 0x3f6, 0x3f6, 1, 0); } if (progif & PCIP_STORAGE_IDE_MODESEC) { pci_add_map(bus, dev, PCIR_BAR(2), rl, force, prefetchmask & (1 << 2)); pci_add_map(bus, dev, PCIR_BAR(3), rl, force, prefetchmask & (1 << 3)); } else { rid = PCIR_BAR(2); resource_list_add(rl, type, rid, 0x170, 0x177, 8); r = resource_list_reserve(rl, bus, dev, type, &rid, 0x170, 0x177, 8, 0); rid = PCIR_BAR(3); resource_list_add(rl, type, rid, 0x376, 0x376, 1); r = resource_list_reserve(rl, bus, dev, type, &rid, 0x376, 0x376, 1, 0); } pci_add_map(bus, dev, PCIR_BAR(4), rl, force, prefetchmask & (1 << 4)); pci_add_map(bus, dev, PCIR_BAR(5), rl, force, prefetchmask & (1 << 5)); } -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 18:38:07 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79A31106567A for ; Tue, 28 Dec 2010 18:38:07 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76806.mail.sg1.yahoo.com (web76806.mail.sg1.yahoo.com [124.108.123.110]) by mx1.freebsd.org (Postfix) with SMTP id E392A8FC25 for ; Tue, 28 Dec 2010 18:38:06 +0000 (UTC) Received: (qmail 10064 invoked by uid 60001); 28 Dec 2010 18:38:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293561485; bh=tju0JUYC+9UoME5bzWpcFZea73e059ahD7+or8LU9wY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dXUzkv/X1KN0JY/7Cf1YfTCpmG8XmHWC8KS1ELUMTqPAWcglmR1SRaHD22f/0Dwh0yn/Fx+AGkdIvgYOfwc7vip/iCoP+jWPp0KYPgw2YRpXolAq+vdvzbBebzEZYqNDIzYESn4DAVXjpoUoL90GcQG7nE2Tk14e9tpG9Ljdseo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3SjAftHJmv8MP+GNuDEd1R+wh42ZXvcVFBM3D1ILPeEAtfWKJf+rfdyFyyJc0uA85IT2I1wqdQaaURQvETrTbOxidw9yCcljkYNoWfwUnkw0iZwWRZh3qYLT5Lmbvnne1HRD9q2JKEk87Lndq72cIwvB13W0Q8ZO456C5FTcUuI=; Message-ID: <551460.9153.qm@web76806.mail.sg1.yahoo.com> X-YMail-OSG: Hla9tFAVM1nLnqZe0Clw3_3fi.k2_RLbyTUPSuRiu_KMljk 5pMDEir0NvrgEqN7YTEYd4TXKIdl9kceNTmUw.UTC1tt70amipDxHoCGVsWF SkjSUFd2RQ17af5cP.EM8yDwVf0ENgIXJkMoqmPaGH9rXZZd3p6ja1dHDrAX R14Mgd7aVr4lTNsSfeneAwEnUm1BUlzI5yak_lFGvEdKWGbHTqMfzyqeJsd7 xt8ypmYEb0f_bxsceT1dFFQY2ruhtWSGQ_ppoe4uuDwnRS_1qZGRISoFZiYj de7QDL7UhBCn8SJzRWZMzgXemmviRd82InZwB2LE7Crmkg7EKeGToCdcgnFT fdsqiLnflVGG9RmrNsg-- Received: from [114.58.237.101] by web76806.mail.sg1.yahoo.com via HTTP; Wed, 29 Dec 2010 02:38:05 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Wed, 29 Dec 2010 02:38:05 +0800 (SGT) From: Darmawan Salihun To: freebsd-hackers@freebsd.org, John Baldwin In-Reply-To: <201012281020.11953.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 18:38:07 -0000 Hi,=0A=0A--- On Tue, 12/28/10, John Baldwin wrote:=0A=0A>= From: John Baldwin =0A> Subject: Re: PCI IDE Controller B= ase Address Register setting=0A> To: freebsd-hackers@freebsd.org=0A> Cc: "D= armawan Salihun" =0A> Date: Tuesday, December 2= 8, 2010, 10:20 AM=0A> On Monday, December 27, 2010 6:07:35=0A> am Darmawan = Salihun wrote:=0A> > Hi, =0A> > =0A> > I'm trying to install FreeBSD 8.0 on= AMD Geode LX800=0A> (CS5536 "southbridge"). =0A> However, it cannot detect= the IDE controller (in the=0A> CS5536) correctly. It =0A> says something s= imilar to this: =0A> > "IDE controller not present"=0A> =0A> Hmm, I can't f= ind a message like that anywhere.=A0 Can=0A> you get the exact message =0A>= you are seeing?=0A> =0A=0AIt says: =0A=0A"No disks found! Please verify th= at your disk controller is being properly probed at boot time."=0A=0AThis h= appens as I try to run fdisk during installation. The IDE HDD is on the pri= mary slave because the primary master is a CF slot.=0AMoreover, the integra= ted IDE controller only has support for =0A__single__ IDE channel, the prim= ary IDE channel.=0A=0A=0A> > I did lspci in Linux (BackTrack 3) =0A> > and = I saw that the IDE controller Base Address=0A> Registers (BARs) =0A> > are = all disabled (only contains zeros), =0A> > except for one of them (BAR4). = =0A> > BAR4 decodes 16-bytes I/O ports (FFF0h-FFFFh). =0A> > The decoded po= rts "seems" to conform to the PCI IDE=0A> specification =0A> > for "native-= PCI IDE controller" (relocatable within=0A> the =0A> > 16-bit I/O address s= pace). =0A> > =0A> > I did "cat /proc/ioports" and I found that =0A> > the = following I/O port address ranges decoded=0A> correctly =0A> > to the IDE c= ontroller in the CS5536 "southbridge":=0A> > =0A> > 1F0h-1F7h =0A> > 3F6h = =0A> > 170h-177h=0A> > FFF0h-FFFFh=0A> > =0A> > My question: =0A> > Does Fr= eeBSD require the IDE controller BARs =0A> > to be programmed to also decod= e =0A> > legacy I/O ports ranges (1F0h-1F7h,3F6h and=0A> 170h-177h)? =0A> = =0A> No.=A0 We hardcode the ISA ranges for BARs 0 through 3=0A> if a PCI ID= E controller =0A> has the "Primary" or "Secondary" bits set in its=0A> prog= ramming interface =0A> register and don't even look at the BARs.=A0 =0A=0AP= robably, the current setting in the PCI configuration =0Aspace of the IDE c= ontroller contains some error in the =0Aprogramming interface register. I'l= l re-probe with lspci =0Aand report back. =0A=0A> We do=0A> always examines= BARs 4 and 5 =0A> using the normal probing scheme of writing all 1's,=0A> = etc.=A0 The code in question =0A> looks like this:=0A> =0A> /*=0A> * For A= TA devices we need to decide early what addressing=0A> mode to use.=0A> * = Legacy demands that the primary and secondary ATA ports=0A> sits on the=0A>= * same addresses that old ISA hardware did. This dictates=0A> that we use= =0A> * those addresses and ignore the BAR's if we cannot set=0A> PCI nativ= e=0A> * addressing mode.=0A> */=0A> static void=0A> pci_ata_maps(device_t= bus, device_t dev, struct=0A> resource_list *rl, int force,=0A> =A0 =A0 ui= nt32_t prefetchmask)=0A> {=0A> =A0=A0=A0 struct resource *r;=0A> =A0=A0=A0 = int rid, type, progif;=0A> #if 0=0A> =A0=A0=A0 /* if this device supports P= CI native=0A> addressing use it */=0A> =A0=A0=A0 progif =3D pci_read_config= (dev,=0A> PCIR_PROGIF, 1);=0A> =A0=A0=A0 if ((progif & 0x8a) =3D=3D 0x8a) {= =0A> =A0=A0=A0 =A0=A0=A0 if=0A> (pci_mapbase(pci_read_config(dev, PCIR_BAR(= 0), 4))=0A> &&=0A> =A0=A0=A0 =A0=A0=A0 =A0 =A0=0A> pci_mapbase(pci_read_con= fig(dev, PCIR_BAR(2), 4))) {=0A> =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=0A> printf("= Trying ATA native PCI addressing mode\n");=0A> =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0=0A> pci_write_config(dev, PCIR_PROGIF, progif | 0x05, 1);=0A> =A0=A0=A0= =A0=A0=A0 }=0A> =A0=A0=A0 }=0A> #endif=0A> =A0=A0=A0 progif =3D pci_read_c= onfig(dev,=0A> PCIR_PROGIF, 1);=0A> =A0=A0=A0 type =3D SYS_RES_IOPORT;=0A> = =A0=A0=A0 if (progif &=0A> PCIP_STORAGE_IDE_MODEPRIM) {=0A> =A0=A0=A0 =A0= =A0=A0 pci_add_map(bus, dev,=0A> PCIR_BAR(0), rl, force,=0A> =A0=A0=A0 =A0= =A0=A0 =A0 =A0=0A> prefetchmask & (1 << 0));=0A> =A0=A0=A0 =A0=A0=A0 pci_ad= d_map(bus, dev,=0A> PCIR_BAR(1), rl, force,=0A> =A0=A0=A0 =A0=A0=A0 =A0 =A0= =0A> prefetchmask & (1 << 1));=0A> =A0=A0=A0 } else {=0A> =A0=A0=A0 =A0=A0= =A0 rid =3D PCIR_BAR(0);=0A> =A0=A0=A0 =A0=A0=A0 resource_list_add(rl,=0A> = type, rid, 0x1f0, 0x1f7, 8);=0A> =A0=A0=A0 =A0=A0=A0 r =3D=0A> resource_lis= t_reserve(rl, bus, dev, type, &rid, 0x1f0,=0A> =A0=A0=A0 =A0=A0=A0 =A0 =A0 = 0x1f7,=0A> 8, 0);=0A> =A0=A0=A0 =A0=A0=A0 rid =3D PCIR_BAR(1);=0A> =A0=A0= =A0 =A0=A0=A0 resource_list_add(rl,=0A> type, rid, 0x3f6, 0x3f6, 1);=0A> = =A0=A0=A0 =A0=A0=A0 r =3D=0A> resource_list_reserve(rl, bus, dev, type, &ri= d, 0x3f6,=0A> =A0=A0=A0 =A0=A0=A0 =A0 =A0 0x3f6,=0A> 1, 0);=0A> =A0=A0=A0 }= =0A> =A0=A0=A0 if (progif &=0A> PCIP_STORAGE_IDE_MODESEC) {=0A> =A0=A0=A0 = =A0=A0=A0 pci_add_map(bus, dev,=0A> PCIR_BAR(2), rl, force,=0A> =A0=A0=A0 = =A0=A0=A0 =A0 =A0=0A> prefetchmask & (1 << 2));=0A> =A0=A0=A0 =A0=A0=A0 pci= _add_map(bus, dev,=0A> PCIR_BAR(3), rl, force,=0A> =A0=A0=A0 =A0=A0=A0 =A0 = =A0=0A> prefetchmask & (1 << 3));=0A> =A0=A0=A0 } else {=0A> =A0=A0=A0 =A0= =A0=A0 rid =3D PCIR_BAR(2);=0A> =A0=A0=A0 =A0=A0=A0 resource_list_add(rl,= =0A> type, rid, 0x170, 0x177, 8);=0A> =A0=A0=A0 =A0=A0=A0 r =3D=0A> resourc= e_list_reserve(rl, bus, dev, type, &rid, 0x170,=0A> =A0=A0=A0 =A0=A0=A0 =A0= =A0 0x177,=0A> 8, 0);=0A> =A0=A0=A0 =A0=A0=A0 rid =3D PCIR_BAR(3);=0A> =A0= =A0=A0 =A0=A0=A0 resource_list_add(rl,=0A> type, rid, 0x376, 0x376, 1);=0A>= =A0=A0=A0 =A0=A0=A0 r =3D=0A> resource_list_reserve(rl, bus, dev, type, &r= id, 0x376,=0A> =A0=A0=A0 =A0=A0=A0 =A0 =A0 0x376,=0A> 1, 0);=0A> =A0=A0=A0 = }=0A> =A0=A0=A0 pci_add_map(bus, dev, PCIR_BAR(4), rl,=0A> force,=0A> =A0= =A0=A0 =A0 =A0 prefetchmask & (1=0A> << 4));=0A> =A0=A0=A0 pci_add_map(bus,= dev, PCIR_BAR(5), rl,=0A> force,=0A> =A0=A0=A0 =A0 =A0 prefetchmask & (1= =0A> << 5));=0A> }=0A> =0A> =0A=0AThanks for the hints. =0A=0A-Darmawan=0A= =0A> -- =0A> John Baldwin=0A> _____________________________________________= __=0A> freebsd-hackers@freebsd.org=0A> mailing list=0A> http://lists.freebs= d.org/mailman/listinfo/freebsd-hackers=0A> To unsubscribe, send any mail to= "freebsd-hackers-unsubscribe@freebsd.org"=0A> =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 18:52:51 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0E8B1065674 for ; Tue, 28 Dec 2010 18:52:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C0FBA8FC17 for ; Tue, 28 Dec 2010 18:52:51 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 57E2D46B06; Tue, 28 Dec 2010 13:52:51 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 2EE438A01D; Tue, 28 Dec 2010 13:52:50 -0500 (EST) From: John Baldwin To: Darmawan Salihun Date: Tue, 28 Dec 2010 13:52:31 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <551460.9153.qm@web76806.mail.sg1.yahoo.com> In-Reply-To: <551460.9153.qm@web76806.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012281352.31367.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 28 Dec 2010 13:52:50 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 18:52:52 -0000 On Tuesday, December 28, 2010 1:38:05 pm Darmawan Salihun wrote: > Hi, > > --- On Tue, 12/28/10, John Baldwin wrote: > > > From: John Baldwin > > Subject: Re: PCI IDE Controller Base Address Register setting > > To: freebsd-hackers@freebsd.org > > Cc: "Darmawan Salihun" > > Date: Tuesday, December 28, 2010, 10:20 AM > > On Monday, December 27, 2010 6:07:35 > > am Darmawan Salihun wrote: > > > Hi, > > > > > > I'm trying to install FreeBSD 8.0 on AMD Geode LX800 > > (CS5536 "southbridge"). > > However, it cannot detect the IDE controller (in the > > CS5536) correctly. It > > says something similar to this: > > > "IDE controller not present" > > > > Hmm, I can't find a message like that anywhere. Can > > you get the exact message > > you are seeing? > > > > It says: > > "No disks found! Please verify that your disk controller is being properly > probed at boot time." Oh, so this is a message from the installer. Can you capture a verbose dmesg via a serial console perhaps? Or at least the kernel probe messages for your ATA controller? -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 19:11:02 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9689C10656EB for ; Tue, 28 Dec 2010 19:11:02 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76809.mail.sg1.yahoo.com (web76809.mail.sg1.yahoo.com [124.108.123.113]) by mx1.freebsd.org (Postfix) with SMTP id 6DF2B8FC18 for ; Tue, 28 Dec 2010 19:11:01 +0000 (UTC) Received: (qmail 58721 invoked by uid 60001); 28 Dec 2010 19:11:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293563459; bh=t9Vbankb+RPYnY+x689ywJEZeTlWD+lDy8QYxmAEehA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=N1W/EBt7o7DtUvMvglFEO6Gro/YmXt0WmSqHh70KcgpRW4T37PeUwhgsbC4AHuxme9Xp4Yjqj5h4Re2+FN6cTxVGKZe8NzUmsueegGL8zG7khYzdsGLyMTAg+m97up2o3uIX4TbQG72OPK4dCIxj7amBDhrMiyxjVs/FILvt0pw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3+fDtPn1mrCDmug40lqk1sG29vy1qlqoVmXHgMwnPfpRIlWynOJNHbbxfDGhdMafNTqQrEld0foMkyVZArsmOT5ldCu85plybKConbk3OMCp5kxUZdqCzW0rz0DQ3WcI41//iQKTofznUn2Flkr3qmX8sUlWR2LWnThqJ1sIdk4=; Message-ID: <964892.49841.qm@web76809.mail.sg1.yahoo.com> X-YMail-OSG: EHiOvzYVM1nHEwbbEcEYk6V2NTx.5r1hYTqLIkFWCrd1OfE lkl7ZBeAEAgQmY.Rd8Z.uc9aBh2gy9fK9SlV1LIm.Yx0KvCe56uKCLezgX6Q V_g_DVjmhGUhNLF5DUkNUjsPrywnoq1H8lkNE3OCoT8h2yul_rN_pyOHBdW2 2EZ0eqSnuJxVtYxfec6X1VS8coA5w8HFOfTLvy3YEMFMhSyW7N11IVOEb9hQ .604Iwv_SR8IctymcDvDL6u4ClSSCUiYjkbhJydEYkiYll8kku9qzHe.Q8Dt axHVev8Z25TbF0I_afaqJ91w6JOvphzcxwzkrpe.GGem4988.i_lDMqrQDBe OpKZoTsW042sG7nUosw-- Received: from [114.58.237.101] by web76809.mail.sg1.yahoo.com via HTTP; Wed, 29 Dec 2010 03:10:59 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Wed, 29 Dec 2010 03:10:59 +0800 (SGT) From: Darmawan Salihun To: John Baldwin In-Reply-To: <201012281352.31367.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 19:11:02 -0000 Hi, =0A=0A--- On Tue, 12/28/10, John Baldwin wrote:=0A=0A= > From: John Baldwin =0A> Subject: Re: PCI IDE Controller = Base Address Register setting=0A> To: "Darmawan Salihun" =0A> Cc: freebsd-hackers@freebsd.org=0A> Date: Tuesday, December = 28, 2010, 1:52 PM=0A> On Tuesday, December 28, 2010 1:38:05=0A> pm Darmawan= Salihun wrote:=0A> > Hi,=0A> > =0A> > --- On Tue, 12/28/10, John Baldwin <= jhb@freebsd.org>=0A> wrote:=0A> > =0A> > > From: John Baldwin =0A> > > Subject: Re: PCI IDE Controller Base Address=0A> Register sett= ing=0A> > > To: freebsd-hackers@freebsd.org=0A> > > Cc: "Darmawan Salihun" = =0A> > > Date: Tuesday, December 28, 2010, 10:2= 0 AM=0A> > > On Monday, December 27, 2010 6:07:35=0A> > > am Darmawan Salih= un wrote:=0A> > > > Hi, =0A> > > > =0A> > > > I'm trying to install FreeBSD= 8.0 on AMD=0A> Geode LX800=0A> > > (CS5536 "southbridge"). =0A> > > Howeve= r, it cannot detect the IDE controller (in=0A> the=0A> > > CS5536) correctl= y. It =0A> > > says something similar to this: =0A> > > > "IDE controller n= ot present"=0A> > > =0A> > > Hmm, I can't find a message like that=0A> anyw= here.=A0 Can=0A> > > you get the exact message =0A> > > you are seeing?=0A>= > > =0A> > =0A> > It says: =0A> > =0A> > "No disks found! Please verify th= at your disk=0A> controller is being properly=0A> > probed at boot time."= =0A> =0A> Oh, so this is a message from the installer.=A0 Can you=0A> captu= re a verbose dmesg=0A> via a serial console perhaps?=A0 =0A=0AI'm not sure = if I can do this because I've tried a couple of times =0Abut nothing comes = out of the serial console. Perhaps a wrong baud rate setting? =0AI set it t= o 96bps and 8-N-1 back then. Is that correct? =0A=0A> Or at least the kerne= l=0A> probe messages for your=0A> ATA controller?=0A> =0A=0AI recall that p= ressing Alt+F2 during the installation would open-up =0Aanother console, fu= ll with log messages. Would that be enough? =0A=0AThanks, =0A=0ADarmawan=0A= =0A=0A=0A> -- =0A> John Baldwin=0A> _______________________________________= ________=0A> freebsd-hackers@freebsd.org=0A> mailing list=0A> http://lists.= freebsd.org/mailman/listinfo/freebsd-hackers=0A> To unsubscribe, send any m= ail to "freebsd-hackers-unsubscribe@freebsd.org"=0A> =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 19:22:35 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5391E106564A for ; Tue, 28 Dec 2010 19:22:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0ECAA8FC08 for ; Tue, 28 Dec 2010 19:22:35 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9804246B06; Tue, 28 Dec 2010 14:22:34 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A513C8A009; Tue, 28 Dec 2010 14:22:33 -0500 (EST) From: John Baldwin To: Darmawan Salihun Date: Tue, 28 Dec 2010 14:22:25 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20101102; KDE/4.4.5; amd64; ; ) References: <964892.49841.qm@web76809.mail.sg1.yahoo.com> In-Reply-To: <964892.49841.qm@web76809.mail.sg1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012281422.25605.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 28 Dec 2010 14:22:33 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 19:22:35 -0000 On Tuesday, December 28, 2010 2:10:59 pm Darmawan Salihun wrote: > Hi, > > --- On Tue, 12/28/10, John Baldwin wrote: > > > From: John Baldwin > > Subject: Re: PCI IDE Controller Base Address Register setting > > To: "Darmawan Salihun" > > Cc: freebsd-hackers@freebsd.org > > Date: Tuesday, December 28, 2010, 1:52 PM > > On Tuesday, December 28, 2010 1:38:05 > > pm Darmawan Salihun wrote: > > > Hi, > > > > > > --- On Tue, 12/28/10, John Baldwin > > wrote: > > > > > > > From: John Baldwin > > > > Subject: Re: PCI IDE Controller Base Address > > Register setting > > > > To: freebsd-hackers@freebsd.org > > > > Cc: "Darmawan Salihun" > > > > Date: Tuesday, December 28, 2010, 10:20 AM > > > > On Monday, December 27, 2010 6:07:35 > > > > am Darmawan Salihun wrote: > > > > > Hi, > > > > > > > > > > I'm trying to install FreeBSD 8.0 on AMD > > Geode LX800 > > > > (CS5536 "southbridge"). > > > > However, it cannot detect the IDE controller (in > > the > > > > CS5536) correctly. It > > > > says something similar to this: > > > > > "IDE controller not present" > > > > > > > > Hmm, I can't find a message like that > > anywhere. Can > > > > you get the exact message > > > > you are seeing? > > > > > > > > > > It says: > > > > > > "No disks found! Please verify that your disk > > controller is being properly > > > probed at boot time." > > > > Oh, so this is a message from the installer. Can you > > capture a verbose dmesg > > via a serial console perhaps? > > I'm not sure if I can do this because I've tried a couple of times > but nothing comes out of the serial console. Perhaps a wrong baud rate setting? > I set it to 96bps and 8-N-1 back then. Is that correct? Yes, that should be correct. You have to turn the console on however (it is not enabled by default). The simplest way to do this is probably to hit the key option to break into the loader prompt when you see the boot menu (I think it is option '6'). Then enter 'boot -D' at the 'OK' prompt. This should boot with both the video and serial consoles enabled with the video console as the primary console. For a verbose boot, use 'boot -Dv' If you want to test out the serial console before you boot, you can instead enter 'set console="vidconsole,comconsole"' at the prompt. You should then see an OK prompt on both the screen and the serial port. Note that the serial console is hardcoded to use the default I/O ports for COM1. > > Or at least the kernel > > probe messages for your > > ATA controller? > > > > I recall that pressing Alt+F2 during the installation would open-up > another console, full with log messages. Would that be enough? Actually, the kernel probe messages are on the main console, but you can hit scroll lock to freeze the console and then use page up to go back in history and find the messages. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 19:35:48 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 104151065674 for ; Tue, 28 Dec 2010 19:35:48 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E06D98FC24 for ; Tue, 28 Dec 2010 19:35:47 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 8FDFF46B23; Tue, 28 Dec 2010 14:35:47 -0500 (EST) Date: Tue, 28 Dec 2010 19:35:47 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Avleen Vig In-Reply-To: <20101228094318.GA4405@silverwraith.com> Message-ID: References: <20101228094318.GA4405@silverwraith.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Creating an LVM-backed FreeBSD DomU in a Linux Dom0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 19:35:48 -0000 On Tue, 28 Dec 2010, Avleen Vig wrote: > After searching high and low and not finding exactly what I wanted (although > Adrian Chadd's documents came close), I decided to document a lengthy but > worthwhile procedure: > > How to install a FreeBSD DomU guest in a Linux Dom0 Xen host, from scratch, > with LVM-backed storage (rather than file based), and without the need to > rely on random kernels and ISO[1] > > http://bit.ly/dVhfFe > > Hopefully people find it useful :-) FYI, we now have a xen(4) man page, which will ship in 8.2. It's not tutorial material like your document, but is useful reference material. I'd like it very much if we could get something more along the lines of what you've created into the FreeBSD Handbook. Robert > > I haven't yet broached configuring inside the Xen host. Again there is > scattered documentation available. I'll try to bring it together next. > > [1] I gave serious thought to uploading my own stuff along with the > other similar things available already, but in the end I thought it > better if people try out how to do it, given that the amount of work > will be almost the same, or even slightly less building it yourself. > Plus there are the usual security and availability concerns.. :) > > -- > Avleen Vig > Systems Administrator > Personal: www.silverwraith.com > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 28 19:52:11 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F18B1065673 for ; Tue, 28 Dec 2010 19:52:11 +0000 (UTC) (envelope-from lists-freebsd@silverwraith.com) Received: from chiku.silverwraith.com (chiku.silverwraith.com [66.228.208.227]) by mx1.freebsd.org (Postfix) with ESMTP id 287B08FC16 for ; Tue, 28 Dec 2010 19:52:10 +0000 (UTC) Received: from avleen by chiku.silverwraith.com with local (Exim 4.72) (envelope-from ) id 1PXfab-0007mc-T1; Tue, 28 Dec 2010 11:52:09 -0800 Date: Tue, 28 Dec 2010 11:52:09 -0800 From: Avleen Vig To: Robert Watson Message-ID: <20101228195209.GC4405@silverwraith.com> References: <20101228094318.GA4405@silverwraith.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: Creating an LVM-backed FreeBSD DomU in a Linux Dom0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2010 19:52:11 -0000 On Tue, Dec 28, 2010 at 07:35:47PM +0000, Robert Watson wrote: > > >After searching high and low and not finding exactly what I wanted > >(although Adrian Chadd's documents came close), I decided to > >document a lengthy but worthwhile procedure: > > > >How to install a FreeBSD DomU guest in a Linux Dom0 Xen host, from > >scratch, with LVM-backed storage (rather than file based), and > >without the need to rely on random kernels and ISO[1] > > > >http://bit.ly/dVhfFe > > > >Hopefully people find it useful :-) > > FYI, we now have a xen(4) man page, which will ship in 8.2. It's > not tutorial material like your document, but is useful reference > material. I'd like it very much if we could get something more > along the lines of what you've created into the FreeBSD Handbook. I'd be happy to work on that. I've been meaning to get some things done on documentation for a while now. From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 29 22:47:15 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15A891065670 for ; Wed, 29 Dec 2010 22:47:15 +0000 (UTC) (envelope-from cjr@cruwe.de) Received: from cruwe.de (t1850.greatnet.de [83.133.124.96]) by mx1.freebsd.org (Postfix) with ESMTP id 78AD48FC14 for ; Wed, 29 Dec 2010 22:47:14 +0000 (UTC) Received: (qmail 11199 invoked from network); 29 Dec 2010 22:20:31 -0000 Received: from p5b37a2f4.dip.t-dialin.net (HELO dijkstra) (smtpallow@91.55.162.244) by t1850.greatnet.de with ESMTPA; 29 Dec 2010 22:20:31 -0000 Date: Wed, 29 Dec 2010 23:20:30 +0100 From: "Christopher J. Ruwe" To: Message-ID: <20101229232030.25b2bd5a@dijkstra> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/b19nkui4M1mWb5as3gTvrEs"; protocol="application/pgp-signature" Cc: freebsd-hackers@freebsd.org, freebsd-doc@freebsd.org, freebsd-security@freebsd.org Subject: setting a random password with PAM API X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2010 22:47:15 -0000 --Sig_/b19nkui4M1mWb5as3gTvrEs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, First, I'd like to apologise for my choice of lists to post to ... the question is more PAM-specific than FreeBSD, but the idea comes from BSD, so I hope someone will have an idea or knows where to turn to (and I don't know where to turn else). I am trying to implement the feature to set a random password like in BSD "pw usermod -W" in the Solaris passwd. Regrettably, I have not found or perhaps not understood the PAM API documentation on how to _inject a given string_ into the change-auth-token function pam_chauthtok(...), which always jumps in an interactive pw-changing loop. After I have generated a random string char * randstring, I have tried setting that string using retval =3D pam_set_item( pamh, PAM_AUTHTOK, randstring); =20 which returns PAM_SUCCESS. The password / authentication token remains unchanged, however. My second idea, i.e., using pam_sm_chauthtok(...), did not work, either, as I have not understood the arguments to be passed. Should anybody know how to inject a given/known string into PAM to set a user password, know where to look for documentation regarding that issue or have another idea, I would really appreciate it ... and again my apologies for being more than just slightly off topic. Kind regards, --=20 Christopher J. Ruwe TZ GMT + 1 --Sig_/b19nkui4M1mWb5as3gTvrEs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQIcBAEBAgAGBQJNG7Q1AAoJEJTIKW/o3iwUXkgQAKXqvpZDvaiG4NY9cj8WAB7c u478EO3WuMYDQC4mS+kAujovsI2KggGgfNwB2HVcNjbfubV+XiJndf3x94osykAV GmAEoXAYL37f5Snw+nS47O4/1ueHD4yr1O+Ga6vBHrJqUMhY5GJXBDGrH/KrRRhq qAApQq9ZJNUMvu/f6VlK6LcRoyLe/ljEmxFHnBaGvfrj87w2mwfhDiMUXm9lh8R/ 1N5JRTfb7RDirb99+T9/dMQxxxkdncAGH1nJS7JIZZzJOGE2CjSJp2rUXYot1RSj ZKFb85E/TKn6inqsNQ7OgLG9gTd4HFlbQ+1+RYSoyWM99zLSNhiGdhtyHQ0nrWgS 0ZTRxzu2i6hbhX7hyNoNPWclXZ8ppT8f+Hc3mz2DzsgFK0wKK+OboWN0X9nKVPn8 rxIpnWLAB+VR15313DCM1o/I9ocI+O5kvq350Kta8uaXBNYPaIhipravaX/Cr6Wt Kq/n3ipm5PJd9dlNp5ojfNP5QhYwDM5c2BP8YNtj7EWWz3wM5t9SmF+y+Cz2RrWl DnX8PeCGohqmqAzWPtUGs773Jq89zFErL9qqpygispKU/cXUT4RL0H3GppnZeoKr UIuD0m2x3jLNm77VJcXuqejobUnHXvidih/4fgU9HGi758htSAQ/70hc/a8ulkFL SC9mm15cbJOXVA0dy8SV =MzAJ -----END PGP SIGNATURE----- --Sig_/b19nkui4M1mWb5as3gTvrEs-- From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 30 11:06:52 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 999BA106566B for ; Thu, 30 Dec 2010 11:06:52 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 282788FC17 for ; Thu, 30 Dec 2010 11:06:52 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 67ECD13DF61 for ; Thu, 30 Dec 2010 13:49:23 +0300 (MSK) Date: Thu, 30 Dec 2010 13:49:18 +0300 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1385259976.20101230134918@serebryakov.spb.ru> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: PANIC: thread_exit: Last thread exiting on its own. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 11:06:52 -0000 Hello, Hackers. I've got this panic on reboot from geom_raid5. This module has two threads, each of them finished with kthread_exit(). But it doesn't panic on every reboot (really, it is first time I got it in row of many reboots with this module running), so it seems to be some race, am I right? I've read code of thread_exit() and I'm not sure I understand it well. It seems, that EVERY termination of last thread in process should provoke this panic: if (p->p_flag & P_HADTHREADS) { if (p->p_numthreads > 1) { ... } else { /* * The last thread is exiting.. but not through exit() */ panic ("thread_exit: Last thread exiting on its own"); } } But kthread_exit() has special processing of this situation: if (curthread->td_proc->p_numthreads =3D=3D 1) kproc_exit(0); /* never returns */ So, it seems to be some strange race condition in FreeBSD 8-STABLE. P.S. is this list appropriate for such questions? As far as I understand, "stable" list is more user-related, not developer-related, and it is not exactly question about CURRENT. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 30 20:28:28 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B06671065675 for ; Thu, 30 Dec 2010 20:28:28 +0000 (UTC) (envelope-from darmawan_salihun@yahoo.com) Received: from web76815.mail.sg1.yahoo.com (web76815.mail.sg1.yahoo.com [124.108.123.119]) by mx1.freebsd.org (Postfix) with SMTP id 0DBCD8FC1A for ; Thu, 30 Dec 2010 20:28:27 +0000 (UTC) Received: (qmail 75230 invoked by uid 60001); 30 Dec 2010 20:28:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1293740906; bh=yiLFp8+mwbYLtu6lmp+l1RWxetlkEroiV5s5zUfYt/M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=J8AniJAW77hiUyRNaCsTnGG/pNIMg24esZ8GqZOwyAsJGUjs+p+vY9HOq8L7MruE5nzoPBPa0Nfr2IC4tG9uaYHVHRJ95wOGBfwxg/2ZzijFDsjWmH/jyU1MGYsYbEnf8szjcIS+NLFP/8ikKc6vnFu/fi54DPRZxghnQOdVrNU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=P1MM0Wxz153240uCk3ir0r7uTCcempvo4Ny4c6dF624eg6wKcAoxshu+LhWdiT4GvF0Ji0TRA8wsLrurCp/RGqPw61+wKjR2Df6Lh2ZfYpCt8S58oJVTacqMzRj9dvFz084AsQI7VW2YoxPiMFZdDTAwwe+gVmPRaWLx4EBpsHU=; Message-ID: <693941.72410.qm@web76815.mail.sg1.yahoo.com> X-YMail-OSG: O0IOuWUVM1kYZIbviq84t.ASMO1VMPXpiSc3bKOA3HWN_CB Fgphvho00 Received: from [114.59.15.187] by web76815.mail.sg1.yahoo.com via HTTP; Fri, 31 Dec 2010 04:28:25 SGT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Fri, 31 Dec 2010 04:28:25 +0800 (SGT) From: Darmawan Salihun To: John Baldwin In-Reply-To: <201012281422.25605.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: PCI IDE Controller Base Address Register setting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 20:28:28 -0000 --- On Tue, 12/28/10, John Baldwin wrote: > From: John Baldwin > Subject: Re: PCI IDE Controller Base Address Register setting > To: "Darmawan Salihun" > Cc: freebsd-hackers@freebsd.org > Date: Tuesday, December 28, 2010, 2:22 PM > On Tuesday, December 28, 2010 2:10:59 > pm Darmawan Salihun wrote: > > Hi,=20 > >=20 > > --- On Tue, 12/28/10, John Baldwin > wrote: > >=20 > > > From: John Baldwin > > > Subject: Re: PCI IDE Controller Base Address > Register setting > > > To: "Darmawan Salihun" > > > Cc: freebsd-hackers@freebsd.org > > > Date: Tuesday, December 28, 2010, 1:52 PM > > > On Tuesday, December 28, 2010 1:38:05 > > > pm Darmawan Salihun wrote: > > > > Hi, > > > >=20 > > > > --- On Tue, 12/28/10, John Baldwin > > > wrote: > > > >=20 > > > > > From: John Baldwin > > > > > Subject: Re: PCI IDE Controller Base > Address > > > Register setting > > > > > To: freebsd-hackers@freebsd.org > > > > > Cc: "Darmawan Salihun" > > > > > Date: Tuesday, December 28, 2010, 10:20 > AM > > > > > On Monday, December 27, 2010 6:07:35 > > > > > am Darmawan Salihun wrote: > > > > > > Hi,=20 > > > > > >=20 > > > > > > I'm trying to install FreeBSD 8.0 > on AMD > > > Geode LX800 > > > > > (CS5536 "southbridge").=20 > > > > > However, it cannot detect the IDE > controller (in > > > the > > > > > CS5536) correctly. It=20 > > > > > says something similar to this:=20 > > > > > > "IDE controller not present" > > > > >=20 > > > > > Hmm, I can't find a message like that > > > anywhere.=A0 Can > > > > > you get the exact message=20 > > > > > you are seeing? > > > > >=20 > > > >=20 > > > > It says:=20 > > > >=20 > > > > "No disks found! Please verify that your > disk > > > controller is being properly > > > > probed at boot time." > > >=20 > > > Oh, so this is a message from the > installer.=A0 Can you > > > capture a verbose dmesg > > > via a serial console perhaps?=A0=20 > >=20 > > I'm not sure if I can do this because I've tried a > couple of times=20 > > but nothing comes out of the serial console. Perhaps a > wrong baud rate setting?=20 > > I set it to 96bps and 8-N-1 back then. Is that > correct?=20 >=20 > Yes, that should be correct.=A0 You have to turn the > console on however (it is > not enabled by default).=A0 The simplest way to do this > is probably to hit the > key option to break into the loader prompt when you see the > boot menu (I think > it is option '6').=A0 Then enter 'boot -D' at the 'OK' > prompt.=A0 This should boot > with both the video and serial consoles enabled with the > video console as the > primary console.=A0 For a verbose boot, use 'boot -Dv' >=20 Thanks, I tested this option and it worked.=20 I could see the debugging messages.=20 FreeBSD cannot detect the disk in all of the IDE interfaces. =20 (The AMDCS5536 only implemented the primary channel) Anyway, I manage to change the mapping in BAR4 of the IDE controller.=20 However, I'm confused as to how to "force" FreeBSD to recognize the=20 IDE controller to work only in compatibility mode.=20 Because, I'm not sure if the physical IDE controller chip supports=20 Native-PCI mode correctly at all.=20 If I set BAR4 to "disabled"(i.e. not decoding any I/O addresses at all),=20 would FreeBSD use compatibility mode? or would it consider the=20 IDE controller not present? Here's some notes about the IDE controller PCI configuration registers: 1. The Programming Interface register contains 80h (which means _only_=20 compatibility mode supported). I have yet to be able to write new values=20 into this register. That's the state of the register right now.=20 I noticed in your previous reply that for FreeBSD to be forced to use=20 compatibility mode, the programming interface register bits in the PCI conf= iguration register must be set accordingly=20 (I suppose the bits in the lower nibble). 2. BAR0-BAR3 cannot be changed and contains 00h.=20 I have yet to experiment with BAR5.The default value is 00h Thanks in advance,=20 Darmawan =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 30 23:19:55 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3ADA6106564A; Thu, 30 Dec 2010 23:19:55 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9A8658FC08; Thu, 30 Dec 2010 23:19:54 +0000 (UTC) Received: by fxm16 with SMTP id 16so11372788fxm.13 for ; Thu, 30 Dec 2010 15:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=H2pkvwkLiL1Q0yJ6nwpUIiohFLgW4ZmaZw2Q7SupYNM=; b=LpOf7YD6VK6yOPyieXAen0I8XCNzc9W1GnYGRNGfH9ZfhDcKN9nUzdtOmBGcwraQxW 7XkLFQvk18zbgD2rvJ73wF6cRVA25OYHIbOTMiuFkiyAMClM8uxQkvkfdTK7gHp68Q9K USHzudAZkZ5EisbAonCZzSL3qrJ/9Xmsl9H8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ripThF+S2vKim4aHpOq9PPjLg6u31TrOswNLj1mc9VXqgmU43YDOXI0NowpwXnb33/ lKSg6dO46/Xs+sFIap6nSkyJWnf/NPtFg4Cn6zEQGdzmcZc1G4ZXZyso0UAxNzKuuSyf qpGsXtMTMRWiQ7ZtPaP2zkNkKR0ATvHgrYkAU= MIME-Version: 1.0 Received: by 10.223.97.7 with SMTP id j7mr774746fan.18.1293749780530; Thu, 30 Dec 2010 14:56:20 -0800 (PST) Sender: giovanni.trematerra@gmail.com Received: by 10.223.100.6 with HTTP; Thu, 30 Dec 2010 14:56:20 -0800 (PST) In-Reply-To: <1385259976.20101230134918@serebryakov.spb.ru> References: <1385259976.20101230134918@serebryakov.spb.ru> Date: Thu, 30 Dec 2010 23:56:20 +0100 X-Google-Sender-Auth: WFRsjrFZHPQPezOwEE_vyuyFMuU Message-ID: From: Giovanni Trematerra To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: PANIC: thread_exit: Last thread exiting on its own. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 23:19:55 -0000 2010/12/30 Lev Serebryakov : > Hello, Hackers. > > =A0I've =A0got =A0this =A0panic on reboot from geom_raid5. Could you please provide some backtrace? Have you got a core? Which revision of -STABLE are you running(or when last src update)? Thank you. -- Gianni From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 00:32:09 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7EA5106566C for ; Fri, 31 Dec 2010 00:32:09 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A02508FC1F for ; Fri, 31 Dec 2010 00:32:09 +0000 (UTC) Received: by iyb26 with SMTP id 26so10520484iyb.13 for ; Thu, 30 Dec 2010 16:32:09 -0800 (PST) Received: by 10.231.206.7 with SMTP id fs7mr709434ibb.82.1293753844939; Thu, 30 Dec 2010 16:04:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.160.65 with HTTP; Thu, 30 Dec 2010 16:03:44 -0800 (PST) From: Eitan Adler Date: Thu, 30 Dec 2010 19:03:44 -0500 Message-ID: To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 00:32:09 -0000 As some people know I've been working on a replacement of dialog(1) as used in the ports system. I've come to two bugs that I've been stuck on for a week. 1) When clicking the "View" button on the license window (using the withlicense.sh script) I fork() and then exec less. Less opens fine - but when I hit "q" it seems that any actions I took in less also took place in the ncurses program. If I use rfork(RFPROC|RFCFDG) then it never shows less on the screen. I suspect this is because in the former case they share the same stdin and stdout and in the latter case less doesn't get any std* streams. Is there a way to avoid this problem? 2) The "help" screen just doesn't show up despite having text and a border and not generating any errors (which are all checked) The code could be found at http://isis.poly.edu/~eitan/files/d4p-v17.tgz Please note that program is not meant to be run by the end user so limited checking was done for insane arguments -- Eitan Adler From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 08:11:18 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A2AB106566C for ; Fri, 31 Dec 2010 08:11:18 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF0A8FC0A for ; Fri, 31 Dec 2010 08:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=EktyCoNE6VFf03YrFF5O1KbyiOAlhjuCXLm1N1XkC+k=; b=Mq6v8xCDToKsz3qtRXVAi3ZmtZzhxFbe9aucNCybJRT6mS9NLHJMIu/U7J5i3gZ+WS3Bvcaja/WxzvKUVL+RXlbdgfmH/YBOf8u8cgyn/MBKClOcS6kimmxHiX9zWNSgwU1TqFa5UWVZbVQ3GFKYRkDEIa2AUhiYmBuVdqMXmDY9fMhlAt1jsjhTfFTK4gIet4pi74OrCPLB7dISYxeo/p03cg+imCZF/Y2FZTsWXXiwAk+PVdqrKiM5GbEsNY+2zofS+OqsrJNShNBHejU9GbVJNEF/SDtRo51mbWwNEXrpzS2gUuy6u48wyYxC0ux0ifBGjfP0+gp8bgOp59jwoQ==; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1PYZnb-0004Iq-2r; Fri, 31 Dec 2010 10:53:19 +0300 Date: Fri, 31 Dec 2010 10:53:16 +0300 From: Eygene Ryabinkin To: Eitan Adler Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KZCIPwrNpw38UenM" Content-Disposition: inline In-Reply-To: Sender: rea@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 08:11:18 -0000 --KZCIPwrNpw38UenM Content-Type: multipart/mixed; boundary="+dH9khzwljbvYE07" Content-Disposition: inline --+dH9khzwljbvYE07 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eitan, good day. Thu, Dec 30, 2010 at 07:03:44PM -0500, Eitan Adler wrote: > 1) When clicking the "View" button on the license window (using the > withlicense.sh script) I fork() and then exec less. Less opens fine - > but when I hit "q" it seems that any actions I took in less also took > place in the ncurses program. If I use rfork(RFPROC|RFCFDG) then it > never shows less on the screen. I suspect this is because in the > former case they share the same stdin and stdout and in the latter > case less doesn't get any std* streams. > Is there a way to avoid this problem? The attached patch should fix it. The problem is that you should leave the Ncurses mode before spawning external programs. You seem to be trying to do it in the child process (commented endwin()), but it should be done inside the parent process, since it is the one who does Ncurses. And the most logical way is to - leave the curses mode; - invoke anything you like and wait() for it; - enter the curses mode again + refresh the windows. --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --+dH9khzwljbvYE07 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Save-restore-terminal-around-the-pager-invocation.patch" Content-Transfer-Encoding: quoted-printable =46rom 1c6ca9f805e965796e7321d04868c1278d4ec7a9 Mon Sep 17 00:00:00 2001 =46rom: Eygene Ryabinkin Date: Fri, 31 Dec 2010 10:47:46 +0300 Subject: [PATCH] Save/restore terminal around the pager invocation We should leave Ncurses mode before the pager is spawned and return to the saved mode once we're done with the pager. Signed-off-by: Eygene Ryabinkin --- dialog4ports.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dialog4ports.c b/dialog4ports.c index cdec074..026b0b9 100644 --- a/dialog4ports.c +++ b/dialog4ports.c @@ -888,6 +888,8 @@ main(int argc, char* argv[]) if (curItem =3D=3D licenceItems[licenceVIEW]) { char const * const pager =3D getenv("PAGER"); //const int pid =3D rfork(RFPROC|RFCFDG); + def_prog_mode(); + endwin(); const int pid =3D fork(); if (pid =3D=3D 0) { //endwin(); @@ -903,6 +905,8 @@ main(int argc, char* argv[]) else { wait(pid); } + reset_prog_mode(); + wrefresh(curscr); } } else if (whichLocation =3D=3D EXIT) { --=20 1.7.3.2 --+dH9khzwljbvYE07-- --KZCIPwrNpw38UenM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EAREIAAYFAk0di+wACgkQFq+eroFS7PszuwD/Wvx+LZ5XSzT3itn8zI5vCP6Y z7n65nmDutCJSmgpupYA/iJVB+Jh++jf4uSK9e4oRXE0QTH2nLFouRu8axnEbOST =mWGS -----END PGP SIGNATURE----- --KZCIPwrNpw38UenM-- From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 09:23:10 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EF30106567A; Fri, 31 Dec 2010 09:23:10 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 370D68FC0A; Fri, 31 Dec 2010 09:23:09 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id EEBC513DF5F; Fri, 31 Dec 2010 12:22:44 +0300 (MSK) Date: Fri, 31 Dec 2010 12:22:36 +0300 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <459047846.20101231122236@serebryakov.spb.ru> To: Giovanni Trematerra In-Reply-To: References: <1385259976.20101230134918@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, lev@freebsd.org Subject: Re: PANIC: thread_exit: Last thread exiting on its own. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 09:23:10 -0000 Hello, Giovanni. You wrote 31 =E4=E5=EA=E0=E1=F0=FF 2010 =E3., 1:56:20: >> =A0I've =A0got =A0this =A0panic on reboot from geom_raid5. > Could you please provide some backtrace? Have you got a core? Backtrace was were simple (I've reproduce it from my memory, but it really was that simple): panic() thread_exit() kthread_exit() g_raid5_worker() fork_trampoline() ... No core, because I didn't have dumpdev configured :( > Which revision of -STABLE are you running(or when last src update)? uname shows: FreeBSD 8.2-PRERELEASE #2: Tue Dec 21 01:17:16 MSK 2010 I've rebuilt kernel RIGHT after `csup', so difference is no more than several hours. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 10:49:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 151951065679 for ; Fri, 31 Dec 2010 10:49:31 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id A40128FC14 for ; Fri, 31 Dec 2010 10:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=Mn/kn3MrCwSkGybq+TDwgEfAFmT01ZgkohEiZDLoGo8=; b=X4EhRerBIqfczHOUfWl/0BEzL0Vc/I+6UxeMWCBm/+k7Nc3I3cC5fN2bzaU3QRBmVwv0jDaY0cOrURJHB6Mu0iIUzKjpDnPWi0KV3m/BKaasgayrER9oK9vSoIkkNv35Ja5u9Trt2LObqSo9QwTdtaEyAWFp6WEcgMxjOPx/28nv7PeBFRC0hFry1tLaHSB8RuvtvYezym9Q8EyLFxyobHvNQAxovZDrxuFVeOYEflhX4bA3tuAl8FYCJkK5dk5v/HBzQq9ZIhVrAwhpOx7JZJNmsOLDVGD6BaS8waz5O/cKBgxLJmanGN7X6lOTUmbL2vui/Nn/wMyTayTw+rDesA==; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1PYcY5-000Jas-7m; Fri, 31 Dec 2010 13:49:29 +0300 Date: Fri, 31 Dec 2010 13:49:27 +0300 From: Eygene Ryabinkin To: Eitan Adler Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BYl/BInBdgsQr4gH" Content-Disposition: inline In-Reply-To: Sender: rea@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 10:49:31 -0000 --BYl/BInBdgsQr4gH Content-Type: multipart/mixed; boundary="ynll37MX3Fmyj3VY" Content-Disposition: inline --ynll37MX3Fmyj3VY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thu, Dec 30, 2010 at 07:03:44PM -0500, Eitan Adler wrote: > 2) The "help" screen just doesn't show up despite having text and a > border and not generating any errors (which are all checked) You're using 'frameCols' while calculating windowStatList[HELP].rowStart, so your window is starting somewhere around line 76 at the 80x25 terminal, thus it is just invisible. Use 'frameRows' and you'll get something that will be top-aligned with the buttons. There's one more thing: the lone 'dialog4ports --hfile=3D' will dump core, because prev is NULL in this case. The attached patch should fix the first item and will apply a quick-fix for the second one. --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --ynll37MX3Fmyj3VY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-help-handling.patch" Content-Transfer-Encoding: quoted-printable =46rom 824820c0c938bf677728314477664f190448a648 Mon Sep 17 00:00:00 2001 =46rom: Eygene Ryabinkin Date: Fri, 31 Dec 2010 13:46:08 +0300 Subject: [PATCH] Fix help handling - we should use frame's rows when calculating the starting line for the help window; - we should check if there was a previous argument that can have --hfile for it. The latter fix is a quick one, we should really check that the previous argument was one of the --option, --radio or --input. Signed-off-by: Eygene Ryabinkin --- dialog4ports.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dialog4ports.c b/dialog4ports.c index 026b0b9..cc7a9f8 100644 --- a/dialog4ports.c +++ b/dialog4ports.c @@ -385,6 +385,8 @@ parseArguments(const int argc, char * argv[]) stage =3D OPEN; } else if (stage =3D=3D PREV_HFILE) { + if (prev =3D=3D NULL) + errx(EX_USAGE, "--hfile requires previous --option, --radio or --input= option."); prev->longDescrFile =3D argv[arg]; stage =3D OPEN; } @@ -632,7 +634,7 @@ main(int argc, char* argv[]) else windowStatList[LICENCE].colStart =3D 0; =20 - windowStatList[HELP].rowStart =3D frameCols - windowStatList[EXIT].rows -= windowStatList[LICENCE].rows; + windowStatList[HELP].rowStart =3D frameRows - windowStatList[EXIT].rows -= windowStatList[LICENCE].rows; windowStatList[HELP].colStart =3D 0 ; windowStatList[HELP].rows =3D 6; windowStatList[HELP].cols =3D frameCols; --=20 1.7.3.2 --ynll37MX3Fmyj3VY-- --BYl/BInBdgsQr4gH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EAREIAAYFAk0dtTYACgkQFq+eroFS7PtIjgD8DJui9Aq6dC8iktuKYrXWYnJv wGn6pKf7Ip52PeobX/4A/0QSqoGy8nnH9JM1gIaOL1aYnf++z93oLh2jWrXCL3rX =49Io -----END PGP SIGNATURE----- --BYl/BInBdgsQr4gH-- From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 18:39:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B2E51065693; Fri, 31 Dec 2010 18:39:25 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 427BC8FC1A; Fri, 31 Dec 2010 18:39:24 +0000 (UTC) Received: by iyb26 with SMTP id 26so11055355iyb.13 for ; Fri, 31 Dec 2010 10:39:24 -0800 (PST) Received: by 10.231.39.199 with SMTP id h7mr1727256ibe.157.1293820763552; Fri, 31 Dec 2010 10:39:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.160.65 with HTTP; Fri, 31 Dec 2010 10:39:03 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Fri, 31 Dec 2010 13:39:03 -0500 Message-ID: To: Eygene Ryabinkin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 18:39:25 -0000 Thank you. I was stuck for a week on the ncurses issue - but now I don't think I will have that problem anymore. :-} On Fri, Dec 31, 2010 at 5:49 AM, Eygene Ryabinkin wrote: > Thu, Dec 30, 2010 at 07:03:44PM -0500, Eitan Adler wrote: >> 2) The "help" screen just doesn't show up despite having text and a >> border and not generating any errors (which are all checked) > > You're using 'frameCols' while calculating > windowStatList[HELP].rowStart, so your window is starting somewhere > around line 76 at the 80x25 terminal, thus it is just invisible. > Use 'frameRows' and you'll get something that will be top-aligned > with the buttons. > > There's one more thing: the lone 'dialog4ports --hfile=3D' > will dump core, because prev is NULL in this case. > > The attached patch should fix the first item and will apply > a quick-fix for the second one. > -- > Eygene Ryabinkin =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0,,,^..^,,, > [ Life's unfair - but root password helps! =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 | codelabs.ru ] > [ 82FE 06BC D497 C0DE 49EC =C2=A04FF0 16AF 9EAE 8152 ECFB | freebsd.org ] > --=20 Eitan Adler From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 19:36:11 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6960A1065670 for ; Fri, 31 Dec 2010 19:36:11 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 108BF8FC16 for ; Fri, 31 Dec 2010 19:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=D+43rlItLbFYwS0JJXePwkA3JIwcZXUHcaKrw1s/zwQ=; b=FhN6sD032P+Yp/4tBpZnJN6pzPZem8Uv+Atx/gp00Na1MLCaL8YGIQjgCG5kKP72uc/2x2bZVvTCgXor81ZHFyukSRQzbuM0WX5daJ1zQ5NcKjReW951ITQ4t7IAJE+tNRqRCUEWEMojpQy+N1vid/l0NtP8PG8UaPyZNrL+mtRuDWAm8UXUbGcx3sbGODl1nzhmm/KbcefCRUv7izTTT0C7VX74BbvaEk+q4kD5rNC3qoN7bk2hzhz6VGdJBFt2cUk0wxxiik6qYFfylnA3qyJXzHHriR02X1qxj7UlwJf6dfgV2oX4QjJywFhKrXSy322LzwI0YRj6xwJbUSsV9Q==; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1PYkll-000D1e-51; Fri, 31 Dec 2010 22:36:09 +0300 Date: Fri, 31 Dec 2010 22:36:06 +0300 From: Eygene Ryabinkin To: Eitan Adler Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CCAbHT5wTCfICpGW" Content-Disposition: inline In-Reply-To: Sender: rea@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 19:36:11 -0000 --CCAbHT5wTCfICpGW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Fri, Dec 31, 2010 at 01:39:03PM -0500, Eitan Adler wrote: > Thank you. I was stuck for a week on the ncurses issue - but now I > don't think I will have that problem anymore. :-} No problems, glad to help ;)) While we're on this topic, may I suggest to meld two buttons, "Accept the license" and "Reject the license" into a single checkbox named "Accept the license": this will - make the current status of acceptance to be visible; - remove one graphical element to reduce the overall number of them. --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --CCAbHT5wTCfICpGW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EAREIAAYFAk0eMKYACgkQFq+eroFS7Pu1YwEAigCGhoXaMbifYdfDjjY2wpOP GxmYOmabW/PuhQEGLzcA/1rD8DKfRozrKInCzCnZiuI5gH9y7QVfITpW2un0RyvU =f5TG -----END PGP SIGNATURE----- --CCAbHT5wTCfICpGW-- From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 21:20:09 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1BD3106566C for ; Fri, 31 Dec 2010 21:20:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 7C8A88FC13 for ; Fri, 31 Dec 2010 21:20:08 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 08F9C41C707; Fri, 31 Dec 2010 22:20:07 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id McwvxcLkDabf; Fri, 31 Dec 2010 22:20:06 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 2810941C74D; Fri, 31 Dec 2010 22:20:06 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id E93BB44490B; Fri, 31 Dec 2010 21:15:19 +0000 (UTC) Date: Fri, 31 Dec 2010 21:15:19 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Mikolaj Golub In-Reply-To: <20101120200208.M24596@maildrop.int.zabbadoz.net> Message-ID: <20101231211457.L6126@maildrop.int.zabbadoz.net> References: <86pqu0nexd.fsf@kopusha.home.net> <20101120165604.T24596@maildrop.int.zabbadoz.net> <868w0nolqo.fsf@kopusha.home.net> <20101120200208.M24596@maildrop.int.zabbadoz.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: flowtable_cleaner/flowtable_flush livelock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 21:20:09 -0000 On Sat, 20 Nov 2010, Bjoern A. Zeeb wrote: > On Sat, 20 Nov 2010, Mikolaj Golub wrote: > > Hey, > >> On Sat, 20 Nov 2010 17:03:13 +0000 (UTC) Bjoern A. Zeeb wrote: >> >> BAZ> I think net@ would have been a better initial place but since this >> BAZ> seems to be a problem when interacting with VIMAGE >> BAZ> freebsd-virtualization might be better. >> >> BAZ> What you could try is: >> BAZ> http://people.freebsd.org/~bz/20100216-10-ft-cv.diff >> >> Ah, I have recalled I had already saw this patch but did not understand >> what >> the problem was that it fixed, thus did not associated it with my case >> (actually, I thought you had committed all these patches to the tree long >> time >> ago and I was running the kernel with them already :-). >> >> BTW, the patch needs updating: in the current flow_full() wakes up >> flowcleaner >> too, and flowcleaner sleeps for flowclean_freq instead of 10*hz (see the >> attached patch). > > For sure it does; as you can see form the date in the file name, that > patch was from the beginning of the year. > >> With the patch I can't reproduce the lock. Only the crash I mentioned in my >> first letter is observed: > > Hmm, I guess I should get the updated version comitted then. So I did now. -- Bjoern A. Zeeb You have to have visions! Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html