From owner-svn-src-head@freebsd.org Mon Aug 17 09:59:05 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 2EE479BBFAF; Mon, 17 Aug 2015 09:59:05 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (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 CA746116F; Mon, 17 Aug 2015 09:59:04 +0000 (UTC) (envelope-from royger@gmail.com) Received: by wicja10 with SMTP id ja10so75954105wic.1; Mon, 17 Aug 2015 02:59:02 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=AssXDGRqTc1y2uGrcTIOYaA2ZLrUqZ9RCOy37LIH57w=; b=WKzSx/HXAaRY8AZFHCrJJ1vKH9e/hg76wj99qxO2oMVKL3MbWe789IpCPo7zsz7MBX L+Q+I1TmtQb6ywc/an4KC8KYt6f/4tbJCtnM2H/YG3CNfstPALEbCMxskaaEKPSxQZmB SWRG7AHuiouPDLkpl1P7KzTIQ8nlkMp6zhXIxvJaILOC8fXp09gd91v4hT5ZU2woy3OH DgFMS9we/uSEYZVkimTQAxWNerGVasdW8h+AKC84hhcpIaGZiBFrMGSyJDqEEXlsnfav K71OPx+acK2uROvSlf+u5O94dQgSziCN5UxTYhV/GXBJ/tBK5z+afbeus7IuBCT06wbw T0+Q== X-Received: by 10.194.24.196 with SMTP id w4mr1022073wjf.137.1439805542424; Mon, 17 Aug 2015 02:59:02 -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 j7sm21121819wjz.11.2015.08.17.02.59.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2015 02:59:01 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Message-ID: <55D1B05F.8040101@FreeBSD.org> Date: Mon, 17 Aug 2015 11:58:55 +0200 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= 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: Konstantin Belousov CC: Jason Harmening , "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> <55CF390F.5010407@FreeBSD.org> <55CF5B13.1040501@gmail.com> <55D046F5.60601@FreeBSD.org> <20150816090358.GW2072@kib.kiev.ua> <20150816095004.GX2072@kib.kiev.ua> In-Reply-To: <20150816095004.GX2072@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252 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: Mon, 17 Aug 2015 09:59:05 -0000 El 16/08/15 a les 11.50, Konstantin Belousov ha escrit: > On Sun, Aug 16, 2015 at 12:03:58PM +0300, Konstantin Belousov wrote: >> On Sun, Aug 16, 2015 at 10:16:53AM +0200, Roger Pau Monn?? wrote: >>> pmap_map_io_transient contains some of this logic, but it uses >>> vmem_alloc (with M_WAITOK) instead of a pcpu pageframe, which defeats >>> part of the purpose of this change and cannot be used as-is. >> >> This logic can be repeated, but it is probably too much for the purpose. >> It would be enough to have single frame (we cannot reuse CMAP1), >> protected by a spin mutex. I do not see much sense in providing >> optimized per-cpu frames for this case. > > Like this. I only compiled the patch. Thanks, yes, this looks right. Since this is only used for the bounce buffer code I don't think it's necessary to have a per-cpu frame. If the usage of this function is expanded I might look into adding a per-cpu frame. Roger.