Re: CVS commit: src/external/mit/xorg/lib

2020-09-20 Thread maya
On Wed, Sep 16, 2020 at 06:26:45PM +, m...@netbsd.org wrote:
> Since the background for this is an issue nobody else is experiencing,
> can you at least report a bug for how to reach it?

hello?

in the original proposal joerg already said it has a chance of making
opengl not reentrant. the use case which you have, of wayland (I had to
dig it up in my logs) isn't relevant for base xsrc.


Re: CVS commit: src/external/mit/xorg/lib

2020-09-16 Thread maya
Since the background for this is an issue nobody else is experiencing,
can you at least report a bug for how to reach it?

On Wed, Sep 16, 2020 at 06:19:24PM +, Nia Alarie wrote:
> Module Name:  src
> Committed By: nia
> Date: Wed Sep 16 18:19:24 UTC 2020
> 
> Modified Files:
>   src/external/mit/xorg/lib: libmesa.mk
>   src/external/mit/xorg/lib/libGL: Makefile
>   src/external/mit/xorg/lib/libglapi: Makefile
> 
> Log Message:
> disable use of ELF TLS in Mesa/libGL
> 
> this is an optimization that primarily benefits linux/glibc -
> most other systems have this disabled. in netbsd we've tried to
> patch around it to make things work, but there still appears to be
> some edge cases where libGL mysteriously crashes.
> 
> discussed on tech-x11 some time ago. already in place in pkgsrc.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.11 -r1.12 src/external/mit/xorg/lib/libmesa.mk
> cvs rdiff -u -r1.29 -r1.30 src/external/mit/xorg/lib/libGL/Makefile
> cvs rdiff -u -r1.7 -r1.8 src/external/mit/xorg/lib/libglapi/Makefile
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

> Modified files:
> 
> Index: src/external/mit/xorg/lib/libmesa.mk
> diff -u src/external/mit/xorg/lib/libmesa.mk:1.11 
> src/external/mit/xorg/lib/libmesa.mk:1.12
> --- src/external/mit/xorg/lib/libmesa.mk:1.11 Sun Feb 23 02:03:19 2020
> +++ src/external/mit/xorg/lib/libmesa.mk  Wed Sep 16 18:19:23 2020
> @@ -1,4 +1,4 @@
> -#$NetBSD: libmesa.mk,v 1.11 2020/02/23 02:03:19 joerg Exp $
> +#$NetBSD: libmesa.mk,v 1.12 2020/09/16 18:19:23 nia Exp $
>  #
>  # Consumer of this Makefile should set MESA_SRC_MODULES.
>  
> @@ -526,7 +526,6 @@ CPPFLAGS+=\
>   -DHAVE_LIBDRM -DGLX_USE_DRM \
>   -DGLX_INDIRECT_RENDERING \
>   -DGLX_DIRECT_RENDERING \
> - -DGLX_USE_TLS \
>   -DHAVE_X11_PLATFORM \
>   -DHAVE_DRM_PLATFORM \
>   -DENABLE_SHADER_CACHE \
> 
> Index: src/external/mit/xorg/lib/libGL/Makefile
> diff -u src/external/mit/xorg/lib/libGL/Makefile:1.29 
> src/external/mit/xorg/lib/libGL/Makefile:1.30
> --- src/external/mit/xorg/lib/libGL/Makefile:1.29 Sun Mar 29 21:06:03 2020
> +++ src/external/mit/xorg/lib/libGL/Makefile  Wed Sep 16 18:19:23 2020
> @@ -1,4 +1,4 @@
> -#$NetBSD: Makefile,v 1.29 2020/03/29 21:06:03 maya Exp $
> +#$NetBSD: Makefile,v 1.30 2020/09/16 18:19:23 nia Exp $
>  
>  .include 
>  
> @@ -180,7 +180,7 @@ CPPFLAGS+=\
>   -DHAVE_FUNC_ATTRIBUTE_NORETURN=1 -DHAVE_ENDIAN_H=1 -DHAVE_DLADDR=1 \
>   -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 \
>   -DHAVE_PTHREAD=1 -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 \
> - -DHAVE_TIMESPEC_GET -DGLX_USE_TLS
> + -DHAVE_TIMESPEC_GET
>  
>  .include "../asm.mk"
>  
> @@ -224,7 +224,7 @@ PKGCONFIG_SED_FLAGS= \
>   s,@GL_PKGCONF_LIB@,GL,; \
>   s,@GL_PC_LIB_PRIV@,-lm -lpthread -pthread,; \
>   s,@GL_PC_CFLAGS@,,; \
> - s,@GLX_TLS@,yes,"
> + s,@GLX_TLS@,no,"
>  
>  
>  CWARNFLAGS.clang+=   -Wno-tautological-compare -Wno-format 
> -Wno-constant-conversion \
> 
> Index: src/external/mit/xorg/lib/libglapi/Makefile
> diff -u src/external/mit/xorg/lib/libglapi/Makefile:1.7 
> src/external/mit/xorg/lib/libglapi/Makefile:1.8
> --- src/external/mit/xorg/lib/libglapi/Makefile:1.7   Sun Feb 23 02:02:32 2020
> +++ src/external/mit/xorg/lib/libglapi/Makefile   Wed Sep 16 18:19:24 2020
> @@ -1,4 +1,4 @@
> -#$NetBSD: Makefile,v 1.7 2020/02/23 02:02:32 joerg Exp $
> +#$NetBSD: Makefile,v 1.8 2020/09/16 18:19:24 nia Exp $
>  
>  .include 
>  
> @@ -68,7 +68,6 @@ CPPFLAGS+=  \
>   -DGLX_USE_DRM \
>   -DGLX_INDIRECT_RENDERING \
>   -DGLX_DIRECT_RENDERING \
> - -DGLX_USE_TLS \
>   -DHAVE_X11_PLATFORM \
>   -DHAVE_DRM_PLATFORM \
>   -DENABLE_SHADER_CACHE \
> 



Re: CVS commit: src

2020-08-17 Thread maya
Why don't you fix your system instead of breaking other people's?


Re: CVS commit: src/tests/lib/libc/stdlib

2020-06-27 Thread maya
On Sat, Jun 27, 2020 at 10:19:43AM +, Jukka Ruohonen wrote:
> Module Name:  src
> Committed By: jruoho
> Date: Sat Jun 27 10:19:43 UTC 2020
> 
> Modified Files:
>   src/tests/lib/libc/stdlib: t_mbtowc.c
> 
> Log Message:
> Add the default TNF copyright (2005), cf. PR misc/55419.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/stdlib/t_mbtowc.c
> 

I don't think we can generally do this. Can you clarify if you discussed
this with the author in commit messages?

Thanks.


Re: CVS commit: src/lib/libedit (strncpy->strlcpy)

2020-06-01 Thread maya
On Sun, May 31, 2020 at 07:24:24PM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Sun May 31 23:24:24 UTC 2020
> 
> Modified Files:
>   src/lib/libedit: terminal.c tty.c
> 
> Log Message:
> use strlcpy() instead of strncpy() for gcc happiness
> 
...

