From owner-soc-status@freebsd.org Mon Jun 18 09:32:04 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64A48101FA46 for ; Mon, 18 Jun 2018 09:32:04 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (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 D358176ABA; Mon, 18 Jun 2018 09:32:03 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: by mail-wm0-f46.google.com with SMTP id j15-v6so14253859wme.0; Mon, 18 Jun 2018 02:32:03 -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=rjVbjQouQPT/mJ5lN3eiEBGLoDzZwBRnU/R1BDUr8Fk=; b=Wi0v/czJDNrcF7Xia7bcrmNafG0d81zmNIPwIG3reryJFUFleLZ6D1W5LrOT/PckqH IB1urFSIbNs8sSFjgOaSzWfEvujwEGq8dP3zlVKS6dA8KOux83R+HeuwYhsuQIngQfwf KEaFqP+KDvSiSh1sb3co04oUs6FBQTNDnXM4KMtTRQQxPD74oM7JcVWLko42do5WA0R6 vZ8WodTk7vO6ggLIZLf0xennfEf1PoXhcXT+jw3rh/JNSxwDO79ZtCC/nWgT6e0b9pPh IWE+nd4/M9Q5IP5pPp3pcew13kEQIy/ke4CxcxN8jVJtugxCXFhZ4Jx06qvqs93tmtI0 K+kg== X-Gm-Message-State: APt69E2j+Bu9DeAXNBabrigUzg6tHFTu5M2lfeuJoDtvbkUvY5OjBoSN oULrHWd6rPXnMjr1AisbScjS5Onn X-Google-Smtp-Source: ADUXVKLSmBGTgP7u3MtdQa9FWYlSIrn3gHqaC3CP2frhZ3IJKUgxll7/UIZ30fdds3hL8m1QAviwCQ== X-Received: by 2002:a50:8405:: with SMTP id 5-v6mr10368060edp.125.1529314317106; Mon, 18 Jun 2018 02:31:57 -0700 (PDT) Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id z44-v6sm7615803edb.72.2018.06.18.02.31.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 02:31:56 -0700 (PDT) Received: by mail-wr0-f181.google.com with SMTP id d2-v6so16019791wrm.10; Mon, 18 Jun 2018 02:31:56 -0700 (PDT) X-Received: by 2002:adf:f112:: with SMTP id r18-v6mr9359722wro.134.1529314316527; Mon, 18 Jun 2018 02:31:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5d:4146:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 02:31:56 -0700 (PDT) From: Aniket Pandey Date: Mon, 18 Jun 2018 15:01:56 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC-18] Regression Test-Suite for Audit Framework [Week-5] To: soc-status@freebsd.org Cc: asomers@freebsd.org, George Neville-Neil , robert.watson@cl.cam.ac.uk, gavin@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 09:32:04 -0000 Hello All, This week, I was mostly involved in getting the tests merged with the FreeBSD src. In total, 18 differential revisions were accepted and committed by my mentor asomers@. The list would be too exhaustive so I'm refraining from posting them all here. However, I've compiled the list in my Project Wiki so if you're interested in the details, please feel free to check it out. [1] Apart from code-reviews, I encountered a few bugs and tried to fix them. Coverity, which is a static analysis tool used by FreeBSD, reported numerous memory leaks in my previously merged test cases. A brief report can be found here [2]. The leaks were all from the same origin, to get some of the system calls to execute successfully, I needed a path to a file which was created using open(2). Since open(2) returns a file-descriptor, it is recommended to close them at the end when the work is finished. Not doing that resulted in a bunch of reports. While working on creating regression tests for the audit viewer utility praudit(1), I encountered an unusual behavior. Kyua lets us specify the assertion for exit status in the atf-sh(3) tests, the default being 0 (for successful return). For example, the asserted failure for "r", "s" exclusion: atf_check -s exit:1 -e match:"usage: praudit" \ praudit -rs $(atf_get_srcdir)/trail However, this consistently failed the tests. On further inspection, it turned out that praudit(1) never returned 0. Although, as 0mp@ later mentioned, since this behaviour was not documented, it could not be considered as a bug. But to maintain the consistency with the other utlilities, (and to pass the tests) it was decided that returning 0 would indeed be a better option. I created a Pull request in OpenBSM which was merged by rwatson@ after the builds were verified. [3] I'm currently working on the issue of "-p" flag for praudit. This synchronises praudit invocation with the next legitimate audit record. However, with the default option, praudit would simply exit without doing any conversion. Since, it is expected that whatever record is present in trail should be considered, it makes sense to make "-p" option the default behaviour. The tests for praudit(1) were merged in r335290 [4]. With very few system calls left for review, I'll try to get them all merged in this week itself. Thank you, With best regards, Aniket Pandey [1] Project Wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/RegressionTestSuiteForAuditFramework [2] https://github.com/aniketp/AuditTestSuite/issues/3 [3] https://github.com/openbsm/openbsm/pull/32 [4] https://reviews.freebsd.org/rS335290 From owner-soc-status@freebsd.org Mon Jun 18 15:05:05 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA141100D254 for ; Mon, 18 Jun 2018 15:05:05 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) (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 CCF3F835A5; Mon, 18 Jun 2018 15:05:04 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-wm0-f65.google.com with SMTP id r125-v6so16227232wmg.2; Mon, 18 Jun 2018 08:05:04 -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=cF5f6WYGi+moMMQ+IZiXur5NvdS+3MAQOg3rIh/BcFk=; b=HUOYu0sqrYn3Pny6+voU/LXDq0bzkdZlxgRQJ9HVIY+BpvQaUtiVJHcJrNmHkBVSVC RB/rlI+fqY+zRxSAq9i6ZDF/45s+8OsKvY3eE2KIFRsOIl/OitgEsZgwgQyqlOzyWpfJ YTFs3PZ5X43kPu4/mIKtm0rqlH4RlX72bcb/drrMJPCGI1UdIhKFshbEZCAe1+2LYaTe Un/oT830JJFCXljkbkH2hJKrLvOJ45jyKm8ty0TZo+tN/fv2saPP7QttMVjSs0mq0rtH YKNeAqq1LoTltCNtS4jG67DJ4JuP7ExA1qIClKsBFF3Jd9YJKnjew2bQNoBnY5sSTUkM p1cw== X-Gm-Message-State: APt69E1TY1Hf1Gbl/RrKbtmTUm1T4Jhnete5nwJcL7HGorxCGToBeE+n Of9irSHsgStFu5kGqYe14s8laISI X-Google-Smtp-Source: ADUXVKJGgXShBj30WqSsHz+CdHeB+jeEAjPHGBX32QgCjgZ2YgaGsO51U6kkl8JeayP/NtitY29nYQ== X-Received: by 2002:a50:b14c:: with SMTP id l12-v6mr11479954edd.65.1529334297582; Mon, 18 Jun 2018 08:04:57 -0700 (PDT) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com. [74.125.82.42]) by smtp.gmail.com with ESMTPSA id b58-v6sm8103902edb.59.2018.06.18.08.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 08:04:57 -0700 (PDT) Received: by mail-wm0-f42.google.com with SMTP id z6-v6so15377358wma.0; Mon, 18 Jun 2018 08:04:57 -0700 (PDT) X-Received: by 2002:a50:e70d:: with SMTP id a13-v6mr11632684edn.158.1529334297352; Mon, 18 Jun 2018 08:04:57 -0700 (PDT) MIME-Version: 1.0 From: Pratyush Yadav Date: Mon, 18 Jun 2018 20:34:21 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 5] Import the Xen grant-table bus_dma(9) handlers from OpenBSD To: soc-status@freebsd.org Cc: Edward Napierala , Akshay Jaggi Content-Type: text/plain; charset="UTF-8" X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 15:05:05 -0000 Hi, I refined my implementation of the xen-specific bus_dma(9) handlers, with help from Roger Pau Monne. I was allocating the grant references per DMA tag, and not per DMA map. This was wrong. Roger pointed it out and I fixed it. It took a lot of time because a large part of the code had to be refactored. This was because I had to introduce a xen-specific DMA map which contained the generic DMA map, along with some other stuff that was needed. This meant that every method using a DMA map had to be updated. A lot of careful changes had to be made. Other than that, I made some minor fixes and improvements. I expect I should have the bus_dma handlers ready, at least to some extent, by the end of this week. I will also try to write some tests if I get the time. I maintain a blog on Blogger where I publish my progress every few days. Check it out if you want more details on what I'm doing [0]. [0] http://pratyushgsoc.blogspot.in/2018/05/import-xen-grant-table-busdma9-handlers.html -- Regards, Pratyush Yadav From owner-soc-status@freebsd.org Mon Jun 18 15:20:00 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4989100DD49 for ; Mon, 18 Jun 2018 15:20:00 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e751]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F80483DA1; Mon, 18 Jun 2018 15:20:00 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from tr-v1239-fse.scc.kit.edu ([2a00:1398:e:28::2] helo=server-01.fs-etec.kit.edu) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fUvwi-0007IO-Jl; Mon, 18 Jun 2018 17:19:58 +0200 Received: from Chris-TP.fritz.box (p200300D2EF06490025444A5170C56571.dip0.t-ipconnect.de [IPv6:2003:d2:ef06:4900:2544:4a51:70c5:6571]) by server-01.fs-etec.kit.edu (Postfix) with ESMTPSA id 18E7B1D8; Mon, 18 Jun 2018 17:19:56 +0200 (CEST) Date: Mon, 18 Jun 2018 17:19:37 +0200 From: Christian =?ISO-8859-1?Q?Kr=E4mer?= To: soc-status@freebsd.org Cc: Chuck Tuffli , Luiz Otavio O Souza Subject: User space interface for GPIO interrupts / Status Report Week 5 Message-Id: <20180618171937.2af134bfb0cd9c1c02812464@student.kit.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 15:20:01 -0000 Hi, over the last week I implemented a handler for the kqueue()/kevent() syscalls and added a counter, that counts the occurred interrupts, to the driver [1]. Furthermore I wrote user space utilities [2] in order to test the kqueue()/kevent() syscalls and to retrieve respectively reset the counter value. I also wrote an utility that outputs a random bit sequence on a specific pin. During this week I am going to write the second part of the long-term test: An utility that detects the interrupts delivered by the gpiointr driver in user space and evaluates them by replaying the same PRNG as the source. I also start to implement distinction of the single configured pins within a single gpiointr device. Regards, Chris [1] [2] From owner-soc-status@freebsd.org Mon Jun 18 15:27:12 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6A05100E379 for ; Mon, 18 Jun 2018 15:27:12 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-oi0-x244.google.com (mail-oi0-x244.google.com [IPv6:2607:f8b0:4003:c06::244]) (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 354BA842D6 for ; Mon, 18 Jun 2018 15:27:12 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-oi0-x244.google.com with SMTP id c6-v6so15198336oiy.0 for ; Mon, 18 Jun 2018 08:27:12 -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=sI5rexgqN/nvfer2ezdCf+IS5TgPNM4VyyZn2MOqHcc=; b=cvDlZO5YV/TuQpgFOJfgtP1mpBXZLznoK/OOZiBn+Ao5qDeyjK5sWyuYhmxQP+XeU/ wm48SbpePPikXvK+iT+rW7H1vQAIpoE4J4cVtTEoa0uBsq4tJco6Cdc374V2TenUeCED JOfgl52Ofz4MZYWX3rl3Hf8fMCH5T+1WWwIgyMLUQcbhiY8c8tXOrzTABoZzw+LB3O3c r5jJk8mVUfkjYro63K/kPYww5jkn5NpbTxErSEP1l0COI+VR+upyJWxg+BMgoi1LJf4D yozFEgGp6BD3ir5D5Frxgx4HwzEJ/J11couojp+VkBwRjH9g8NFW1DDZ9tMCqIwN8n1Q F/KA== 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=sI5rexgqN/nvfer2ezdCf+IS5TgPNM4VyyZn2MOqHcc=; b=rd30rwNyW4fChsei/+RxH3Q7Ww9yAlx69wPDrsP9zhyaUw7+oRSOeyassE8zPqcypQ p6zI/OJIpFdyuUy/NQnnd4imsutX/vonWIRRnDBuPp3TUBHQHNrJ5CNYgQx8YLe+3XkE q2ppCXQGrFPnHLkn5mxOz0kgpytKP4E7lXou+0XmSqeN1bG11zojtn61tpuK7kJPUSXN XP9eSgtNxlgwRDwJJgSo7RmTSlAehrbPv644U6y0BDGiBw0plsVyhRUZdhOKfqVnv4aT F6Sbnq6tNUoCR1UGoHcgZvxY5oZGJTTT0cxbKydzOXfwr/ZKvnHKbtXnKk3ZnBgRIA5z CuOA== X-Gm-Message-State: APt69E2d//RNxtn0cZW2hz2liVCQ23DjwRHPmmlZYamlhQkq0wDa/ciP J/XTYWKnJffe3zVCmZVq0Pu8o8mEQBY7QFBZzvE7EQ26 X-Google-Smtp-Source: ADUXVKI8I6xMrV/DXifrmw3uaDYkfIMz4wh/XHJqsAP1WwCNF+y5OYUaX61chlC3IaSn5JeDst9k1yfzMSnEIyHA3cE= X-Received: by 2002:aca:5bd5:: with SMTP id p204-v6mr7573322oib.91.1529335631204; Mon, 18 Jun 2018 08:27:11 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Date: Mon, 18 Jun 2018 20:56:59 +0530 Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 5 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 15:27:12 -0000 Hi All, As you are aware, my project is to convert PCI drivers to be table driven. This week I have worked on other PCI drivers. I converted gem, glxsb, grackle_hb, hme, arcmsr, bt, cbb, de, ebus, emujoy, fixup_pci PCI drivers. I worked with hard drivers as well. [1] [2] I have added the Plug and Play information for them and found them to be used by devmatch to match them with modules automatically. I resolved all build issues. We are thinking of migrating the reviews to Phabricator and see how it's working out. I will need to figure out a bit and work my way around phabricator-cli. Last week i've also marked some of my previous drivers with the commit metadata. We need to convert the drivers in a certain way so that kldxref can find it and record it in linker hints. I am working on PCI drivers so as to make it easy for kldxref to find them. In a couple of drivers I have added tables and modified the probe function. At the same time, I am also learning the internals of the kernel, this will help our goal ultimately - Automatic module loading. [3] Please find my updated project homepage here. [4] Thank you, Lakhan [1] https://github.com/bsdimp/freebsd/pull/4 [2] https://github.com/bsdimp/freebsd/pull/6 [3] http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html [4] https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables From owner-soc-status@freebsd.org Mon Jun 18 17:07:16 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35FDF1013489 for ; Mon, 18 Jun 2018 17:07:16 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.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 C7C9987FF3 for ; Mon, 18 Jun 2018 17:07:15 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-oi0-f68.google.com with SMTP id 14-v6so15506752oie.3 for ; Mon, 18 Jun 2018 10:07: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; bh=hcWNHz/9EEWjIag4iZn5adlIQ7T0BAG+F4MU/kBYmXU=; b=rf9D+jCBuDo1okbu7q6IQd9KO7/Ely2UXTrB7bm4ySt8WpX2kK9mLbbZ09Ax0/+28G pPR5PSm1VuZfr6oLABVbt9MxGq7XYM2nSVxQCImPxUlQkE5D53lIBPNJRuUQhvbcySsG nTJl7eGEe9GmaOm5QXeSqftUOYiBVib/4ljN23/oth54Z4HbmYNriTxeuykjzqPnHixr dCNeWk5tYHHWoaZpk4YPklXdrzKtTMMKgE4N2qKx9N/XoDuZZNfut/HemKsL7eA65eqP Q0q3ulhqMRXD6Zjh1N6pggN/kPh8wlhkWpIYWJ6qyPZO9hsbqtgg4oOxx3/l8h93l18q +NNw== X-Gm-Message-State: APt69E3cWH4BBltNYBswCidbU31iHZa7YGKZrXHSMR32+C3XHzsYVIGB LEUzTjR6JIFffUVAlEn82cMJ0UL6 X-Google-Smtp-Source: ADUXVKIiXrk4zlIjyW970TrHMjqMsZf1eDXBIVpttG1w6ulzHILqNlhkVSwoycEqrpjNjAKuQmVduA== X-Received: by 2002:aca:3483:: with SMTP id b125-v6mr6960193oia.345.1529335490505; Mon, 18 Jun 2018 08:24:50 -0700 (PDT) Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com. [74.125.82.173]) by smtp.gmail.com with ESMTPSA id v8-v6sm15317560oti.35.2018.06.18.08.24.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 08:24:50 -0700 (PDT) Received: by mail-ot0-f173.google.com with SMTP id q17-v6so18939703otg.2 for ; Mon, 18 Jun 2018 08:24:49 -0700 (PDT) X-Received: by 2002:a9d:128f:: with SMTP id g15-v6mr7487004otg.5.1529335489821; Mon, 18 Jun 2018 08:24:49 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 18 Jun 2018 20:54:37 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 5 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 17:07:16 -0000 Hi All, As you are aware, my project is to convert PCI drivers to be table driven. This week I have worked on other PCI drivers. I converted gem, glxsb, grackle_hb, hme, arcmsr, bt, cbb, de, ebus, emujoy, fixup_pci PCI drivers. I worked with hard drivers as well. [1] [2] I have added the Plug and Play information for them and found them to be used by devmatch to match them with modules automatically. I resolved all build issues. We are thinking of migrating the reviews to Phabricator and see how it's working out. I will need to figure out a bit and work my way around phabricator-cli. Last week i've also marked some of my previous drivers with the commit metadata. We need to convert the drivers in a certain way so that kldxref can find it and record it in linker hints. I am working on PCI drivers so as to make it easy for kldxref to find them. In a couple of drivers I have added tables and modified the probe function. At the same time, I am also learning the internals of the kernel, this will help our goal ultimately - Automatic module loading. [3] Please find my updated project homepage here. [4] Thank you, Lakhan [1] https://github.com/bsdimp/freebsd/pull/4 [2] https://github.com/bsdimp/freebsd/pull/6 [3] http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html [4] https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables From owner-soc-status@freebsd.org Mon Jun 18 19:59:20 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91D6D101E13E for ; Mon, 18 Jun 2018 19:59:20 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::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 2849D6FC68 for ; Mon, 18 Jun 2018 19:59:20 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: by mail-it0-x231.google.com with SMTP id a195-v6so13863939itd.3 for ; Mon, 18 Jun 2018 12:59:20 -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=ZXmXmYlRQ0b3bYuS5h0WbgSV8PQJag7TBYn/7NmIBqI=; b=Y6OQSDhlW+wOc5tjuJkiwwkVSlHS3xWRj3Yx3WOGV6CrDcaWBVa6p/sv8oq0hhKLgo 7WwCYzDV6aO1Igp+J04OgqQ5ZGN0WyrgQe0Md5CmGB6PsDYNIasfKBcq0smbYYxJq9gr PZ3p/KOATnz2rDY2ZrAMVvWcb5CFzajfHYngfChF3/yBUZZgSAUQWbQiMDaq7IoaVEb6 tUBdJ/SOlOOqc/nuqT1epG2QTn/ntpghqSEAl2mk/gfdUo3mAI5U9l77OkxIh7vOYG/U nDFwmyAszUfr2Q2zqS/TAgtQIajn36lEXfn76Nekk3nn9GE+MBgee0DIONQk70IdUh77 pOIg== 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=ZXmXmYlRQ0b3bYuS5h0WbgSV8PQJag7TBYn/7NmIBqI=; b=BQc6OPXUuuk1lC/tUZtF3Tu83A1DD0ySo8d8lm2DG++o0xebtt3w488reuhPDLJtUk M+3TB3ZqwoOhyNOvljhqdF8riD5k1sOgoviPj7mZwkZGe5lMEFPf10SJSoue+nk5RcRE 4NMF7vnxOceyQhGIuOwnr0xtCGVm931gjjiu/zzm2Idi/szPY5IVHPcKBG9a7gEkcMKO XmhbZF9GdGYJXSnivWSxP+c364a0WeTYy3d8OOXBFyiqXE/A3ZczKEWbjoILhox3tlOF qFt/9+4iuSbNmB9DfRVHBdYYBJYOj/Exh1HuOkkl+b4IIegJESJQyLquj7PGwNBEoEF8 C2Rw== X-Gm-Message-State: APt69E2qbGgnVncBcHSTW8c5G/ey+E+qMQ9VX1Ei7aEODuZg9YHaOniQ SvCqw+GO5+L7WffGb6K5iekJbpM8wj9qLMQZd7WvVCkn X-Google-Smtp-Source: ADUXVKLMtEafLQLaewJIJ82e5wDfwUpjEtMQH/rWGueG/lDXRR2cdJsMJZw1IjVU5d3bwVzZeeT+g9WKRdu5hiBX5w8= X-Received: by 2002:a24:8201:: with SMTP id t1-v6mr11028833itd.51.1529351959420; Mon, 18 Jun 2018 12:59:19 -0700 (PDT) MIME-Version: 1.0 From: Stefano Duo Date: Mon, 18 Jun 2018 21:59:08 +0200 Message-ID: Subject: Extensions to the netmap framework - Week 5 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 18 Jun 2018 19:59:20 -0000 Hi, during the fifth week i reformatted the code using clang-format, as suggested by my mentor. Furthermore i implemented a server of file descriptors. Clients connect to the server through a unix socket, and communicate using the data structures defined in "fd_server.h" [1]. File descriptors are passed using unix sockets ancillary data. Project wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/ExtensionsToNetmap SVN repository: https://svnweb.freebsd.org/socsvn/soc2018/sduo/ Stefano. [1] https://svnweb.freebsd.org/socsvn/soc2018/sduo/netmap_utils/fd_server.h?view=markup From owner-soc-status@freebsd.org Thu Jun 21 15:27:39 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3230D1021DED for ; Thu, 21 Jun 2018 15:27:39 +0000 (UTC) (envelope-from prvs=703afe70e=roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [185.25.65.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.citrix.com", Issuer "DigiCert SHA2 Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A24C6814A6 for ; Thu, 21 Jun 2018 15:27:38 +0000 (UTC) (envelope-from prvs=703afe70e=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.51,252,1526342400"; d="scan'208";a="75070848" Date: Thu, 21 Jun 2018 17:26:10 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Kristaps =?utf-8?B?xIxpdmt1bGlz?= CC: Subject: Re: Enable FreeBSD/Xen Dom0 Support to FreeBSD EFI Loader [Week 4] Message-ID: <20180621152610.ousqsjbtopeld45d@mac.bytemobile.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180512 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 21 Jun 2018 15:27:39 -0000 On Wed, Jun 13, 2018 at 01:22:39PM +0300, Kristaps Čivkulis wrote: > Hi, > > Last week I managed to load Xen kernel, pass the needed tags to it and > jump into its entry point successfully. Currently this is the > resulting clean branch of what I have been doing for now: [0] > > Currently the problem is that Xen kernel hangs in method [1]. I asked > Xen kernel mailing list about this and will try to figure this out. > When booting Xen kernel bare-metal with GRUB2 it also hangs. Hello, How are things progressing, have you been able to solve your issues related to Xen booting? Roger. From owner-soc-status@freebsd.org Fri Jun 22 00:23:39 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 330B51006011 for ; Fri, 22 Jun 2018 00:23:39 +0000 (UTC) (envelope-from mateus@mateus.tech) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0108.outbound.protection.outlook.com [104.47.40.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CA1B75410; Fri, 22 Jun 2018 00:23:37 +0000 (UTC) (envelope-from mateus@mateus.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mateusrodrigueslive.onmicrosoft.com; s=selector1-mateus-tech; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jvdnCQQlf3sSr0xCJdj3POpLiwGZoKAHcb2+9s2B/UI=; b=x1aDwD4o8Ye0uI7W5abMtm/3ZiouwraF0C9SiOrAcOIa/HGJ9TLrHshpeD6FXKWc7bR/jcbxcGwbMm1xfPt1gUNRMvmnEH9o4UYcLhYmbug3pNlEQ/wRYtwKTiU/Aypy3RP+aX3W1nbh/ULxmngMbJEIHAyNdzBD2b6Orv9BByg= Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM (10.171.53.11) by CP2P152MB1105.LAMP152.PROD.OUTLOOK.COM (10.171.52.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Fri, 22 Jun 2018 00:23:33 +0000 Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::e956:3e1f:d21d:e054]) by CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::e956:3e1f:d21d:e054%8]) with mapi id 15.20.0884.010; Fri, 22 Jun 2018 00:23:33 +0000 From: Mateus Rodrigues de Morais To: "soc-status@freebsd.org" CC: David Naylor , "theraven@freebsd.org" Subject: [Week 5] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Topic: [Week 5] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Index: AQHUCb4kZwCf4ofM90CQabZqxmWzAA== Date: Fri, 22 Jun 2018 00:23:32 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=mateus@mateus.tech; x-originating-ip: [2804:54:18d0:c900:b96f:65aa:193f:6141] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CP2P152MB1105; 7:pcjOoFGKq3rR7oVlHZMNCWvJy056ziziQuvN24FOTWLMp7VYPKdaI2DtW4sD1qUIuCBGvnpqHxcuSVKggEoe5ktPkkzJJLr4a1g4AZXjEybBQWdjM2zzIBHn4wz71xHV3fUKgMH5YQWkSAPfGaoYvSxOmsmgcCYqw7yw4QVFsfWQx3E6G3Sv2QwTcBxENA9jwcxjtO0GaXofwUwTVbCGcC5fx/KKQgndleVdTS7StfkmUnmXj+lRVfpUrHRqndoy x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 03c2c0ba-ac22-48cf-d210-08d5d7d66339 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:CP2P152MB1105; x-ms-traffictypediagnostic: CP2P152MB1105: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(166708455590820)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(3231254)(2017060905117)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(2016111802025)(6043046)(6072148)(201708071742011)(7699016); SRVR:CP2P152MB1105; BCL:0; PCL:0; RULEID:; SRVR:CP2P152MB1105; x-forefront-prvs: 071156160B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(366004)(39380400002)(39830400003)(346002)(396003)(47530400004)(189003)(199004)(5250100002)(476003)(7696005)(2351001)(3660700001)(2501003)(486006)(3280700002)(102836004)(46003)(53936002)(9686003)(54896002)(6306002)(55016002)(5640700003)(4326008)(52230400001)(450100002)(45080400002)(6436002)(86362001)(25786009)(2906002)(68736007)(6916009)(5660300001)(6116002)(2900100001)(99286004)(478600001)(33656002)(14454004)(316002)(966005)(74316002)(7736002)(97736004)(186003)(6506007)(106356001)(105586002)(8936002)(8676002)(81156014)(81166006)(54906003); DIR:OUT; SFP:1102; SCL:1; SRVR:CP2P152MB1105; H:CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mateus.tech does not designate permitted sender hosts) x-microsoft-antispam-message-info: cPFvvaLP57IjPit+sGIXV2NZu4HwLtvwffuvYuokJWqjVc7n+uDdf9715mADaxYIrl8HuHuGjhN2/+t2ZCwNVTWK2m4aSr/tI19T+YY3QMuJ7lhcfCwQv3LPyZid2g/In0TiXRnNC1uHZj9yyJ4gXVHdfwbMMk07lymqD5q1HPrQcbCfTYAnvXYV2MV3Yiec4ldu75/EgVkn+sWpPsuKOlqgPyEMlrDHnSv9ijPpPiwvAjxvWJolWx9IDExqIG81noi9l/AOPEQi5siKIEfYTSy4IpnxhnHxZxLwq7II8PbP74HYEQEjim4v/ftajvaw1duZ3UJQ1WvTCfn8b/x+Lw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: mateus.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 03c2c0ba-ac22-48cf-d210-08d5d7d66339 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2018 00:23:32.9098 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3cb2d6d7-8d6e-44b8-954d-3085729d2030 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP2P152MB1105 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 22 Jun 2018 00:23:39 -0000 During this fifth week of work, I worked on trying to run the CoreFX tests = on the bootstrapped SDK to see what is and isn=92t working. However, I stil= l haven=92t been able to do it since there=92s a little bit of hacking arou= nd to actually make it work. It does look like a newer version of the CLI i= s necessary once changes were merged in the main codebase since the version= that I already have. I=92m working on bootstrapping that right now and wil= l move on to tests right after. I=92ll post the results from the tests on the repository [1] as soon as I h= ave them. Best, Mateus. [1] https://github.com/mateusrodrigues/gsoc18-progress