Re: Larger kernel fonts in RAMDISK_CD?

2021-06-09 Thread Frederic Cambus
On Sun, Jun 06, 2021 at 10:42:59PM +0200, Frederic Cambus wrote: > On Wed, Jun 02, 2021 at 07:56:07PM -0600, Theo de Raadt wrote: > > I am satisfied. > > > > That is one architecture. I suggest checking which others can use > > the same treatment. > > I

Re: Larger kernel fonts in RAMDISK_CD?

2021-06-06 Thread Frederic Cambus
On Wed, Jun 02, 2021 at 07:56:07PM -0600, Theo de Raadt wrote: > I am satisfied. > > That is one architecture. I suggest checking which others can use > the same treatment. I was going to build i386 releases, but then realized we don't have efifb on this platform, so we don't need the fonts on

Re: Larger kernel fonts in RAMDISK_CD?

2021-06-02 Thread Frederic Cambus
On Mon, May 31, 2021 at 12:57:47PM +0200, Mark Kettenis wrote: > > +option FONT_SPLEEN8x16 > > +option FONT_SPLEEN12x24 > > +option FONT_SPLEEN16x32 > > +option FONT_SPLEEN32x64 > > + > > option RAMDISK_HOOKS > > option

Larger kernel fonts in RAMDISK_CD?

2021-05-31 Thread Frederic Cambus
Hi tech@, The size of kernel fonts in RAMDISKs has long been a problem on systems with large screen resolutions booting via EFI, as currently only the 8x16 font is built into RAMDISKs. As those systems are becoming more common, I would like to revisit the topic. Currently, we decide which font

Re: rasops1

2021-01-07 Thread Frederic Cambus
On Thu, Dec 24, 2020 at 12:25:40AM +0100, Patrick Wildt wrote: > > On Fri, Dec 18, 2020 at 10:33:52PM +0100, Mark Kettenis wrote: > > > > > The diff below disables the optimized functions on little-endian > > > architectures such that we always use rasops1_putchar(). This makes > > > ssdfb(4)

Re: rasops1

2020-12-23 Thread Frederic Cambus
Hi Mark, On Fri, Dec 18, 2020 at 10:33:52PM +0100, Mark Kettenis wrote: > The diff below disables the optimized functions on little-endian > architectures such that we always use rasops1_putchar(). This makes > ssdfb(4) work with the default 8x16 font on arm64. I noticed it was committed

Document the WSDISPLAYIO_GETSCREENTYPE ioctl in wsdisplay.4

2020-09-14 Thread Frederic Cambus
Hi tech@, Here is a diff to document the WSDISPLAYIO_GETSCREENTYPE ioctl in wsdisplay.4. The wsdisplay_screentype structure definition can be found in . Comments? OK? Index: wsdisplay.4 === RCS file:

Reflect recent wsfontload(8) changes in the man page

2020-08-07 Thread Frederic Cambus
Hi tech@, We are now getting the default values for font height and width using the WSDISPLAYIO_GETSCREENTYPE ioctl, so they always match the currently loaded font metrics. The following diff reflects that in the man page. As text-mode VGA compatible displays are increasingly uncommon, I took

Re: wsfontload(8): restore working default height/width values

2020-08-04 Thread Frederic Cambus
On Tue, Jul 21, 2020 at 12:44:57PM +0200, Frederic Cambus wrote: > Currently, wsfontload(8) hardcodes the default height and width values > for the font to be loaded as 12x22 when using framebuffer consoles, and > as 8x16 when in text mode. The 12x22 value wasn't correct in case we &g

Re: Allow the WSDISPLAYIO_GETSCREENTYPE ioctl on tty*cfg

2020-08-04 Thread Frederic Cambus
On Mon, Jul 20, 2020 at 04:36:46PM +0200, Frederic Cambus wrote: > Here is a diff to allow the WSDISPLAYIO_GETSCREENTYPE ioctl on the > tty*cfg device, passing it back to tty*0. > > I need this to restore working defaults in wsfontload(8). > > Comments? OK? > &g

wsfontload(8): restore working default height/width values

2020-07-21 Thread Frederic Cambus
Hi tech@, Currently, wsfontload(8) hardcodes the default height and width values for the font to be loaded as 12x22 when using framebuffer consoles, and as 8x16 when in text mode. The 12x22 value wasn't correct in case we felt back to the smaller 8x16 font for screen widths smaller than 960px,

Re: Use VGA text mode palette RGB values in rasops(9)

2020-07-20 Thread Frederic Cambus
On Wed, Jul 15, 2020 at 10:26:12AM -0600, Theo de Raadt wrote: > > So here is a new iteration taking feedback into account, using the > > #if WS_DEFAULT_BG == WSCOL_WHITE check for clarity, and also switching > > the foreground color of printed kernel messages to light cyan to improve > > contrast