> @@ -1319,10 +1319,8 @@ terminal_settc(EditLine *el, int argc __
>   if (argv == NULL || argv[1] == NULL || argv[2] == NULL)
>   return -1;
>  
> - strncpy(what, ct_encode_string(argv[1], >el_scratch), sizeof(what));
> - what[sizeof(what) - 1] = '\0';
> - strncpy(how,  ct_encode_string(argv[2], >el_scratch), sizeof(how));
> - how[sizeof(how) - 1] = '\0';
> + strlcpy(what, ct_encode_string(argv[1], >el_scratch), sizeof(what));
> + strlcpy(how,  ct_encode_string(argv[2], >el_scratch), sizeof(how));
>  

This feels not good.
strncpy->strlcpy has repercussions like how strlcpy doesn't zero out the
remaining length and thus leaks uninitialized data.

There has to be a reasonable way to handle these warnings instead of
rototilling which str*cpy function is used.


Re: CVS commit: src/sys/arch/aarch64

2020-05-23 Thread maya
On Sat, May 23, 2020 at 02:13:46PM -0700, Jason Thorpe wrote:
> 
> > On May 23, 2020, at 11:08 AM, Ryo Shimizu  wrote:
> > 
> > Module Name:src
> > Committed By:   ryo
> > Date:   Sat May 23 18:08:59 UTC 2020
> > 
> > Modified Files:
> > src/sys/arch/aarch64/aarch64: cpufunc.c cpuswitch.S exec_machdep.c
> > genassym.cf netbsd32_machdep.c vectors.S vm_machdep.c
> > src/sys/arch/aarch64/include: armreg.h machdep.h proc.h
> > 
> > Log Message:
> > Not only the kernel thread, but also the userland PAC keys
> > (APIA,APIB,APDA,APDB,APGA) are now randomly initialized at exec, and 
> > switched
> > when context switch.
> > userland programs are able to perform pointer authentication on ARMv8.3+PAC 
> > cpu.
> 
> Has any consideration be given to perhaps creating a new MACHINE_ARCH for 
> this, or somehow otherwise decorating the ELF files to indicate their 
> exec-ability?

I am under the impression that PAC was designed to be forewards
compatible, so older CPUs can execute code with this annotation. I don't
whether it works in practice though.


Re: CVS commit: src/sys/fs/tmpfs

2020-05-17 Thread maya
On Sun, May 17, 2020 at 09:47:50PM +, m...@netbsd.org wrote:
> On Sun, May 17, 2020 at 07:39:15PM +, Andrew Doran wrote:
> > Module Name:src
> > Committed By:   ad
> > Date:   Sun May 17 19:39:15 UTC 2020
> > 
> > Modified Files:
> > src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vnops.c
> > 
> > Log Message:
> > PR kern/55268: tmpfs is slow
> > 
> > tmpfs_getpages(): ...implement lazy update of atime/mtime.
> > 
> 
> I'm confused about how this makes sense. Can you elaborate?
> Presumably RAM is as fast as other RAM.

riastradh responded to this elsewhere: avoid atomic ops

thanks


Re: CVS commit: src/sys/fs/tmpfs

2020-05-17 Thread maya
On Sun, May 17, 2020 at 07:39:15PM +, Andrew Doran wrote:
> Module Name:  src
> Committed By: ad
> Date: Sun May 17 19:39:15 UTC 2020
> 
> Modified Files:
>   src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vnops.c
> 
> Log Message:
> PR kern/55268: tmpfs is slow
> 
> tmpfs_getpages(): ...implement lazy update of atime/mtime.
> 

I'm confused about how this makes sense. Can you elaborate?
Presumably RAM is as fast as other RAM.


Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-05-02 Thread maya
On Fri, May 01, 2020 at 04:46:36PM +, m...@netbsd.org wrote:
> We can setup an equivalence: put as much effort into the SCTP removal
> proposal as there was for the SCTP introduction proposal.
> 
> Since SCTP was just dropped in src without any prior discussion, I don't
> think we need any discussion for removing it.

I'm sorry for picking on SCTP in particular. Apparently it was added
because it was listed in src/doc/roadmaps.networking (and it's still
listed there).


Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-05-01 Thread maya
We can setup an equivalence: put as much effort into the SCTP removal
proposal as there was for the SCTP introduction proposal.

Since SCTP was just dropped in src without any prior discussion, I don't
think we need any discussion for removing it.


__predict_false for non-default features

2020-04-27 Thread maya
On Mon, Apr 27, 2020 at 11:05:31PM +, Nathanial Sloss wrote:
> Skip pfil_run_hooks if no packet filter configured in kernel.
...

> @@ -398,6 +398,11 @@ pfil_run_hooks(pfil_head_t *ph, struct m
>   int ret = 0;
>  
>   KASSERT(dir == PFIL_IN || dir == PFIL_OUT);
> +
> + if (__predict_false(ph == NULL)) {
> + return ret;
> + }
> +
>   if (__predict_false((phlistset = pfil_hook_get(dir, ph)) == NULL)) {
>   return ret;
>   }
> 

Speaking about the nearby code (Nat is not at fault, just following the
example).

I think that __predict_false should be used in esoteric failure modes,
or debug features. This isn't one of them.

The people who use packet filters have it always be true. The default
branch predicting behaviour (if the hint is even used) is probably better.


Re: CVS commit: src/sys

2020-04-27 Thread maya
On Tue, Apr 28, 2020 at 05:33:45AM +1000, matthew green wrote:
> i would just put it in types.h called __AUDIO_BLK_MS,
> and leave a default used in the code if unset.

Adding: please consider making the default assume a fast machine.
This is the value that will also be used by newly added architectures.
I expect new ones will be recently made hardware, so we can add one less
value for them to fine-tune in their quest to match existing
architectures for performance.

Thanks!


NO_KERNEL_RCSIDS

2020-04-22 Thread maya
On Wed, Apr 22, 2020 at 09:23:21AM +, Rin Okuyama wrote:
> Module Name:  src
> Committed By: rin
> Date: Wed Apr 22 09:23:21 UTC 2020
> 
> Modified Files:
>   src/sys/sys: cdefs.h
> 
> Log Message:
> For NO_KERNEL_RCSIDS, strip __RCSID() also for src/common/*.

Since these live in their own ELF section, wouldn't it be easier to use
strip(1) to remove them, than modify source code?


Re: CVS commit: src/sys/modules/compat_netbsd32

2020-04-19 Thread maya
Good news everyone. Does not affect any release at all.
Also might not have been a security issue, because christos did a weird
thing where it is compiled but somehow still disabled.

On Sun, Apr 19, 2020 at 05:40:50PM +, Maya Rashish wrote:
> Module Name:  src
> Committed By: maya
> Date: Sun Apr 19 17:40:50 UTC 2020
> 
> Modified Files:
>   src/sys/modules/compat_netbsd32: Makefile
> 
> Log Message:
> Turn off compat drm.
> XXX issue security advisory
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.32 -r1.33 src/sys/modules/compat_netbsd32/Makefile
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

> Modified files:
> 
> Index: src/sys/modules/compat_netbsd32/Makefile
> diff -u src/sys/modules/compat_netbsd32/Makefile:1.32 
> src/sys/modules/compat_netbsd32/Makefile:1.33
> --- src/sys/modules/compat_netbsd32/Makefile:1.32 Thu Mar 12 15:02:29 2020
> +++ src/sys/modules/compat_netbsd32/Makefile  Sun Apr 19 17:40:49 2020
> @@ -1,13 +1,13 @@
> -#$NetBSD: Makefile,v 1.32 2020/03/12 15:02:29 pgoyette Exp $
> +#$NetBSD: Makefile,v 1.33 2020/04/19 17:40:49 maya Exp $
>  
>  .include "../Makefile.inc"
>  .include "../Makefile.assym"
>  
>  KMOD=compat_netbsd32
>  
> -.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
> -NETBSD32_DRMKMS?=yes
> -.endif
> +#.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
> +#NETBSD32_DRMKMS?=yes
> +#.endif
>  
>  CPPFLAGS+=   -DCOMPAT_NETBSD32
>  CPPFLAGS+=   -DEXEC_ELF32 -DEXEC_ELF64
> 



Re: CVS commit: src/sys

2020-04-18 Thread maya
On Fri, Apr 17, 2020 at 11:39:01PM +0700, Robert Elz wrote:
> Date:Fri, 17 Apr 2020 07:52:53 -0700
> From:Jason Thorpe 
> Message-ID:  <7e54033f-9f14-4db3-a11a-01d63cd92...@me.com>
> 
>   | The New Hotness (which isn't particularly new, at this point)
>   | is to create branches and merge what you want into that branch.
> 
> What I don't understand, is how this single commit-id works in practice
> (not how it is generated, I mean how it is used).   Say you've got some
> local changes you're testing, maybe some ARM device driver (or related
> stuff), and I have local changes as well (maybe some new sh code - I
> actually have a lot of that, though most of it is no longer "new" and
> quite possibly none of it will appear in public) - so we're both working
> from different states of the overall tree.   Hence different ID's right?
> 
> Now imagine that while testing, some schedueller bug causes a panic,
> or the ATF tests detect some (unrelated to both of us) failure that
> shouldn't be happening (perhaps rump was neglected in someone's
> changes from elsewhere, yet again).
> 
> If we both, along with someone running a pristine tree, all see this
> failure, perhaps manifesting in slightly different ways, how do we
> all determine that we're running the same versions of all of the
> relevant files, and hence are probably all seeing the same bug?
> 
> Currently, with each file having its own version identfifier, it
> is easy, but if everything is to share one single "it is this version"
> ID, how can we know that we are all actually running the same version
> of whatever code broke and is affecting all of us?
> 

I feel like it's difficult to decide which is objectively better.
CVS encourages you to keep your local changes uncommitted, so they do
not show up in a change to RCSID at all.

Once you do local commits, it is hard as an outsider to know how far you
are from a remote tree.

But as a person with access to the repository, you are in a better
position in this case, because the DVCS will make it easy to go back to
the state of the tree given a hash, even after you add changes later.

I imagine it isn't impossible to find 'closest parent which is also in
the remote' and embed it as well, mitigating the "outsider can't tell
how far you are" concern, if someone wants to pursue that.


Re: CVS commit: src/sys

2020-04-17 Thread maya
On Fri, Apr 17, 2020 at 05:01:15PM +0200, Manuel Bouyer wrote:
> On Fri, Apr 17, 2020 at 07:52:53AM -0700, Jason Thorpe wrote:
> > 
> > > On Apr 17, 2020, at 7:46 AM, Robert Elz  wrote:
> > > 
> > >Date:Fri, 17 Apr 2020 15:37:33 +0200
> > >From:Manuel Bouyer 
> > >Message-ID:  <20200417133733.ga5...@antioche.eu.org>
> > > 
> > >  | And that would be a problem for me. I regulary update a single file to 
> > > a
> > >  | specific revision in a source tree.
> > > 
> > > Me too - I pull the current sh into NetBSD 8 (and I guess 9 now too,
> > > though I haven't done that yet) and build it there for some people who
> > > like to test and report bugs.
> > 
> > The New Hotness (which isn't particularly new, at this point) is to create 
> > branches and merge what you want into that branch.
> 
> Yes, but it's much more work than 'cvs up' in a single directory or against
> a few files.
> 

To checkout trunk in just the subdirectory bin/sh you can do:
hg revert -r trunk bin/sh
for git:
git checkout trunk bin/sh

Making a commit from this position is a little more awkward. But at
least non-CVS repositories make it easier to switch between branches.


Re: CVS commit: src/share/man/man4

2020-04-10 Thread maya
On Fri, Apr 10, 2020 at 07:16:24AM -0700, Jason Thorpe wrote:
> 
> > On Apr 10, 2020, at 4:44 AM, m...@netbsd.org  wrote:
> > 
> > I had to stop using m_defrag because implementation details broke
> > bwfm@pci. It can only handle a chain of length 1, and m_defrag gives
> > a minimum of 2.
> 
> Exactly.  If it can compact the packet into a single cluster mbuf, it should 
> do so.  It makes it slightly more difficult to use correctly, but those would 
> be better semantics.
> 
> -- thorpej
> 

At the time people brought up freebsd m_collapse or pre-allocating and
using m_copydata. I haven't tried either, and bwfm@pci stopped working
entirely for me anyway.


Re: CVS commit: src/share/man/man4

2020-04-10 Thread maya
On Fri, Apr 10, 2020 at 11:19:02AM +0900, SAITOH Masanobu wrote:
> On 2020/04/10 2:42, David Young wrote:
> > On Thu, Apr 09, 2020 at 03:25:32PM +0900, SAITOH Masanobu wrote:
> > > On 2020/04/09 11:08, David Young wrote:
> > > > On Wed, Apr 08, 2020 at 11:01:52PM +, Jaromir Dolecek wrote:
> > > > > on I219 I observe about 35% transmit performance drop when tso4 
> > > > > enabled
> > > > 
> > > > This sounds familiar.  There was a bug affecting TCP segmentation
> > > > offload (I think) that we found at CoyotePoint.  ISTR
> > > > bus_dmamap_load_mbuf(9) failed with EFBIG because under some
> > > > circumstances the number of segments in the DMA map was too small
> > > > for the mbuf chain.  The driver would drop the whole mbuf chain
> > > > on the floor.  This showed up as terrible performance under some
> > > > circumstances---possibly when the TCP window grew long?  The solution
> > > > was to increase the number of DMA segments, *I think*.
> > > 
> > > m_defrag() was added to -current in September 2018, and 9.0,
> > > 8.1, post 7.2 have this code.
> > 
> > Thank you, that's just the change I was thinking of.
> 
> You're welcome.
> Some drivers still have no m_defrag() code, so we should add it
> to them().


I had to stop using m_defrag because implementation details broke
bwfm@pci. It can only handle a chain of length 1, and m_defrag gives
a minimum of 2.


Re: CVS commit: src/common/lib/libc/arch

2020-02-01 Thread maya
On Mon, Jan 27, 2020 at 10:09:21PM +, Andrew Doran wrote:
> Module Name:  src
> Committed By: ad
> Date: Mon Jan 27 22:09:21 UTC 2020
> 
> Removed Files:
>   src/common/lib/libc/arch/i386/string: memcmp.S
>   src/common/lib/libc/arch/x86_64/string: bcmp.S memcmp.S
> 
> Log Message:
> x86 uses the C versions of bcmp() and memcmp() now.
> 

Why?


boottime

2020-01-04 Thread maya
- Forwarded message from Paul Goyette  -
Log Message:
Resurrect boottime, but only in the compat_90 module (whether built-in
or separately loaded).  This will enable running of old vmstat(1) images
on newer kernels.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_90_mod.c



Why? we don't claim compatibility for libkvm users.


Re: CVS commit: src

2019-12-21 Thread maya
On Fri, Dec 20, 2019 at 06:34:31PM -0800, John Nemeth wrote:
>  I don't wish to get embroiled in this debate (even if I did
> start it by requesting the reversion).  I just want to point out
> that there is a relatively simple way disable the autoloading of
> a module.  From module(9):
> 
>The directory from which the module is loaded will be searched for
>a file with the same name as the module file, but with the suffix
>``.plist''.  If this file is found, the prop_dictionary it contains
>will be loaded and passed to the module's modcmd() routine.  If
>this prop_dictionary contains a ``noautoload'' property which is
>set to ``true'' then the system will refuse to load the module.
> 
> The simplest way to do the above is:
> 
> modload -p -b noautoload=true > .plist
> 
> }-- End of excerpt from Maxime Villard

The first proposed change was to create a .plist file.
I liked it because it didn't require running postinstall to get the fix.

It provoked a bit of disgruntled voices, a continuation tech-kern bikeshed
about the correct way to disable module auto-loading in a per-module
basis.
Not installing the module allowed to avoid having to commit changes in a
debated topic (even though I was just using the existing method).
I was feeling rushed that we didn't commit something because of the excess
discussion.

I was hoping to have something fixing the current problem and to make
the module disable method discussion continue in public.


Re: CVS commit: src

2019-12-18 Thread maya
On Wed, Dec 18, 2019 at 06:47:44AM -0500, Christos Zoulas wrote:
> While there was no discussion, it is more efficient to have the discussion
> whether we should put it back or not (instead of putting it back first and
> having the discussion). Of course we should fix the build first since it seems
> to be broken.
> 
> The reality of the situation is that the syscall race has been there for 
> months
> and nobody has taken responsibility to fix it. The code is in version control,
> so someone should fix it first and then we can discuss if we should bring it
> back.


I'd like to also publicly object to the removal of the code from bmake
(I responded privately at first).
FreeBSD has filemon, and I suspect it has more acceptance there, but
maxv stated he will propose it.
Sharing the code with FreeBSD is more than worth the 200 unused-by-us
lines of code, and it's already optional.
No rush though. Let's wait to see what they say.

I have no objections to removing the kernel module.


Re: CVS commit: src/sys/dev/usb

2019-12-14 Thread maya
On Tue, Dec 03, 2019 at 05:01:45AM +, Taylor R Campbell wrote:
> Module Name:  src
> Committed By: riastradh
> Date: Tue Dec  3 05:01:45 UTC 2019
> 
> Modified Files:
>   src/sys/dev/usb: usbnet.c
> 
> Log Message:
> Fix order of nulling un->un_pri->unp_ec.ec_mii.
> 
> Can't null it until after if_detach prevents further use.
> 
> While here, fix conditionals in usbnet_tick_task to use the unp_dying
> flag, not the nullness of mii (or of ifp, which never null because
> it's an embedded member).
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.30 -r1.31 src/sys/dev/usb/usbnet.c

This breaks urndis(4). See http://gnats.netbsd.org/54762
The following diff restores it to work.

Index: usbnet.c
===
RCS file: /cvsroot/src/sys/dev/usb/usbnet.c,v
retrieving revision 1.32
diff -u -r1.32 usbnet.c
--- usbnet.c3 Dec 2019 05:01:58 -   1.32
+++ usbnet.c14 Dec 2019 14:34:45 -
@@ -1197,9 +1197,11 @@
usbnet_watchdog(ifp);
 
DPRINTFN(8, "mii %jx ifp %jx", (uintptr_t)mii, (uintptr_t)ifp, 0, 0);
-   mii_tick(mii);
-   if (!unp->unp_link)
-   (*mii->mii_statchg)(ifp);
+   if (mii) {
+   mii_tick(mii);
+   if (!unp->unp_link)
+   (*mii->mii_statchg)(ifp);
+   }
 
/* Call driver if requested. */
uno_tick(un);



Re: CVS commit: src/sys

2019-12-05 Thread maya
On Fri, Dec 06, 2019 at 07:27:07AM +, Maxime Villard wrote:
> Log Message:
> Minor changes, reported by the LGTM bot.

Would be nice if the commit message was "address some integer overflows"
or something.

> @@ -2205,7 +2205,7 @@ m_verify_packet(struct mbuf *m)
>  
>   dat = n->m_data;
>   len = n->m_len;
> - if (__predict_false(dat + len < dat)) {
> + if (__predict_false(len < 0)) {
>   panic("%s: incorrect length (len = %d)", __func__, len);
>   }
>  
> 

Hmm, was it trying to check that adding the two numbers together didn't
produce an overflow?  (Not valid, but has a different meaning)


Re: CVS commit: src/external/apache2/llvm

2019-11-29 Thread maya
On Thu, Nov 28, 2019 at 11:01:22PM +, Joerg Sonnenberger wrote:
> Log Message:
> Use -fno-strict-aliasing unconditionally for the cross compiler.

What's the context for that?

Thanks!


Re: CVS commit: src/sys/dev/pci

2019-11-17 Thread maya
> Modified files:
> 
> Index: src/sys/dev/pci/if_mcx.c
> diff -u src/sys/dev/pci/if_mcx.c:1.5 src/sys/dev/pci/if_mcx.c:1.6
> --- src/sys/dev/pci/if_mcx.c:1.5  Thu Oct 17 15:57:56 2019
> +++ src/sys/dev/pci/if_mcx.c  Mon Nov 18 04:40:05 2019
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: if_mcx.c,v 1.5 2019/10/17 15:57:56 msaitoh Exp $ */
> +/*   $NetBSD: if_mcx.c,v 1.6 2019/11/18 04:40:05 nonaka Exp $ */
>  /*   $OpenBSD: if_mcx.c,v 1.33 2019/09/12 04:23:59 jmatthew Exp $ */
>  
>  /*
> @@ -6347,7 +6347,7 @@ mcx_load_mbuf(struct mcx_softc *sc, stru
>   break;
>  
>   case EFBIG:
> - if (m_defrag(m, M_DONTWAIT) == 0 &&
> + if (m_defrag(m, M_DONTWAIT) != NULL &&
>   bus_dmamap_load_mbuf(sc->sc_dmat, ms->ms_map, m,
>   BUS_DMA_STREAMING | BUS_DMA_NOWAIT) == 0)
>   break;
> 

Is this one of those "m_defrag misbehaves because it will not turn it
into a chain of 1 packet, but 2"?

(I think this will not work)


CVS commit: src/sys/dev/pci

2019-11-12 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Nov 12 19:44:46 UTC 2019

Modified Files:
src/sys/dev/pci: if_vte.c

Log Message:
Fix whitespace. From vezhlys


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/if_vte.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_vte.c
diff -u src/sys/dev/pci/if_vte.c:1.27 src/sys/dev/pci/if_vte.c:1.28
--- src/sys/dev/pci/if_vte.c:1.27	Wed Oct 30 07:26:28 2019
+++ src/sys/dev/pci/if_vte.c	Tue Nov 12 19:44:46 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vte.c,v 1.27 2019/10/30 07:26:28 msaitoh Exp $	*/
+/*	$NetBSD: if_vte.c,v 1.28 2019/11/12 19:44:46 maya Exp $	*/
 
 /*
  * Copyright (c) 2011 Manuel Bouyer.  All rights reserved.
@@ -55,7 +55,7 @@
 /* Driver for DM Electronics, Inc, Vortex86 RDC R6040 FastEthernet. */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.27 2019/10/30 07:26:28 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vte.c,v 1.28 2019/11/12 19:44:46 maya Exp $");
 
 #include 
 #include 
@@ -847,7 +847,7 @@ vte_mediachange(struct ifnet *ifp)
 		aprint_error_dev(sc->vte_dev, "could not set media\n");
 		return error;
 	}
-			return 0;
+	return 0;
 
 }
 



CVS commit: src/sys/dev/pci

2019-11-12 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Nov 12 19:44:46 UTC 2019

Modified Files:
src/sys/dev/pci: if_vte.c

Log Message:
Fix whitespace. From vezhlys


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/if_vte.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src

2019-11-05 Thread maya
On Tue, Nov 05, 2019 at 09:01:06PM +, m...@netbsd.org wrote:
> On Tue, Nov 05, 2019 at 08:19:18PM +, Maxime Villard wrote:
> > Module Name:src
> > Committed By:   maxv
> > Date:   Tue Nov  5 20:19:18 UTC 2019
> > 
> > Modified Files:
> > src/share/mk: bsd.sys.mk
> > src/sys/arch/amd64/amd64: machdep.c mptramp.S
> > src/sys/arch/amd64/conf: GENERIC Makefile.amd64
> > src/sys/arch/x86/x86: cpu.c
> > src/sys/conf: files
> > src/sys/kern: files.kern
> > src/sys/lib/libkern: libkern.h
> > src/sys/sys: atomic.h bus_proto.h cdefs.h systm.h
> > Added Files:
> > src/sys/arch/amd64/include: csan.h
> > src/sys/kern: subr_csan.c
> > src/sys/sys: csan.h
> > 
> > Log Message:
> > Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
> > to detect race conditions at runtime. It is a variation of TSan that is
> > easy to implement and more suited to kernel internals, albeit theoretically
> > less precise than TSan's happens-before.
> > 
> > We do basically two things:
> > 
> >  - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
> >describing the access, and delay the calling CPU (10ms).
> > 
> >  - On all memory accesses, we verify if the memory we're reading/writing
> >is referenced in a cell already.
> > 
> > The combination of the two means that, if for example cpu0 does a read that
> > is selected and cpu1 does a write at the same address, kCSan will fire,
> > because cpu1's write collides with cpu0's read cell.
> > 
> > The coverage of the instrumentation is the same as that of kASan. Also, the
> > code is organized in a way similar to kASan, so it is easy to add support
> > for more architectures than amd64. kCSan is compatible with KCOV.
> > 
> > Reviewed by Kamil.
> > 
> 
> I don't understand how you can distinguish a race from this condition:
> 
>   CPU0CPU1
> 
> 
>   mutex_enter
>   write (recorded to cell)
>   mutex_exit
> 
>   read (checked against record)
> 
> Which is legitimate.^W
would be if I used a mutex on CPU0, but the point still stands. :-)


Re: CVS commit: src

