From owner-freebsd-arm@freebsd.org Sun Sep 30 14:57:08 2018 Return-Path: Delivered-To: freebsd-arm@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 269F310C218F for ; Sun, 30 Sep 2018 14:57:08 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 77C9386408 for ; Sun, 30 Sep 2018 14:57:07 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w8UEv3ds061975 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 30 Sep 2018 07:57:04 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w8UEv3kh061974; Sun, 30 Sep 2018 07:57:03 -0700 (PDT) (envelope-from fbsd) Date: Sun, 30 Sep 2018 07:57:03 -0700 From: bob prohaska To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Timeout poll on interrupt endpoint for RPI3 with keyboard and mouse Message-ID: <20180930145702.GD58381@www.zefox.net> References: <20180929185213.GA58381@www.zefox.net> <20180930111208.5df04f5b7fb336cdfcf2fd74@bidouilliste.com> <20180930130930.GB58381@www.zefox.net> <20180930132928.GC58381@www.zefox.net> <20180930155055.2c35693431e8dfff4eb7d7bd@bidouilliste.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180930155055.2c35693431e8dfff4eb7d7bd@bidouilliste.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2018 14:57:08 -0000 On Sun, Sep 30, 2018 at 03:50:55PM +0200, Emmanuel Vadot wrote: > > Looks like the framebuffer size is too big, could you try with this : > diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h > index acd3f81ab41c..7aa216e92b43 100644 > --- a/sys/arm64/include/pte.h > +++ b/sys/arm64/include/pte.h > @@ -109,7 +109,7 @@ typedef uint64_t > pt_entry_t; /* page table entry */ /* 0x2 also marks an > invalid address */ #define L3_PAGE 0x3 > > -#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 4) > +#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 8) > > #define L0_ENTRIES_SHIFT 9 > #define L0_ENTRIES (1 << L0_ENTRIES_SHIFT) > > Copy and paste from the email didn't work, probably it's a mail formatting issue. Here's what happened: root@www:/usr/src # patch < vadot.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h |index acd3f81ab41c..7aa216e92b43 100644 |--- a/sys/arm64/include/pte.h |+++ b/sys/arm64/include/pte.h -------------------------- Patching file sys/arm64/include/pte.h using Plan A... patch: **** malformed patch at line 6: pt_entry_t; /* page table entry */ /* 0x2 also marks an where vadot.patch contains root@www:/usr/src # more vadot.patch diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h index acd3f81ab41c..7aa216e92b43 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -109,7 +109,7 @@ typedef uint64_t pt_entry_t; /* page table entry */ /* 0x2 also marks an invalid address */ #define L3_PAGE 0x3 -#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 4) +#define PMAP_MAPDEV_EARLY_SIZE (L2_SIZE * 8) #define L0_ENTRIES_SHIFT 9 #define L0_ENTRIES (1 << L0_ENTRIES_SHIFT) I tried manually editing to put the comment on one line, didn't help. Can you put the patch someplace where I can download it? Thanks! bob prohaska