From owner-svn-src-head@freebsd.org Wed May 11 18:48:49 2016 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 27DCBB37402; Wed, 11 May 2016 18:48:49 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC84C1CEA; Wed, 11 May 2016 18:48:48 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4BImm0C070436; Wed, 11 May 2016 18:48:48 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4BImm32070434; Wed, 11 May 2016 18:48:48 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201605111848.u4BImm32070434@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Wed, 11 May 2016 18:48:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299478 - in head/sys/arm64: arm64 include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 18:48:49 -0000 Author: andrew Date: Wed May 11 18:48:47 2016 New Revision: 299478 URL: https://svnweb.freebsd.org/changeset/base/299478 Log: Call busdma_swi from swi_vm as is done from other architectures. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/vm_machdep.c head/sys/arm64/include/md_var.h Modified: head/sys/arm64/arm64/vm_machdep.c ============================================================================== --- head/sys/arm64/arm64/vm_machdep.c Wed May 11 18:20:02 2016 (r299477) +++ head/sys/arm64/arm64/vm_machdep.c Wed May 11 18:48:47 2016 (r299478) @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include @@ -256,5 +257,6 @@ void swi_vm(void *v) { - /* Nothing to do here - busdma bounce buffers are not implemented. */ + if (busdma_swi_pending != 0) + busdma_swi(); } Modified: head/sys/arm64/include/md_var.h ============================================================================== --- head/sys/arm64/include/md_var.h Wed May 11 18:20:02 2016 (r299477) +++ head/sys/arm64/include/md_var.h Wed May 11 18:48:47 2016 (r299478) @@ -41,6 +41,7 @@ extern int vm_page_dump_size; struct dumperinfo; +extern int busdma_swi_pending; void busdma_swi(void); void dump_add_page(vm_paddr_t); void dump_drop_page(vm_paddr_t);