2019-11-05 Thread maya
On Tue, Nov 05, 2019 at 08:19:18PM +, Maxime Villard wrote:
> Module Name:  src
> Committed By: maxv
> Date: Tue Nov  5 20:19:18 UTC 2019
> 
> Modified Files:
>   src/share/mk: bsd.sys.mk
>   src/sys/arch/amd64/amd64: machdep.c mptramp.S
>   src/sys/arch/amd64/conf: GENERIC Makefile.amd64
>   src/sys/arch/x86/x86: cpu.c
>   src/sys/conf: files
>   src/sys/kern: files.kern
>   src/sys/lib/libkern: libkern.h
>   src/sys/sys: atomic.h bus_proto.h cdefs.h systm.h
> Added Files:
>   src/sys/arch/amd64/include: csan.h
>   src/sys/kern: subr_csan.c
>   src/sys/sys: csan.h
> 
> Log Message:
> Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
> to detect race conditions at runtime. It is a variation of TSan that is
> easy to implement and more suited to kernel internals, albeit theoretically
> less precise than TSan's happens-before.
> 
> We do basically two things:
> 
>  - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
>describing the access, and delay the calling CPU (10ms).
> 
>  - On all memory accesses, we verify if the memory we're reading/writing
>is referenced in a cell already.
> 
> The combination of the two means that, if for example cpu0 does a read that
> is selected and cpu1 does a write at the same address, kCSan will fire,
> because cpu1's write collides with cpu0's read cell.
> 
> The coverage of the instrumentation is the same as that of kASan. Also, the
> code is organized in a way similar to kASan, so it is easy to add support
> for more architectures than amd64. kCSan is compatible with KCOV.
> 
> Reviewed by Kamil.
> 

I don't understand how you can distinguish a race from this condition:

CPU0CPU1


mutex_enter
write (recorded to cell)
mutex_exit

read (checked against record)

Which is legitimate.


+   for (i = 0; i < ncpu; i++) {
+   __builtin_memcpy(, _cpus[i].cell, sizeof(old));
+ 
+   if (old.addr + old.size <= new.addr)
+   continue;
+   if (new.addr + new.size <= old.addr)
+   continue;
+   if (__predict_true(!old.write && !new.write))
+   continue;
+   if (__predict_true(kcsan_access_is_atomic(, )))  
+   continue;
+   
+   kcsan_report(, cpu_number(), , i);
+   break;
+   }

It looks like you are checking the current CPU too?


Re: CVS commit: src/sys/dev/usb

2019-10-31 Thread maya
On Thu, Oct 31, 2019 at 11:59:40AM +, Maya Rashish wrote:
> Module Name:  src
> Committed By: maya
> Date: Thu Oct 31 11:59:40 UTC 2019
> 
> Modified Files:
>   src/sys/dev/usb: if_urndis.c
> 
> Log Message:
> check if buf/bufsz are non-NULL before freeing.
> 
> not all control messages that can be received result in buf being
> initialized

.. It is explicitly NULL and bufsz is zero in this case.
It's not relying on an uninit value.


CVS commit: src/sys/dev/usb

2019-10-31 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 31 11:59:40 UTC 2019

Modified Files:
src/sys/dev/usb: if_urndis.c

Log Message:
check if buf/bufsz are non-NULL before freeing.

not all control messages that can be received result in buf being
initialized, we might get a spurious different control message

seen in practice when swapping modes a few times on a urndis device

urndis0: SAMSUNG ...
autoconfiguration error: urndis0: invalid address
panic: kernel diagnostic assertion "p != NULL" failed: file 
"/cvs/src/sys/kern/subr_kmem.c", line 263
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x178
kern_assert() at netbsd:kern_assert+0x48
kmem_intr_free() at netbsd:kmem_intr_free+0xca
urndis_attach() at netbsd:urndis_attach+0x4c2


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/usb/if_urndis.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2019-10-31 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 31 11:59:40 UTC 2019

Modified Files:
src/sys/dev/usb: if_urndis.c

Log Message:
check if buf/bufsz are non-NULL before freeing.

not all control messages that can be received result in buf being
initialized, we might get a spurious different control message

seen in practice when swapping modes a few times on a urndis device

urndis0: SAMSUNG ...
autoconfiguration error: urndis0: invalid address
panic: kernel diagnostic assertion "p != NULL" failed: file 
"/cvs/src/sys/kern/subr_kmem.c", line 263
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x178
kern_assert() at netbsd:kern_assert+0x48
kmem_intr_free() at netbsd:kmem_intr_free+0xca
urndis_attach() at netbsd:urndis_attach+0x4c2


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/usb/if_urndis.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_urndis.c
diff -u src/sys/dev/usb/if_urndis.c:1.33 src/sys/dev/usb/if_urndis.c:1.34
--- src/sys/dev/usb/if_urndis.c:1.33	Tue Aug 20 06:37:06 2019
+++ src/sys/dev/usb/if_urndis.c	Thu Oct 31 11:59:40 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_urndis.c,v 1.33 2019/08/20 06:37:06 mrg Exp $ */
+/*	$NetBSD: if_urndis.c,v 1.34 2019/10/31 11:59:40 maya Exp $ */
 /*	$OpenBSD: if_urndis.c,v 1.31 2011/07/03 15:47:17 matthew Exp $ */
 
 /*
@@ -21,7 +21,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.33 2019/08/20 06:37:06 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urndis.c,v 1.34 2019/10/31 11:59:40 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1068,7 +1068,8 @@ urndis_attach(device_t parent, device_t 
 		kmem_free(buf, bufsz);
 	} else {
 		aprint_error("%s: invalid address\n", DEVNAME(un));
-		kmem_free(buf, bufsz);
+		if (buf && bufsz)
+			kmem_free(buf, bufsz);
 		usbnet_lock(un);
 		usbnet_stop(un, ifp, 1);
 		usbnet_unlock(un);



CVS commit: src/sys/arch/aarch64

2019-10-29 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Oct 29 20:01:22 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: pmap.c
src/sys/arch/aarch64/include: pmap.h

Log Message:
Define PMAP_NEED_PROCWR, providing strategically placed i-cache
synchronization where just-changed memory is about to be executed.

Fixes SIGILLs seen when running Mono 6 on QEMU Cortex-A57.

ok ryo


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/aarch64/aarch64/pmap.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/aarch64/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64

2019-10-29 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Oct 29 20:01:22 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: pmap.c
src/sys/arch/aarch64/include: pmap.h

Log Message:
Define PMAP_NEED_PROCWR, providing strategically placed i-cache
synchronization where just-changed memory is about to be executed.

Fixes SIGILLs seen when running Mono 6 on QEMU Cortex-A57.

ok ryo


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/aarch64/aarch64/pmap.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/aarch64/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/aarch64/aarch64/pmap.c
diff -u src/sys/arch/aarch64/aarch64/pmap.c:1.47 src/sys/arch/aarch64/aarch64/pmap.c:1.48
--- src/sys/arch/aarch64/aarch64/pmap.c:1.47	Sun Sep 22 13:57:55 2019
+++ src/sys/arch/aarch64/aarch64/pmap.c	Tue Oct 29 20:01:22 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.47 2019/09/22 13:57:55 jmcneill Exp $	*/
+/*	$NetBSD: pmap.c,v 1.48 2019/10/29 20:01:22 maya Exp $	*/
 
 /*
  * Copyright (c) 2017 Ryo Shimizu 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.47 2019/09/22 13:57:55 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.48 2019/10/29 20:01:22 maya Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -877,6 +877,22 @@ pmap_icache_sync_range(pmap_t pm, vaddr_
 	pm_unlock(pm);
 }
 
+/*
+ * Routine:	pmap_procwr
+ *
+ * Function:
+ *	Synchronize caches corresponding to [addr, addr+len) in p.
+ *
+ */
+void
+pmap_procwr(struct proc *p, vaddr_t va, int len)
+{
+
+	/* We only need to do anything if it is the current process. */
+	if (p == curproc)
+		cpu_icache_sync_range(va, len);
+}
+
 static pt_entry_t
 _pmap_pte_adjust_prot(pt_entry_t pte, vm_prot_t prot, vm_prot_t protmask,
 bool user)

Index: src/sys/arch/aarch64/include/pmap.h
diff -u src/sys/arch/aarch64/include/pmap.h:1.25 src/sys/arch/aarch64/include/pmap.h:1.26
--- src/sys/arch/aarch64/include/pmap.h:1.25	Mon Aug 12 10:28:04 2019
+++ src/sys/arch/aarch64/include/pmap.h	Tue Oct 29 20:01:22 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.25 2019/08/12 10:28:04 skrll Exp $ */
+/* $NetBSD: pmap.h,v 1.26 2019/10/29 20:01:22 maya Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -46,6 +46,7 @@
 
 #include 
 
+#define PMAP_NEED_PROCWR
 #define PMAP_GROWKERNEL
 #define PMAP_STEAL_MEMORY
 
@@ -272,6 +273,7 @@ aarch64_mmap_flags(paddr_t mdpgno)
 #define pmap_wired_count(pmap)		((pmap)->pm_stats.wired_count)
 #define pmap_resident_count(pmap)	((pmap)->pm_stats.resident_count)
 
+void	pmap_procwr(struct proc *, vaddr_t, int);
 bool	pmap_extract_coherency(pmap_t, vaddr_t, paddr_t *, bool *);
 void	pmap_icache_sync_range(pmap_t, vaddr_t, vaddr_t);
 



CVS commit: src

2019-10-28 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Oct 28 13:19:50 UTC 2019

Modified Files:
src/distrib/sets/lists/modules: mi
src/sys/modules: Makefile

Log Message:
Disable filemon.

It isn't suited for general use (that is, it poses security risks),
but the existence of the module means it is auto-loaded when /dev/filemon
is opened, which can be done by any user.

Thanks Ilja van Sprundel for the heads up.


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/distrib/sets/lists/modules/mi
cvs rdiff -u -r1.228 -r1.229 src/sys/modules/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-28 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Oct 28 13:19:50 UTC 2019

Modified Files:
src/distrib/sets/lists/modules: mi
src/sys/modules: Makefile

Log Message:
Disable filemon.

It isn't suited for general use (that is, it poses security risks),
but the existence of the module means it is auto-loaded when /dev/filemon
is opened, which can be done by any user.

Thanks Ilja van Sprundel for the heads up.


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/distrib/sets/lists/modules/mi
cvs rdiff -u -r1.228 -r1.229 src/sys/modules/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/modules/mi
diff -u src/distrib/sets/lists/modules/mi:1.126 src/distrib/sets/lists/modules/mi:1.127
--- src/distrib/sets/lists/modules/mi:1.126	Sun Sep 22 22:59:37 2019
+++ src/distrib/sets/lists/modules/mi	Mon Oct 28 13:19:50 2019
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.126 2019/09/22 22:59:37 christos Exp $
+# $NetBSD: mi,v 1.127 2019/10/28 13:19:50 maya Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -168,8 +168,8 @@
 ./@MODULEDIR@/ffs/ffs.kmod			base-kernel-modules	kmod
 ./@MODULEDIR@/filecorebase-kernel-modules	kmod
 ./@MODULEDIR@/filecore/filecore.kmod		base-kernel-modules	kmod
-./@MODULEDIR@/filemonbase-kernel-modules	kmod
-./@MODULEDIR@/filemon/filemon.kmod		base-kernel-modules	kmod
+./@MODULEDIR@/filemonbase-obsolete		obsolete
+./@MODULEDIR@/filemon/filemon.kmod		base-obsolete		obsolete
 ./@MODULEDIR@/flashbase-kernel-modules	kmod
 ./@MODULEDIR@/flash/flash.kmod			base-kernel-modules	kmod
 ./@MODULEDIR@/fssbase-kernel-modules	kmod

Index: src/sys/modules/Makefile
diff -u src/sys/modules/Makefile:1.228 src/sys/modules/Makefile:1.229
--- src/sys/modules/Makefile:1.228	Mon Oct 28 02:56:40 2019
+++ src/sys/modules/Makefile	Mon Oct 28 13:19:50 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.228 2019/10/28 02:56:40 ozaki-r Exp $
+#	$NetBSD: Makefile,v 1.229 2019/10/28 13:19:50 maya Exp $
 
 .include 
 
@@ -54,7 +54,7 @@ SUBDIR+=	exec_script
 SUBDIR+=	fdesc
 SUBDIR+=	ffs
 SUBDIR+=	filecore
-SUBDIR+=	filemon
+#SUBDIR+=	filemon
 SUBDIR+=	flash
 SUBDIR+=	fss
 SUBDIR+=	gpio



Re: CVS commit: xsrc/external/mit/mkfontscale/dist

2019-10-27 Thread maya
On Sun, Oct 27, 2019 at 05:38:08PM +, Maya Rashish wrote:
> Module Name:  xsrc
> Committed By: maya
> Date: Sun Oct 27 17:38:08 UTC 2019
> 
> Modified Files:
>   xsrc/external/mit/mkfontscale/dist: mkfontscale.c
> 
> Log Message:
> Use a case insensitive comparison. Add ExtraBold.

+Plain


CVS commit: xsrc/external/mit/mkfontscale/dist

2019-10-27 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Sun Oct 27 17:38:08 UTC 2019

Modified Files:
xsrc/external/mit/mkfontscale/dist: mkfontscale.c

Log Message:
Use a case insensitive comparison. Add ExtraBold.

Fixes PR xsrc/40609: Problem with mkfontscale and fonts/freefonts with
xfree/xorg


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/mkfontscale/dist/mkfontscale.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/mkfontscale/dist/mkfontscale.c
diff -u xsrc/external/mit/mkfontscale/dist/mkfontscale.c:1.8 xsrc/external/mit/mkfontscale/dist/mkfontscale.c:1.9
--- xsrc/external/mit/mkfontscale/dist/mkfontscale.c:1.8	Sun Mar  3 09:27:12 2019
+++ xsrc/external/mit/mkfontscale/dist/mkfontscale.c	Sun Oct 27 17:38:08 2019
@@ -435,33 +435,37 @@ t1Weight(const char *weight)
 {
 if(!weight)
 return NULL;
-if(strcmp(weight, "Thin") == 0)
+if(strcasecmp(weight, "Thin") == 0)
 return "thin";
-if(strcmp(weight, "ExtraLight") == 0) /* FontForge uses this for 200*/
+if(strcasecmp(weight, "ExtraLight") == 0) /* FontForge uses this for 200*/
 return "extralight";
-if(strcmp(weight, "Light") == 0)
+if(strcasecmp(weight, "Light") == 0)
 return "light";
-if(strcmp(weight, "Regular") == 0)
+if(strcasecmp(weight, "Regular") == 0)
 return "medium";
-if(strcmp(weight, "Normal") == 0)
+if(strcasecmp(weight, "Plain") == 0)
 return "medium";
-if(strcmp(weight, "Medium") == 0)
+if(strcasecmp(weight, "Normal") == 0)
 return "medium";
-if(strcmp(weight, "Book") == 0)
+if(strcasecmp(weight, "Medium") == 0)
 return "medium";
-if(strcmp(weight, "Roman") == 0) /* Some URW++ fonts do that! */
+if(strcasecmp(weight, "Book") == 0)
 return "medium";
-if(strcmp(weight, "Demi") == 0)
+if(strcasecmp(weight, "Roman") == 0) /* Some URW++ fonts do that! */
+return "medium";
+if(strcasecmp(weight, "Demi") == 0)
 return "semibold";
-if(strcmp(weight, "DemiBold") == 0)
+if(strcasecmp(weight, "DemiBold") == 0)
 return "semibold";
-if(strcmp(weight, "SemiBold") == 0) /* some TeX fonts apparently do that */
+if(strcasecmp(weight, "SemiBold") == 0) /* some TeX fonts apparently do that */
 return "semibold";
-else if(strcmp(weight, "Bold") == 0)
+else if(strcasecmp(weight, "Bold") == 0)
 return "bold";
-else if(strcmp(weight, "Heavy") == 0) /* FontForge uses this for 800*/
+else if(strcasecmp(weight, "Heavy") == 0) /* FontForge uses this for 800*/
+return "extrabold";
+else if(strcasecmp(weight, "ExtraBold") == 0) /* freefonts uses this */
 return "extrabold";
