From owner-freebsd-current@freebsd.org Mon Feb 25 20:47:45 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 554171515BA4 for ; Mon, 25 Feb 2019 20:47:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D88F81026 for ; Mon, 25 Feb 2019 20:47:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x844.google.com with SMTP id u7so3060248qtg.9 for ; Mon, 25 Feb 2019 12:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gvplOCrWO95tdd664nZ4S+VnO7xMJN42DnwBX4uWEiY=; b=j0+KZy9J725ExnAYIx9OuHjOq8Ve5WhUtYObdqyk1s1oDk84EBbtQhYyjRvyq3kCYH X0G3dNIhLswV28Omb8czyCFOE7EOD391uuJJymraYjzRU+OBop1MSNWrSDd3gti+q2ma 5yTw/GXTh7jkZgG4b45Yj+fVJIdnPqrftWJRT0mW06eIDe8NoCjcCV5m1RUoUK5kOD3K lsEnnUdCwp6g9635qfNg87EpVUM4I/M4WRfBJb26KKJef7fFnL61g10Ru/Fnf7h2pAoB H6jSUBgzc3AYxKEtVtLD4jVwslDT3YyLAp9a2PUYduSTOv+WwBcQkt9CnFuENWdPz8zH kI/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gvplOCrWO95tdd664nZ4S+VnO7xMJN42DnwBX4uWEiY=; b=RF1Z8CboInsJdoKfiNmeyRS32YdgCoWR7bANdRq6s0HWTVR6N6r4k1NQWAgHjJWfxT 8gkKZFmCIOo7XYPeBjptnd9tcFB8mU4jagi5PyktFK5YeiRyP0KqYePOvQaDBf6hObAn /gBW89G+vTN7cLYoXp7yTbFWUXwhLZ05hFhSO/5FaJT3HleVOdU9gPaaDT/9YzAQ5y2c aWQxi8jjdYkO6qrMAojQA9QnVrk4Nomh0j+ov8VVo/3B5kzt3U068TRYkopt5x1LTwH6 XBr/QwEyBL/u8XLqsZpO05/VIZuP4qIY1Vo6C3UeA67uJJZE/xMeZzvaGsINtx6puv/D lg6A== X-Gm-Message-State: AHQUAuZs/poWfj55UACuFXIwxfKoXZs0Cp1rwIGEDqGM+ncCrlc7/QTU mnmpfoaLor2maoTz7e20r+2vXqhWkoSTiQbu0QzgWw== X-Google-Smtp-Source: AHgI3IbIUFGkHDrxxzjYqp57p8WIStFhDUmccuN45AzHXseY2btjcLwMERLIHF6JUDd0zsgzqP08VIbp3W/R4XjV2rE= X-Received: by 2002:a0c:9ba7:: with SMTP id o39mr9651109qve.153.1551127663625; Mon, 25 Feb 2019 12:47:43 -0800 (PST) MIME-Version: 1.0 References: <20190222033924.GA25285@troutmask.apl.washington.edu> <20190222060410.GA25817@troutmask.apl.washington.edu> <20190223032644.GA14058@troutmask.apl.washington.edu> <20190223091931.GE2420@kib.kiev.ua> <20190223163619.GA18805@troutmask.apl.washington.edu> <20190224012851.GA21748@troutmask.apl.washington.edu> <20190224102726.746adb9f@kalimero.tijl.coosemans.org> <20190224175827.GB26240@troutmask.apl.washington.edu> In-Reply-To: <20190224175827.GB26240@troutmask.apl.washington.edu> From: Warner Losh Date: Mon, 25 Feb 2019 13:47:32 -0700 Message-ID: Subject: Re: r343567 aka PAE vs non-PAE merge breaks i386 freebsd To: Steve Kargl Cc: =?UTF-8?Q?T=C4=B3l_Coosemans?= , Konstantin Belousov , FreeBSD Current , Peter Holm , Mark Johnston X-Rspamd-Queue-Id: 4D88F81026 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=j0+KZy9J X-Spamd-Result: default: False [-1.24 / 15.00]; RCPT_COUNT_FIVE(0.00)[6]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.82)[-0.822,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.71)[0.707,0]; NEURAL_HAM_LONG(-0.98)[-0.982,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.14)[ip: (4.05), ipnet: 2607:f8b0::/32(-2.66), asn: 15169(-2.00), country: US(-0.07)] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2019 20:47:45 -0000 On Sun, Feb 24, 2019 at 10:58 AM Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > On Sun, Feb 24, 2019 at 10:06:53AM -0700, Warner Losh wrote: > > > > > > > Maybe I missed it, but Steve, did you run the patched in a different way > > tests that I suggested? Replacing the limits with 0xffffffff for testing > > purposes to ensure that drm isn't saying it can cope with larger > addresses? > > That might help narrow down what the problem here one more level than > "It's > > PAE". > > > > So, I dug through the code a bit. Niclas changed the port to > use BUS_SPACE_MAXADDR. This is defined in include/x86/bus.h > > #if defined(__amd64__) || defined(PAE) > #define BUS_SPACE_MAXADDR_48BIT 0xFFFFFFFFFFFFULL > #define BUS_SPACE_MAXADDR 0xFFFFFFFFFFFFFFFFULL > #else > #define BUS_SPACE_MAXADDR 0xFFFFFFFF > #endif > > I don't know if defined(PAE) is effected by hw.above4g_allow, > or where it gets defined or if it is defined. > Grepping suggests that PAE isn't defined w/o the option. The option is only in the PAE kernel, so maybe my test wouldn't say anything useful and it's a different issue. Warner