Allow the WSDISPLAYIO_GETSCREENTYPE ioctl on tty*cfg

2020-07-20 Thread Frederic Cambus
Hi tech@, Here is a diff to allow the WSDISPLAYIO_GETSCREENTYPE ioctl on the tty*cfg device, passing it back to tty*0. I need this to restore working defaults in wsfontload(8). Comments? OK? Index: sys/dev/wscons/wsdisplay.c ===

Re: wsfontload(8): display number of characters in a loaded font

2020-07-20 Thread Frederic Cambus
On Fri, Jul 17, 2020 at 11:04:07AM +0100, Stuart Henderson wrote: > Seems useful. While it's not especially likely anyone is parsing the output > of this, just in case they are it's usually more admin-friendly to add a new > column at the end unless there's a good reason not to. Good point, here

wsfontload(8): display number of characters in a loaded font

2020-07-16 Thread Frederic Cambus
Hi tech@, Here is a diff to add a new column to wsfontload -l output, which reports the number of characters contained in a loaded font. It's especially useful with user loaded fonts as they can contain more than 256 characters. Below is the current output of wsfontload -l, without the diff: #

Merge if blocks in rasops_mapchar()

2020-07-16 Thread Frederic Cambus
Hi tech@, Here is a diff to merge the two if blocks checking if the font in use contains a given character in rasops_mapchar(). Comments? OK? Index: sys/dev/rasops/rasops.c === RCS file: /cvs/src/sys/dev/rasops/rasops.c,v

Re: Use VGA text mode palette RGB values in rasops(9)

2020-07-15 Thread Frederic Cambus
On Wed, Jul 08, 2020 at 12:37:11PM +1000, Jonathan Gray wrote: > Thanks for the explanation. The proposal makes more sense from the > point of view of the existing colours being darker for openboot black > on white. > > #if WS_DEFAULT_BG == WSCOL_WHITE > > old > > #else > > new > > #endif >

Re: [PATCH} Optimized rasops32 putchar