-else if(strcmp(weight, "Black") == 0)
+else if(strcasecmp(weight, "Black") == 0)
 return "black";
 else {
 fprintf(stderr, "Unknown Type 1 weight \"%s\"\n", weight);



CVS commit: xsrc/external/mit/mkfontscale/dist

2019-10-27 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Sun Oct 27 17:38:08 UTC 2019

Modified Files:
xsrc/external/mit/mkfontscale/dist: mkfontscale.c

Log Message:
Use a case insensitive comparison. Add ExtraBold.

Fixes PR xsrc/40609: Problem with mkfontscale and fonts/freefonts with
xfree/xorg


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/mkfontscale/dist/mkfontscale.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src

2019-10-24 Thread maya
Is this going to be a trend now of not even publicly proposing changes
and just going straight to core?

On Thu, Oct 24, 2019 at 06:18:07PM +, Kamil Rytarowski wrote:
> Log Message:
> Switch the iconv(3) prototype to the POSIX conformant variation
> 
> Remove const from the 2nd argument.
> 
> const char ** and char ** are incompatible types and it was a cost to keep
> the technically incompatible form for a more purist variation. NetBSD was
> almost the last alive OS to still keep the const argument (known leftovers:
> Minix and Illumos).
> 
> Keep the const form for the internal purposes inside citrus and rump.
> 
> Address the build breakage fallout in the same change.
> 
> There are no ABI changes.
> 
> Change accepted by core@.


CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 01:30:54 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
we want to check that the allocation is going to be zero, not whether
some pointer is NULL (oops).

Should be the right version this time!


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uvideo.c
diff -u src/sys/dev/usb/uvideo.c:1.51 src/sys/dev/usb/uvideo.c:1.52
--- src/sys/dev/usb/uvideo.c:1.51	Wed Oct 23 01:03:36 2019
+++ src/sys/dev/usb/uvideo.c	Wed Oct 23 01:30:54 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideo.c,v 1.51 2019/10/23 01:03:36 maya Exp $	*/
+/*	$NetBSD: uvideo.c,v 1.52 2019/10/23 01:30:54 maya Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.51 2019/10/23 01:03:36 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.52 2019/10/23 01:30:54 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -999,7 +999,7 @@ static usbd_status
 uvideo_unit_alloc_controls(struct uvideo_unit *vu, uint8_t size,
 			   const uint8_t *controls)
 {
-	if ((vu->vu_controls == 0) || (size == 0))
+	if (size == 0)
 		return USBD_INVAL;
 
 	vu->vu_controls = kmem_alloc(sizeof(*vu->vu_controls) * size, KM_SLEEP);



CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 01:30:54 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
we want to check that the allocation is going to be zero, not whether
some pointer is NULL (oops).

Should be the right version this time!


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 01:03:36 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
Check if size is zero, too.

PR kern/53734


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 01:03:36 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
Check if size is zero, too.

PR kern/53734


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uvideo.c
diff -u src/sys/dev/usb/uvideo.c:1.50 src/sys/dev/usb/uvideo.c:1.51
--- src/sys/dev/usb/uvideo.c:1.50	Wed Oct 23 00:52:39 2019
+++ src/sys/dev/usb/uvideo.c	Wed Oct 23 01:03:36 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideo.c,v 1.50 2019/10/23 00:52:39 maya Exp $	*/
+/*	$NetBSD: uvideo.c,v 1.51 2019/10/23 01:03:36 maya Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.50 2019/10/23 00:52:39 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.51 2019/10/23 01:03:36 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -999,7 +999,7 @@ static usbd_status
 uvideo_unit_alloc_controls(struct uvideo_unit *vu, uint8_t size,
 			   const uint8_t *controls)
 {
-	if (vu->vu_controls == 0)
+	if ((vu->vu_controls == 0) || (size == 0))
 		return USBD_INVAL;
 
 	vu->vu_controls = kmem_alloc(sizeof(*vu->vu_controls) * size, KM_SLEEP);



CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 00:52:39 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
Avoid kmem_alloc(0,..), which hits an assertion.

PR kern/53734: Prevent kernel panic during Wide Vision FHD Camera detection


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uvideo.c
diff -u src/sys/dev/usb/uvideo.c:1.49 src/sys/dev/usb/uvideo.c:1.50
--- src/sys/dev/usb/uvideo.c:1.49	Tue Oct  1 18:00:08 2019
+++ src/sys/dev/usb/uvideo.c	Wed Oct 23 00:52:39 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideo.c,v 1.49 2019/10/01 18:00:08 chs Exp $	*/
+/*	$NetBSD: uvideo.c,v 1.50 2019/10/23 00:52:39 maya Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.49 2019/10/01 18:00:08 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.50 2019/10/23 00:52:39 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -999,6 +999,9 @@ static usbd_status
 uvideo_unit_alloc_controls(struct uvideo_unit *vu, uint8_t size,
 			   const uint8_t *controls)
 {
+	if (vu->vu_controls == 0)
+		return USBD_INVAL;
+
 	vu->vu_controls = kmem_alloc(sizeof(*vu->vu_controls) * size, KM_SLEEP);
 	vu->vu_control_size = size;
 	memcpy(vu->vu_controls, controls, size);



CVS commit: src/sys/dev/usb

2019-10-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 23 00:52:39 UTC 2019

Modified Files:
src/sys/dev/usb: uvideo.c

Log Message:
Avoid kmem_alloc(0,..), which hits an assertion.

PR kern/53734: Prevent kernel panic during Wide Vision FHD Camera detection


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/usb/uvideo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/mii

2019-10-18 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct 18 20:42:10 UTC 2019

Modified Files:
src/sys/dev/mii: miidevs miidevs.h miidevs_data.h

Log Message:
Fix typo. from vezhlys


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 src/sys/dev/mii/miidevs
cvs rdiff -u -r1.156 -r1.157 src/sys/dev/mii/miidevs.h
cvs rdiff -u -r1.144 -r1.145 src/sys/dev/mii/miidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mii/miidevs
diff -u src/sys/dev/mii/miidevs:1.158 src/sys/dev/mii/miidevs:1.159
--- src/sys/dev/mii/miidevs:1.158	Thu Oct 17 09:21:40 2019
+++ src/sys/dev/mii/miidevs	Fri Oct 18 20:42:10 2019
@@ -1,4 +1,4 @@
-$NetBSD: miidevs,v 1.158 2019/10/17 09:21:40 msaitoh Exp $
+$NetBSD: miidevs,v 1.159 2019/10/18 20:42:10 maya Exp $
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@ oui TI0x080028	Texas Instruments
 oui BROADCOM4			0x18c086	Broadcom Corporation
 oui RENESAS			0x749050	Renesas
 
-/* Unregisterd or wrong OUI */
+/* Unregistered or wrong OUI */
 oui yyREALTEK			0x04	Realtek
 oui yyAMD			0x58	Advanced Micro Devices
 oui xxMYSON			0x00032d	Myson Technology

Index: src/sys/dev/mii/miidevs.h
diff -u src/sys/dev/mii/miidevs.h:1.156 src/sys/dev/mii/miidevs.h:1.157
--- src/sys/dev/mii/miidevs.h:1.156	Thu Oct 17 09:22:00 2019
+++ src/sys/dev/mii/miidevs.h	Fri Oct 18 20:42:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: miidevs.h,v 1.156 2019/10/17 09:22:00 msaitoh Exp $	*/
+/*	$NetBSD: miidevs.h,v 1.157 2019/10/18 20:42:10 maya Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -101,7 +101,7 @@
 #define	MII_OUI_BROADCOM4	0x18c086	/* Broadcom Corporation */
 #define	MII_OUI_RENESAS	0x749050	/* Renesas */
 
-/* Unregisterd or wrong OUI */
+/* Unregistered or wrong OUI */
 #define	MII_OUI_yyREALTEK	0x04	/* Realtek */
 #define	MII_OUI_yyAMD	0x58	/* Advanced Micro Devices */
 #define	MII_OUI_xxMYSON	0x00032d	/* Myson Technology */

Index: src/sys/dev/mii/miidevs_data.h
diff -u src/sys/dev/mii/miidevs_data.h:1.144 src/sys/dev/mii/miidevs_data.h:1.145
--- src/sys/dev/mii/miidevs_data.h:1.144	Thu Oct 17 09:22:00 2019
+++ src/sys/dev/mii/miidevs_data.h	Fri Oct 18 20:42:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: miidevs_data.h,v 1.144 2019/10/17 09:22:00 msaitoh Exp $	*/
+/*	$NetBSD: miidevs_data.h,v 1.145 2019/10/18 20:42:10 maya Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.



CVS commit: src/sys/dev/mii

2019-10-18 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct 18 20:42:10 UTC 2019

Modified Files:
src/sys/dev/mii: miidevs miidevs.h miidevs_data.h

Log Message:
Fix typo. from vezhlys


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 src/sys/dev/mii/miidevs
cvs rdiff -u -r1.156 -r1.157 src/sys/dev/mii/miidevs.h
cvs rdiff -u -r1.144 -r1.145 src/sys/dev/mii/miidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2019-10-17 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 17 16:21:02 UTC 2019

Modified Files:
src/doc: 3RDPARTY

Log Message:
correct bind location. new bind


To generate a diff of this commit:
cvs rdiff -u -r1.1664 -r1.1665 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1664 src/doc/3RDPARTY:1.1665
--- src/doc/3RDPARTY:1.1664	Wed Oct 16 14:56:34 2019
+++ src/doc/3RDPARTY	Thu Oct 17 16:21:02 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1664 2019/10/16 14:56:34 roy Exp $
+#	$NetBSD: 3RDPARTY,v 1.1665 2019/10/17 16:21:02 maya Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -121,7 +121,7 @@ bc includes dc, both of which are in the
 
 Package:	bind [named and utils]
 Version:	9.14.5/MPL
-Current Vers:	9.14.6/MPL
+Current Vers:	9.14.7/MPL
 Maintainer:	ISC
 Archive Site:	ftp://ftp.isc.org/isc/bind9/
 Home Page:	http://www.isc.org/software/bind/
@@ -130,10 +130,10 @@ Mailing List:	https://lists.isc.org/mail
 Mailing List:	https://lists.isc.org/mailman/listinfo/bind-users
 Responsible:	christos
 License:	BSD-like (2-clause) / MPL
-Location:	external/bsd/bind/dist
+Location:	external/mpl/bind/dist
 Notes:
 First bind2netbsd script to import into src/external/bsd/bind/dist.
-The Makefiles in src/external/bsd/bind are not handled by the script.
+The Makefiles in src/external/mpl/bind are not handled by the script.
 Build bind to generate the include files.
 Then binclude4netbsd script to import into src/external/bsd/bind/include.
 The libc and include parts of the resolver are now part of libbind.



CVS commit: src/doc

2019-10-17 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 17 16:21:02 UTC 2019

Modified Files:
src/doc: 3RDPARTY

Log Message:
correct bind location. new bind


To generate a diff of this commit:
cvs rdiff -u -r1.1664 -r1.1665 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/external/bsd/drm2/linux

2019-10-17 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 17 14:33:02 UTC 2019

Modified Files:
src/sys/external/bsd/drm2/linux: linux_dma_buf.c

Log Message:
correct error handling.

from Ilja Van Sprundel, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/linux/linux_dma_buf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/external/bsd/drm2/linux

2019-10-17 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Oct 17 14:33:02 UTC 2019

Modified Files:
src/sys/external/bsd/drm2/linux: linux_dma_buf.c

Log Message:
correct error handling.

from Ilja Van Sprundel, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/linux/linux_dma_buf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/linux/linux_dma_buf.c
diff -u src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.5 src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.6
--- src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.5	Fri Jan  4 23:03:02 2019
+++ src/sys/external/bsd/drm2/linux/linux_dma_buf.c	Thu Oct 17 14:33:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_dma_buf.c,v 1.5 2019/01/04 23:03:02 tnn Exp $	*/
+/*	$NetBSD: linux_dma_buf.c,v 1.6 2019/10/17 14:33:02 maya Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_buf.c,v 1.5 2019/01/04 23:03:02 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_buf.c,v 1.6 2019/10/17 14:33:02 maya Exp $");
 
 #include 
 #include 
@@ -133,11 +133,11 @@ dma_buf_get(int fd)
 
 	if ((file = fd_getfile(fd)) == NULL) {
 		error = EBADF;
-		goto fail1;
+		goto fail0;
 	}
 	if (file->f_type != DTYPE_MISC || file->f_ops != _fileops) {
 		error = EINVAL;
-		goto fail0;
+		goto fail1;
 	}
 
 	dmabuf = file->f_data;



Re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread maya
On Thu, Oct 17, 2019 at 07:08:45AM +1100, matthew green wrote:
> "Christos Zoulas" writes:
> > Module Name:src
> > Committed By:   christos
> > Date:   Wed Oct 16 15:01:56 UTC 2019
> > 
> > Modified Files:
> > src/external/gpl3/gcc/dist/libobjc: encoding.c
> > 
> > Log Message:
> > prevent DFmode re-definition.
> 
> i'm not a fan of this one.  i'd like to figure out
> what is really happening here..
> 
> i've been using the same hack, but i didn't want to
> commit it because i don't understand it.
> 
> 
> .mrg.

I'd like to note that upstream adopted the same choice.
https://gcc.gnu.org/viewcvs/gcc?view=revision=269429


CVS commit: src

2019-10-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 16 21:52:22 UTC 2019

Modified Files:
src/sbin/mount_nilfs: mount_nilfs.8 mount_nilfs.c
src/sbin/mount_udf: mount_udf.8 mount_udf.c
src/sys/arch/arm/iomd: qms.c
src/sys/dev/pci: auixp.c auixpreg.h auixpvar.h
src/sys/fs/nilfs: nilfs_mount.h
src/sys/fs/udf: udf_mount.h

Log Message:
Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.

OK'd by reinoud in email (from 4 Feb 2019).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_nilfs/mount_nilfs.8
cvs rdiff -u -r1.3 -r1.4 src/sbin/mount_nilfs/mount_nilfs.c
cvs rdiff -u -r1.13 -r1.14 src/sbin/mount_udf/mount_udf.8
cvs rdiff -u -r1.14 -r1.15 src/sbin/mount_udf/mount_udf.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/iomd/qms.c
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/pci/auixp.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pci/auixpreg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/auixpvar.h
cvs rdiff -u -r1.1 -r1.2 src/sys/fs/nilfs/nilfs_mount.h
cvs rdiff -u -r1.3 -r1.4 src/sys/fs/udf/udf_mount.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/mount_nilfs/mount_nilfs.8
diff -u src/sbin/mount_nilfs/mount_nilfs.8:1.4 src/sbin/mount_nilfs/mount_nilfs.8:1.5
--- src/sbin/mount_nilfs/mount_nilfs.8:1.4	Wed Jun  1 12:01:21 2016
+++ src/sbin/mount_nilfs/mount_nilfs.8	Wed Oct 16 21:52:22 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: mount_nilfs.8,v 1.4 2016/06/01 12:01:21 wiz Exp $
+.\" $NetBSD: mount_nilfs.8,v 1.5 2019/10/16 21:52:22 maya Exp $
 .\"
 .\" Copyright (c) 2008, 2009 Reinoud Zandijk
 .\" All rights reserved.
@@ -11,13 +11,6 @@
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"notice, this list of conditions and the following disclaimer in the
 .\"documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\"must display the following acknowledgement:
-.\"  This product includes software developed for the
-.\"  NetBSD Project.  See http://www.NetBSD.org/ for
-.\"  information about NetBSD.
-.\" 4. The name of the author may not be used to endorse or promote products
-.\"derived from this software without specific prior written permission.
 .\"
 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES

Index: src/sbin/mount_nilfs/mount_nilfs.c
diff -u src/sbin/mount_nilfs/mount_nilfs.c:1.3 src/sbin/mount_nilfs/mount_nilfs.c:1.4
--- src/sbin/mount_nilfs/mount_nilfs.c:1.3	Sun Feb 21 22:51:29 2016
+++ src/sbin/mount_nilfs/mount_nilfs.c	Wed Oct 16 21:52:22 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_nilfs.c,v 1.3 2016/02/21 22:51:29 christos Exp $ */
+/* $NetBSD: mount_nilfs.c,v 1.4 2019/10/16 21:52:22 maya Exp $ */
 
 /*
  * Copyright (c) 2008, 2009 Reinoud Zandijk
@@ -12,13 +12,6 @@
  * 2. Redistributions in binary form must reproduce the above copyright
  *notice, this list of conditions and the following disclaimer in the
  *documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software developed for the
- *  NetBSD Project.  See http://www.NetBSD.org/ for
- *  information about NetBSD.
- * 4. The name of the author may not be used to endorse or promote products
- *derived from this software without specific prior written permission.
  * 
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -36,7 +29,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: mount_nilfs.c,v 1.3 2016/02/21 22:51:29 christos Exp $");
+__RCSID("$NetBSD: mount_nilfs.c,v 1.4 2019/10/16 21:52:22 maya Exp $");
 #endif /* not lint */
 
 

Index: src/sbin/mount_udf/mount_udf.8
diff -u src/sbin/mount_udf/mount_udf.8:1.13 src/sbin/mount_udf/mount_udf.8:1.14
--- src/sbin/mount_udf/mount_udf.8:1.13	Mon Sep 12 02:45:07 2016
+++ src/sbin/mount_udf/mount_udf.8	Wed Oct 16 21:52:22 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: mount_udf.8,v 1.13 2016/09/12 02:45:07 sevan Exp $
+.\" $NetBSD: mount_udf.8,v 1.14 2019/10/16 21:52:22 maya Exp $
 .\"
 .\" Copyright (c) 2006, 2008 Reinoud Zandijk
 .\" All rights reserved.
@@ -11,13 +11,6 @@
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"notice, this list of conditions and the following disclaimer in the
 .\"documentation and/or other materials provided with the distribution.
-.\" 3. All adverti

CVS commit: src

2019-10-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 16 21:52:22 UTC 2019

Modified Files:
src/sbin/mount_nilfs: mount_nilfs.8 mount_nilfs.c
src/sbin/mount_udf: mount_udf.8 mount_udf.c
src/sys/arch/arm/iomd: qms.c
src/sys/dev/pci: auixp.c auixpreg.h auixpvar.h
src/sys/fs/nilfs: nilfs_mount.h
src/sys/fs/udf: udf_mount.h

Log Message:
Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.

OK'd by reinoud in email (from 4 Feb 2019).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_nilfs/mount_nilfs.8
cvs rdiff -u -r1.3 -r1.4 src/sbin/mount_nilfs/mount_nilfs.c
cvs rdiff -u -r1.13 -r1.14 src/sbin/mount_udf/mount_udf.8
cvs rdiff -u -r1.14 -r1.15 src/sbin/mount_udf/mount_udf.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/iomd/qms.c
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/pci/auixp.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pci/auixpreg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/auixpvar.h
cvs rdiff -u -r1.1 -r1.2 src/sys/fs/nilfs/nilfs_mount.h
cvs rdiff -u -r1.3 -r1.4 src/sys/fs/udf/udf_mount.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 16 20:43:18 UTC 2019

Modified Files:
src/lib/libc/gen: sysconf.c
src/sys/sys: unistd.h

Log Message:
Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN

Thanks nros@ for the correct definition


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/gen/sysconf.c
cvs rdiff -u -r1.61 -r1.62 src/sys/sys/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct 16 20:43:18 UTC 2019

Modified Files:
src/lib/libc/gen: sysconf.c
src/sys/sys: unistd.h

Log Message:
Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN

Thanks nros@ for the correct definition


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/gen/sysconf.c
cvs rdiff -u -r1.61 -r1.62 src/sys/sys/unistd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/sysconf.c
diff -u src/lib/libc/gen/sysconf.c:1.41 src/lib/libc/gen/sysconf.c:1.42
--- src/lib/libc/gen/sysconf.c:1.41	Thu Aug  4 06:43:43 2016
+++ src/lib/libc/gen/sysconf.c	Wed Oct 16 20:43:18 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysconf.c,v 1.41 2016/08/04 06:43:43 christos Exp $	*/
+/*	$NetBSD: sysconf.c,v 1.42 2019/10/16 20:43:18 maya Exp $	*/
 
 /*-
  * Copyright (c) 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)sysconf.c	8.2 (Berkeley) 3/20/94";
 #else
-__RCSID("$NetBSD: sysconf.c,v 1.41 2016/08/04 06:43:43 christos Exp $");
+__RCSID("$NetBSD: sysconf.c,v 1.42 2019/10/16 20:43:18 maya Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -339,6 +339,8 @@ sysconf(int name)
 		return _GETPW_R_SIZE_MAX;
 
 /* Unsorted */
+	case _SC_RTSIG_MAX:
+		return SIGRTMAX - SIGRTMIN;
 	case _SC_HOST_NAME_MAX:
 		return MAXHOSTNAMELEN;
 	case _SC_PASS_MAX:

Index: src/sys/sys/unistd.h
diff -u src/sys/sys/unistd.h:1.61 src/sys/sys/unistd.h:1.62
--- src/sys/sys/unistd.h:1.61	Thu Aug  4 06:43:43 2016
+++ src/sys/sys/unistd.h	Wed Oct 16 20:43:18 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: unistd.h,v 1.61 2016/08/04 06:43:43 christos Exp $	*/
+/*	$NetBSD: unistd.h,v 1.62 2019/10/16 20:43:18 maya Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -320,6 +320,7 @@
 #define	_SC_DELAYTIMER_MAX		92
 #define	_SC_SIGQUEUE_MAX		93
 #define	_SC_REALTIME_SIGNALS		94
+#define	_SC_RTSIG_MAX			95
 
 /* Extensions found in Solaris and Linux. */
 #define	_SC_PHYS_PAGES		121



CVS commit: src/common/lib/libc/arch/aarch64/gen

2019-10-12 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Oct 12 09:22:36 UTC 2019

Modified Files:
src/common/lib/libc/arch/aarch64/gen: byte_swap_8.S

Log Message:
Remove htonll and ntohll as symbols from aarch64 libc.

Other architectures do not define them, and so we don't provide a
function declaration in any header.

This means a package may detect it with a link-test and then fail
due to the missing declaration, like sysutils/collectd currently does.

Done this way as aarch64 has not had a release yet. Discussed with releng.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/common/lib/libc/arch/aarch64/gen

2019-10-12 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Oct 12 09:22:36 UTC 2019

Modified Files:
src/common/lib/libc/arch/aarch64/gen: byte_swap_8.S

Log Message:
Remove htonll and ntohll as symbols from aarch64 libc.

Other architectures do not define them, and so we don't provide a
function declaration in any header.

This means a package may detect it with a link-test and then fail
due to the missing declaration, like sysutils/collectd currently does.

Done this way as aarch64 has not had a release yet. Discussed with releng.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S
diff -u src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S:1.1 src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S:1.2
--- src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S:1.1	Sun Aug 10 05:47:35 2014
+++ src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S	Sat Oct 12 09:22:36 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap_8.S,v 1.1 2014/08/10 05:47:35 matt Exp $ */
+/* $NetBSD: byte_swap_8.S,v 1.2 2019/10/12 09:22:36 maya Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,3 @@ ENTRY(FUNC)
 	rev		x0, x0
 	ret
 END(FUNC)
-#if BYTE_ORDER == LITTLE_ENDIAN
-STRONG_ALIAS(_C_LABEL(ntohll), FUNC)
-STRONG_ALIAS(_C_LABEL(htonll), FUNC)
-#endif



CVS commit: src/sys/arch/sh3/include

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 15:25:31 UTC 2019

Modified Files:
src/sys/arch/sh3/include: ptrace.h

Log Message:
Provide PTRACE_ILLEGAL_ASM, using an illegal slot instruction


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sh3/include/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sh3/include/ptrace.h
diff -u src/sys/arch/sh3/include/ptrace.h:1.15 src/sys/arch/sh3/include/ptrace.h:1.16
--- src/sys/arch/sh3/include/ptrace.h:1.15	Tue Jun 18 21:18:13 2019
+++ src/sys/arch/sh3/include/ptrace.h	Fri Oct  4 15:25:30 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ptrace.h,v 1.15 2019/06/18 21:18:13 kamil Exp $	*/
+/*	$NetBSD: ptrace.h,v 1.16 2019/10/04 15:25:30 maya Exp $	*/
 
 /*
  * Copyright (c) 1993 Christopher G. Demetriou
@@ -72,6 +72,8 @@
 #define PTRACE_REG_SP(r)	r->r_r15
 #define PTRACE_REG_INTV(r)	r->r_r0
 
+#define PTRACE_ILLEGAL_ASM	__asm __volatile ("0: bra 0b; bra 0b" : : : "memory")
+
 #define PTRACE_BREAKPOINT_TRAP	0xc3
 #define PTRACE_BREAKPOINT	((const uint8_t[]) { 0xc3, 0xc3 })
 #define PTRACE_BREAKPOINT_ASM	__asm __volatile("trapa %0" :: "i"(PTRACE_BREAKPOINT_TRAP))



CVS commit: src/sys/arch/sh3/include

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 15:25:31 UTC 2019

Modified Files:
src/sys/arch/sh3/include: ptrace.h

Log Message:
Provide PTRACE_ILLEGAL_ASM, using an illegal slot instruction


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sh3/include/ptrace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 12:46:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: ira-color.c

Log Message:
We might've switched modes, re-init the move cost table again if necessary.

Fixes unlikely segfault on VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/ira-color.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 12:46:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: ira-color.c

Log Message:
We might've switched modes, re-init the move cost table again if necessary.

Fixes unlikely segfault on VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/ira-color.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/ira-color.c
diff -u src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6 src/external/gpl3/gcc/dist/gcc/ira-color.c:1.7
--- src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6	Tue Oct  1 10:38:16 2019
+++ src/external/gpl3/gcc/dist/gcc/ira-color.c	Fri Oct  4 12:46:43 2019
@@ -1377,6 +1377,7 @@ update_costs_from_allocno (ira_allocno_t
 	 e.g. DImode for AREG on x86.  For such cases the
 	 register move cost will be maximal.  */
 	  mode = narrower_subreg_mode (mode, ALLOCNO_MODE (cp->second));
+	  ira_init_register_move_cost_if_necessary (mode);
 	  
 	  cost = (cp->second == allocno
 		  ? ira_register_move_cost[mode][rclass][aclass]



CVS commit: src/doc

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 11:18:55 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Note /rescue is a separate set now.


To generate a diff of this commit:
cvs rdiff -u -r1.2586 -r1.2587 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2586 src/doc/CHANGES:1.2587
--- src/doc/CHANGES:1.2586	Tue Oct  1 16:08:56 2019
+++ src/doc/CHANGES	Wed Oct  2 11:18:55 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2586 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2587 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -49,4 +49,5 @@ Changes from NetBSD 9.0 to NetBSD 10.0:
 		[jmcneill 20190921]
 	libpcap: Import 1.9.1. [christos 20191001]
 	tcpdump(8): Import 4.9.3. [christos 20191001]
+	rescue(8): Moved into a separate, rescue-only set. [maya 20191001]
 



CVS commit: src/doc

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 11:18:55 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Note /rescue is a separate set now.


To generate a diff of this commit:
cvs rdiff -u -r1.2586 -r1.2587 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 11:16:04 UTC 2019

Modified Files:
src/distrib/amd64/uefi-installimage: Makefile.bootimage
src/distrib/common/bootimage: Makefile.bootimage
src/distrib/miniroot: install.sub
src/distrib/notes/atari: xfer
src/distrib/notes/mvme68k: xfer
src/distrib/sets: README maketars regpkgset sets.subr
src/distrib/sun2: MakeInstTape
src/distrib/sun3: MakeInstTape
src/distrib/utils/embedded: mkimage
src/etc: Makefile
src/usr.sbin/sysinst: defs.h msg.mi.de msg.mi.en msg.mi.es msg.mi.fr
msg.mi.pl util.c
src/usr.sbin/sysinst/arch/acorn32: md.h
src/usr.sbin/sysinst/arch/amd64: md.h
src/usr.sbin/sysinst/arch/amiga: md.h
src/usr.sbin/sysinst/arch/arc: md.h
src/usr.sbin/sysinst/arch/atari: md.h
src/usr.sbin/sysinst/arch/bebox: md.h
src/usr.sbin/sysinst/arch/cats: md.h
src/usr.sbin/sysinst/arch/cobalt: md.h
src/usr.sbin/sysinst/arch/emips: md.h
src/usr.sbin/sysinst/arch/evbarm: md.h
src/usr.sbin/sysinst/arch/evbmips: md.h
src/usr.sbin/sysinst/arch/evbppc: md.h
src/usr.sbin/sysinst/arch/hp300: md.h
src/usr.sbin/sysinst/arch/hpcarm: md.h
src/usr.sbin/sysinst/arch/hpcmips: md.h
src/usr.sbin/sysinst/arch/hpcsh: md.h
src/usr.sbin/sysinst/arch/i386: md.h
src/usr.sbin/sysinst/arch/landisk: md.h
src/usr.sbin/sysinst/arch/mvme68k: md.h
src/usr.sbin/sysinst/arch/ofppc: md.h
src/usr.sbin/sysinst/arch/playstation2: md.h
src/usr.sbin/sysinst/arch/pmax: md.h
src/usr.sbin/sysinst/arch/prep: md.h
src/usr.sbin/sysinst/arch/sandpoint: md.h
src/usr.sbin/sysinst/arch/sgimips: md.h
src/usr.sbin/sysinst/arch/shark: md.h
src/usr.sbin/sysinst/arch/x68k: md.h
src/usr.sbin/sysinst/arch/zaurus: md.h
Added Files:
src/distrib/sets/lists/rescue: mi
Removed Files:
src/distrib/sets/lists/base: rescue.mi

Log Message:
Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
src/distrib/amd64/uefi-installimage/Makefile.bootimage
cvs rdiff -u -r1.21 -r1.22 src/distrib/common/bootimage/Makefile.bootimage
cvs rdiff -u -r1.48 -r1.49 src/distrib/miniroot/install.sub
cvs rdiff -u -r1.16 -r1.17 src/distrib/notes/atari/xfer
cvs rdiff -u -r1.18 -r1.19 src/distrib/notes/mvme68k/xfer
cvs rdiff -u -r1.13 -r1.14 src/distrib/sets/README
cvs rdiff -u -r1.89 -r1.90 src/distrib/sets/maketars
cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/regpkgset
cvs rdiff -u -r1.186 -r1.187 src/distrib/sets/sets.subr
cvs rdiff -u -r1.46 -r0 src/distrib/sets/lists/base/rescue.mi
cvs rdiff -u -r0 -r1.1 src/distrib/sets/lists/rescue/mi
cvs rdiff -u -r1.1 -r1.2 src/distrib/sun2/MakeInstTape
cvs rdiff -u -r1.2 -r1.3 src/distrib/sun3/MakeInstTape
cvs rdiff -u -r1.69 -r1.70 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.440 -r1.441 src/etc/Makefile
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/msg.mi.de
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/msg.mi.en
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/sysinst/msg.mi.es
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/sysinst/msg.mi.fr
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/sysinst/msg.mi.pl
cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/sysinst/util.c
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/acorn32/md.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/arch/amd64/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/amiga/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/arc/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/atari/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/bebox/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/cats/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/cobalt/md.h
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sysinst/arch/emips/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbarm/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbmips/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbppc/md.h
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sysinst/arch/hp300/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/hpcarm/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/hpcmips/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/hpcsh/md.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/arch/i386/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/landisk/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/mvme68k/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/ofppc/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/playstation2/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin

CVS commit: src

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 11:16:04 UTC 2019

Modified Files:
src/distrib/amd64/uefi-installimage: Makefile.bootimage
src/distrib/common/bootimage: Makefile.bootimage
src/distrib/miniroot: install.sub
src/distrib/notes/atari: xfer
src/distrib/notes/mvme68k: xfer
src/distrib/sets: README maketars regpkgset sets.subr
src/distrib/sun2: MakeInstTape
src/distrib/sun3: MakeInstTape
src/distrib/utils/embedded: mkimage
src/etc: Makefile
src/usr.sbin/sysinst: defs.h msg.mi.de msg.mi.en msg.mi.es msg.mi.fr
msg.mi.pl util.c
src/usr.sbin/sysinst/arch/acorn32: md.h
src/usr.sbin/sysinst/arch/amd64: md.h
src/usr.sbin/sysinst/arch/amiga: md.h
src/usr.sbin/sysinst/arch/arc: md.h
src/usr.sbin/sysinst/arch/atari: md.h
src/usr.sbin/sysinst/arch/bebox: md.h
src/usr.sbin/sysinst/arch/cats: md.h
src/usr.sbin/sysinst/arch/cobalt: md.h
src/usr.sbin/sysinst/arch/emips: md.h
src/usr.sbin/sysinst/arch/evbarm: md.h
src/usr.sbin/sysinst/arch/evbmips: md.h
src/usr.sbin/sysinst/arch/evbppc: md.h
src/usr.sbin/sysinst/arch/hp300: md.h
src/usr.sbin/sysinst/arch/hpcarm: md.h
src/usr.sbin/sysinst/arch/hpcmips: md.h
src/usr.sbin/sysinst/arch/hpcsh: md.h
src/usr.sbin/sysinst/arch/i386: md.h
src/usr.sbin/sysinst/arch/landisk: md.h
src/usr.sbin/sysinst/arch/mvme68k: md.h
src/usr.sbin/sysinst/arch/ofppc: md.h
src/usr.sbin/sysinst/arch/playstation2: md.h
src/usr.sbin/sysinst/arch/pmax: md.h
src/usr.sbin/sysinst/arch/prep: md.h
src/usr.sbin/sysinst/arch/sandpoint: md.h
src/usr.sbin/sysinst/arch/sgimips: md.h
src/usr.sbin/sysinst/arch/shark: md.h
src/usr.sbin/sysinst/arch/x68k: md.h
src/usr.sbin/sysinst/arch/zaurus: md.h
Added Files:
src/distrib/sets/lists/rescue: mi
Removed Files:
src/distrib/sets/lists/base: rescue.mi

Log Message:
Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
src/distrib/amd64/uefi-installimage/Makefile.bootimage
cvs rdiff -u -r1.21 -r1.22 src/distrib/common/bootimage/Makefile.bootimage
cvs rdiff -u -r1.48 -r1.49 src/distrib/miniroot/install.sub
cvs rdiff -u -r1.16 -r1.17 src/distrib/notes/atari/xfer
cvs rdiff -u -r1.18 -r1.19 src/distrib/notes/mvme68k/xfer
cvs rdiff -u -r1.13 -r1.14 src/distrib/sets/README
cvs rdiff -u -r1.89 -r1.90 src/distrib/sets/maketars
cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/regpkgset
cvs rdiff -u -r1.186 -r1.187 src/distrib/sets/sets.subr
cvs rdiff -u -r1.46 -r0 src/distrib/sets/lists/base/rescue.mi
cvs rdiff -u -r0 -r1.1 src/distrib/sets/lists/rescue/mi
cvs rdiff -u -r1.1 -r1.2 src/distrib/sun2/MakeInstTape
cvs rdiff -u -r1.2 -r1.3 src/distrib/sun3/MakeInstTape
cvs rdiff -u -r1.69 -r1.70 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.440 -r1.441 src/etc/Makefile
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/msg.mi.de
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/msg.mi.en
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/sysinst/msg.mi.es
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/sysinst/msg.mi.fr
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/sysinst/msg.mi.pl
cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/sysinst/util.c
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/acorn32/md.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/arch/amd64/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/amiga/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/arc/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/atari/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/bebox/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/cats/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/cobalt/md.h
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sysinst/arch/emips/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbarm/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbmips/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/evbppc/md.h
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sysinst/arch/hp300/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/hpcarm/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/hpcmips/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/hpcsh/md.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/arch/i386/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/landisk/md.h
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/mvme68k/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/ofppc/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/playstation2/md.h
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin

CVS commit: src/distrib/sets/lists/base

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 09:47:25 UTC 2019

Modified Files:
src/distrib/sets/lists/base: rescue.mi
Removed Files:
src/distrib/sets/lists/base: rescue.ad.m68k rescue.mac68k rescue.macppc
rescue.sparc64 rescue.sun2

Log Message:
Mark /rescue/edlabel as MI-obsolete, so we can remove all remaining MD
rescue set list files.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/distrib/sets/lists/base/rescue.ad.m68k \
src/distrib/sets/lists/base/rescue.macppc \
src/distrib/sets/lists/base/rescue.sparc64 \
src/distrib/sets/lists/base/rescue.sun2
cvs rdiff -u -r1.3 -r0 src/distrib/sets/lists/base/rescue.mac68k
cvs rdiff -u -r1.45 -r1.46 src/distrib/sets/lists/base/rescue.mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/base/rescue.mi
diff -u src/distrib/sets/lists/base/rescue.mi:1.45 src/distrib/sets/lists/base/rescue.mi:1.46
--- src/distrib/sets/lists/base/rescue.mi:1.45	Wed Oct  2 09:45:10 2019
+++ src/distrib/sets/lists/base/rescue.mi	Wed Oct  2 09:47:24 2019
@@ -1,4 +1,4 @@
-# $NetBSD: rescue.mi,v 1.45 2019/10/02 09:45:10 maya Exp $
+# $NetBSD: rescue.mi,v 1.46 2019/10/02 09:47:24 maya Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -33,6 +33,7 @@
 ./rescue/dumplfsbase-rescue-root
 ./rescue/echo	base-rescue-root
 ./rescue/ed	base-rescue-root
+./rescue/edlabelbase-obsolete	obsolete
 ./rescue/egrep	base-rescue-root
 ./rescue/ekermitbase-rescue-root
 ./rescue/ex	base-rescue-root



CVS commit: src/distrib/sets/lists/base

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 09:47:25 UTC 2019

Modified Files:
src/distrib/sets/lists/base: rescue.mi
Removed Files:
src/distrib/sets/lists/base: rescue.ad.m68k rescue.mac68k rescue.macppc
rescue.sparc64 rescue.sun2

Log Message:
Mark /rescue/edlabel as MI-obsolete, so we can remove all remaining MD
rescue set list files.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/distrib/sets/lists/base/rescue.ad.m68k \
src/distrib/sets/lists/base/rescue.macppc \
src/distrib/sets/lists/base/rescue.sparc64 \
src/distrib/sets/lists/base/rescue.sun2
cvs rdiff -u -r1.3 -r0 src/distrib/sets/lists/base/rescue.mac68k
cvs rdiff -u -r1.45 -r1.46 src/distrib/sets/lists/base/rescue.mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 09:45:10 UTC 2019

Modified Files:
src/distrib/sets/lists/base: rescue.mi
src/rescue: Makefile
Removed Files:
src/distrib/sets/lists/base: rescue.ad.arm rescue.ad.m68k.shl
rescue.i386 rescue.shark rescue.sparc rescue.vax
src/rescue: list.ldconfig

Log Message:
Remove ldconfig from /rescue, and mark it MI obsolete.

- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/distrib/sets/lists/base/rescue.ad.arm \
src/distrib/sets/lists/base/rescue.ad.m68k.shl \
src/distrib/sets/lists/base/rescue.shark \
src/distrib/sets/lists/base/rescue.vax
cvs rdiff -u -r1.4 -r0 src/distrib/sets/lists/base/rescue.i386
cvs rdiff -u -r1.44 -r1.45 src/distrib/sets/lists/base/rescue.mi
cvs rdiff -u -r1.5 -r0 src/distrib/sets/lists/base/rescue.sparc
cvs rdiff -u -r1.37 -r1.38 src/rescue/Makefile
cvs rdiff -u -r1.1 -r0 src/rescue/list.ldconfig

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2019-10-02 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Oct  2 09:45:10 UTC 2019

Modified Files:
src/distrib/sets/lists/base: rescue.mi
src/rescue: Makefile
Removed Files:
src/distrib/sets/lists/base: rescue.ad.arm rescue.ad.m68k.shl
rescue.i386 rescue.shark rescue.sparc rescue.vax
src/rescue: list.ldconfig

Log Message:
Remove ldconfig from /rescue, and mark it MI obsolete.

- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/distrib/sets/lists/base/rescue.ad.arm \
src/distrib/sets/lists/base/rescue.ad.m68k.shl \
src/distrib/sets/lists/base/rescue.shark \
src/distrib/sets/lists/base/rescue.vax
cvs rdiff -u -r1.4 -r0 src/distrib/sets/lists/base/rescue.i386
cvs rdiff -u -r1.44 -r1.45 src/distrib/sets/lists/base/rescue.mi
cvs rdiff -u -r1.5 -r0 src/distrib/sets/lists/base/rescue.sparc
cvs rdiff -u -r1.37 -r1.38 src/rescue/Makefile
cvs rdiff -u -r1.1 -r0 src/rescue/list.ldconfig

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/base/rescue.mi
diff -u src/distrib/sets/lists/base/rescue.mi:1.44 src/distrib/sets/lists/base/rescue.mi:1.45
--- src/distrib/sets/lists/base/rescue.mi:1.44	Wed Dec 12 07:04:05 2018
+++ src/distrib/sets/lists/base/rescue.mi	Wed Oct  2 09:45:10 2019
@@ -1,4 +1,4 @@
-# $NetBSD: rescue.mi,v 1.44 2018/12/12 07:04:05 maxv Exp $
+# $NetBSD: rescue.mi,v 1.45 2019/10/02 09:45:10 maya Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -64,6 +64,7 @@
 ./rescue/ksh	base-rescue-root
 ./rescue/ktrace	base-rescue-root
 ./rescue/ktruss	base-rescue-root
+./rescue/ldconfigbase-obsolete	obsolete
 ./rescue/ldd	base-rescue-root
 ./rescue/less	base-rescue-root
 ./rescue/lfs_cleanerdbase-rescue-root

Index: src/rescue/Makefile
diff -u src/rescue/Makefile:1.37 src/rescue/Makefile:1.38
--- src/rescue/Makefile:1.37	Sun Jan 27 04:42:46 2019
+++ src/rescue/Makefile	Wed Oct  2 09:45:10 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2019/01/27 04:42:46 dholland Exp $
+#	$NetBSD: Makefile,v 1.38 2019/10/02 09:45:10 maya Exp $
 
 NOLIBCSANITIZER=	# defined
 NOSANITIZER=		# defined
@@ -27,13 +27,6 @@ LISTS=		${.CURDIR}/list
 TARGETDIR=	${DESTDIR}/rescue
 PARSELISTENV+=  TARGETDIR=${TARGETDIR:Q}
 
-.for f in ldconfig
-PROG_${f}!=	cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG
-.if (${PROG_${f}} != "")
-LISTS+=		${.CURDIR}/list.${f}
-.endif
-.endfor
-
 .for f in pdisk
 PROG_${f}!=	cd ${NETBSDSRCDIR}/external/bsd/${f}/bin && ${MAKE} -V PROG
 .if (${PROG_${f}} != "")



CVS commit: src/sys/dev/ic

2019-09-25 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Sep 25 15:51:37 UTC 2019

Modified Files:
src/sys/dev/ic: isp_netbsd.c

Log Message:
Make clang -Wformat-security happier by not passing a (constant) variable
as the format string,
const string msg; printf(msg)
  -> printf("%s", msg);

the strings are all known and don't currently contain format variables.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/ic/isp_netbsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/isp_netbsd.c
diff -u src/sys/dev/ic/isp_netbsd.c:1.94 src/sys/dev/ic/isp_netbsd.c:1.95
--- src/sys/dev/ic/isp_netbsd.c:1.94	Sat Sep 21 07:31:56 2019
+++ src/sys/dev/ic/isp_netbsd.c	Wed Sep 25 15:51:37 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_netbsd.c,v 1.94 2019/09/21 07:31:56 maxv Exp $ */
+/* $NetBSD: isp_netbsd.c,v 1.95 2019/09/25 15:51:37 maya Exp $ */
 /*
  * Platform (NetBSD) dependent common attachment code for Qlogic adapters.
  */
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: isp_netbsd.c,v 1.94 2019/09/21 07:31:56 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isp_netbsd.c,v 1.95 2019/09/25 15:51:37 maya Exp $");
 
 #include 
 #include 
@@ -1261,7 +1261,7 @@ isp_async(struct ispsoftc *isp, ispasync
    "Starting Loop Down Timer");
 			}
 		}
