From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031464AbcCQQkr (ORCPT ); Thu, 17 Mar 2016 12:40:47 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:30848 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030618AbcCQQkj (ORCPT ); Thu, 17 Mar 2016 12:40:39 -0400 Date: Thu, 17 Mar 2016 16:40:34 +0000 From: Olu Ogunbowale To: Rik van Riel CC: , , Linus Torvalds , Michel Lespinasse , Andrew Morton , Jerome Glisse , Hugh Dickins , Russell King , Ralf Baechle , Paul Mundt , "David S. Miller" , Chris Metcalf , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Jackson DSouza Subject: Re: [PATCH] mm: Export symbols unmapped_area() & unmapped_area_topdown() Message-ID: <20160317164034.GB31608@imgtec.com> References: <1458148234-4456-1-git-send-email-Olu.Ogunbowale@imgtec.com> <1458148234-4456-2-git-send-email-Olu.Ogunbowale@imgtec.com> <20160316203657.GA29061@infradead.org> <1458162041.14723.32.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <1458162041.14723.32.camel@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.60.4.44] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 16, 2016 at 05:00:41PM -0400, Rik van Riel wrote: > > The drivers appear to require the HMM framework though, > which people are also reluctant to merge without the > drivers. > > How do we get past this chicken & egg situation? I would like to point out that support for HSA varies from one vendor/design to another; for some device/drivers (i.e AMD APU/HSA kernel driver), no form of address space mirroring is required (i.e. AMD IOMMU v2) AFAIK, others require address space mirroring so need the kernel HMM framework but only because they provide support for the full HSA/OpenCL SVM specification while some do not require HMM at all because they implement only a subset of the specification. These exports enables the latter approach which does not require the kernel HMM framework in order to support process address space mirroring. Regards, Olu