From owner-freebsd-arch@freebsd.org Wed Feb 24 17:14:22 2016 Return-Path: Delivered-To: freebsd-arch@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 62FC6AB2D26 for ; Wed, 24 Feb 2016 17:14:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (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 2E0DD19A1 for ; Wed, 24 Feb 2016 17:14:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x22f.google.com with SMTP id l127so52558587iof.3 for ; Wed, 24 Feb 2016 09:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5ZgVAFCHX8LdXCnMkKzhhtFhhabGRTl6EyGGFcpH6BI=; b=t/UT3GoUMFtFy166fONdfkTY1vunkLMEpBe2jyKnI6ebYV1alSIXXnOZWs1EpyLGwc hEwQ3K/OCdWj72EQP/8XqgFH3xtyLzYOlS4MBHXmLV2ThKNvFtuEipaH4P4BFlH3FxJo sCB5KKrz5Tda58LXkwDnfsXy600Au7t56uaqFU1bQi9dJZCzOFHkp/bXz2x9FYM4XUHU GRIeZt+ZCvp29fIY1UOCK7n24jzIKE6qndKAcParFkV4qkuocQx26YG+XBObcarbYslT R+GABAVSHvUOkkULFdjvLukUZRS2RaL3GBilcN8HqTxkvjRnkS4Ta+gUpZuyzoEbOy9p JKhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5ZgVAFCHX8LdXCnMkKzhhtFhhabGRTl6EyGGFcpH6BI=; b=EpeGohzY6B5JwSjSv3X4IyzkSlr3oqKsdel0WEU98izc1xRbNaaNrSumwrxS1B/Ime Xvk75APHpSaF4pcbXB7sS7JWa9kAEF9Le2/sDXz3fnkXQg50KJ67tdqOLls6+M3yXAbA Ws1dmnFccFd/3iVx4mp3OilRAZmR5q1+CwbkdGyf1SnGbZZ79dJCsbS6Jg9jZPFpZhdz 8IWenMZoDiHkpa7x+dG6VGQqPOJ+xhjqNymW7pmEp4wximWJwyl8+X4ukhUG5CzoBs+W MfatUTmDuk7oVECiGoKN1xUZIPSO33vFIpvAPZ6AxYPjHMiwiowaie+7FvfgCXMz9pQI 9BBg== X-Gm-Message-State: AG10YOTCUu92T0CcvaWMSSbFcItB0j8OBcc42Oc223xIIt5dHjAOn6pZjsiCQCDoql8Npfk59tUaW6cGbQeSpw== MIME-Version: 1.0 X-Received: by 10.107.11.231 with SMTP id 100mr37611277iol.165.1456334057740; Wed, 24 Feb 2016 09:14:17 -0800 (PST) Received: by 10.36.14.19 with HTTP; Wed, 24 Feb 2016 09:14:17 -0800 (PST) In-Reply-To: <20160224102754.GK91220@kib.kiev.ua> References: <20160222121836.GH91220@kib.kiev.ua> <20160224102754.GK91220@kib.kiev.ua> Date: Wed, 24 Feb 2016 09:14:17 -0800 Message-ID: Subject: Re: RF_CACHEABLE flag From: Adrian Chadd To: Konstantin Belousov Cc: Justin Hibbits , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2016 17:14:22 -0000 On 24 February 2016 at 02:27, Konstantin Belousov wrote: > On Tue, Feb 23, 2016 at 02:19:57PM -0600, Justin Hibbits wrote: >> This really isn't much different from bus_space_map() conceptually. >> The work involved is pretty much the same, and if this route is deemed >> the Wrong Way(TM), I'll go that route. >> >> Grepping through sys/, only x86 currently implements >> pmap_change_attr(), and arm has the declaration but no definition that >> I could see. Writing it wouldn't be difficult of course, there's just >> not much compelling case for it right now. But, yes, either of these >> alternatives are acceptable, and I had explored it. Seeing John >> Baldwin's comment on the phab review, it looks like he wants to go a >> different (parallel) direction. > > If this was not clear from my reply, I did not objected against RF_CACHEABLE, > but was more to highlight weird needs of seemingly simple architecture, > which are close to RF_CACHEABLE stuff. And, I think that architectures > that care about caching modes, should do provide real pmap_change_attr() > implementation. This might be important e.g. if drm is brought up on > these platforms. heh, on ARM it's not "when". For MIPS it's also now "when". So I guess yeah, we should implement it. -a > _______________________________________________ > freebsd-arch@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"