-		isp_prt(isp, ISP_LOGINFO, msg);
+		isp_prt(isp, ISP_LOGINFO, "%s", msg);
 		break;
 case ISPASYNC_LOOP_UP:
 		/*
@@ -1457,7 +1457,7 @@ isp_async(struct ispsoftc *isp, ispasync
 			isp_prt(isp, ISP_LOGSANCFG|ISP_LOGDEBUG0,
 			   "Stopping Loop Down Timer");
 		}
-		isp_prt(isp, ISP_LOGINFO, msg);
+		isp_prt(isp, ISP_LOGINFO, "%s", msg);
 		/*
 		 * We can set blocked here because we know it's now okay
 		 * to try and run isp_fc_runstate (in order to build loop



CVS commit: src/sys/dev/ic

2019-09-25 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Sep 25 15:51:37 UTC 2019

Modified Files:
src/sys/dev/ic: isp_netbsd.c

Log Message:
Make clang -Wformat-security happier by not passing a (constant) variable
as the format string,
const string msg; printf(msg)
  -> printf("%s", msg);

the strings are all known and don't currently contain format variables.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/ic/isp_netbsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp
diff -u xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.2
--- xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2	Tue Sep 24 17:39:40 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp	Wed Sep 25 14:53:20 2019
@@ -34,6 +34,7 @@
  * cannot use immediate values.
  */
 
