From owner-soc-status@freebsd.org Mon Jun 11 11:48:49 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 7538C1018260 for ; Mon, 11 Jun 2018 11:48:49 +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 F0FD480090; Mon, 11 Jun 2018 11:48:48 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-wm0-f65.google.com with SMTP id r125-v6so15882519wmg.2; Mon, 11 Jun 2018 04:48:48 -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=ARtUE1vTgJ4O8VlrYcdIWdXHhLUI+oU/LnT0bp5k8+4=; b=Q8KTsp6Za0wGzABR89MCUeZUkNrDnK8lD3UfKEi+8lcX6xG1xlmf4E/PLUWc70QVVV m1aPUJDog/w/rC54XbTcuQDMyvdaWsGNvNyvhZcJphZ8Rus5RMotPQglHPKMcf7A8GwN G/sLZzYTi+k4emaHIumjHNmfs41wrW4TA52sAEjmz/obKHiVlRWfiqyBgREkmKxQiVBp Ah2DWUjqjbnUBXCDEVAUhccbw/0PacgwrOC07rhWfzDpWG0kKYxRKUHUUMYhKcv1jc4j TH8k+7T1y8nVAWQuweCIJdZLoip/linf5LNXW2GCDpaLN7azZk9y7RRZdLufEKGGOGbm +CVg== X-Gm-Message-State: APt69E3H+QHEtd8AlGE7HDRkFz6oWPHcVI+BMi8efnFT4fl7PGUtQjXV YIGQ6AtjG6tlb4iauWeZgeKgUXay X-Google-Smtp-Source: ADUXVKIhNUYxj2z+E9F/+O4YP7Qj7+t/grCkgYX8g8jiGkfCDtx1Im74sXq6GDfRDFOPNqxoJcfCuQ== X-Received: by 2002:a50:b376:: with SMTP id r51-v6mr18199222edd.145.1528717722490; Mon, 11 Jun 2018 04:48:42 -0700 (PDT) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id x11-v6sm10571528edb.39.2018.06.11.04.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 04:48:42 -0700 (PDT) Received: by mail-wm0-f45.google.com with SMTP id j15-v6so15966031wme.0; Mon, 11 Jun 2018 04:48:42 -0700 (PDT) X-Received: by 2002:a50:b122:: with SMTP id k31-v6mr18508184edd.217.1528717722159; Mon, 11 Jun 2018 04:48:42 -0700 (PDT) MIME-Version: 1.0 From: Pratyush Yadav Date: Mon, 11 Jun 2018 17:18:05 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 4] 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, 11 Jun 2018 11:48:49 -0000 Hi, This week I finished up my implementation of the xen-specific bus_dma(9) handlers. I asked Roger Pau Monne for review. After his review, I realized I had been doing things a little wrong. I was building the Xen-specific handlers on top of the bus_dma(9) interface. Instead, I should have created an alternate busdma implementation, kind of like sys/x86/iommu/busdma_dmar.c So I had to study the inner details of the bus_dma(9) interface to learn how an alternate implementation can be written. This was a little confusing at the beginning.because there is no clear guide on the subsystem for beginners like me. But eventually, I got the hang of it, mostly by reading code already written. After that came the task of rewriting my implementation. I wrote it, and then spent a couple of days refining it. Today, I submitted it to Roger again for review. We are discussing it as of now. No major concerns have been raised so I should be done with the xen-specific busdma hooks in a few days. You can check out the code at [0]. 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 [1]. [0] https://github.com/prati0100/freebsd [1] http://pratyushgsoc.blogspot.in/2018/05/import-xen-grant-table-busdma9-handlers.html -- Regards, Pratyush Yadav From owner-soc-status@freebsd.org Mon Jun 11 13:05:37 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 583A41000BED for ; Mon, 11 Jun 2018 13:05:37 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (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 DF377845C5; Mon, 11 Jun 2018 13:05:36 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: by mail-wm0-f47.google.com with SMTP id r125-v6so16358214wmg.2; Mon, 11 Jun 2018 06:05:36 -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=2J9PrFJP6q7y1PK4D+9T5iBuPkzSO0n6ngTUCLccUX0=; b=gLwSX3KKI4hQafUuNLEhcZHqCek20eAAANRcI0GVPlhALLi/5JnVOmGKQkCTaSvh+T ACb3YU7PWdk4Qf/UXIZ7CtqfEOAKmMx16GZYPdCUi5QM96bmWmy5dqG2KwdPySHu3bgT XQYJNFHysaGXjoZGXxeLU/8xn5WlaE8H2nHwG+TQN8qTfF3YAzoe8xDizPa/L1z2JlF2 GsfrgmYQQ+r0LgFMOTM4yHHOM6f9IBss+WJpe8OUHiNo2M/IJGBM53lN78VOgZeBXh95 5yQSC34pLVmx7NdNsAQlGpm7JnhPj19KBcH/mIh6LkPVc5IdF2syNAz9FM+lnHjSEEpV yVIw== X-Gm-Message-State: APt69E0DY7qsh5kvpe2e/BCJnMb6/2hnixld4F48qcBponnViFfhKASQ 65kv2Fl1UkyiGxR6giH4ILd/WyYh X-Google-Smtp-Source: ADUXVKJAousb/lRxyyxD4ss/+3KNY1lTus5pE8d3/APW8K1J7JOwgjRNm14D3gTjnOaoQbd0amuWZA== X-Received: by 2002:aa7:d911:: with SMTP id a17-v6mr18505182edr.69.1528722330429; Mon, 11 Jun 2018 06:05:30 -0700 (PDT) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com. [74.125.82.46]) by smtp.gmail.com with ESMTPSA id e15-v6sm4421689eds.20.2018.06.11.06.05.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:05:30 -0700 (PDT) Received: by mail-wm0-f46.google.com with SMTP id p126-v6so14579844wmb.2; Mon, 11 Jun 2018 06:05:29 -0700 (PDT) X-Received: by 2002:a1c:2806:: with SMTP id o6-v6mr8033134wmo.151.1528722329747; Mon, 11 Jun 2018 06:05:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5d:4146:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 06:05:29 -0700 (PDT) From: Aniket Pandey Date: Mon, 11 Jun 2018 18:35:29 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC-18] Regression Test-Suite for Audit Framework [Week-4] To: soc-status@freebsd.org, 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, 11 Jun 2018 13:05:37 -0000 Hello all, In this week, I was mostly involved in optimising the test cases for open(2) and openat(2), since their various modes of operation are classified as separate auditable events, and some of those modes pass multiple audit class filters. With regards to the aforementioned possibility, the total number of atf-c(3) test cases would be about 192, which is a huge number. To keep it short, I selected "file-read" and "file-write" as the baseline and then using the macro definition, generated the tests for open(2) and friends. Example syntax: #define OPEN_AT_TC_DEFINE(mode, regex, flag, class) \ ATF_TC_WITH_CLEANUP(open_ ## mode ## _success); \ I initially had a few problems, which consumed a lot of time in debugging. For example, I had to pass the flag arguments to the macro definition, e.g "O_CREAT | O_RDWR". This for some reason was not detected as an integer argument and the test case build failed consistently. However, explicitly specifying the flag as a signed integer did the magic, also at the same time I was able to include "flag" in the test case description by stringifying it with the help of C preprocessor. The test-program was merged in CURRENT with r334668 . Next major issue, which actually took most part of the week, was to figure out why execve(2) and fexecve(2) returned "Unknown error: 201" even though the invocation was successful. For this, I had to dive deep into the kernel implementation of audit(4) and try to understand how exactly is the return status of a system call determined. My initial thoughts were that there must be some default function implementation which does the job of assigning the errno to every instance of syscall. Turns out, there were two macros in "sys/subr_syscall.c", which enclose the error retrieval snippet: AUDIT_SYSCALL_ENTER(sa->code, td); error = (sa->callp->sy_call)(td, sa->args); AUDIT_SYSCALL_EXIT(error, td); After some further research, I figured out that it is not possible to intrinsically change the return behavior of execve(2), but I can in-fact refactor the logic in errno lookup in "security/audit/audit_bsm.c" which could change the errno specifically to 0 for execve(2) and friends. Post that. I created a revision for test-case of stat(2), fstat(2), lstat(2) and fstatat(2) in "file-attribute-access" audit class which was merged without any hassle with r334933 . Currently, the tests for system calls concerned with getting the statistics of mounted filesystems is under review in D15750 . Also, as a stretch goal, I created ATF-SH(3) test program for the audit viewer utility, praudit(1) and I'm currently working on auditreduce(1): praudit/praudit_test.sh . Thank you, With best regards, Aniket Pandey Main Repository: https://github.com/aniketp/AuditTestSuite Project Wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/RegressionTestSuiteForAuditFramework Audit TestSuite within FreeBSD src: https://github.com/freebsd/freebsd/tree/master/tests/sys/audit From owner-soc-status@freebsd.org Mon Jun 11 13:25:02 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 83EC71002C66 for ; Mon, 11 Jun 2018 13:25:02 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-ot0-f195.google.com (mail-ot0-f195.google.com [74.125.82.195]) (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 249C985498 for ; Mon, 11 Jun 2018 13:25:02 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-ot0-f195.google.com with SMTP id q17-v6so23738723otg.2 for ; Mon, 11 Jun 2018 06:25:02 -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=vZF1EBPyDHsGtZXO50yKIKkSWEjUow+Uj780fl/VoME=; b=L4lofjP7AUqrKv5wI16kFsxsomuaiIGlSHmQmY1FXefKFS6khmGUambi6//LHk1xyY nCO0YPDWEsnNcsLXd5psrwMSLGzRMuS4X9nAR9Cff+x1X3LV8FOdI7PCZ+lZMrM6mwq/ T2jOroRl3sk8+bWRRiBBsICV1t5eQFWvyHhNOFmxJZKh+VDRrfc2KNioJcCGMRkgJsCx SCSzSduqU5B5IJidgWVjnZQc+y+N5pz4Gkm2SZut6ZyR2aa+vbslkkv6VTrQo8q/GHE9 pEIH0RXEboLG4REAqNQdCT1OTTf49+7uvT+esi59Sm6SlcS366cAeHEkeYIUExaBAjkL hrEA== X-Gm-Message-State: APt69E2DNtg3s8/xj5kOUQwYVglfbmKDsufoqtmOhFFv55zAqAEM0HV8 SAgQr7Vofl/uPl5pbUJ/ho4OlPgs X-Google-Smtp-Source: ADUXVKL8WN9iMm6bkwRYglQclROxaAvWM2rIltK60i5sqWko4VSAgKIBDGJVRHX8onL30STY24CodA== X-Received: by 2002:a9d:2183:: with SMTP id s3-v6mr9148836otb.142.1528723501233; Mon, 11 Jun 2018 06:25:01 -0700 (PDT) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com. [209.85.218.52]) by smtp.gmail.com with ESMTPSA id 5-v6sm1237607oid.50.2018.06.11.06.25.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:25:00 -0700 (PDT) Received: by mail-oi0-f52.google.com with SMTP id 14-v6so17857963oie.3 for ; Mon, 11 Jun 2018 06:25:00 -0700 (PDT) X-Received: by 2002:aca:5bd5:: with SMTP id p204-v6mr4288070oib.91.1528723500803; Mon, 11 Jun 2018 06:25:00 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 11 Jun 2018 18:54:49 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 4 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, 11 Jun 2018 13:25:02 -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 ciss, cp, dc, dpt, cas, ena, cy, esp, bktr, cxgb, fxp PCI drivers. I worked with hard drivers as well. [1] [2]. Some drivers had revisions which had to be dealt with. I have also discussed with my mentors the need for U64 support in descriptor string in PNP INFO - required for aic7xxx PCI driver. Also, i am on track for the first evaluation and have converted about 35-40 drivers. The plan was to convert about 30-40 drivers before the first evaluation and learn to convert some different kinds of drivers with varying levels of complexity. The integration however is pending with the FreeBSD respository - which my mentor will be performing soon. For the final goal of completing the project- "To convert most/all of the PCI drivers" however there are still many different kinds of drivers, some hard, some medium and some easy to be converted and we shall chalk out a plan for the conversion in the subsequent weeks. As there are different kinds - like sound drivers, powerpc, etc. some new methods may need to be explored. 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 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/files [2] https://github.com/bsdimp/freebsd/pull/5/files [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 11 13:42:10 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 2803E1004C46 for ; Mon, 11 Jun 2018 13:42:10 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-ot0-f193.google.com (mail-ot0-f193.google.com [74.125.82.193]) (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 B119F86348 for ; Mon, 11 Jun 2018 13:42:09 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-ot0-f193.google.com with SMTP id 101-v6so23787954oth.4 for ; Mon, 11 Jun 2018 06:42:09 -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=EVWzKFh5nSyU2KQY/HBVdL7q0xg6EQKg2EsZVIwd2wg=; b=nKNU2duf+aZGOHOAaXSzo/zdcNjtLzZuCWC5nnPJbacd1LeT/tLuo9+PHASxkxFeED oWRxwlrA2UzBqvDRsJEc0IXiU/Fxu7NcrhWmCFh7au2h8YzkIA4NNb934C4txX+b7l4r sDsFbDaPNpG1IfCoI1vFSpGQXpX0kACUNYk845lBbUgQn5bn/+gwzyvpeO8Q9W5xjFSQ GqBZeRFdyC+wOHjTQyAoaQj4C/Z1LleY89Jy/I5dbHoJB8lEg0GzZ61z2oRWQxPM07oj ICPoO0LdpsHPoy967v56PkOE0Lx7Y+fjpmh4Lh3khjglDSqcqYettjcDbpX8vy7IblyY oD3g== X-Gm-Message-State: APt69E13aFo8kem5u0O02ZoObf11IkHzHdegMoWxqDJskBprX25cGzn8 bc0mTDozpd8Y5t0XdoN12eL1EOR3 X-Google-Smtp-Source: ADUXVKKJyOvpHxCrKMdeJClEjqXBGhyIYy6363izF81Vyz42gAo4ZzXctgZwQ3vMGnJrSEqrh1oAUg== X-Received: by 2002:a9d:16ce:: with SMTP id s14-v6mr9225828ots.113.1528723236479; Mon, 11 Jun 2018 06:20:36 -0700 (PDT) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id u14-v6sm19724516otf.26.2018.06.11.06.20.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 06:20:36 -0700 (PDT) Received: by mail-oi0-f46.google.com with SMTP id f79-v6so17825129oib.7 for ; Mon, 11 Jun 2018 06:20:36 -0700 (PDT) X-Received: by 2002:aca:3554:: with SMTP id c81-v6mr7697987oia.331.1528723235860; Mon, 11 Jun 2018 06:20:35 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 11 Jun 2018 18:50:23 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 4 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, 11 Jun 2018 13:42:10 -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 ciss, cp, dc, dpt, cas, ena, cy, esp, bktr, cxgb, fxp PCI drivers. I worked with hard drivers as well. [1] [2]. Some drivers had revisions which had to be dealt with. I have also discussed with my mentors the need for U64 support in descriptor string in PNP INFO - required for aic7xxx PCI driver. Also, i am on track for the first evaluation and have converted about 35-40 drivers. The plan was to convert about 30-40 drivers before the first evaluation and learn to convert some different kinds of drivers with varying levels of complexity. The integration however is pending with the FreeBSD respository - which my mentor will be performing soon. For the final goal of completing the project- "To convert most/all of the PCI drivers" however there are still many different kinds of drivers, some hard, some medium and some easy to be converted and we shall chalk out a plan for the conversion in the subsequent weeks. As there are different kinds - like sound drivers, powerpc, etc. some new methods may need to be explored. 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 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/files [2] https://github.com/bsdimp/freebsd/pull/5/files [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 Tue Jun 12 07:31:40 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 EFFF61007876 for ; Tue, 12 Jun 2018 07:31:39 +0000 (UTC) (envelope-from sudh.cse@gmail.com) Received: from mail-io0-x242.google.com (mail-io0-x242.google.com [IPv6:2607:f8b0:4001:c06::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 EFC68729ED for ; Tue, 12 Jun 2018 07:31:38 +0000 (UTC) (envelope-from sudh.cse@gmail.com) Received: by mail-io0-x242.google.com with SMTP id t5-v6so26904822ioa.8 for ; Tue, 12 Jun 2018 00:31:38 -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=iia7b8Zo0Alm+lBET8Ozo0FOfz6ewX5K5qqJrFgZVX8=; b=jv/cPqz0mq1wZwHMZqMyY0sBYAUBducaaQCQtBa+L04jPdiFAzsQypPapwxySbOlxd 4FosVqMhyHnwKKXuKl0Lyr2YFlCdUJy3tQ6SkG+dAmJsBQNl+WMrVv6OZfbgbGxNqcMu oz/AVvlG/Q+1l88Q3jvcCrTKTNEVNjL8Xpese6tx6kKZx5HLm6MbtztRuDJctsXImF1l EYXGImWQ0TV3RMR/PGwvii3thRLnszUDEld1uy4JufA15VV5YBBB3eeVIadSCRGqigla oSpdIJOp6we8UflCdgu90E2IGg3IqsHgbIDlBIJdwm/w7spL8TOEva+LgbaeN9ZpGw+D 8s9A== 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=iia7b8Zo0Alm+lBET8Ozo0FOfz6ewX5K5qqJrFgZVX8=; b=BLRtdbA86zJTI9DwD4S/1W2VEQV3q7cLceMYLQpVigY4qMjkeOf4OtlJV3MA1rb0sV SK7hI12ByccPr+rXQ4s8F/Qamh/RwlSv4To5NdHwsVSjVwo/mgJaa9kN4VYp+HaKM+Z8 izVuQcoEZquERy+x93v7elI/GZWOp87Afiy2gS0qIH1bg8eFFskzooJNGvovKiKuXbfS JeDUgcncwLDCqZstEFbi3pqd+fg9/G69ceBA+qxL1wOpDwgarY8KwTjpSJCY5ITNQzDA EKcCZo8Kr/fUJyIgKp6mvWI+uoyzZEcwa9RdiY+lKPdU1UsgiGD26klAzRTecMoyyO4N k7PA== X-Gm-Message-State: APt69E3uhI57ZPRyKwtAKrc3xAs4crE3xFfIDHxsQK8b+D2Xcn+goqX4 m9gK8MgjTTeAO6lPRrDqRW7Uwk25nCBufzW79hvk5Q== X-Google-Smtp-Source: ADUXVKLRpgpE+2qVMlDEjXY1dh6TUIee9K++ivYcnd4zqk1+0BgiS9ZjM12TqNRxJaaSw0K2HH+BXeHz7KXlbR0pvB0= X-Received: by 2002:a6b:998e:: with SMTP id b136-v6mr2255322ioe.116.1528788698168; Tue, 12 Jun 2018 00:31:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1802:0:0:0:0:0 with HTTP; Tue, 12 Jun 2018 00:31:37 -0700 (PDT) From: Sudhanshu Saurav Date: Tue, 12 Jun 2018 13:01:37 +0530 Message-ID: Subject: Project Status Week 4 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: Tue, 12 Jun 2018 07:31:40 -0000 Hello Everyone! As per required for Mid-term evaluations I had written tests for a couple of bhyve Instructions emulation. Further, I will try to provide simplicity to test harness so that it is easy to verify they are correct, easy to maintain and easy to use. I had also created a new repository for simplifying things the link are mentioned below : https://github.com/Capreyon/Test_harness [image: Mailtrack] Sender notified by Mailtrack 06/12/18, 1:01:28 PM From owner-soc-status@freebsd.org Tue Jun 12 17:37:13 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 75DD4100B1A0 for ; Tue, 12 Jun 2018 17:37:13 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 0BC7670637 for ; Tue, 12 Jun 2018 17:37:13 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: by mail-io0-x22e.google.com with SMTP id g7-v6so318165ioh.11 for ; Tue, 12 Jun 2018 10:37:13 -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=mq2jd/gH30ZSSBsc7OOISTs5eM2llmcsO33owyYLvrs=; b=Li5PhAa1Eu9vhPZd8FpNeQfqWsRVXqUA3BFh60ZF3WMCuG20DD8RvA8IZGSHfqKy87 63bzEb56xBAG5A2EYVsXsqA+Mbipiig3R9NqdY+AJFH/9226ClYHHCbgAoHBEkUL2QDZ LbwAr9Ccv/KqJW+LV5dORKxWtt1LpDLVl91vvAq8jCXj47hP0qExgu9Z43iYgyQpd0wL Dclr6cp0ej3qjqn2hvf2SNEXOgDaPWc6wNc03puvLcXKXhRiCPFtkmnrq1Z0LMEoMMRw BaHF3d9J7lFyo5KWo+s7Tr4w1D24q8TU+ksbL4qZNmyOE/yOTp6WXb1U+e9mDOuMwQy+ wtCQ== 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=mq2jd/gH30ZSSBsc7OOISTs5eM2llmcsO33owyYLvrs=; b=lHyfwIaZzlDdCNnFF7HHp0tFjAX5ebVYfN4Nswa4RCFqvtPM5VtMMnoijJg0Jty1cr yfDo8XBq2FO9IL6T4aQqOJnSJHzjRKEAKc6SB0ai2CbQxUeCa5hsZGLyYL/1R9FvBeTv D3QL95OMnzqlARtPqolscFRUfJPj7qoUVkm5eOkFRlf7oDyiM/KCCJp0FtGir9vA6ltX HMrLYDUnHr8AlgCSc7DBeeltgoGLndvmEdfxDMh+6PWGQ4i70vMEnaEJqI3pxj9LhIYG fEGIVYBytcU/pq3pvGHQX5QWca4nli/j8sc5l2xK3ySYp4stMBVMtRm3XNXBiqAvo+XN kFkA== X-Gm-Message-State: APt69E1sRwrZiPvwy+v7TCNDJhM9wIWRfQr0VXYO2hdR7LeWBLAQH77y Ta/dmTxJ1+6KygGIx2S/0pR51P5mkiZaRWDMMhjdfLLT X-Google-Smtp-Source: ADUXVKJiT9W3q5Tr35PDmfolSQWoI19cgds7SrkIqVDRk2QgduA1BAmxPa7ZnTSm42t3smCiUmcOoXCO0ZGA4IXDhxk= X-Received: by 2002:a6b:b906:: with SMTP id j6-v6mr1541637iof.58.1528825032140; Tue, 12 Jun 2018 10:37:12 -0700 (PDT) MIME-Version: 1.0 From: Stefano Duo Date: Tue, 12 Jun 2018 19:37:02 +0200 Message-ID: Subject: Extensions to the netmap framework - Week 4 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: Tue, 12 Jun 2018 17:37:13 -0000 Hi, during the fourth week i focused on bug fixing and improving the documentation. Project wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/ExtensionsToNetmap SVN repository: https://svnweb.freebsd.org/socsvn/soc2018/sduo/ Stefano. From owner-soc-status@freebsd.org Wed Jun 13 10:22:40 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 95DA0101D0DF for ; Wed, 13 Jun 2018 10:22:40 +0000 (UTC) (envelope-from kristaps.civkulis@gmail.com) Received: from mail-ot0-x22c.google.com (mail-ot0-x22c.google.com [IPv6:2607:f8b0:4003:c0f::22c]) (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 28FEA797FB for ; Wed, 13 Jun 2018 10:22:40 +0000 (UTC) (envelope-from kristaps.civkulis@gmail.com) Received: by mail-ot0-x22c.google.com with SMTP id p95-v6so2344402ota.5 for ; Wed, 13 Jun 2018 03:22:40 -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=XPuqUh5ab293BJwnVpHUZXSjFYxeEuogHyzYrwMRwUk=; b=fg0rKPK7qtTZZu0PYI9tXTFf/AkD61g0iNDr1Ik7da2thWlf5NFYBDprc4UDVb4SnO LBQiI+iSrYZT0s0nLN47d9h+tvlhYzl+eFzJfDGzvLMOeo7KXpI+VYxNNIsHvvjl+3Vx in86X89pRUE1pgmkjuOPfWOQCVTAXy4Z8J++fPrFuaql+6nMuRkEQ01dXWJBCzkqjIAW bTHXbwyrgfZLkDpjkt8iJLWIuYSmC2rxXhpijqmDkFw+mlN698uBLqOCIqPCYFoSxmov aKUAZYzHAuwtO/yajrjIBfM2UTPJh7n+VdgObFWZbVTLgcqLO+cvkomhvn3bG4RJjWyP A3Lg== 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=XPuqUh5ab293BJwnVpHUZXSjFYxeEuogHyzYrwMRwUk=; b=SpBbQ3gE6VoFJ7xDJU9pag/qVCVcrELjFGiACgfItNyH/8b1IU28IwWjPKmZHemTyn eqW0huSLdSquQbKL3XDdJNxAbNRMIcA073jjxd6pI4Nb1JSLEyTPysYNlqAXZAfG+GHJ Dg6vj3rnsAZBwBLnz3LM3wxXjw8oBzgr503FDwAXy8Kmq86XUedanrA+E1suyvskJdm/ yZBu7mr2M898KiEM9bJnyk/p/bIAnPu+LxOsPDGXSpO2cwE6kf17MaiJqY00YU1kgd9z LQHkqHhsWVje6ZqExEXkMCAFhkknOHGMGGIvCWKKCMshzm/XnjuLLFQsLQ6ZlRww5YGd s25Q== X-Gm-Message-State: APt69E2SbfVefcW+6kpYy+XhTv8VKAZXsx+XInDzPuXDN3WaV0JjZNOJ mtj4V75bzTaD/H8YJfFGqaqBw0NFiezFnQQxBibQFw== X-Google-Smtp-Source: ADUXVKKVGIYhccARj0i3V/hq8pDPxVU2eABzWZ3Mv2n9+tSkZfUGPOgX6r1+p9tNUPw3B0NpMFlHwIkLNdtBc7zSnkU= X-Received: by 2002:a9d:60d2:: with SMTP id b18-v6mr2532474otk.305.1528885359403; Wed, 13 Jun 2018 03:22:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4376:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 03:22:39 -0700 (PDT) From: =?UTF-8?Q?Kristaps_=C4=8Civkulis?= Date: Wed, 13 Jun 2018 13:22:39 +0300 Message-ID: Subject: Enable FreeBSD/Xen Dom0 Support to FreeBSD EFI Loader [Week 4] To: soc-status@freebsd.org, =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= 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: Wed, 13 Jun 2018 10:22:40 -0000 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. [0] https://github.com/kristapuciitis/freebsd/commits/gsoc2018_first_eval [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/common/efi/boot.c;h=64d12685d35747d3734c1ad8ac27634e83bcf7db;hb=HEAD#l697 From owner-soc-status@freebsd.org Wed Jun 13 11:08:42 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 3C2511020E66 for ; Wed, 13 Jun 2018 11:08:42 +0000 (UTC) (envelope-from prvs=695654bf1=roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.ctxuk.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 AD6077B3F6 for ; Wed, 13 Jun 2018 11:08:41 +0000 (UTC) (envelope-from prvs=695654bf1=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.51,218,1526342400"; d="scan'208";a="74581618" Date: Wed, 13 Jun 2018 13:07:24 +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: <20180613110724.4ab3yd7lfdygoyck@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: AMSPEX02CAS01.citrite.net (10.69.22.112) 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: Wed, 13 Jun 2018 11:08:42 -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] Thanks, I've skimmed over it and made some comments. > 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. Yes, that's a good way to interact with the Xen community. I see that you already got some suggestions, so please follow up on that thread with your findings. Roger. From owner-soc-status@freebsd.org Thu Jun 14 09:33:37 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 021031015D9A for ; Thu, 14 Jun 2018 09:33:37 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e752]) (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 92A53804BE; Thu, 14 Jun 2018 09:33:36 +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-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fTOdH-0002uA-9q; Thu, 14 Jun 2018 11:33:34 +0200 Received: from Chris-TP.fritz.box (p200300D2EF0FDC00C9BE401B3B2E59B7.dip0.t-ipconnect.de [IPv6:2003:d2:ef0f:dc00:c9be:401b:3b2e:59b7]) by server-01.fs-etec.kit.edu (Postfix) with ESMTPSA id 73994DCA; Thu, 14 Jun 2018 11:33:30 +0200 (CEST) Date: Thu, 14 Jun 2018 11:32: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 4 Message-Id: <20180614113237.8bf0f6eb4cfcf31c5c0d0930@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: Thu, 14 Jun 2018 09:33:37 -0000 Hi, during last week I fixed the handler for the poll() and select() syscalls and implemented a ioctl request to retrieve the configuration. I also made some improvements to the test utilities and the driver. Furthermore I thought about automated long-term test scenarios and came up with two practical ideas: - Implementation of a pseudo random number generator on a second device whose output is connected to a GPIO pin of the device under test. This scenario can be validated by implementing edge recovery and replaying the PRNG with the same seed on the DUT. - Implementation of a discrete-time stochastic process as source for GPIO interrupts. For validation of this method either the PRGN can also be replayed on the DUT with the same seed to predict the timestamps when events should occur and compare it to the actual timestamp when the event arrives or another communication channel between the two devices to share information (like the count of occurred events for instance) can be used. In the course of this week I am going to implement a handler for the kqueue()/kevent() syscalls and start to prepare everything for the hardware tests an start with their implementation. The source code of the driver can be found in my fork of the FreeBSD src tree on GitHub [1]. The utilities for configuration and testing are located in a seperate repository [2]. Regards, Chris [1] [2] From owner-soc-status@freebsd.org Thu Jun 14 13:58:50 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 E20551006EDB for ; Thu, 14 Jun 2018 13:58:49 +0000 (UTC) (envelope-from akshay1994.leo@gmail.com) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.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 60F6E6BA90; Thu, 14 Jun 2018 13:58:49 +0000 (UTC) (envelope-from akshay1994.leo@gmail.com) Received: by mail-lf0-f68.google.com with SMTP id i83-v6so9600192lfh.5; Thu, 14 Jun 2018 06:58:49 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kkU70euK0WETvJCOWH6M8H+CrcTVEaCcNykdbSIvufQ=; b=OSbO9yMBitqzrdP6PdBWCSUzv0dQhI87SPdw+KqLa/UJHvDMuCKXBv8LtX2J4Fm26Z xvAthWXNtIFSfZhm8lNKccElwQanrnCWSd5XA8pvofbBRyP6VBWViom5Kc0EFVIvIh2O 8j+o+sU0uyrCo/NPhhxARPBrTNNizh6aaV4ss6lElIFZ16RNuBYoJk3irITR65vQUuZ1 /i54lgwG3zsPusc8UbQovIfARtVopsy+o/IQTIcDbdHZ87s5poLPrdR963az1NbKOC65 4isCzQe2SQ9NZFPCY56nEecV5BuwxQeY4mWvq69bqjXwYadQO1XzDOnY2PO6iw9K+Oxk sGKw== X-Gm-Message-State: APt69E38N6W9k3E11eqDbWDfFTYV5PLgAkoHkpbJS4gHinOxQp30HO7N wuuamzkfiXHwTHaS3aGTALYGODfD X-Google-Smtp-Source: ADUXVKIz2nUpxVJtuAXqg7cHyxW2JAgUx2EoCPwEun1KzMpm/o3lC7QEYbY1oa2W2h1D9PdX+349cA== X-Received: by 2002:a2e:2161:: with SMTP id h94-v6mr2020174ljh.58.1528984387264; Thu, 14 Jun 2018 06:53:07 -0700 (PDT) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com. [209.85.215.44]) by smtp.gmail.com with ESMTPSA id g14-v6sm1067019lfb.36.2018.06.14.06.53.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 06:53:06 -0700 (PDT) Received: by mail-lf0-f44.google.com with SMTP id o9-v6so9582636lfk.1; Thu, 14 Jun 2018 06:53:06 -0700 (PDT) X-Received: by 2002:a19:13da:: with SMTP id 87-v6mr6451462lft.80.1528984386777; Thu, 14 Jun 2018 06:53:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Jaggi Date: Thu, 14 Jun 2018 14:52:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Week 4] Import the Xen grant-table bus_dma(9) handlers from OpenBSD To: Pratyush Yadav Cc: soc-status@freebsd.org, Edward Napierala 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: Thu, 14 Jun 2018 13:58:50 -0000 Hi Pratyush, On Mon, 11 Jun 2018 at 12:48, Pratyush Yadav wrote: > Hi, > > This week I finished up my implementation of the xen-specific > bus_dma(9) handlers. I asked Roger Pau Monne for review. After his > review, I realized I had been doing things a little wrong. I was > building the Xen-specific handlers on top of the bus_dma(9) interface. > Instead, I should have created an alternate busdma implementation, > kind of like sys/x86/iommu/busdma_dmar.c > > So I had to study the inner details of the bus_dma(9) interface to > learn how an alternate implementation can be written. This was a > little confusing at the beginning.because there is no clear guide on > the subsystem for beginners like me. But eventually, I got the hang of > it, mostly by reading code already written. > > This is really good work. :) > After that came the task of rewriting my implementation. I wrote it, > and then spent a couple of days refining it. Today, I submitted it to > Roger again for review. We are discussing it as of now. No major > concerns have been raised so I should be done with the xen-specific > busdma hooks in a few days. > > You can check out the code at [0]. > Since Roger is already reviewing the code, you are in good hands. I've nitpicked on few small style and consistency issues. Regards, Akshay > > 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 [1]. > > > [0] https://github.com/prati0100/freebsd > > [1] > http://pratyushgsoc.blogspot.in/2018/05/import-xen-grant-table-busdma9-handlers.html > > -- > Regards, > Pratyush Yadav > From owner-soc-status@freebsd.org Fri Jun 15 01:01:47 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 8912D1022A01 for ; Fri, 15 Jun 2018 01:01:47 +0000 (UTC) (envelope-from mateus@mateus.tech) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0104.outbound.protection.outlook.com [104.47.37.104]) (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 9CBFE6EC1B; Fri, 15 Jun 2018 01:01:46 +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=6Dl0kw10/1P2JVWhtUdF40s180Y6M9Hf3JAP5ntOM+Q=; b=u15mif4VIjls5393Gr9WDUruOMCyk7o8PecKgK/XOTAB67nPZXOpZpbKssnYu+FhQ8Zc5X8JQ8vo8ZQfm3ZIJlszK5AYLK7dvGUKoGnwGDVJ2UFReZ9X6GLizapHjWVeXNokfbFjpj1YkeaCyUMxm7st0EcGSIEF5ooSXoA+2eQ= Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM (10.171.53.11) by CP2P152MB0306.LAMP152.PROD.OUTLOOK.COM (10.171.24.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.17; Fri, 15 Jun 2018 01:01:41 +0000 Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::e956:3e1f:d21d:e054]) by CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::e956:3e1f:d21d:e054%7]) with mapi id 15.20.0863.016; Fri, 15 Jun 2018 01:01:41 +0000 From: Mateus Rodrigues de Morais To: "soc-status@freebsd.org" CC: David Naylor , "theraven@freebsd.org" Subject: [Week 4] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Topic: [Week 4] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Index: AQHUBENyN+S27GjV/0ONWU89xdH1nQ== Date: Fri, 15 Jun 2018 01:01:41 +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:4557:e47c:3c8b:adee] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CP2P152MB0306; 7:9GqWyfNHhq2nV2w2iFanWYEMnccGo4d9dTD3ae686xb2qf5aza9gpQAT+8m/pngDwbhOMmo8VX/Z+gQnnZDZxuC2Hap9612jh3QVYIXa2jSGfNPYtqKoEahRkuZB4lK5q5WRYmVqx/DQFj9QQ6LDyVnSKLUNEdvY3yLUeEf+rXWt2Xu0HMocSkmba12DluutphOCPJcZhFkgnwLFYr0NyQUeFAsAfbVkPdIGNV0T908EszQ0C29sQaxukfFg3A1r x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 27d75df4-0d91-4d04-ef1c-08d5d25b8e85 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:CP2P152MB0306; x-ms-traffictypediagnostic: CP2P152MB0306: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(2017060905117)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123562045)(2016111802025)(20161123564045)(20161123558120)(20161123560045)(6072148)(6043046)(201708071742011)(7699016); SRVR:CP2P152MB0306; BCL:0; PCL:0; RULEID:; SRVR:CP2P152MB0306; x-forefront-prvs: 0704670F76 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(346002)(366004)(376002)(39830400003)(39380400002)(47530400004)(53754006)(199004)(189003)(9686003)(102836004)(186003)(54896002)(316002)(6506007)(6306002)(99286004)(7696005)(106356001)(97736004)(55016002)(81156014)(7736002)(81166006)(105586002)(8676002)(54906003)(6436002)(46003)(476003)(86362001)(8936002)(68736007)(5250100002)(3280700002)(2501003)(3660700001)(2906002)(5640700003)(74316002)(486006)(5660300001)(2900100001)(478600001)(52230400001)(33656002)(6916009)(53936002)(4326008)(14454004)(45080400002)(25786009)(450100002)(2351001)(6116002); DIR:OUT; SFP:1102; SCL:1; SRVR:CP2P152MB0306; H:CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mateus.tech does not designate permitted sender hosts) x-microsoft-antispam-message-info: tHBt07QLArcpffEg4AmAjAjJWGgRS8jaiDrTCJ08/CARr7wcLNcGompAFrplI1dfAVfE7BT0ia/y2nk4Tc6ltdXgzLZSMurcF+LNOF6cwZgDq0atckIQortA9liO5hAByrzE5FEH+aYR3+lhT6yairq/O5p6a6AFKuJHYizD+K7pey0hCU8E+Od9ReIFtYVD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: mateus.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 27d75df4-0d91-4d04-ef1c-08d5d25b8e85 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2018 01:01:41.4979 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3cb2d6d7-8d6e-44b8-954d-3085729d2030 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP2P152MB0306 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, 15 Jun 2018 01:01:47 -0000 Hello all, During this 4th week I managed to complete the goal of bootstrapping a work= ing .NET Core SDK on FreeBSD to create, build, run and publish apps on the = platform. Some edges are still rough, since shared compilation isn=92t working, the l= egacy implementation of the HTTP client has to be used and the default loca= tion for SSL certs on the system has to be changed since it=92s different f= rom Linux. But those issues have been worked around and compilation occurs = without an issue. I=92ve been in touch with the .NET Community on GitHub an= d we=92ve been investigating how to fix these issues. The next step is to build the CoreFX managed tests and run them against thi= s bootstrapped SDK to figure out which parts are failing =96 if any =96 and= see if this SDK is functional enough to build PowerShell. Best, -- Mateus de Morais