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