+#include 
 #include "brw_fs.h"
 #include "brw_cfg.h"
 #include "util/half_float.h"
@@ -232,7 +233,7 @@ get_constant_value(const struct gen_devi
   break;
}
case BRW_REGISTER_TYPE_Q: {
-  int64_t val = !can_do_source_mods ? src->d64 : abs(src->d64);
+  int64_t val = !can_do_source_mods ? src->d64 : std::abs(src->d64);
   memcpy(out, , 8);
   break;
}



CVS commit: xsrc/external/mit/MesaLib/src

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 21:40:37 UTC 2019

Added Files:
xsrc/external/mit/MesaLib/src/gallium/auxiliary: u_format_table.c
u_indices_gen.c u_unfilled_gen.c
xsrc/external/mit/MesaLib/src/gallium/drivers/radeonsi: si_driinfo.h
xsrc/external/mit/MesaLib/src/mapi/glapi: api_exec.c enums.c
glapi_mapi_tmp.h indirect.c indirect.h indirect_init.c
indirect_size.c indirect_size.h marshal_generated.c
xsrc/external/mit/MesaLib/src/mesa: format_info.h get_hash.h matypes.h
xsrc/external/mit/MesaLib/src/mesa/main: dispatch.h format_fallback.c
format_pack.c format_unpack.c marshal_generated.h remap_helper.h
xsrc/external/mit/MesaLib/src/mesa/program: program_parse.tab.c
program_parse.tab.h
xsrc/external/mit/MesaLib/src/util: format_srgb.c
xsrc/external/mit/MesaLib/src/util/xmlpool: options.h

Log Message:
Add more generated files from mesa 19.1.7.

Generated by doing a regular build using pkgsrc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_format_table.c \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_indices_gen.c \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_unfilled_gen.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/gallium/drivers/radeonsi/si_driinfo.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/mapi/glapi/api_exec.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/enums.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/glapi_mapi_tmp.h \
xsrc/external/mit/MesaLib/src/mapi/glapi/marshal_generated.c
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.h \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_init.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/mesa/format_info.h \
xsrc/external/mit/MesaLib/src/mesa/matypes.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mesa/get_hash.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mesa/main/dispatch.h \
xsrc/external/mit/MesaLib/src/mesa/main/remap_helper.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/mesa/main/format_fallback.c \
xsrc/external/mit/MesaLib/src/mesa/main/format_pack.c \
xsrc/external/mit/MesaLib/src/mesa/main/format_unpack.c \
xsrc/external/mit/MesaLib/src/mesa/main/marshal_generated.h
cvs rdiff -u -r0 -r1.3 \
xsrc/external/mit/MesaLib/src/mesa/program/program_parse.tab.c \
xsrc/external/mit/MesaLib/src/mesa/program/program_parse.tab.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/util/format_srgb.c
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/util/xmlpool/options.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffs are larger than 1MB and have been omitted


