From owner-svn-src-head@freebsd.org Sat Aug 15 13:05:28 2015 Return-Path: Delivered-To: svn-src-head@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 A9D289BA856; Sat, 15 Aug 2015 13:05:28 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (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 422FA1EFA; Sat, 15 Aug 2015 13:05:28 +0000 (UTC) (envelope-from royger@gmail.com) Received: by wicne3 with SMTP id ne3so40798388wic.1; Sat, 15 Aug 2015 06:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=WPt9vFhcDDOb9UmWzvaShgL022o4C3KSgH/TxofrxXM=; b=y5FaQSRNjWYrOK6+B/7vWlHintqx9AW5sd3OhpGxS/KTpdWnbKb9CF6C7J1dplKh8E IyOShbDDFWBdgZjLi3GHv6z5zfXqpBYqA0HFbD37AN9IekOWIBdX6rmrvs5ZXVfoTzR8 apJ0SHiwGlQiVHlEueFf/LNAwhjTWvbIUEbzEqHPhUFxmAUzq65Rlhl+cR0nbtOyMsBh AMV01NSzwNCN/ZGkamu3fyAQALVHvCxFMhg8q+KtUSmURUCLqRPGoxrIYHSSw4zzoh1f 7zfYxh1IF3rKUkY4cy2SzbxFVacq29crZIkOqeKmUtZy/Sca/njpDTfxw84v4AK2gvLv lk2g== X-Received: by 10.194.112.3 with SMTP id im3mr3256300wjb.54.1439643926708; Sat, 15 Aug 2015 06:05:26 -0700 (PDT) Received: from [172.16.1.30] (5.Red-79-156-191.staticIP.rima-tde.net. [79.156.191.5]) by smtp.gmail.com with ESMTPSA id bq7sm12813591wjc.31.2015.08.15.06.05.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Aug 2015 06:05:26 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <55CF390F.5010407@FreeBSD.org> Date: Sat, 15 Aug 2015 15:05:19 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Jason A. Harmening" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r286787 - head/sys/x86/x86 References: <201508142008.t7EK8Hkt037329@repo.freebsd.org> In-Reply-To: <201508142008.t7EK8Hkt037329@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2015 13:05:28 -0000 El 14/08/15 a les 22.08, Jason A. Harmening ha escrit: > Author: jah > Date: Fri Aug 14 20:08:16 2015 > New Revision: 286787 > URL: https://svnweb.freebsd.org/changeset/base/286787 > > Log: > Use pmap_quick_enter_page() to handle bouncing of unmapped buffers in the x86 busdma_bounce implementation. Also treat user buffers as unmapped. > This allows two things: > 1. Sync'ing bounced maps in non-sleepable contexts. The physcopy* calls previously used could sleep on sf_buf operations in some cases. > 2. Sync'ing user buffers outside the context of the owning process AFAICT this will break the Xen port. physcopy* uses uiomove_fromphys that on the amd64 port is able to deal with pages outside of the DMAP. OTOH pmap_quick_enter_page is not able to deal with pages outside of the DMAP, and will simply panic. Roger.