From owner-soc-status@freebsd.org Tue Jul 17 06:50:27 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 8F413102CA71 for ; Tue, 17 Jul 2018 06:50:27 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 2267B772CC; Tue, 17 Jul 2018 06:50:27 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-ed1-f50.google.com with SMTP id w14-v6so265683eds.6; Mon, 16 Jul 2018 23:50:27 -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=5dP1HfnSHnr2vamMeOjP7pTxWvFNUyKpjRkWUa0Pa2I=; b=OSWkHgCM+16jy/8XiMIJpj5qQr98lQHQwkBKsuNtlBrLpp4LwcpsVUwiRP2s6H1eXn BEjaSU0Sq21YZf282G2DlPf3XxSpMAxDZ0lnMfmpWsFoXLq5iJ1/7yjcu+g3ZbUcV3k4 BRCVmReSSCOT3aifXHOLc0t9aQf1iX8gV6ORt/U1D2nqmuKdZTefUYw3eNNbvgXQsxfz lvvFFFGn8KmAOgm4Q6+UkpSTVvmgYzDR5Ysy8ZjETpe6bWprqbabZ+eWYA/59Ij0y0dG Li0O5MXtZY9KSk+mgwYeYWp5Z8Muecsa5jC6qIO2a5jDJ31bKjG1UrJ5Pxm2gFjmF7vf indQ== X-Gm-Message-State: AOUpUlG7qJhaQHdLfC5mJwctyZ80FRMMKmbV1P4emmh+OurLi+wnV0q2 S1/0tF1d9ye7AVAY+qmySz8iR8rI X-Google-Smtp-Source: AAOMgpcZMrZ+Ss/cCFSZ47Y3YilFYfsLTFHIRTRnNslRUONLOLEHtpPgXo/JdvntqbC3TXQhV10j0A== X-Received: by 2002:aa7:d385:: with SMTP id x5-v6mr909143edq.104.1531808594179; Mon, 16 Jul 2018 23:23:14 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com. [209.85.208.53]) by smtp.gmail.com with ESMTPSA id g9-v6sm178308edq.34.2018.07.16.23.23.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 23:23:14 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id r4-v6so211750edp.9; Mon, 16 Jul 2018 23:23:14 -0700 (PDT) X-Received: by 2002:a50:a9e2:: with SMTP id n89-v6mr874634edc.158.1531808593981; Mon, 16 Jul 2018 23:23:13 -0700 (PDT) MIME-Version: 1.0 From: Pratyush Yadav Date: Tue, 17 Jul 2018 11:52:37 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 9] 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.27 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, 17 Jul 2018 06:50:27 -0000 Hi, During the last week, I finished updating the blkfront driver to use the new Xen-specific bus_dma(9) implementation. After that, I figured out how I can run it. There were some troubles with getting networking to work in the Xen domU, but I finally figured it out and built the new kernel and ran it. The driver works fine for the most part. But there is an error message printed every second or so which says a read or write failed. I investigated further, and it turns out around 35% of the read or write operations fail. I have not been able to figure out where the problem originates from yet. I will continue debugging until I find out what's going wrong. You can check the code here [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/tree/busdma_xen_clean [1] https://pratyushgsoc.blogspot.com/ -- Regards, Pratyush Yadav