Date: Sun, 13 Dec 2020 12:43:08 -0700 From: Warner Losh <imp@bsdimp.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: Alan Somers <asomers@freebsd.org>, Ian Lepore <ian@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: char devices without SI_UNMAPPED? Message-ID: <CANCZdfpvDAJ=t3MnQK4%2BghyCJ_bZ6m_QE-r44fn-WFoSaSLNuA@mail.gmail.com> In-Reply-To: <X9ZuOB7Q3PmOgvvY@kib.kiev.ua> References: <CAOtMX2hFVjFAnNb9wxRTuRsvVptrUsy5C%2BrQECZW-kpKiBXjXA@mail.gmail.com> <6dd927984d69ef0e95e1e90651bcd8087bc4eec4.camel@freebsd.org> <CANCZdfqyLHhuq7h1w7dWh3HoywByOg2RxrezXGTPn_xfYAsTSw@mail.gmail.com> <CAOtMX2iu4ipzdvTer=BzG0hgOiZE2nFHwkrq20bPPoXQe9qkfA@mail.gmail.com> <X9ZuOB7Q3PmOgvvY@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 13, 2020 at 12:40 PM Konstantin Belousov <kostikbel@gmail.com> wrote: > On Sun, Dec 13, 2020 at 12:20:49PM -0700, Alan Somers wrote: > > On Sun, Dec 13, 2020 at 11:20 AM Warner Losh <imp@bsdimp.com> wrote: > > > > > > > > > > > On Sun, Dec 13, 2020 at 11:18 AM Ian Lepore <ian@freebsd.org> wrote: > > > > > >> On Sun, 2020-12-13 at 10:27 -0700, alan somers wrote: > > >> > I'm trying to exercise the aio code that handles character devices > > >> > that > > >> > don't set the SI_UNMAPPED flag. But I can't find any. Are there > any > > >> > remaining character devices that don't allow unmapped I/O? > > >> > > > >> > -Alan > > >> > > > >> > > >> I assume you mean disk-like devices? Probably mmcsd, flash/at45d, > > >> flash/mx25l. > > >> > > > > > Hm. I don't have any of those. > > > > > > > > > > There are times that it's disabled administratively as well, but that > may > > > be on a per-I/O basis. > > > vfs.zfs.vol.unmap_enabled: 1 > > > > > > > This one doesn't seem to work. It looks like the only functionality it > > gates these days is DIOCGDELETE. > > > > > > > vfs.unmapped_buf_allowed: 1 > > > > > > > Well, this one works. Thanks for the tip. Unfortunately, it's a > tunable, > > so I can't use it for any kind of automated testing. > > There is enough geoms which do not support unmapped bios, even if only in > some configurations. Recursively grep for G_PF_ACCEPT_UNMAPPED in sys/geom > to see what I mean. > > After all, an option for geom_nop should be trivial, to force all bios to > map, instead of inheriting from the lower provider. > There's also several CAM SIMs that don't set the PIM_UNMAPPED flag either: % grep -rl cam_sim_alloc . | wc 58 58 1378 % grep -lr PIM_UNMAPPED . | wc 28 28 658 Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpvDAJ=t3MnQK4%2BghyCJ_bZ6m_QE-r44fn-WFoSaSLNuA>