From owner-soc-status@freebsd.org Mon Jun 26 18:48:50 2017 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 7721DD8E53B for ; Mon, 26 Jun 2017 18:48:50 +0000 (UTC) (envelope-from milesfertel@college.harvard.edu) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 2529F83DC3 for ; Mon, 26 Jun 2017 18:48:50 +0000 (UTC) (envelope-from milesfertel@college.harvard.edu) Received: by mail-wm0-x22f.google.com with SMTP id 62so5450231wmw.1 for ; Mon, 26 Jun 2017 11:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=college-harvard-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=H/VX1L/UfBIymte3sDhBMDlW8qrf01tyQYifiS5VJOU=; b=YHFV7X/431XehjXA7VdrqdEBHwSflNVmENUJIGjje08B3u62psMzRM4qOU+3AJ8zYy fVw6BDRnwRNCYfZUbM+aj2psIyA8bCRJSCQXo3YxPMo8MgGMHh4vUmPNwJbDpdDBXpgh TMX8H2ztogAngKRmoQEXYLeECs6Yvn0MJN1Oc/PZos417CCTSrTZZISHezAtDS0gJaIs eVkoWGeUIorx6thu7ZDwAZtIDzR06amFRmyHMukdrTbvSduL/hWlH7TvlIWO+e1D3N1q aS5IDxK7ThIqeYcet7F9JD4fhFDJ+PmEpVWJbSSm7yBcwpurzKRlFUYghk3jI4sProNW Itjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=H/VX1L/UfBIymte3sDhBMDlW8qrf01tyQYifiS5VJOU=; b=ht66UCSV//KL+/L5kTEh/viPJFw7bfZZYAaJSVO/9G36U1/Rrcg56GBmmMRI/bnQ5h cbeC2MKlGZd/Erf5bxqmyJ0s2rOEdSKS0ke7yuexa77xjUa4Hb9Pvs/meFZjlvaAs5gO K6ZIQxZTYgefK5rIBhAeTqtaIcGuFuB/zZR7V3ycBXFp1C7BitsTkHqx76pZfcfbBzjj DAqveZGz8Evx/FUm+mkwUJESRd3k4roxGcg6DOL4wqUQcUQw6+fYPjy5956B2MfFkqIn OXG/4ly9D+2xxE94DGxgJAng9P0VcEftxWC/NNeq5DogTjZHGjH1LJB2boeQulLiRcB0 KxhA== X-Gm-Message-State: AKS2vOyIZpURp8HpXBWmw4WmNBG1M2bFJmTmEVpd1vr9ntNTKTrgKTd0 NZdg9Gm6G3XcHzFiKVmbJN59Tt2w6CvY X-Received: by 10.28.21.202 with SMTP id 193mr574109wmv.99.1498502928053; Mon, 26 Jun 2017 11:48:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.155.218 with HTTP; Mon, 26 Jun 2017 11:48:47 -0700 (PDT) From: Miles Fertel Date: Mon, 26 Jun 2017 20:48:47 +0200 Message-ID: Subject: Week 4 Update: WikiSort Pt.1 To: Brooks Davis Cc: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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, 26 Jun 2017 18:48:50 -0000 Hey Brooks, This week my work has been focused on designing a generalized wikisort implementation. This has meant laying out the structure for how the algorithm will be able to function on any datatypes. I have converted the wikisort function to fit the mergesort prototype, as well as adjusted all of the function calls to take arguments by reference. The challenge for this week will be converting the extensive set of helper functions the implementation uses to fit that schema. To allow them to work for any type I have cast the void * array to char * and am using pointer arithmetic macros with the *size* variable for generality. https://github.com/milesfertel/GSOC-Mergesort/blob/dev/lib/libc/stdlib/WikiMerge.c I have not attempted to manage the style of the original implementation much to fit Style(9) as the logic is pretty extensive and moves significantly past the 80 character limit. That is a bridge I want to cross when the code is fully converted, but would of course appreciate comments on that at any time. Miles From owner-soc-status@freebsd.org Mon Jun 26 22:57:55 2017 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 B05EBD93AF9 for ; Mon, 26 Jun 2017 22:57:55 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) (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 423D16AF67; Mon, 26 Jun 2017 22:57:54 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-lf0-f42.google.com with SMTP id l13so8278713lfl.1; Mon, 26 Jun 2017 15:57:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-language; bh=MgMCM0qBVsXHT6TTNaMFo0tzwAqcaJOAURUO8dQQwcs=; b=MxR+TFnGG0yXOXegAcrAb5pTTiUWOzHCXtc3mgANDh5QaMe//mh+7fxZiYs6O3sLG9 M13epvT/CIohsVLimS03/Ry82ZidMd8xtan6TqTgImBKaKp5nphx5Iy2Gl2IOFN/m4zv TL2ZTh8o1B+HbNOqaGMNKjm5EbEOz9VPlls2rzHRGaVIFUAWK9fuqpi3CGpQ2f0nib0T i4inRqoPSqedqvoyZiA1tclU6xv0MZr6SIy7zNI+q4I/tWeYoOfnK9H23Zx6j9JSjI47 d6aVI1WFSXDhzzcQFZR4yQ74im9gGxEwPmhV5G1RNOsehdC9EuoQz/OHOomSiUev5wuS sdow== X-Gm-Message-State: AKS2vOztkGSF2nEJp9s6QvHyQWNzZM1NECnwNWowWTthwEEsL2iMRZf4 Tn7DOtExEBizpaV0kcI= X-Received: by 10.46.80.69 with SMTP id v5mr684193ljd.6.1498517866919; Mon, 26 Jun 2017 15:57:46 -0700 (PDT) Received: from [192.168.2.107] (159-205-242-8.adsl.inetia.pl. [159.205.242.8]) by smtp.gmail.com with ESMTPSA id h98sm283645ljh.57.2017.06.26.15.57.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2017 15:57:45 -0700 (PDT) To: soc-status@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: [GSOC17] Porting 802.11n and 802.11ac support to iwm(4) Cc: adrian@FreeBSD.org Message-ID: Date: Tue, 27 Jun 2017 00:57:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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, 26 Jun 2017 22:57:55 -0000 Hello, For the last two weeks I've been busy reading the Linux iwlwifi/mvm driver code. At first, I was mostly focused on the parts in charge of transmitting packets. Later, however, Adrian and I came up with a more precise and detailed plan for improving iwm. For the following weeks I intend to work on the antenna setup: 1. First, I'll review iwlwifi/mvm TX and RX antenna configuration code. Most importantly, I am interested in what it does forinitial setup, MAC context setup, PHY context setup, and TX packet setup.We need to get these things to work otherwise MIMO rates won't work at all. Currently, I am looking for PLCP-related code (like the routine that calculates the PLCP value to stuff in the transmit descriptor and see what calls it and map that out a couple levels). More details here [1]. 2. Once I get the idea of how things from 1. work I have to investigate iwlwifi and iwn to see how they assemble the MIMO version of the transmit PLCP as right now iwm only knows about 11abg PLCP configuration. 3. Subsequently, I'll add placeholders routines for 11n methods. 4. Then I'll make MAC and PHY contexts in firmware aware of the fact that they can now use 11n. 5. Finally, I have to tell net80211 that it can now use 11n and see if it crashes. As always, I put the links to the most interesting and informative sources here [2]. It might save you a lot of time if you're willing to start working on WiFi drivers while knowing very little about them. Also, I'm taking my last exam on Wednesday, so I'll be more efficient in the next few weeks. Cheers, Mateusz Piotrowski [1]: https://wiki.freebsd.org/SummerOfCode2017/Porting80211nAnd80211acToFreeBSDiwm#PLCP [2]: https://wiki.freebsd.org/MateuszPiotrowski/Drivers/WiFi101 [Project's wiki]: https://wiki.freebsd.org/SummerOfCode2017/Porting80211nAnd80211acToFreeBSDiwm From owner-soc-status@freebsd.org Tue Jun 27 15:18:17 2017 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 BEB6FD87D20 for ; Tue, 27 Jun 2017 15:18:17 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward14o.cmail.yandex.net (forward14o.cmail.yandex.net [IPv6:2a02:6b8:0:1a72::1e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F0D16E4B1 for ; Tue, 27 Jun 2017 15:18:17 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [77.88.61.130]) by forward14o.cmail.yandex.net (Yandex) with ESMTP id E8DC221B6C for ; Tue, 27 Jun 2017 18:18:13 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id 2939E2840F26; Tue, 27 Jun 2017 18:18:13 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lgLQs9sZ7n-IC04wnHP; Tue, 27 Jun 2017 18:18:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1498576692; bh=h7B5MqotD9E5YF27hWPrTmXOmbmx0lJS8XcoqDLWyks=; h=To:From:Subject:Message-ID:Date; b=xuFekLlN7z2+FygJa6C+znjvdw5S/eB4MPRsEDVUw+6+eyCttk2FOvnsmh92DMXPQ Tq1TvRxygA5YKeuQX89tOMXDTuv4JXDK5r171jivMsfqtuPikKIZKmWlRwd/lBREEy Y5kmeUjQVix5PlR+sLSncgw/9HAdsiVQpHm/MJRI= Authentication-Results: smtp3m.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 1022867361,1 0 To: soc-status@freebsd.org From: Panagiotes Mousikides Subject: GSoC status: PF testing, week 3-4 Message-ID: Date: Tue, 27 Jun 2017 15:18:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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, 27 Jun 2017 15:18:17 -0000 Hello everybody! Work is going well on writing tests for pf, the FreeBSD network filter. Here is what has happened since the last update. I have now added a collection of parsing tests for pfctl under src/tests/sbin/pfctl, mostly copied from OpenBSD's test suite, in a way that integrates them with the FreeBSD test suite, which uses kyua and ATF. I have also written up a list of differences between OpenBSD's and FreeBSD's pf. We have a powerful test box now, which makes work more effective, and lends itself to creating bhyve instances easily. I have also read through make(1) and build(7), which helps with understanding OpenBSD's test suite structure. This will be important when writing pf kernel tests for FreeBSD, since OpenBSD can be used as a source of inspiration. Have a look at my GitHub repository at https://github.com/paggas/freebsd, my work is under the 'paggas' branch. Best regards, Panagiotes From owner-soc-status@freebsd.org Wed Jun 28 09:37:28 2017 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 72FC7D9D56B for ; Wed, 28 Jun 2017 09:37:28 +0000 (UTC) (envelope-from vaibhavkg2018@email.iimcal.ac.in) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 04793720A7 for ; Wed, 28 Jun 2017 09:37:26 +0000 (UTC) (envelope-from vaibhavkg2018@email.iimcal.ac.in) Received: by mail-wm0-x242.google.com with SMTP id 131so10347971wmq.2 for ; Wed, 28 Jun 2017 02:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=email-iimcal-ac-in.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=KlKXJyqMzGAEQFEYYuhUcivmarnctTdrhtOn728Fvko=; b=hj3vsuzpdX8agW+P29hzLBkZbEpfP4wwBEi0X+O623Gryrguifih0VFj3NOfjWxi0m vkntKJiv8Cpkgn6zksJUhdreT1J1dVGJnmOxIx1KdtIvWlyMOrgkXYtwL+moI4F9a8Em LAofvCeaH4Fm8QeO45DASRZobi/2ns7b6QAL4CP9L/yjFxFswBVmZgwG9zTahi7Ed0oi T8wc4DOgCmM01LNbwJUt+d6D3qtgCEa/bG05GUt4nvV1Q0NIJVFYRoaSg9Nkuiw4FdMe Y88y3QgbvKXmRFeXVA8CrmBR2Ugr8rh4WPYiXoOEQr9KDlQMyHdSVlU8gzfQltOYJ3xL qBfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=KlKXJyqMzGAEQFEYYuhUcivmarnctTdrhtOn728Fvko=; b=pSWIJm/D3hsJ++3yFKER73dev8h9WPJn2FrWzsXB9pbBINa9NUbH/1YunUzkIMg3Pb 08XXIiVjNPvzBvlvkQNefsVR3Lhp7vFCw5D9qEncLDHYqirGi+GFZ5MiikAKM1z169kT n+eKNQWjb3+gKxaHM2wH95rBmTSEru0qO5ZEpr76L0C+92Nm8uyIY5fj5jP/PruQ5Hs2 BGdeyxH/hJzx5K7MfxHKB8Xh4BToOm3gwWhQY+/o6xMLkSGpZgIEt2UMVCdA+H7Oa8CP fyjiuwOXFP1VW4T3r1kdzGiIMmAg2Sg+EhDG0/thUEXcDFo5K/wEw8TLLiIWtaYBv7f+ UqhA== X-Gm-Message-State: AKS2vOwNRzEJFM/NzGedL0Iq0zYlTsbjhl//OJzwqDTVQn/bor1EqpHF ixgWgEugaURg8+F1w6ujj5khzjTsh41vlwU= X-Received: by 10.80.164.241 with SMTP id x46mr7167650edb.114.1498642644831; Wed, 28 Jun 2017 02:37:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.143.194 with HTTP; Wed, 28 Jun 2017 02:37:24 -0700 (PDT) From: VAIBHAV GAUTAM Date: Wed, 28 Jun 2017 15:07:24 +0530 Message-ID: Subject: GSoC 2017: Xenbus_dmaGrantHandler Status report To: soc-status@freebsd.org Cc: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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, 28 Jun 2017 09:37:28 -0000 Dear All, I am Vaibhav Gautam, one of the participants of the Google Summer of Code 2017 involved with FreeBSD. The title of my project is "*Importing grant table bus_dma(9) handler from OpenBSD to FreeBSD.*" The status report of my work is as follows: *Project Overview* Grant tables are a mechanism for sharing and transferring frames between domains, without requiring the participating domains to be privileged. The OpenBSD has integrated grant reference into it bus_dma(9) subsystem. The aim of the project to import the bus_dma(9) grant table handler from OpenBSD to FreeBSD. *Midterm Deliverable* Have a Xen specific implementation of bus_dma(9) in order to map and share grants with domains. *Key Learnings* 1. Concepts of virtualization 2. Kernel debugging 3. Writing device drivers 4. Xen hypervisor 5. bus_dma (9) APIs *Current Status* The current status is that the grant table has been integrated with the bus_dma structure. The DMA maps are being created to map physical addresses of map segments to the grant table references. The implementation needs to be further improved performance wise and to be extended to other functions utilizing bus_dma. Also, to be fully integrated with all frontends and backends present in FreeBSD. *Files modified* 1. /usr/src/sys/x86/x86/busdma_bounce.c 2. /usr/src/sys/dev/xen/grant_table/grant_table.c 3. /usr/src/sys/xen/gnttab.h For detailed info regarding the project, please refer to https://wiki.freebsd.org/SummerOfCode2017/Xenbus_dmaGrantHandler. Regards, Vaibhav Gautam. From owner-soc-status@freebsd.org Thu Jun 29 01:46:44 2017 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 ADFBCD8BD1B for ; Thu, 29 Jun 2017 01:46:44 +0000 (UTC) (envelope-from sux2mfgj@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::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 46E136F6DC for ; Thu, 29 Jun 2017 01:46:44 +0000 (UTC) (envelope-from sux2mfgj@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id b184so75860130wme.1 for ; Wed, 28 Jun 2017 18:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bM80z81o9E/4D0B86Nxp3yDQ1krcuojpnV2bEZXrZqc=; b=sG2gTCNZWMBd8h1qk35A+TgPzPaMxA5Fobz0ywGeU0CsxbKT5wyMGdSoprlZpvfacJ +YeSwXuo9T1KnzDpApKpAfwzaV38+RicBVmuFkZxTwk7RwaT9M1GyuZWe6dsaK2D93zh tCjB8MjP7IYWKFxwzusM7Y7R0UOTac2Kw+LEMtdt/l0IXRjb3aCPMvU9rPUekxIGnp2/ UzZWgwetqnLimRE+X1dWlT/n76yIXZ4oDM/FVcINMU6O/MhIN2kRodn/StP3qg8RYoGj Aoy6NpfyOMmaffW8iS2ivikKKlxz5UMDlX+PBWRJc/lF9YunA8rKLe7cxIAdxn5pIr0R +Tog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bM80z81o9E/4D0B86Nxp3yDQ1krcuojpnV2bEZXrZqc=; b=r9CflHTqKWkjeqrQZyWar4jxoLYWF1ytgBzX4UYM9+C7I46oe0e/ZJGyVmJJiz4QHa wySjkgDDPsnW4Lu1Erfe7cfYJca1u6mjuNVCRsyCGn12S+rYW3PKAjTdr/pt4AH4kNlx Fqex1fuk6stY3WglTrHtiV4t1C9Gm+Gujs2+tbrHwbz4x3xeJmorpEA5Iv0GDfeF+b7D PIUqnn9Kb6qd854uQ+JNx5VHG9CF1cNYhLDlOQFIi8vS4+3GP9sf4XWNFoLgU2ffLbpt tpWXUkUrtWaG/qW416JslosZ9KGa+o93zFs82F41n77hp/SxeDHw3rU025i8vjtrH4Zh wOZA== X-Gm-Message-State: AKS2vOwtY2xbBQtD1T1xYrkNqhYuLiTOUpgQ103nSNYXvGlk7FJgeg3j +Ughkq0zODo+hMWoqcnjrZTzsejX6A== X-Received: by 10.28.15.16 with SMTP id 16mr8987743wmp.4.1498700802514; Wed, 28 Jun 2017 18:46:42 -0700 (PDT) MIME-Version: 1.0 From: Shunsuke Mie Date: Thu, 29 Jun 2017 01:46:31 +0000 Message-ID: Subject: Week 4: NMVe controller emulator To: "soc-status@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 29 Jun 2017 01:46:44 -0000 Hello all, My works in this week are adding same functions for reading data such as setup logic volume size and fixing bug that is occurred when guest boot. I started implementation of nvm read command. The plan for this week is to investigate mechanism of reading data from backing file and to implement that. regards, Shunsuke Mie From owner-soc-status@freebsd.org Fri Jun 30 19:13:31 2017 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 CDC73D989FD for ; Fri, 30 Jun 2017 19:13:31 +0000 (UTC) (envelope-from kneit@pdx.edu) 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 8EA7E79727 for ; Fri, 30 Jun 2017 19:13:31 +0000 (UTC) (envelope-from kneit@pdx.edu) Received: by mail-oi0-x236.google.com with SMTP id 191so17948775oii.2 for ; Fri, 30 Jun 2017 12:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdx-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=WTFTlu98NCNu9WwkRphiKnggUBEQ0Na1OGCbSQ2U4Lo=; b=bnKA6GeNg/dW1quuWmKD0tjQtJhci2MIdcEYc3AYR4kBMja38ecDZ5Q18uu/XKOwLI F0wexBSTrJ0EGdNgWbz7FfmhZS5Q7PekxhI0ql9OjYhHjft6BVuPc31y4eaAjCzPgjQI 3m4z9MyY5qjcfZ+If5Ippc5U81NMwqld13wRp4ggRzbWfk1CQOY1G+3ANHDGI/iONnQy pvaPhjcViyW0RpG/UEATSxahIYPz952I99H4cv6KmMqC4OJFqCD02/m6x3eFIvlaqERe K76O3+ZzN1DfaX+/8EWthV8ijr6vCCmQslHjSlOeC6s+f3VcwtvnFzZL+fQOumGNrswo meag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WTFTlu98NCNu9WwkRphiKnggUBEQ0Na1OGCbSQ2U4Lo=; b=Qh1qbj2QqBQUBYtgDXXdNoiPE1DDpnYcfxDxa8O5tL7mW6nyOl5acAYr5nSYzKHFDq dcm9t9aB50ki5+SICWUSY75qjuI9WbUj1F5M3ZFNPkzOMXykLqOFRZgd/F/Fir+z22zn chXAdkvVGjBnw5IFsjRaDRJd/9jkb3KgA1xKd/xrab/ypS9RwfLmZGyNjR89pszRu8Ku PoP1zGsMs2LJrks1bdychPRxyRebgJzXFnBTd8s/0M908LKIxYhSbk9fhSrfT6ZIJ5Lb CNLHgCVs6Thiphac386h1PBz/L87/DSc6VcunNK8+nkCC3Shdoj9u1GqBQYlD4xYgl41 XBJA== X-Gm-Message-State: AIVw112fbr7qAZrZIftJFf/wVtkOfVew4FXKK1rQHH4/p1ocpu11g6e0 mo+n4EY+1ZWSVpEHMXeHHZC4bug9WjTF X-Received: by 10.202.207.20 with SMTP id f20mr7775190oig.170.1498850010260; Fri, 30 Jun 2017 12:13:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.80.211 with HTTP; Fri, 30 Jun 2017 12:13:29 -0700 (PDT) From: Kyle Kneitinger Date: Fri, 30 Jun 2017 12:13:29 -0700 Message-ID: Subject: Initial Update [bootenv lib] To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 30 Jun 2017 19:13:31 -0000 Hello all, My apologies for not noticing this list earlier. For reference, my project is two components: a library for dealing with boot environments (libbe), and a beadm-like program that utilizes that lib (be). The majority of the logic for the command is complete including the subcommand and arg parser, and library initialization. From this point on, as the library functions are built out, they just need to be inserted into each subcommand's function, and adjusted for nice output. The command's man page is complete as well. The library is coming along nicely. There is a handle struct that is passed around to fn calls, and this enables informative error reporting, and speedy calls after initialization. Currently cleaning up the functions related to information about currently existing bootenvs. Over the next week I'll be working on all the remaining beadm-like functionality, so that more time is left for the new features. - Kyle From owner-soc-status@freebsd.org Sat Jul 1 16:33:15 2017 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 D2CEDD8DCD9 for ; Sat, 1 Jul 2017 16:33:15 +0000 (UTC) (envelope-from shivanshrai84@gmail.com) Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) (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 9635B6712F; Sat, 1 Jul 2017 16:33:15 +0000 (UTC) (envelope-from shivanshrai84@gmail.com) Received: by mail-qt0-f177.google.com with SMTP id b40so10718412qtb.2; Sat, 01 Jul 2017 09:33:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=oPbpdYNd+Y2PxCaLXrccZHiyCRtou10a3DbYtxy9HGE=; b=lBgdl1Nyjdni8f37+3P0KmDfm9JFcb7yY845S7GQ67K3Zuhc/+91v5QdBAGg5sCRTP qVQyiFbHTHlpvhRTHJBIX+WnwIJAoTN99I7k5omeYkw7ySoePFZcoDDVZeNWjbS2xzjv PuIzI3ursbEA88VBN9F3bWoZZBcVUoq0zWizA0/KDOrIcOt7W1JT566jRTV36Jt3zU5u UtVODIyBr7oIEOZop36gmNkGYnf3N2VClVkTjkMhvaWcS7xxUlCTe7VdVxD99oieP4B2 trKPZ7aotcY9xWTP1fJzb4c0o0YrBxca7ZRBFtjS3fsSivV8HW9fMhDns99rLSAAItz3 c8tQ== X-Gm-Message-State: AIVw111+hs4V5lm8ranWJ/eEr56H0Ny9tzXTruRgXgT0IbLvpXo78qEq rvwr4V7HhnrblUfV X-Received: by 10.237.51.167 with SMTP id v36mr13591566qtd.197.1498916252045; Sat, 01 Jul 2017 06:37:32 -0700 (PDT) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com. [209.85.220.181]) by smtp.gmail.com with ESMTPSA id o93sm8548586qte.41.2017.07.01.06.37.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jul 2017 06:37:31 -0700 (PDT) Received: by mail-qk0-f181.google.com with SMTP id v143so35318522qkb.0; Sat, 01 Jul 2017 06:37:31 -0700 (PDT) X-Received: by 10.55.79.80 with SMTP id d77mr29315291qkb.155.1498916251443; Sat, 01 Jul 2017 06:37:31 -0700 (PDT) MIME-Version: 1.0 From: Shivansh Rai Date: Sat, 01 Jul 2017 13:37:21 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC17] Smoke testing of all base utilities - Week 4 To: "soc-status@freebsd.org" Cc: Alan Somers , Brooks Davis , "Ngie Cooper (yaneurabeya)" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 01 Jul 2017 16:33:15 -0000 Hello all, A little (too much) late (~4 days) for the progress report of week 4, my deepest apologies. This is the progress made in the last week, finishing the milestones which I promised in the previous report. A very brief gist of how the smoke testing tool works as of now - If a "known option" is encountered while looking in the hashmap containing pre-defined option definitions, a testcase to check the validity of the result of that option is produced. *NOTE:* Pre-defined option definitions try to relate option names with the most relevant keywords which might occur in their descriptions (for e.g. '-h' might contain "help", '-v' might contain "version" etc.) In case no such option was encountered, testcases to verify the correct usage message for all of the valid (accepted by the utility under test) options are produced when they are used incorrectly (since we couldn't guess their correct usage). The code is fairly readable (I guess, refactoring in progress), and it might give a better idea. For those wondering as this is extremely trivial, this mail from @brooks [1] will provide a very good context and the big picture. The state of the tool now is a small step forward as to what is finally expected. The tool [2] is ready for basic experimentation. It can be run via the following commands from /tool - ``` cd /tool make && make run ``` The expected behavior for this is that all the options accepted by ln(1) will fail (since we cannot guess (yet) how they are supposed to be used by just reading the man-page) and produce a usage message. An atf-sh test file `ln_test.sh` will be produced which will contain test-cases for all these options which basically runs them and check the validity of the generated usage message. Since ln(1) already has a test now, you can copy this test file to /bin/ln/tests and do the regular steps to run a kyua test - (BEWARE! Your source tree should have some form of version controlling to revert it back to the original state.) ``` cd /bin/ln/tests make install cd /usr/tests/bin/ln kyua test ``` This should produce 10 successful testcases. I also prepared a differential [4] for a test of getfacl(1) utility (I am yet to update the requested changes, will be doing them soon). *---(End of progress report, meta information ahead!)---* While I was writing the basic functionality today, I had an idea as to how to work upon generating sane option identifiers. Currently they are very simple (like "version", "help"). But since the tool will be going through (mostly) all the utilities' man pages in the base system, some sort of relation can be mapped between option names and the most frequent words which "happen to occur" in their descriptions based on the history of previously visited option definitions. This way, our comparison will not be limited to a simple `string.find()` for a single word while looking in a utility's option description, and we can check for the presence of these frequently occurring words in option descriptions and "try to guess" an appropriate usage for that specific option. A priority queue (heap?) can be a way to go, but a lot of thinking has to be put in for several other aspects. It all seems a bit far-fetched at the moment when the thought of a sane running time complexity surfaces, but hopefully some way can be figured out. Ideas and suggestions are most welcome! The above will be worked out before sending the next report, and also the description of how the tool works [5] will be updated shortly. Updates to the tool since last report: https://github.com/shivrai/smoketestsuite/compare/c2b5c7...4969ae [1]: https://shivrai.github.io/assets/tmp/smoke_testing_mail.pdf [2]: https://github.com/shivrai/smoketestsuite/tree/master/tool [4]: https://reviews.freebsd.org/D11315 [5]: https://shivrai.github.io/assets/tmp/GSoC17Automation.pdf PS. On a side note, I wasn't willing to merge the progress report for weeks 4 and 5 together, hence will be sending the next report for week 5 (current week) in a few days' duration. Thanks! With best regards, Shivansh Rai