CVS commit: xsrc/external/mit/MesaLib/src

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 21:40:37 UTC 2019

Added Files:
xsrc/external/mit/MesaLib/src/gallium/auxiliary: u_format_table.c
u_indices_gen.c u_unfilled_gen.c
xsrc/external/mit/MesaLib/src/gallium/drivers/radeonsi: si_driinfo.h
xsrc/external/mit/MesaLib/src/mapi/glapi: api_exec.c enums.c
glapi_mapi_tmp.h indirect.c indirect.h indirect_init.c
indirect_size.c indirect_size.h marshal_generated.c
xsrc/external/mit/MesaLib/src/mesa: format_info.h get_hash.h matypes.h
xsrc/external/mit/MesaLib/src/mesa/main: dispatch.h format_fallback.c
format_pack.c format_unpack.c marshal_generated.h remap_helper.h
xsrc/external/mit/MesaLib/src/mesa/program: program_parse.tab.c
program_parse.tab.h
xsrc/external/mit/MesaLib/src/util: format_srgb.c
xsrc/external/mit/MesaLib/src/util/xmlpool: options.h

Log Message:
Add more generated files from mesa 19.1.7.

Generated by doing a regular build using pkgsrc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_format_table.c \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_indices_gen.c \
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_unfilled_gen.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/gallium/drivers/radeonsi/si_driinfo.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/mapi/glapi/api_exec.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/enums.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/glapi_mapi_tmp.h \
xsrc/external/mit/MesaLib/src/mapi/glapi/marshal_generated.c
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.h \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_init.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.c \
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/mesa/format_info.h \
xsrc/external/mit/MesaLib/src/mesa/matypes.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mesa/get_hash.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/mesa/main/dispatch.h \
xsrc/external/mit/MesaLib/src/mesa/main/remap_helper.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/mesa/main/format_fallback.c \
xsrc/external/mit/MesaLib/src/mesa/main/format_pack.c \
xsrc/external/mit/MesaLib/src/mesa/main/format_unpack.c \
xsrc/external/mit/MesaLib/src/mesa/main/marshal_generated.h
cvs rdiff -u -r0 -r1.3 \
xsrc/external/mit/MesaLib/src/mesa/program/program_parse.tab.c \
xsrc/external/mit/MesaLib/src/mesa/program/program_parse.tab.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/MesaLib/src/util/format_srgb.c
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/util/xmlpool/options.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 21:33:48 UTC 2019

Modified Files:
src/external/mit/xorg/lib: libmesa.mk

Log Message:
Adjust .PATH


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/mit/xorg/lib/libmesa.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/libmesa.mk
diff -u src/external/mit/xorg/lib/libmesa.mk:1.8 src/external/mit/xorg/lib/libmesa.mk:1.9
--- src/external/mit/xorg/lib/libmesa.mk:1.8	Tue Sep 24 19:29:41 2019
+++ src/external/mit/xorg/lib/libmesa.mk	Tue Sep 24 21:33:48 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: libmesa.mk,v 1.8 2019/09/24 19:29:41 maya Exp $
+#	$NetBSD: libmesa.mk,v 1.9 2019/09/24 21:33:48 maya Exp $
 #
 # Consumer of this Makefile should set MESA_SRC_MODULES.
 
@@ -424,7 +424,7 @@ SRCS.state_tracker= \
 	st_tgsi_lower_yuv.c
 
 # Program sources
-PATHS.program=	mesa/program ../../src/mesa/main/program
+PATHS.program=	mesa/program ../../src/mesa/program
 INCLUDES.program=	glsl
 SRCS.program= \
 	arbprogparse.c \



CVS commit: src/external/mit/xorg/lib

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 21:33:48 UTC 2019

Modified Files:
src/external/mit/xorg/lib: libmesa.mk

Log Message:
Adjust .PATH


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/mit/xorg/lib/libmesa.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS import: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:59:32 UTC 2019

Update of /cvsroot/xsrc/external/mit/MesaLib/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv24458

Log Message:
import mesa-19.1.7 (for pathnames including the word 'core')

Now with the correct paths...

Status:

Vendor Tag: xorg
Release Tags:   mesalib-19-1-7

N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrcommon.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrelemlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrelemlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib1.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib1.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib2.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib2.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrobject.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrobject.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/coord.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/coord.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/api.cpp
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/api.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/arena.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_clear.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_impl.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_sample.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_singlesample.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/binner.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/binner.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/blend.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/clip.cpp
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/clip.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/conservativeRast.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/context.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/depthstencil.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/fifo.hpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_conversion.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_traits.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_types.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_utils.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/frontend.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/knobs.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/knobs_init.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/multisample.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/pa.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer_impl.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/ringbuffer.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/state.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/state_funcs.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tessellator.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/threads.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/threads.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tilemgr.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tilemgr.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tileset.h
C

CVS import: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:59:32 UTC 2019

Update of /cvsroot/xsrc/external/mit/MesaLib/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv24458

Log Message:
import mesa-19.1.7 (for pathnames including the word 'core')

Now with the correct paths...

Status:

Vendor Tag: xorg
Release Tags:   mesalib-19-1-7

N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrcommon.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrelemlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrelemlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib1.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib1.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib2.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrlib2.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrobject.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/addrobject.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/coord.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/coord.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/api.cpp
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/api.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/arena.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_clear.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_impl.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_sample.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/backend_singlesample.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/binner.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/binner.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/blend.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/clip.cpp
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/clip.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/conservativeRast.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/context.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/depthstencil.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/fifo.hpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_conversion.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_traits.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_types.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/format_utils.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/frontend.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/frontend.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/knobs.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/knobs_init.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/multisample.h
U xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/pa.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rasterizer_impl.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/ringbuffer.h
C xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/state.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/state_funcs.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tessellator.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/threads.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/threads.h
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tilemgr.cpp
C 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tilemgr.h
U 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/tileset.h
C

CVS import: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:44:34 UTC 2019

Update of /cvsroot/xsrc/external/mit/MesaLib/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv6180

Log Message:
import mesa-19.1.7 (for pathnames including the word 'core')

Status:

Vendor Tag: xorg
Release Tags:   mesalib-19-1-7

N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrcommon.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrelemlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrelemlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib1.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib1.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib2.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib2.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrobject.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrobject.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/coord.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/coord.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/api.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/api.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/arena.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_clear.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_impl.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_sample.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_singlesample.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/binner.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/binner.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/blend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/clip.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/clip.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/conservativeRast.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/context.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/depthstencil.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/fifo.hpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_conversion.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_traits.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_types.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_utils.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/frontend.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/frontend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/knobs.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/knobs_init.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/multisample.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/pa.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/pa_avx.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer_impl.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rdtsc_core.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rdtsc_core.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/ringbuffer.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/state.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/state_funcs.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/tessellator.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/threads.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/threads.h
N 
xsrc

CVS import: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:44:34 UTC 2019

Update of /cvsroot/xsrc/external/mit/MesaLib/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv6180

Log Message:
import mesa-19.1.7 (for pathnames including the word 'core')

Status:

Vendor Tag: xorg
Release Tags:   mesalib-19-1-7

N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrcommon.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrelemlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrelemlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib1.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib1.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib2.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrlib2.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrobject.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/addrobject.h
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/coord.cpp
N xsrc/external/mit/MesaLib/dist/src/amd/addrlib/src/core/core/coord.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/api.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/api.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/arena.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_clear.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_impl.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_sample.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/backend_singlesample.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/binner.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/binner.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/blend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/clip.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/clip.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/conservativeRast.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/context.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/depthstencil.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/fifo.hpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_conversion.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_traits.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_types.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/format_utils.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/frontend.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/frontend.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/knobs.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/knobs_init.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/multisample.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/pa.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/pa_avx.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rasterizer_impl.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rdtsc_core.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/rdtsc_core.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/ringbuffer.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/state.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/state_funcs.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/tessellator.h
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/threads.cpp
N 
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/core/core/threads.h
N 
xsrc

CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/isl

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:07:16 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/isl: isl_tiled_memcpy.c

Log Message:
Avoid conflict with netbsd's highly visible bswap32 definition.

Re-patching, patch was lost in a rename.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/isl

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:07:16 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/isl: isl_tiled_memcpy.c

Log Message:
Avoid conflict with netbsd's highly visible bswap32 definition.

Re-patching, patch was lost in a rename.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c
diff -u xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.1.1.1 xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.1.1.1	Tue Sep 24 17:44:21 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c	Tue Sep 24 20:07:16 2019
@@ -64,6 +64,10 @@ ror(uint32_t n, uint32_t d)
return (n >> d) | (n << (32 - d));
 }
 
+/* Handle conflicting declaration and conflicting macro in netbsd */
+#undef bswap32
+#define bswap32(n) __builtin_bswap32(n)
+#if 0
 static inline uint32_t
 bswap32(uint32_t n)
 {
@@ -76,6 +80,7 @@ bswap32(uint32_t n)
   (n << 24);
 #endif
 }
+#endif
 
 /**
  * Copy RGBA to BGRA - swap R and B.



CVS commit: src/doc

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 19:50:49 UTC 2019

Modified Files:
src/doc: 3RDPARTY

Log Message:
Updated mesa.


To generate a diff of this commit:
cvs rdiff -u -r1.1650 -r1.1651 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 19:50:49 UTC 2019

Modified Files:
src/doc: 3RDPARTY

Log Message:
Updated mesa.


To generate a diff of this commit:
cvs rdiff -u -r1.1650 -r1.1651 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1650 src/doc/3RDPARTY:1.1651
--- src/doc/3RDPARTY:1.1650	Mon Sep 23 13:49:40 2019
+++ src/doc/3RDPARTY	Tue Sep 24 19:50:49 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1650 2019/09/23 13:49:40 taca Exp $
+#	$NetBSD: 3RDPARTY,v 1.1651 2019/09/24 19:50:49 maya Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -917,12 +917,12 @@ Location:	sys/external/bsd/drm/dist
 Notes:
 
 Package:	MesaLib
-Version:	18.3.4
-Current Vers:	19.0.1
+Version:	19.1.7
+Current Vers:	19.1.7
 Maintainer:	mesa-git@?
 Archive Site:	ftp://ftp.freedesktop.org/pub/mesa/
 Home Page:	http://www.mesa3d.org/
-Date:		2019-04-05
+Date:		2019-09-24
 Mailing List:
 Responsible:	riastradh, mrg
 License:	ISC



CVS commit: xsrc/external/mit/MesaLib/src/arch

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:49:00 UTC 2019

Removed Files:
xsrc/external/mit/MesaLib/src/arch/i386: matypes.h
xsrc/external/mit/MesaLib/src/arch/x86_64: matypes.h

Log Message:
Remove now unused generated files.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/MesaLib/src/arch/i386/matypes.h
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/MesaLib/src/arch/x86_64/matypes.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/src/arch

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:49:00 UTC 2019

Removed Files:
xsrc/external/mit/MesaLib/src/arch/i386: matypes.h
xsrc/external/mit/MesaLib/src/arch/x86_64: matypes.h

Log Message:
Remove now unused generated files.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/MesaLib/src/arch/i386/matypes.h
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/MesaLib/src/arch/x86_64/matypes.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:47:33 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_queue.c

Log Message:
Apply u_queue.c patch from pkgsrc:

atexit is not a good idea in shared libraries.
attempt to port cpuset logic to netbsd


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/util/u_queue.c
diff -u xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.3 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.4
--- xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.3	Tue Sep 24 19:26:51 2019
+++ xsrc/external/mit/MesaLib/dist/src/util/u_queue.c	Tue Sep 24 19:47:33 2019
@@ -48,15 +48,22 @@ static once_flag atexit_once_flag = ONCE
 static struct list_head queue_list;
 static mtx_t exit_mutex = _MTX_INITIALIZER_NP;
 
+#define HAVE_NOATEXIT
+#if defined(HAVE_NOATEXIT)
 static int global_init_called = 0;
 
 static void __attribute__((__destructor__))
+#else
+static void
+#endif
 atexit_handler(void)
 {
struct util_queue *iter;
 
+#if defined(HAVE_NOATEXIT)
if (!global_init_called)
   return;
+#endif
 
mtx_lock(_mutex);
/* Wait for all queues to assert idle. */
@@ -70,7 +77,11 @@ static void
 global_init(void)
 {
LIST_INITHEAD(_list);
+#if defined(HAVE_NOATEXIT)
global_init_called = 1;
+#else
+   atexit(atexit_handler);
+#endif
 }
 
 static void
@@ -251,12 +262,25 @@ util_queue_thread_func(void *input)
   /* Don't inherit the thread affinity from the parent thread.
* Set the full mask.
*/
+#if defined(__NetBSD__)
+  cpuset_t *cpuset;
+  cpuset = cpuset_create();
+  if (cpuset != NULL) {
+ cpuset_zero(cpuset);
+ for (unsigned i = 0; i < cpuset_size(cpuset); i++)
+cpuset_set(i, cpuset);
+
+ pthread_setaffinity_np(pthread_self(), cpuset_size(cpuset), cpuset);
+ cpuset_destroy(cpuset);
+  }
+#else
   cpu_set_t cpuset;
   CPU_ZERO();
   for (unsigned i = 0; i < CPU_SETSIZE; i++)
  CPU_SET(i, );
 
   pthread_setaffinity_np(pthread_self(), sizeof(cpuset), );
+#endif
}
 #endif
 



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:47:33 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_queue.c

Log Message:
Apply u_queue.c patch from pkgsrc:

atexit is not a good idea in shared libraries.
attempt to port cpuset logic to netbsd


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/compiler/nir

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:45:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/compiler/nir: nir_builtin_builder.h

Log Message:
Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h
diff -u xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.2
--- xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.1.1.2	Tue Sep 24 16:44:18 2019
+++ xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h	Tue Sep 24 19:45:13 2019
@@ -179,6 +179,10 @@ nir_minmag(nir_builder *b, nir_ssa_def *
return nir_bcsel(b, condy, y, nir_bcsel(b, condx, x, nir_fmin(b, x, y)));
 }
 