2020-07-15 Thread Frederic Cambus
On Tue, Jul 14, 2020 at 12:15:37PM +0200, Frederic Cambus wrote: > The diff makes sense to me, I will commit it this week with some minor > style(9) fixes for the switch statement (don't indent the case), unless > I hear objections. Committed, thanks again!

Re: [PATCH} Optimized rasops32 putchar

2020-07-14 Thread Frederic Cambus
On Sun, Jul 12, 2020 at 07:16:13PM +0200, Frederic Cambus wrote: > On Fri, Jun 26, 2020 at 07:42:50AM -0700, jo...@armadilloaerospace.com wrote: > > Optimized 32 bit character rendering with unrolled rows and pairwise > > foreground / background pixel rendering. > > > >

Use CPU_IS_PRIMARY macro on alpha and mips64

2020-07-13 Thread Frederic Cambus
Hi tech@, Here is a diff to use the CPU_IS_PRIMARY macro on alpha and mips64. Comments? OK? Index: sys/arch/alpha/alpha/cpu.c === RCS file: /cvs/src/sys/arch/alpha/alpha/cpu.c,v retrieving revision 1.43 diff -u -p -r1.43 cpu.c ---

Use CPU_IS_PRIMARY macro in identifycpu() on i386

2020-07-13 Thread Frederic Cambus
Hi tech@, Here is a diff to use the CPU_IS_PRIMARY macro in identifycpu() on i386. Comments? OK? Index: sys/arch/i386/i386/machdep.c === RCS file: /cvs/src/sys/arch/i386/i386/machdep.c,v retrieving revision 1.636 diff -u -p -r1.636

Re: [PATCH} Optimized rasops32 putchar

2020-07-12 Thread Frederic Cambus
On Fri, Jun 26, 2020 at 07:42:50AM -0700, jo...@armadilloaerospace.com wrote: > Optimized 32 bit character rendering with unrolled rows and pairwise > foreground / background pixel rendering. > > If it weren't for the 5x8 font, I would have just assumed everything > was an even width and made the

Re: [PATCH] fast conditional console scrolling

2020-07-11 Thread Frederic Cambus
On Fri, Jul 10, 2020 at 03:26:16PM +0200, Frederic Cambus wrote: > On Fri, Jun 26, 2020 at 07:49:55AM -0700, jo...@armadilloaerospace.com wrote: > > I should have been more rigorous -- I had two different changes running > > on my system, as well as forcing it to use the 12x24 fo

Re: [PATCH] fast conditional console scrolling

2020-07-10 Thread Frederic Cambus
On Fri, Jun 26, 2020 at 07:49:55AM -0700, jo...@armadilloaerospace.com wrote: > I should have been more rigorous -- I had two different changes running > on my system, as well as forcing it to use the 12x24 font for a 160x45 > console. > > If you apply the "Optimized rasops32 putchar" patch I

Enable Spleen 16x32 and 32x64 on armv7

2020-07-08 Thread Frederic Cambus
Hi tech@, Here is a diff to enable spleen16x32 and spleen32x64 on armv7 for GENERIC kernels, like on arm64. I'm using the 16x32 version on my Cubieboard2. I'm not sure if any armv7 devices we support is actually capable of driving a 4K screen, so the 32x64 version might not be useful. If this

Add "Spleen 6x12" font to wsfont

2020-07-08 Thread Frederic Cambus
an 1970 00:00:00 - +++ sys/dev/wsfont/spleen6x12.h 8 Jul 2020 10:16:31 - @@ -0,0 +1,1294 @@ +/* $OpenBSD$ */ + +/* + * Copyright (c) 2018-2020 Frederic Cambus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are

Re: Use VGA text mode palette RGB values in rasops(9)

2020-07-07 Thread Frederic Cambus
On Wed, Jul 08, 2020 at 12:06:27AM +1000, Jonathan Gray wrote: > On Tue, Jul 07, 2020 at 03:16:33PM +0200, Frederic Cambus wrote: > > Hi tech@, > > > > The recent spike of interest around framebuffer consoles has prompted > > me to revisit a proposal I

Use VGA text mode palette RGB values in rasops(9)

2020-07-07 Thread Frederic Cambus
Hi tech@, The recent spike of interest around framebuffer consoles has prompted me to revisit a proposal I sent back in early 2017 [1]. Aesthetics considerations aside, kettenis@ raised the concern that colors from the original rasops palette carefully matched what OpenFirmware uses for the

Use CPU_IS_PRIMARY macro in identifycpu() on amd64

2020-07-06 Thread Frederic Cambus
Hi tech@, While having a glance at identcpu.c to see how CPU flags were printed for each CPU, I noticed we have the following macro in cpu.h: #define CPU_IS_PRIMARY(ci) ((ci)->ci_flags & CPUF_PRIMARY) Here is a diff to use it in identifycpu() on amd64. Comments? OK? Index:

C99 initializers in wsdisplay_font struct definitions

2020-06-22 Thread Frederic Cambus
Hi tech@, Here is a diff to use C99 initializers in wsdisplay_font struct definitions for Spleen kernel fonts. Comments? OK? Index: sys/dev/wsfont/spleen12x24.h === RCS file: /cvs/src/sys/dev/wsfont/spleen12x24.h,v retrieving

Enable virtual consoles on armv7

2020-06-18 Thread Frederic Cambus
Hi tech@, Here is a diff to enable virtual consoles on armv7, the same way it is done on arm64. Also see the diff I sent earlier to sync fbtab. Tested on a Cubieboard2. Comments? OK? Index: etc/etc.armv7/ttys === RCS file:

Sync armv7 fbtab with arm64 fbtab

2020-06-17 Thread Frederic Cambus
Hi tech@, Here is a diff to sync armv7 fbtab with arm64 fbtab. I left out drm devices as there aren't any on this platform. Comments? OK? Index: etc/etc.armv7/fbtab === RCS file: /cvs/src/etc/etc.armv7/fbtab,v retrieving revision

Add entry for wsfont_init.9 in man9 Makefile

2020-06-17 Thread Frederic Cambus
Hi tech@, I commited wsfont_init.9 last year to document the wsfont module of wscons, but apparently forgot to add an entry in the man9 Makefile. The following diff does exactly that. Comments? OK? Index: share/man/man9/Makefile

Enable bwfm(4) on armv7 RAMDISK for SD/MMC and USB devices

2020-06-17 Thread Frederic Cambus
Hi tech@, Here is a diff to enable bwfm(4) on armv7 RAMDISK for SD/MMC and USB devices. Discussed with patrick@. Tested on a Cubieboard2 by building a RAMDISK kernel, which shows my USB Wi-Fi dongle attaching when booting it. I checked the miniroot images and they all have several megabytes of

Re: Enable building wsmoused on arm64 and armv7

2020-05-28 Thread Frederic Cambus
On Thu, May 28, 2020 at 10:52:44AM -0600, Theo de Raadt wrote: > -MANSUBDIR= i386 amd64 alpha > +MANSUBDIR= i386 amd64 arm64 armv7 alpha > > Actually, I suggest making this a MI man page. Delete that line, and see > where the files land. I'll adjust sets. Yes, makes sense. Just

Enable building wsmoused on arm64 and armv7

2020-05-28 Thread Frederic Cambus
Hi tech@, Here is a diff to enable building wsmoused on arm64 and armv7. Builds and works correctly on my CubieBoard2. Comments? OK? Index: usr.sbin/wsmoused/Makefile === RCS file: /cvs/src/usr.sbin/wsmoused/Makefile,v retrieving

Enable building wsfontload on arm64 and armv7

2020-05-28 Thread Frederic Cambus
Hi tech@, Here is a diff to enable building wsfontload on arm64 and armv7. Builds and works correctly on my CubieBoard2. Comments? OK? Index: usr.sbin/wsfontload/Makefile === RCS file: /cvs/src/usr.sbin/wsfontload/Makefile,v

Enable scrollback in simplefb(4)

2020-05-28 Thread Frederic Cambus
Hi tech@, Here is a diff to enable scrollback in simplefb(4). Tested on OpenBSD/armv7 on my CubieBoard2. The only arm64 device I own is headless so I cannot test on this platform. Comments? OK? Index: sys/dev/fdt/simplefb.c ===

Re: clear margins when remapping efifb

2020-05-28 Thread Frederic Cambus
On Wed, May 27, 2020 at 12:25:00PM +0200, Mark Kettenis wrote: > > Date: Wed, 27 May 2020 19:39:07 +1000 > > From: Jonathan Gray > > > > When testing the row and column increase for efifb on a 1920x1080 > > display I noticed the top part of the screen continues to contain part > > of a white on

Add sizes for free() in clct(4)

2019-12-20 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in clct(4). Similar diff to the ones previously sent for other audio drivers. Comments? OK? Index: sys/dev/pci/cs4281.c === RCS file: /cvs/src/sys/dev/pci/cs4281.c,v retrieving

Add sizes for free() in vio(4)

2019-12-18 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in vio(4). There is an existing allocsize variable tracking size of allocations, turns out we can pass it to free() in the error path. Comments? OK? Index: sys/dev/pv/if_vio.c ===

Add sizes for free() in eso(4)

2019-12-13 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in eso(4). Similar diff to the ones previously sent for other audio drivers. Comments? OK? Index: sys/dev/pci/eso.c === RCS file: /cvs/src/sys/dev/pci/eso.c,v retrieving revision

Add sizes for free() in eap(4)

2019-12-13 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in eap(4). Similar diff to the ones previously sent for other audio drivers. Comments? OK? Index: sys/dev/pci/eap.c === RCS file: /cvs/src/sys/dev/pci/eap.c,v retrieving revision

Add sizes for free() in auixp(4)

2019-12-13 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in auixp(4). Similar diff to the ones previously sent for other audio drivers. Comments? OK? Index: sys/dev/pci/auixp.c === RCS file: /cvs/src/sys/dev/pci/auixp.c,v retrieving

Add sizes for free() in auglx(4)

2019-12-12 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in auglx(4). Similar diff to the ones commited for auvia(4) and autri(4). Comments? OK? Index: sys/dev/pci/auglx.c === RCS file: /cvs/src/sys/dev/pci/auglx.c,v retrieving revision

Add sizes for free() in auacer(4)

2019-12-12 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in auacer(4). Similar diff to the ones commited for auvia(4) and autri(4). Comments? OK? Index: sys/dev/pci/auacer.c === RCS file: /cvs/src/sys/dev/pci/auacer.c,v retrieving

Add sizes for free() in autri(4)

2019-12-03 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in autri(4). Similar diff to the one commited for auvia(4). Comments? OK? Index: sys/dev/pci/autri.c === RCS file: /cvs/src/sys/dev/pci/autri.c,v retrieving revision 1.42 diff -u -p

Add sizes for free() in auvia(4)

2019-11-30 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in auvia(4). Comments? OK? Index: sys/dev/pci/auvia.c === RCS file: /cvs/src/sys/dev/pci/auvia.c,v retrieving revision 1.59 diff -u -p -r1.59 auvia.c --- sys/dev/pci/auvia.c 14 Sep

tsleep_nsec(9) for wsdisplay(4)

2019-10-08 Thread Frederic Cambus
Hi tech@, Here is a diff to convert all tsleep(9) calls in wsdisplay(4) to tsleep_nsec(9). Comments? OK? Index: sys/dev/wscons/wsdisplay.c === RCS file: /cvs/src/sys/dev/wscons/wsdisplay.c,v retrieving revision 1.133 diff -u -p

Spleen kernel fonts improvements

2019-10-02 Thread Frederic Cambus
:25 - @@ -1,7 +1,7 @@ /* $OpenBSD: spleen5x8.h,v 1.3 2019/06/08 07:44:07 fcambus Exp $ */ /* - * Copyright (c) 2018 Frederic Cambus + * Copyright (c) 2018-2019 Frederic Cambus * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -254,7

Spleen kernel fonts improvements

2019-09-04 Thread Frederic Cambus
Hi tech@, Here is a diff to sync kernel fonts with the latest released Spleen version, bringing the following improvements: - Character at position CB is 'E' with diaeresis, not with tilde (12x24 version) - Character at position D6 is 'O' with diaeresis, not with tilde (12x24 version) -

Fix a segmentation fault in awk

2019-08-12 Thread Frederic Cambus
Hi tech@, Here is a diff to fix a segmentation fault in awk, from upstream version 20121220 [1]. Upstream fix didn't check for strdup return value so I added the check. I've been seeing some awk.core files in my home directory for a while now, and finally decided to try investigating why it

Spleen kernel fonts improvements

2019-06-05 Thread Frederic Cambus
Hi tech@, Here is a diff to sync kernel fonts with the latest released Spleen version, bringing the following improvements: - Shift the middle bar of the upper case 'G' one pixel down in the 12x24 version - Shift lower case 'k' character right, for better alignment in the 12x24, 16x32, and

Re: sbin/wsconsctl: show more data

2019-03-27 Thread Frederic Cambus
On Mon, Mar 18, 2019 at 08:02:09PM +0200, Artturi Alm wrote: > > Revised diff below iterating on what Artturi previously sent, and > > a snippet of wsconsctl output with the diff applied: > > > > display.width=1600 > > display.height=900 > > display.depth=32 > > +display.fontwidth=12 > >

Re: sbin/wsconsctl: show more data

2019-03-18 Thread Frederic Cambus
On Mon, Jan 07, 2019 at 04:27:46PM -0700, Theo de Raadt wrote: > Ted Unangst wrote: > > > Artturi Alm wrote: > > > display.width=1920 > > > display.height=1200 > > > display.depth=32 > > > display.emulations=vt100 > > > display.col_x_row=120x37 > > > display.font_wxh=16x32 > > > > now that

rasops(9): revert changes in rasops32_putchar()?

2019-03-18 Thread Frederic Cambus
Hi tech@, Now that efifb(4) supports remapping the framebuffer in write combining mode, it's on par with inteldrm regarding display performance as for as rasops(9) is concerned. Therefore, I'm proposing reverting changes which were introduced in rasops32_putchar() in revision 1.8 [1] as they are

rasops(9): remove filtering in rasops_list_font_cb()

2019-03-16 Thread Frederic Cambus
Hi tech@, Here is a diff to modify rasops_list_font_cb() to not filter out fonts with different sizes than the currently used one. This allows getting a list of all loaded fonts when using the WSDISPLAYIO_LSFONT ioctl. Currently, the output of wsfontload -l on my machine is: # Name

efifb(4): raise maximum size to match inteldrm and radeondrm?

2019-03-15 Thread Frederic Cambus
Hi tech@, Currently, we set the maximum size for the EFI framebuffer console to 100 columns and 31 rows. Now that efifb(4) supports remapping the framebuffer in write combining mode, it's now fast enough to consider increasing those values to 160 columns and 160 rows, to match the values in

Update openchrome to 0.6.182 in Xenocara

2019-03-12 Thread Frederic Cambus
Hi tech@, Here is a diff to update openchrome to 0.6.182 in Xenocara. Tested on my VX900 system. Comments? OK? Index: driver/xf86-video-openchrome/Makefile.in === RCS file: /cvs/xenocara/driver/xf86-video-openchrome/Makefile.in,v

Spleen kernel fonts improvements

2019-03-07 Thread Frederic Cambus
$ */ /* - * Copyright (c) 2018 Frederic Cambus + * Copyright (c) 2018-2019 Frederic Cambus * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1408,10 +1408,10 @@ static u_char spleen12x24_data[] = { 0x60, 0x60

Re: bktr(4): remove useless assignment

2018-11-18 Thread Frederic Cambus
On Sat, Nov 17, 2018 at 04:36:49PM -0700, Theo de Raadt wrote: > Why not delete the 2nd line? > > I mean isn't it obvious? I'd expect some archeology to figure > out how this bug got introduced, rather than a diff which you > obviously don't know the result of. Fair enough, I realize it indeed

bktr(4): remove useless assignment

2018-11-17 Thread Frederic Cambus
Hi tech@, Remove useless assignment, value is overwritten right after being set. Coverity CID 1453008. Comments? OK? Index: dev/pci/bktr/bktr_core.c === RCS file: /cvs/src/sys/dev/pci/bktr/bktr_core.c,v retrieving revision 1.39

Add wsfont.9, documenting the wsfont subsystem

2018-11-13 Thread Frederic Cambus
Hi tech@, Here is a diff to add wsfont.9, documenting the wsfont subsystem. This is wsfont.9 revision 1.18 from NetBSD with the following changes: - Add $Mdocdate$ marker - Remove documentation for wsfont_matches() which we don't have - Remove wsfont_find() arguments which we don't have - Add

Re: pcidevs update for VIA HD Audio device

2018-11-11 Thread Frederic Cambus
On Sun, Nov 11, 2018 at 07:54:12PM +0100, Frederic Cambus wrote: > > Add ID for a VIA HD Audio device found on my HP t5570 Thin Client. > > > > While there, update URL for the vendor ID search engine. > > > > Comments? OK? > > Anyone willing to OK this? Tha

Re: pcidevs update for VIA HD Audio device

2018-11-11 Thread Frederic Cambus
On Thu, Nov 01, 2018 at 11:07:20PM +0100, Frederic Cambus wrote: > Add ID for a VIA HD Audio device found on my HP t5570 Thin Client. > > While there, update URL for the vendor ID search engine. > > Comments? OK? Anyone willing to OK this? Thanks!

pcidevs update for VIA HD Audio device

2018-11-01 Thread Frederic Cambus
Hi tech@, Add ID for a VIA HD Audio device found on my HP t5570 Thin Client. While there, update URL for the vendor ID search engine. Comments? OK? Index: sys/dev/pci/pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving

wdc(4): remove unnecessary if/else block

2018-11-01 Thread Frederic Cambus
Hi tech@, Remove unnecessary if/else block, both branches are identical. We can in fact use the ATA_DELAY macro directly. Coverity CID 1453008. Comments? OK? Index: dev/ata/ata_wdc.c === RCS file: /cvs/src/sys/dev/ata/ata_wdc.c,v

Add "Spleen 5x8" font to wsfont

2018-09-20 Thread Frederic Cambus
$OpenBSD$ */ + +/* + * Copyright (c) 2018 Frederic Cambus + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain

Re: Harmonize spacing after ellipses in install.sub

2018-09-20 Thread Frederic Cambus
On Tue, Aug 14, 2018 at 11:31:30AM +0200, Frederic Cambus wrote: > We are using spacing after ellipses in displayed messages in an > inconsistant way. Here is an improved diff which takes into account the cursor position while we are waiting for the task to complete, as pointed out by d

Re: rasops(9) cursor drawing code

2018-08-24 Thread Frederic Cambus
On Tue, Aug 21, 2018 at 08:07:03PM +0200, Mark Kettenis wrote: > > Date: Mon, 20 Aug 2018 20:55:16 +0200 (CEST) > > From: Mark Kettenis > > > > > Date: Mon, 20 Aug 2018 15:46:57 +0200 > > > From: Frederic Cambus > > > > > > There is an issu

Re: rasops(9) cursor drawing code

2018-08-20 Thread Frederic Cambus
On Mon, Aug 20, 2018 at 02:05:15PM +0200, Mark Kettenis wrote: > So even when you set the RI_WRONLY or RI_VCONS flag, the rasops code > still does framebuffer reads when it draws the cursor. This causes > problems on a particular (somewhat broken) machine I have. But since > we know that

Add /usr/include/c++ to hier.7

2018-08-14 Thread Frederic Cambus
Hi tech@, Here is a diff to add /usr/include/c++ in hier.7. Comments? OK? Index: share/man/man7/hier.7 === RCS file: /cvs/src/share/man/man7/hier.7,v retrieving revision 1.160 diff -u -p -r1.160 hier.7 --- share/man/man7/hier.7

Harmonize spacing after ellipses in install.sub

2018-08-14 Thread Frederic Cambus
Hi tech@, We are using spacing after ellipses in displayed messages in an inconsistant way. A few examples: - openssl: generating isakmpd/iked RSA keys... done. - syncing disks... done - iwm0: no link . got link - iwm0: no lease .. got lease Another example, from syspatch: - Relinking

Remove dead assignment in login(1)

2018-08-07 Thread Frederic Cambus
Hi tech@, Since rev 1.36, the instance variable is never read again so we can simply drop the else clause with the assignment. Comments? OK? Index: usr.bin/login/login.c === RCS file: /cvs/src/usr.bin/login/login.c,v retrieving

simplefb(4): display color depth when attaching

2018-07-30 Thread Frederic Cambus
Hi tech@, Here is a diff to display color depth alongside resolution when attaching simplefb(4). Compile tested only, the only arm64 device I own is headless. Comments? OK? Index: sys/dev/fdt/simplefb.c === RCS file:

Re: rasops(9): Remove rasops4 functions?

2018-07-28 Thread Frederic Cambus
On Tue, Jul 24, 2018 at 05:42:32PM +0200, Mark Kettenis wrote: > > Date: Sun, 22 Jul 2018 15:12:09 +0200 > > From: Frederic Cambus > > > > Hi tech@, > > > > Nothing uses the rasops4 (4-bit color depth) functions anymore. > > > > It seems unli

rasops(9): Remove rasops4 functions?

2018-07-22 Thread Frederic Cambus
Hi tech@, Nothing uses the rasops4 (4-bit color depth) functions anymore. It seems unlikely that any future new platform will ever need them. Should we remove them? Comments? OK? Index: sys/conf/files === RCS file:

Document xcrypt in the amd64 version of cpu.4

2018-07-13 Thread Frederic Cambus
Hi tech@, Here is a diff to document xcrypt in the amd64 version of cpu.4. Bits taken from the i386 version. Comments? OK? Index: share/man/man4/man4.amd64/cpu.4 === RCS file: /cvs/src/share/man/man4/man4.amd64/cpu.4,v retrieving

Remove i386 specific mention for pcvtfonts in hier.7

2018-07-11 Thread Frederic Cambus
Hi tech@, Remove the i386 specific mention for pcvtfonts, they are also installed on alpha and amd64. >From share/misc/Makefile: .if (${MACHINE} == "i386") || (${MACHINE} == "amd64") || \ (${MACHINE} == "alpha") SUBDIR= pcvtfonts .endif Comments? OK? Index: share/man/man7/hier.7

Add support for the VIA VX900 chipset in viapm(4)

2018-07-04 Thread Frederic Cambus
Hi tech@, Here is a diff to add support for the VIA VX900 chipset in viapm(4). Comments? OK? Index: share/man/man4/viapm.4 === RCS file: /cvs/src/share/man/man4/viapm.4,v retrieving revision 1.11 diff -u -p -r1.11 viapm.4 ---

pcidevs updates for the VIA VX900 chipset

2018-07-01 Thread Frederic Cambus
Hi tech@, Add device IDs of the VIA VX900 chipset. Attaching a dmesg from my HP t510 Thin Client. Comments? OK? Index: sys/dev/pci/pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1851 diff -u -p -r1.1851

Re: cpu.4: VIA C7 CPUs support Enhanced SpeedStep (i386)

2018-07-01 Thread Frederic Cambus
On Tue, Jun 05, 2018 at 10:04:52PM +1000, Jonathan Gray wrote: > > VIA C7 CPUs support Enhanced SpeedStep, so reflect that in cpu.4. > > > > On the VIA C7 1.5Ghz: > > > > cpu0: VIA Esther processor 1500MHz ("CentaurHauls" 686-class) 1.51 GHz > > cpu0: > >

cpu.4: VIA C7 CPUs support Enhanced SpeedStep (i386)

2018-06-05 Thread Frederic Cambus
Hi tech@, VIA C7 CPUs support Enhanced SpeedStep, so reflect that in cpu.4. On the VIA C7 1.5Ghz: cpu0: VIA Esther processor 1500MHz ("CentaurHauls" 686-class) 1.51 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,NXE,SSE3,EST,TM2 cpu0:

Re: Remove unused C3 values (VIA)

2018-06-02 Thread Frederic Cambus
On Sat, Jun 02, 2018 at 11:30:15AM +, Visa Hankala wrote: > On Sat, Jun 02, 2018 at 01:00:05PM +0200, Frederic Cambus wrote: > > Hi tech@, > > > > Here is a diff to remove unused C3 values. > > > > Comments? OK? > > I would keep the definitions be

Remove unused C3 values (VIA)

2018-06-02 Thread Frederic Cambus
Hi tech@, Here is a diff to remove unused C3 values. Comments? OK? Index: sys/arch/amd64/include/specialreg.h === RCS file: /cvs/src/sys/arch/amd64/include/specialreg.h,v retrieving revision 1.72 diff -u -p -r1.72 specialreg.h ---

Enable bwfm(4) on Loongson for USB devices

2018-05-30 Thread Frederic Cambus
Hi tech@, Here is a diff to enable bwfm(4) on Loongson for USB devices. Tested on a Lemote Yeeloong 8101B. Comments? OK? Index: sys/arch/loongson/conf/GENERIC === RCS file: /cvs/src/sys/arch/loongson/conf/GENERIC,v retrieving

Add sizes for free() for octeon

2018-05-29 Thread Frederic Cambus
Hi tech@, Add sizes for free() for octeon. Comments? OK? Index: sys/arch/octeon/dev/amdcf.c === RCS file: /cvs/src/sys/arch/octeon/dev/amdcf.c,v retrieving revision 1.5 diff -u -p -r1.5 amdcf.c --- sys/arch/octeon/dev/amdcf.c 30

Some tweaks for the VIA PadLock driver

2018-05-29 Thread Frederic Cambus
Hi tech@, Return error values directly where appropriate, instead of using the err variable. While there, remove TODO about bitching. We haven't felt the need to bitch since the driver was commited, and we do not bitch in aesni_setup() either. Comments? OK? Index: sys/arch/amd64/amd64/via.c

Add sizes for free() in cryptosoft.c

2018-05-29 Thread Frederic Cambus
Hi tech@, Add sizes for free() in cryptosoft.c. Comments? OK? Index: sys/crypto/cryptosoft.c === RCS file: /cvs/src/sys/crypto/cryptosoft.c,v retrieving revision 1.83 diff -u -p -r1.83 cryptosoft.c --- sys/crypto/cryptosoft.c 2

Sizes for free() in the Enhanced SpeedStep driver

2018-02-13 Thread Frederic Cambus
Hi tech@, Add sizes for free() in the i386 version of the Enhanced SpeedStep driver. It was already done on amd64, but not on i386. Tested on an Atom N270. Comments? OK? Index: sys/arch/i386/i386/est.c === RCS file:

rasops(9): Fix underline rotation on CCW rotated screens

2018-01-19 Thread Frederic Cambus
Hi tech@, Fix underline rotation on CCW (quarter counter-clockwise) rotated screens. Currently, the "underline" is actually drawn above text. Comments? OK? Index: sys/dev/rasops/rasops.c === RCS file:

Add sizes for free() in wscons(4)

2018-01-16 Thread Frederic Cambus
Hi tech@, Add sizes for free() in wscons(4). Comments? OK? Index: sys/dev/wscons/wsdisplay.c === RCS file: /cvs/src/sys/dev/wscons/wsdisplay.c,v retrieving revision 1.129 diff -u -p -r1.129 wsdisplay.c ---

Re: Remove unnecessary includes (i386 VIA PadLock driver)

2017-12-28 Thread Frederic Cambus
On Fri, Dec 08, 2017 at 12:39:36PM +0100, Frederic Cambus wrote: > This diff remove unnecessary includes in the i386 version of the > VIA PadLock driver. > > Comments? OK? Ping. Anyone? This is the last step in syncing amd64 and i386 versions of the VIA PadLock driver.

cpu.4: VIA amd64 compatible CPUs support Enhanced SpeedStep

2017-12-28 Thread Frederic Cambus
Hi tech@, VIA amd64 compatible CPUs support Enhanced SpeedStep, so reflect that in cpu.4. On my VIA Nano U3500: cpu0: VIA Nano U3500@1000MHz, 997.66 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT, CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE,SSE3,MWAIT,VMX,EST,TM2,SSSE3,

Add sizes for free() in glxsb(4)

2017-12-24 Thread Frederic Cambus
Hi tech@, Add sizes for free() for the Geode LX Security Block crypto accelerator. Comments? OK? Index: sys/arch/i386/pci/glxsb.c === RCS file: /cvs/src/sys/arch/i386/pci/glxsb.c,v retrieving revision 1.33 diff -u -p -r1.33 glxsb.c

rasops(9): Remove dead assignment

2017-12-22 Thread Frederic Cambus
Hi tech@, Now that we call rasops_putchar_rotated(), we don't need ri anymore. Comments? OK? Index: sys/dev/rasops/rasops.c === RCS file: /cvs/src/sys/dev/rasops/rasops.c,v retrieving revision 1.48 diff -u -p -r1.48 rasops.c ---

Change bcopy to memcpy (i386 VIA PadLock driver)

2017-12-13 Thread Frederic Cambus
Hi tech@, This diff changes bcopy to memcpy in the i386 version of the VIA PadLock driver. It was done a while ago in the amd64 version of the driver. Comments? OK? Index: sys/arch/i386/i386/via.c === RCS file:

Add sizes for free() in libsa for amd64 and i386

2017-12-10 Thread Frederic Cambus
Hi tech@, Add sizes for free() in libsa for amd64 and i386. Comments? OK? Index: sys/arch/amd64/stand/libsa/diskprobe.c === RCS file: /cvs/src/sys/arch/amd64/stand/libsa/diskprobe.c,v retrieving revision 1.21 diff -u -p -r1.21

Add sizes for free() in the AMD PowerNow! K8 driver

2017-12-08 Thread Frederic Cambus
Hi tech@, Add sizes for free() in the AMD PowerNow! K8 driver. Comments? OK? Index: sys/arch/amd64/amd64/powernow-k8.c === RCS file: /cvs/src/sys/arch/amd64/amd64/powernow-k8.c,v retrieving revision 1.26 diff -u -p -r1.26

Remove unnecessary includes (i386 VIA PadLock driver)

2017-12-08 Thread Frederic Cambus
Hi tech@, This diff remove unnecessary includes in the i386 version of the VIA PadLock driver. Comments? OK? Index: sys/arch/i386/i386/via.c === RCS file: /cvs/src/sys/arch/i386/i386/via.c,v retrieving revision 1.37 diff -u -p

  1   2   >