From owner-soc-status@freebsd.org Mon Aug 8 07:13:22 2016 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB65DBB1288 for ; Mon, 8 Aug 2016 07:13:22 +0000 (UTC) (envelope-from starak.adam@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65B1914F0 for ; Mon, 8 Aug 2016 07:13:22 +0000 (UTC) (envelope-from starak.adam@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id f65so100945163wmi.0 for ; Mon, 08 Aug 2016 00:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=N1FLGQPFunEcbR1JGs1j2CgGaSMIG8nbvZ0RV1yw1pg=; b=SqORrtAM9gIGq/FzJ/DwukKjXoCM5cAYZjTlEGJZcY6O8LZpFSk9EVzwe1UmxCVBCd nKjJnJIbAsuK1ayHjHRpseVNp0ALhEQFC654Rhbjo94fg6s3F/eeAX5RmmZRBCMsBFh5 O8VjJL/B8WO73MY+ZyeITizobFb339xOYbm5kojvmtCuwK/Rh21owWHO8BQpLSSxE8cW MdZh1AzjcsneNXT5lFAIEgGTAUewadfEUeOGeQ1r32OAzgjLx+lFoVYHZOoRPsvY5pnm 22ROyhyYNEaDSwLSRnMrRH9VmF9rviQWhEnSCxepvWr88luLSEJgpAULhJGTmW6n5Bw8 krpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N1FLGQPFunEcbR1JGs1j2CgGaSMIG8nbvZ0RV1yw1pg=; b=TStlFM/lLWZ1wGL0fToiew3PWlUi3vSQdjMAkVl0wUnlxWQ0UgjFw6amrsvsVpbtqH ChTsWDc+vnO08Nc2zsMKj8p8TlNd5VQK+bwiN0mifAiXZ2zMw4NyJ47TZJMb1gwvCuJB sDrjk9GGjw0YxmUNhV5wpZq5XZ27KLnnlL8orO4sCOl/GZ6FThZitTAHMkFjjZu/rDKt PQBwwaxbBUOSOctOUXWju6YPqo3chaVm6TVa0dHStQPYeDuiVun5sDR/zzDpmnLtluck WQzA+FX6wPq+4dMT9DHOOBrtNdW5XlyR+A4qfwbCFstuWuZxVfd0Oe0JhoC0CYspy/YD wvrg== X-Gm-Message-State: AEkoousGt99R8HM/zlCf6os4/bQ7s/1xW0+bEqVVnLeLp7n/RvrtB4XgMxMMclhFgUZKHVYldKEWocJgTTkL/g== X-Received: by 10.25.149.76 with SMTP id x73mr25543205lfd.27.1470640400047; Mon, 08 Aug 2016 00:13:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.29.193 with HTTP; Mon, 8 Aug 2016 00:13:19 -0700 (PDT) From: Adam Starak Date: Mon, 8 Aug 2016 09:13:19 +0200 Message-ID: Subject: libnv improvements 11 To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 07:13:22 -0000 Hello, I mainly focused on getting data from/to sysctl this week. You are able to get data by name and by int array. I still haven't found solution for replacing value of sysctl by int array. Best regards, Adam Starak From owner-soc-status@freebsd.org Mon Aug 8 09:27:46 2016 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E206CBB27CB for ; Mon, 8 Aug 2016 09:27:46 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73CE015DD for ; Mon, 8 Aug 2016 09:27:46 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id f65so106923175wmi.0 for ; Mon, 08 Aug 2016 02:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=/NvlvBTNe1fmGpb8NSFv4fkepgTz1utsUihC66VH3pc=; b=zMf9KbnW27BRJkR/MN5obwCI22Hrhfe1qHI4e0deo4haGvYq9zv+7/SxRHGbtQuVAG ogEzl5Vtx/h7DVwDPMhhosZTxZd1BrjR0Q8Mq+8TY0pj3dKSzb4pi6YQJMpD54E3EKrM +DalEUFM6K2QSX0NMrZGc1/QuOj4Nfmt6PDm+fGVK4qhjRwJ79I+GJ94X8LSJDso6OEh YtbK50cv41R4GOqiUYpf05f5oxWfrKmyQO2uawWe+ms0HsxFYi60zmEomA/+dP6LfTgj EYv0yTQSMu6jBZg+vpUEpBORBYbAzeBxU2bWSNNH+dvQ0lCXIt6/Q9iimVnIGo8NVKBP zopQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/NvlvBTNe1fmGpb8NSFv4fkepgTz1utsUihC66VH3pc=; b=kOpbjItef7M8imEuXvMZP1ix0H3gipTmtRwW/y9FEjqRU+bMmZmd3pomxikChB+yMP /znQQN9oCuFiVx8Qne2VKbYiUlYArxvAKtl3vg2buAUnTkUdIpoAbUSg0ttaA9m+iqM6 MielmP7/bOrooji/geMxoXFnTqquSe0JYCAb+VPfptAzh3hLnlOOz2cUIx8J0AlvXBaU wgjQAED9ImRXF4BhW7CQYcP3lvZbPosWdXFoEaOo/lf4VzjsdG5Rw8PifS3K0Kb8XzJz C04aVIEuEBOJDzcFzo8JWbyK2Ss7W6w/wumnyb18I9pppu8PT5Lv9w45ZZKlW695GsR4 Wnvg== X-Gm-Message-State: AEkooutxBp9MafncgLbCM21RAlp28UrLlQjKc2eF0XCJJNrsgAVGUh+a951+vMEpR3dxQ+cZWg+cQso2rFygGw== X-Received: by 10.25.33.130 with SMTP id h124mr17303972lfh.47.1470648464080; Mon, 08 Aug 2016 02:27:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.29.16 with HTTP; Mon, 8 Aug 2016 02:27:43 -0700 (PDT) From: Yuri Iozzelli Date: Mon, 8 Aug 2016 11:27:43 +0200 Message-ID: Subject: High Performance P4 Software Switch - Week 11 To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 09:27:47 -0000 Hi Project summary ======================== In this project I would like to implement a modified version of the reference p4 (http://p4.org) switch on FreeBSD, which uses netmap for faster packet I/O: the goal would be reaching the 1 Mpps order-of-magnitude speed (current reference implementation is limited to 150 Kpps for a simple l2 switch with 2 hosts). Week 11 ========================= I improved the lockless queue to support rate limiting. Also merged some fixes to the upstream repository. I am starting to review all my modifications to see what to include in future pull requests on the upstream repository. Links: Wiki page: https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitc h#preview Code (gsoc-* branches): https://github.com/zarghul/behavioral-model Regards, Yuri Iozzelli From owner-soc-status@freebsd.org Tue Aug 9 02:52:54 2016 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C815BB29E1 for ; Tue, 9 Aug 2016 02:52:54 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A67351E55; Tue, 9 Aug 2016 02:52:53 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-wm0-f68.google.com with SMTP id i5so485865wmg.2; Mon, 08 Aug 2016 19:52:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject:date :message-id:cc:to:mime-version; bh=/YrMRVxSyjnqj4lMmefqtNEkTd99q16tdgUkHxX6Nas=; b=JV9i7odFZroIpxOQJNBE1cgpqjLVeNqxhpXrflcTu6nTsQc3uCfAxkqErrMZX6DZfQ 2jDEDQi5tCIlryi2NBEMcqjCSjLuHId9J9zEJT7zjvS05m3XDfz7e+2XgwWbGuwW0LI6 4DR/5tL6//BycL7OdO2YlnVhFqTfG3vp32I8D4icQHHTw0+QSlL7JSLHua+b/AuilZro lHuKRtbxy/iEB/P8r3LHqkL7UdC+WX5vI9zj8SraOOYxCuNkxRGHJ/QwqPe9G3uHXy9A x0bMhdJbN5PvJrUa/yhjqbBRQ6Ug1bm+/06u4suc5PR/QrCWVz+6xI1LYtJ3Timc4gRa eX5g== X-Gm-Message-State: AEkoouslyh/aFoBVOkLihboSYaq2KI4NJpkrSt1Tqo7wZ9ybS1r8Fr4jPhPOT7ciYkiKeQ== X-Received: by 10.28.96.11 with SMTP id u11mr19901555wmb.5.1470711165677; Mon, 08 Aug 2016 19:52:45 -0700 (PDT) Received: from maka.fritz.box (dslb-188-103-223-020.188.103.pools.vodafone-ip.de. [188.103.223.20]) by smtp.gmail.com with ESMTPSA id x203sm945112wmg.0.2016.08.08.19.52.44 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 19:52:44 -0700 (PDT) From: Mateusz Piotrowski <0mp@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Week 11 / Non-BSM to BSM Conversion Tools Date: Tue, 9 Aug 2016 04:52:45 +0200 Message-Id: <812AE2B8-DE1C-4489-8B05-6A306C1911BE@FreeBSD.org> To: soc-status@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 02:52:54 -0000 Hello, I finished configuring the NFS on a faster machine. You can see a tutorial I made along the way here[1]. Moreover, I set up CentOS with the latest Linux Kernel and auditd versions. Now I am able to generate the most recent format of the Linux Audit logs. Until the 9th of August I plan to add a conversion for syscalls,=20 execs and Linux Audit records which require to call au_to_attr=20 (see au_token(3)). At the moment au_to_attr is a function available to the kernel only (I sent and email to freebsd hackers regarding this issue - see [2]) so I'll have to implement a userland version=20 of it. I plan to consult my solution with the OpenBSM community. Hopefully, the 12th week will be spent on writing an extension of auditdistd(8). Cheers! -mateusz [1]: https://github.com/0mp/freebsd/wiki/Set-up-FreeBSD-with-NFS [2]: = https://lists.freebsd.org/pipermail/freebsd-hackers/2016-August/049835.htm= l= From owner-soc-status@freebsd.org Wed Aug 10 18:51:05 2016 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B1F3BB5C6B for ; Wed, 10 Aug 2016 18:51:05 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3CB1A4E for ; Wed, 10 Aug 2016 18:51:05 +0000 (UTC) (envelope-from ionutalex.teaca@gmail.com) Received: by mail-oi0-x236.google.com with SMTP id 4so71710780oih.2 for ; Wed, 10 Aug 2016 11:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=y8P1CTzjLwxiUqCzZwYkEkVRMwk9gEQsqP1G0VxqnS0=; b=vjcJ1pKXNZncMnAQr4+B9werpb3ZFQnWYIpV2dxkpWYEmCHvcs7f69VWMNdS+UqVgS vmBnQpIT3x7FOcZRulbNA29qEIqxOlEraKuXSHqqqUT+HVaAdSWc+JfubjwgYs482Jeg uJr6HMPaWzwIgrnd73OqlcMYAut1emvRgYT3l2vKyPxoR+0lNOr5rUBEWp2B2ibWYdNr msFldFYIPPAV3KPeCfC04RH+Ze9+vohfMfQrNu49U6t4f0jg480rvwxKAqik4QyP1AYw ytUxuKXywT/ITkc2A7tLmbX7Z21SPJOSIAfZmqHKURGli3KTbqc/HbBJpsgBnZpwXxPd gVEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=y8P1CTzjLwxiUqCzZwYkEkVRMwk9gEQsqP1G0VxqnS0=; b=ZznWg6QyK9xnJVNuw+sJtB9EeFji2tfKBCnwyU61LlYzGqnAFMipTs0CNidHpUc5Wa b7cN2r4GJN8mdP2col6k15RC7tKvQ73WQRpKho4pj+n3xHkqu4AWdNZsFM/WCZ7s5j7t ZGaMnmYEmRb+VUIN8CF1wWg07p2hzOwsxJNYW5hGQvGCDNhMdJkm+5M5uW+3H766mMoP mzCkm36wt03j/PqXl0SYelwypnZHWBaFh92leJQI7VyaygRxuWLf7wLJ79XyzjS9z/a7 xbN0i5JBE8vCQFN4i1MtUMpLQpCa9KvmjpdbW+2JbZzqFvI28q5zZtL/+yNgVdyxY8Uk 3Hyg== X-Gm-Message-State: AEkoouuHHX6oQxJkdY2LWudDY2u79Kv2aca0+r37R4lZp8vyhiyp7mTPEBdJyUUb0PZuhunYlQthuZjoEjtMzg== X-Received: by 10.202.49.201 with SMTP id x192mr2910735oix.66.1470855064367; Wed, 10 Aug 2016 11:51:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.235.109 with HTTP; Wed, 10 Aug 2016 11:51:03 -0700 (PDT) In-Reply-To: References: From: Alex Teaca Date: Wed, 10 Aug 2016 21:51:03 +0300 Message-ID: Subject: Re: [GSOC 2016] HD Audio Emulation For Bhyve Status To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 18:51:05 -0000 Hi I finished to implement the ADC feature so I am able to record samples from a mic. I tested in both Linux and Windows (arecord from alsa, and Sound Recorder from windows) and it goes well. Redesigned the hda_codec that it allows to provide either ADC, DAC or both of them by config. Basically, if you want only playback emulation just add: -s 5:0,hda,play=/dev/dsp[%d] The general configuration is: -s 5:0,hda,rec=/dev/dsp[%d],play=/dev/dsp[%d] I want to fix some coding style issues, write the documentation and prepare the Work Product Submission required by Google. Thanks, Alex On Sat, Jul 30, 2016 at 10:56 AM, Alex Teaca wrote: > Hi, > > Meanwhile I have added some small functionalities in order to make it work > with Linux and Windows virtual machines. The difficult part was rather to > find the right setup to run Windows properly. > > Now, it works playing audio on FreeBSD, Linux (ubuntu 14.04 server) and > Windows 2k8 server guests. One limitation I still have is the necessity to > use hw.snd.latency=0 when play with Windows. > > I am working at the input features in order to capture audio. > > Thanks, > Alex > > > On Sun, Jun 26, 2016 at 8:49 PM, Alex Teaca > wrote: > >> Hi, >> >> Short update. >> >> - implement the stream management operations (stream_start, stream_stop, >> hda stream interrupts, hda_transfer) in the hda and hda codec >> - create one thread per stream in the initialization of the codec which >> runs as long as the stream is started and waits on a conditional variable >> when the stream is stopped. >> - implement the Audio Player used to play samples to the sound device >> (/dev/dsp) (3 functions: audio_init, audio_set_params and audio_playback) >> >> Results: manage to play music in a bhyve virtual machine :) >> >> Thanks, >> Alex >> >> >> On Fri, Jun 17, 2016 at 9:52 PM, Alex Teaca >> wrote: >> >>> Hi, >>> >>> I added a pin widget (Line-out) and now the Audio Output Widget is >>> enabled. The codec is installed as pcm0: >>> root@vm_hda:~ # cat /dev/sndstat >>> Installed devices: >>> pcm0: (play) default >>> >>> The next step is to implement the stream management operations such as >>> start_stream and stop_stream. I have taken a look on the Stream management >>> chapter from the HDA specification in order to get familiar with these >>> operations and study the driver implementation (hdaa_audio_setup, >>> hdac_stream_start, hdac_stream_stop) to see what registers are programmed >>> and what commands are sent to the codec. >>> >>> Together with Peter and Alexander we chose the design of the interaction >>> between the HDA controller, codecs and Audio player regarding the stream >>> management. >>> >>> Thanks, >>> Alex >>> >>> >>> On Mon, Jun 6, 2016 at 10:01 PM, Alex Teaca >>> wrote: >>> >>>> Hi, >>>> >>>> Here is the status with the features I have implemented so far. >>>> >>>> - set up the HDA controller as a PCI device in bhyve >>>> - design the layout of registers and implement the read and write >>>> access to the registers >>>> - implement the CORB and RIRB mechanisms in order to get commands from >>>> driver and respond back >>>> - add the hdac_codec module and implement the interface of >>>> communication between the hda controller and codec >>>> - describe the hda codec parameters for each node (ROOT, FG and AUDIO >>>> OUTPUT) >>>> - handle the GET_PARAMETER verb >>>> >>>> At the moment there is only one widget: the Autio Output Widget and the >>>> hda driver has disabled it because it does not find any Pin widget. >>>> >>>> The plan is to add the Pin output widget and to continue with the >>>> streams data in order to play some samples. >>>> >>>> Thanks, >>>> Alex >>>> >>>> >>> >> >