+#ifdef __vax__
+#define NAN FLT_MAX
+#endif
+
 static inline nir_ssa_def*
 nir_nan(nir_builder *b, nir_ssa_def *x)
 {



CVS commit: xsrc/external/mit/MesaLib/dist/src/compiler/nir

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:45:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/compiler/nir: nir_builtin_builder.h

Log Message:
Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/xorg/lib

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 19:29:42 UTC 2019

Modified Files:
src/external/mit/xorg/lib: driver.mk libglsl.mk libloader.mk libmesa.mk
src/external/mit/xorg/lib/dri: Makefile
src/external/mit/xorg/lib/gallium: Makefile
src/external/mit/xorg/lib/libEGL: Makefile
src/external/mit/xorg/lib/libGL: Makefile mesa-ver.mk
src/external/mit/xorg/lib/libgbm: Makefile
src/external/mit/xorg/lib/libglapi: Makefile

Log Message:
Update build logic for mesa 19.1.7.

A lot of files are now living outside of dist, since they're not in the
distributed sources: they're generated, usually by python/meson.

The remaining changes are due to files being moved around.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/driver.mk \
src/external/mit/xorg/lib/libloader.mk
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/libglsl.mk
cvs rdiff -u -r1.7 -r1.8 src/external/mit/xorg/lib/libmesa.mk
cvs rdiff -u -r1.32 -r1.33 src/external/mit/xorg/lib/dri/Makefile
cvs rdiff -u -r1.34 -r1.35 src/external/mit/xorg/lib/gallium/Makefile
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libEGL/Makefile
cvs rdiff -u -r1.27 -r1.28 src/external/mit/xorg/lib/libGL/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libGL/mesa-ver.mk
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/libgbm/Makefile
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libglapi/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/driver.mk
diff -u src/external/mit/xorg/lib/driver.mk:1.3 src/external/mit/xorg/lib/driver.mk:1.4
--- src/external/mit/xorg/lib/driver.mk:1.3	Sun Mar 10 10:51:58 2019
+++ src/external/mit/xorg/lib/driver.mk	Tue Sep 24 19:29:41 2019
@@ -1,9 +1,10 @@
-#	$NetBSD: driver.mk,v 1.3 2019/03/10 10:51:58 mrg Exp $
+#	$NetBSD: driver.mk,v 1.4 2019/09/24 19:29:41 maya Exp $
 
 # stuff both dri and gallium drivers need.
 
 # util
 .PATH:		${X11SRCDIR.Mesa}/src/util
+.PATH:		${X11SRCDIR.Mesa}/../src/util
 
 SRCS.util=	\
 	hash_table.c \
@@ -49,3 +50,6 @@ SRCS+=	${SRCS.util}
 .PATH: ${X11SRCDIR.Mesa}/src/mesa/drivers/dri/common
 SRCS+=	utils.c dri_util.c xmlconfig.c
 SRCS+=	megadriver_stub.c
+
+CPPFLAGS.dri_util.c+=		-I${X11SRCDIR.Mesa}/../src/util
+
Index: src/external/mit/xorg/lib/libloader.mk
diff -u src/external/mit/xorg/lib/libloader.mk:1.3 src/external/mit/xorg/lib/libloader.mk:1.4
--- src/external/mit/xorg/lib/libloader.mk:1.3	Sun Mar 10 10:51:58 2019
+++ src/external/mit/xorg/lib/libloader.mk	Tue Sep 24 19:29:41 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: libloader.mk,v 1.3 2019/03/10 10:51:58 mrg Exp $
+#	$NetBSD: libloader.mk,v 1.4 2019/09/24 19:29:41 maya Exp $
 
 # makefile fragment for mesa src/loader
 
@@ -12,8 +12,11 @@ SRCS.loader += \
 
 .for _f in ${SRCS.loader}
 CPPFLAGS.${_f}= 	-I${X11SRCDIR.Mesa}/src/util \
+			-I${X11SRCDIR.Mesa}/../src/util \
 			-I${X11SRCDIR.Mesa}/src/mesa \
 			-I${X11SRCDIR.Mesa}/src \
+			-DGL_LIB_NAME=\"libGL.so.3\" \
+			-DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules/dri\" \
 			-DUSE_DRICONF
 .endfor
 

Index: src/external/mit/xorg/lib/libglsl.mk
diff -u src/external/mit/xorg/lib/libglsl.mk:1.5 src/external/mit/xorg/lib/libglsl.mk:1.6
--- src/external/mit/xorg/lib/libglsl.mk:1.5	Sun Apr  7 08:14:20 2019
+++ src/external/mit/xorg/lib/libglsl.mk	Tue Sep 24 19:29:41 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: libglsl.mk,v 1.5 2019/04/07 08:14:20 maya Exp $
+#	$NetBSD: libglsl.mk,v 1.6 2019/09/24 19:29:41 maya Exp $
 
 LIBGLSL_GENERATED_CXX_FILES = \
 	glsl_lexer.cpp \
@@ -8,7 +8,14 @@ LIBGLSL_GENERATED_CXX_FILES = \
 COPTS.vtn_glsl450.c+=	${${ACTIVE_CC} == "clang":? -Wno-error=enum-conversion :}
 
 CPPFLAGS+=	-I${X11SRCDIR.Mesa}/src/compiler \
-		-I${X11SRCDIR.Mesa}/src/compiler/nir
+		-I${X11SRCDIR.Mesa}/../src/compiler \
+		-I${X11SRCDIR.Mesa}/src/compiler/nir \
+		-I${X11SRCDIR.Mesa}/../src/compiler/nir \
+		-I${X11SRCDIR.Mesa}/src/compiler/glsl \
+		-I${X11SRCDIR.Mesa}/../src/compiler/glsl \
+		-I${X11SRCDIR.Mesa}/src/compiler/glsl/glcpp \
+		-I${X11SRCDIR.Mesa}/../src/compiler/glsl/glcpp \
+		-I${X11SRCDIR.Mesa}/src/compiler/spirv
 
 LIBGLSL_FILES = \
 	ast_array_index.cpp \
@@ -21,28 +28,30 @@ LIBGLSL_FILES = \
 	builtin_variables.cpp \
 	generate_ir.cpp \
 	gl_nir_lower_atomics.c \
-	gl_nir_lower_samplers.c \
-	gl_nir_lower_samplers_as_deref.c \
 	gl_nir_link_atomics.c \
 	gl_nir_link_uniform_initializers.c \
 	gl_nir_link_uniforms.c \
 	gl_nir_link_xfb.c \
 	gl_nir_linker.c \
+	gl_nir_lower_bindless_images.c \
+	gl_nir_lower_buffers.c \
+	gl_nir_lower_samplers.c \
+	gl_nir_lower_samplers_as_deref.c \
 	glsl_parser_extras.cpp \
 	glsl_symbol_table.cpp \
 	glsl_to_nir.cpp \
 	hir_field_selection.cpp \
+	ir.cpp \
 	ir_array_refcount.cpp \
 	ir_basic_block.cpp \
 	ir_builder.cpp \
 	ir_clone.cpp \
 	ir_constant_expression.cp

CVS commit: src/external/mit/xorg/lib

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 19:29:42 UTC 2019

Modified Files:
src/external/mit/xorg/lib: driver.mk libglsl.mk libloader.mk libmesa.mk
src/external/mit/xorg/lib/dri: Makefile
src/external/mit/xorg/lib/gallium: Makefile
src/external/mit/xorg/lib/libEGL: Makefile
src/external/mit/xorg/lib/libGL: Makefile mesa-ver.mk
src/external/mit/xorg/lib/libgbm: Makefile
src/external/mit/xorg/lib/libglapi: Makefile

Log Message:
Update build logic for mesa 19.1.7.

A lot of files are now living outside of dist, since they're not in the
distributed sources: they're generated, usually by python/meson.

The remaining changes are due to files being moved around.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/driver.mk \
src/external/mit/xorg/lib/libloader.mk
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/libglsl.mk
cvs rdiff -u -r1.7 -r1.8 src/external/mit/xorg/lib/libmesa.mk
cvs rdiff -u -r1.32 -r1.33 src/external/mit/xorg/lib/dri/Makefile
cvs rdiff -u -r1.34 -r1.35 src/external/mit/xorg/lib/gallium/Makefile
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libEGL/Makefile
cvs rdiff -u -r1.27 -r1.28 src/external/mit/xorg/lib/libGL/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libGL/mesa-ver.mk
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/libgbm/Makefile
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libglapi/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:26:53 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/include/GL/internal: dri_interface.h
xsrc/external/mit/MesaLib/dist/src/compiler/glsl:
glsl_parser_extras.cpp
xsrc/external/mit/MesaLib/dist/src/egl/main: eglglobals.c
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util: u_format.c
u_format_tests.c
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/vl:
vl_compositor.c vl_compositor.h
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe:
lp_setup_point.c
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen:
nv50_ir.h nv50_ir_lowering_nvc0.cpp nv50_ir_lowering_nvc0.h
nv50_ir_print.cpp nv50_ir_ra.cpp nv50_ir_util.h
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600:
evergreen_compute.c r600_query.c r600_texture.c
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeon:
radeon_vcn_enc.c
xsrc/external/mit/MesaLib/dist/src/gallium/include/pipe:
p_video_state.h
xsrc/external/mit/MesaLib/dist/src/gallium/state_trackers/dri:
dri_drawable.c dri_screen.h
xsrc/external/mit/MesaLib/dist/src/gbm/backends/dri: gbm_dri.c
xsrc/external/mit/MesaLib/dist/src/glx: dri_common.c dri_glx.c
glxclient.h
xsrc/external/mit/MesaLib/dist/src/intel/compiler: brw_vue_map.c
xsrc/external/mit/MesaLib/dist/src/intel/dev: gen_device_info.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915:
intel_context.c intel_context.h intel_screen.c intel_screen.h
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965:
intel_batchbuffer.c intel_buffer_objects.c intel_mipmap_tree.c
intel_mipmap_tree.h intel_screen.c intel_screen.h
intel_tex_validate.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau:
nouveau_context.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon:
radeon_common_context.c
xsrc/external/mit/MesaLib/dist/src/mesa/main: context.c dlist.c
xsrc/external/mit/MesaLib/dist/src/mesa/swrast: s_span.c
xsrc/external/mit/MesaLib/dist/src/mesa/vbo: vbo_exec_draw.c
xsrc/external/mit/MesaLib/dist/src/util: disk_cache.c ralloc.c u_math.h
u_process.c u_queue.c
Added Files:
xsrc/external/mit/MesaLib/dist: Android.common.mk Android.mk
CleanSpec.mk
xsrc/external/mit/MesaLib/dist/bin: bugzilla_mesa.sh get-pick-list.sh
shortlog_mesa.sh
xsrc/external/mit/MesaLib/dist/src/gallium: Android.common.mk
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm: f.cpp
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/i915: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/softpipe: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/svga: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/i915/drm: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/svga/drm: Android.mk
xsrc/external/mit/MesaLib/dist/src/loader: Android.mk
xsrc/external/mit/MesaLib/dist/src/mapi: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa: Android.gen.mk
Android.libmesa_dricore.mk Android.libmesa_glsl_utils.mk
Android.libmesa_st_mesa.mk Android.mesa_gen_matypes.mk Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri: Android.mk
gen-symbol-redefs.py
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/common: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/r200: Doxyfile
xsrc/external/mit/MesaLib/dist/src/mesa/program: Android.mk
xsrc/external/mit/MesaLib/dist/src/util: Android.mk
Removed Files:
xsrc/external/mit/MesaLib/dist: Makefile.am Makefile.in aclocal.m4

CVS commit: xsrc/external/mit/MesaLib/src

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:21:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/src/mapi: shared-glapi_glapi_mapi_tmp.h
Added Files:
xsrc/external/mit/MesaLib/src/amd/common: sid_tables.h
xsrc/external/mit/MesaLib/src/compiler: ir_expression_operation.h
xsrc/external/mit/MesaLib/src/compiler/glsl: float64_glsl.h
glsl_lexer.cpp glsl_parser.cpp glsl_parser.h
ir_expression_operation_constant.h
ir_expression_operation_strings.h
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp: glcpp-lex.c
glcpp-parse.c glcpp-parse.h
xsrc/external/mit/MesaLib/src/compiler/nir: nir_builder_opcodes.h
nir_constant_expressions.c nir_intrinsics.c nir_intrinsics.h
nir_opcodes.c nir_opcodes.h nir_opt_algebraic.c
xsrc/external/mit/MesaLib/src/compiler/spirv: spirv_info.c
vtn_gather_types.c
xsrc/external/mit/MesaLib/src/intel: brw_nir_trig_workarounds.c
isl_format_layout.c
xsrc/external/mit/MesaLib/src/intel/genxml: gen10_pack.h gen11_pack.h
gen45_pack.h gen4_pack.h gen5_pack.h gen6_pack.h gen75_pack.h
gen7_pack.h gen8_pack.h gen9_pack.h genX_bits.h genX_xml.h
xsrc/external/mit/MesaLib/src/intel/perf: gen_perf_metrics.c
gen_perf_metrics.h
xsrc/external/mit/MesaLib/src/pkgconfig: dri.pc.in egl.pc.in gbm.pc.in
gl.pc.in

Log Message:
Update generated files from a regular build of mesa 19.1.7.

The pkgconfig files are now generated using meson, no more .pc.in files,
so I made my own using the result of the pkgsrc build.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/amd/common/sid_tables.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/ir_expression_operation.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/glsl/float64_glsl.h \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_lexer.cpp \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.cpp \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.h \

xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_constant.h \

xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_strings.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-lex.c \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.c \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_builder_opcodes.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_constant_expressions.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opt_algebraic.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/spirv/spirv_info.c \
xsrc/external/mit/MesaLib/src/compiler/spirv/vtn_gather_types.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/brw_nir_trig_workarounds.c \
xsrc/external/mit/MesaLib/src/intel/isl_format_layout.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/genxml/gen10_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen11_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen45_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen4_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen5_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen6_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen75_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen7_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen8_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen9_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/genX_bits.h \
xsrc/external/mit/MesaLib/src/intel/genxml/genX_xml.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/perf/gen_perf_metrics.c \
xsrc/external/mit/MesaLib/src/intel/perf/gen_perf_metrics.h
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/MesaLib/src/mapi/shared-glapi_glapi_mapi_tmp.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/pkgconfig/dri.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/egl.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/gbm.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/gl.pc.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffs are larger than 1MB and have been omitted


CVS commit: xsrc/external/mit/MesaLib/src

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:21:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/src/mapi: shared-glapi_glapi_mapi_tmp.h
Added Files:
xsrc/external/mit/MesaLib/src/amd/common: sid_tables.h
xsrc/external/mit/MesaLib/src/compiler: ir_expression_operation.h
xsrc/external/mit/MesaLib/src/compiler/glsl: float64_glsl.h
glsl_lexer.cpp glsl_parser.cpp glsl_parser.h
ir_expression_operation_constant.h
ir_expression_operation_strings.h
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp: glcpp-lex.c
glcpp-parse.c glcpp-parse.h
xsrc/external/mit/MesaLib/src/compiler/nir: nir_builder_opcodes.h
nir_constant_expressions.c nir_intrinsics.c nir_intrinsics.h
nir_opcodes.c nir_opcodes.h nir_opt_algebraic.c
xsrc/external/mit/MesaLib/src/compiler/spirv: spirv_info.c
vtn_gather_types.c
xsrc/external/mit/MesaLib/src/intel: brw_nir_trig_workarounds.c
isl_format_layout.c
xsrc/external/mit/MesaLib/src/intel/genxml: gen10_pack.h gen11_pack.h
gen45_pack.h gen4_pack.h gen5_pack.h gen6_pack.h gen75_pack.h
gen7_pack.h gen8_pack.h gen9_pack.h genX_bits.h genX_xml.h
xsrc/external/mit/MesaLib/src/intel/perf: gen_perf_metrics.c
gen_perf_metrics.h
xsrc/external/mit/MesaLib/src/pkgconfig: dri.pc.in egl.pc.in gbm.pc.in
gl.pc.in

Log Message:
Update generated files from a regular build of mesa 19.1.7.

The pkgconfig files are now generated using meson, no more .pc.in files,
so I made my own using the result of the pkgsrc build.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/amd/common/sid_tables.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/ir_expression_operation.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/glsl/float64_glsl.h \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_lexer.cpp \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.cpp \
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.h \

xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_constant.h \

xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_strings.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-lex.c \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.c \
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_builder_opcodes.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_constant_expressions.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.c \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.h \
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opt_algebraic.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/compiler/spirv/spirv_info.c \
xsrc/external/mit/MesaLib/src/compiler/spirv/vtn_gather_types.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/brw_nir_trig_workarounds.c \
xsrc/external/mit/MesaLib/src/intel/isl_format_layout.c
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/genxml/gen10_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen11_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen45_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen4_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen5_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen6_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen75_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen7_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen8_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/gen9_pack.h \
xsrc/external/mit/MesaLib/src/intel/genxml/genX_bits.h \
xsrc/external/mit/MesaLib/src/intel/genxml/genX_xml.h
cvs rdiff -u -r0 -r1.1 \
xsrc/external/mit/MesaLib/src/intel/perf/gen_perf_metrics.c \
xsrc/external/mit/MesaLib/src/intel/perf/gen_perf_metrics.h
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/MesaLib/src/mapi/shared-glapi_glapi_mapi_tmp.h
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/MesaLib/src/pkgconfig/dri.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/egl.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/gbm.pc.in \
xsrc/external/mit/MesaLib/src/pkgconfig/gl.pc.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/mit/expat/lib/libexpat

2019-09-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Sep 24 19:19:49 UTC 2019

Modified Files:
src/external/mit/expat/lib/libexpat: Makefile

Log Message:
Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have  for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mit/expat/lib/libexpat/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   4   >