Re: git: 2ed9833791f2 - main - thunderbolt: Import USB4 code

2025-10-02 Thread Nuno Teixeira
; + return; > > +} > > + > > +static int > > +nhi_configure_ring(struct nhi_softc *sc, struct nhi_ring_pair *ring) > > +{ > > + bus_addr_t busaddr; > > + uint32_t val; > > + int idx; > > + > > + idx = ring->ring_num * 16; > > + > > + /* Program the TX ring address and size */ > > + busaddr = ring->tx_ring_busaddr; > > + nhi_write_reg(sc, NHI_TX_RING_ADDR_LO + idx, busaddr & > 0x); > > + nhi_write_reg(sc, NHI_TX_RING_ADDR_HI + idx, busaddr >> 32); > > + nhi_write_reg(sc, NHI_TX_RING_SIZE + idx, ring->tx_ring_depth); > > + nhi_write_reg(sc, NHI_TX_RING_TABLE_TIMESTAMP + idx, 0x0); > > + tb_debug(sc, DBG_INIT, "TX Ring %d TX_RING_SIZE= 0x%x\n", > > + ring->ring_num, ring->tx_ring_depth); > > + > > + /* Program the RX ring address and size */ > > + busaddr = ring->rx_ring_busaddr; > > + val = (ring->rx_buffer_size << 16) | ring->rx_ring_depth; > > + nhi_write_reg(sc, NHI_RX_RING_ADDR_LO + idx, busaddr & > 0x); > > + nhi_write_reg(sc, NHI_RX_RING_ADDR_HI + idx, busaddr >> 32); > > + nhi_write_reg(sc, NHI_RX_RING_SIZE + idx, val); > > + nhi_write_reg(sc, NHI_RX_RING_TABLE_BASE1 + idx, 0x); > > + tb_debug(sc, DBG_INIT, "RX Ring %d RX_RING_SIZE= 0x%x\n", > > + ring->ring_num, val); > > + > > + return (0); > > +} > > + > > +static int > > +nhi_activate_ring(struct nhi_ring_pair *ring) > > +{ > > + struct nhi_softc *sc = ring->sc; > > + int idx; > > + > > + nhi_pci_enable_interrupt(ring); > > + > > + idx = ring->ring_num * 32; > > + tb_debug(sc, DBG_INIT, "Activating ring %d at idx %d\n", > > + ring->ring_num, idx); > > + nhi_write_reg(sc, NHI_TX_RING_TABLE_BASE0 + idx, > > + TX_TABLE_RAW | TX_TABLE_VALID); > > + nhi_write_reg(sc, NHI_RX_RING_TABLE_BASE0 + idx, > > + RX_TABLE_RAW | RX_TABLE_VALID); > > + > > + return (0); > > +} > > + > > +static int > > +nhi_deactivate_ring(struct nhi_ring_pair *r) > > +{ > > + struct nhi_softc *sc = r->sc; > > + int idx; > > + > > + idx = r->ring_num * 32; > > + tb_debug(sc, DBG_INIT, "Deactiving ring %d at idx %d\n", > > + r->ring_num, idx); > > + nhi_write_reg(sc, NHI_TX_RING_TABLE_BASE0 + idx, 0); > > + nhi_write_reg(sc, NHI_RX_RING_TABLE_BASE0 + idx, 0); > > + > > + idx = r->ring_num * 16; > > + tb_debug(sc, DBG_INIT, "Setting ring %d sizes to 0\n", > r->ring_num); > > + nhi_write_reg(sc, NHI_TX_RING_SIZE + idx, 0); > > + nhi_write_reg(sc, NHI_RX_RING_SIZE + idx, 0); > > + > > + return (0); > > +} > > + > > +static int > > +nhi_alloc_ring0(struct nhi_softc *sc) > > +{ > > + bus_addr_t frames_busaddr; > > + bus_dma_template_t t; > > + struct nhi_intr_tracker *trkr; > > + struct nhi_ring_pair *r; > > + struct nhi_cmd_frame *cmd; > > + char *frames; > > + int error, size, i; > > + > > + if ((error = nhi_alloc_ring(sc, 0, NHI_RING0_TX_DEPTH, > > + NHI_RING0_RX_DEPTH, &r)) != 0) { > > + tb_printf(sc, "Error allocating control ring\n"); > > + return (error); > > + } > > + > > + r->rx_buffer_size = NHI_RING0_FRAME_SIZE;/* Control packets are > small */ > > + > > + /* Allocate the RX and TX buffers that are used for Ring0 comms > */ > > + size = r->tx_ring_depth * NHI_RING0_FRAME_SIZE; > > + size += r->rx_ring_depth * NHI_RING0_FRAME_SIZE; > > + > > + bus_dma_template_init(&t, sc->parent_dmat); > > + t.maxsize = t.maxsegsize = size; > > + t.nsegments = 1; > > + if (bus_dma_template_tag(&t, &sc->ring0_dmat)) { > > + tb_printf(sc, "Error allocating control ring buffer > tag\n"); > > + return (ENOMEM); > > + } > > + > > + if (bus_dmamem_alloc(sc->ring0_dmat, (void **)&frames, > BUS_DMA_NOWAIT, > > + &sc->ring0_map) != 0) { > > + tb_printf(sc, "Error allocating control ring memory\n"); > > + return (ENOMEM); > > + } > > + bzero(frames, size); > > + bus_dmamap_load(sc->ring0_dmat, sc->ring0_map, frames, size, > > + nhi_memaddr_cb, &frames_busaddr, 0); > > + sc->ring0_frames_busaddr = frames_busaddr; > > + sc->ring0_frames = frames; > > + > > + /* Allocate the driver command trackers */ > > + sc->ring0_cmds = malloc(sizeof(struct nhi_cmd_frame) * > > + (r->tx_ring_depth + r->rx_ring_depth), M_NHI, M_NOWAIT | > M_ZERO); > > + if (sc->ring0_cmds == NULL) > > + return (ENOMEM); > > + > > + /* Initialize the RX frames so they can be used */ > > + mtx_lock(&r->mtx); > > + for (i = 0; i < r->rx_ring_depth; i++) { > > + cmd = &sc->ring0_cmds[i]; > > + cmd->data = (uint32_t *)(frames + NHI_RING0_FRAME_SIZE * > i); > > + cmd->data_busaddr = frames_busaddr + > NHI_RING0_FRAME_SIZE * i; > > + cmd->flags = CMD_MAPPED; > > + cmd->idx = i; > > + TAILQ_INSERT_TAIL(&r->rx_head, cmd, cm_link); > > + } > > + > > + /* Inititalize the TX frames */ > > + for ( ; i < r->tx_ring_depth + r->rx_ring_depth - 1; i++) { > > + cmd = &sc->ring0_cmds[i]; > > + cmd->data = (uint32_t *)(frames + NHI_RING0_FRAME_SIZE * > i); > > + cmd->data_busaddr = frames_busaddr + > NHI_RING0_FRAME_SIZE * i; > > + cmd->flags = CMD_MAPPED; > > + cmd->idx = i; > > + nhi_free_tx_frame_locked(r, cmd); > > + } > > + mtx_unlock(&r->mtx); > > + > > + /* Do a 1:1 mapping of rings to interrupt vectors. */ > > + /* XXX Should be abstracted */ > > + trkr = &sc->intr_trackers[0]; > > + trkr->ring = r; > > + r->tracker = trkr; > > + > > + /* XXX Should be an array */ > > + sc->ring0 = r; > > + SLIST_INSERT_HEAD(&sc->ring_list, r, ring_link); > > + > > + return (0); > > +} > > + > > +static void > > +nhi_free_ring0(struct nhi_softc *sc) > > +{ > > + if (sc->ring0_cmds != NULL) { > > + free(sc->ring0_cmds, M_NHI); > > + sc->ring0_cmds = NULL; > > + } > > + > > + if (sc->ring0_frames_busaddr != 0) { > > + bus_dmamap_unload(sc->ring0_dmat, sc->ring0_map); > > + sc->ring0_frames_busaddr = 0; > > *** 5529 LINES SKIPPED *** > > > > -- > Wolfram Schneider https://wolfram.schneider.org > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 87a7b35f04b6 - main - bsdinstall: fix vfs.zfs.vdev.min_auto_ashift oid

2025-09-20 Thread Nuno Teixeira
.zfs.min_auto_ashift' at line 9 <118>sysctl: unknown oid 'vfs.zfs.min_auto_ashift' at line 9 <118>sysctl: unknown oid 'vfs.zfs.min_auto_ashift' at line 9 vfs.zfs.vdev.max_auto_ashift: 14 vfs.zfs.vdev.min_auto_ashift: 9 vfs.zfs.vdev.file.physical_ashift: 9 vfs.zfs.vde

Re: git: 87a7b35f04b6 - main - bsdinstall: fix vfs.zfs.vdev.min_auto_ashift oid

2025-09-20 Thread Nuno Teixeira
ors using vfs.zfs.vdev.min_auto_ashift=12 > if [ "$ZFSBOOT_FORCE_4K_SECTORS" ]; then > f_dprintf "$funcname: With 4K sectors..." > f_eval_catch $funcname sysctl "$SYSCTL_ZFS_MIN_ASHIFT_12" \ > @@ -1382,7 +1382,7 @@ zfs_create_boot() > > if [ "$ZFSBOOT_FORCE_4K_SECTORS" ]; then > f_eval_catch $funcname echo "$ECHO_APPEND" \ > -'vfs.zfs.min_auto_ashift=12' \ > +'vfs.zfs.vdev.min_auto_ashift=12' \ > $BSDINSTALL_TMPETC/sysctl.conf.zfs || return $FAILURE > fi > > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: e779891327b1 - main - sys/power: Sleep type reporting by PM backends

2025-09-17 Thread Nuno Teixeira
Hello Cy, One of this series of ACPI commits has broken power management on my > machines. > One of which managed to capture a dump from a kernel panic after > poweroff(8) > was issued. > I can confirm same crash on reboot on a Intel laptop, after upgrading from main 2025-09-06 -> 2025-09-16. Th

Re: git: af60084978a4 - main - Add description for WITH_PTHREADS_ASSERTIONS

2025-09-05 Thread Nuno Teixeira
Thanks for the hint, I missed 642cd511028b . Think I'm good now: /etc/src.conf WITH_MALLOC_PRODUCTION=yes WITHOUT_LLVM_ASSERTIONS=yes WITHOUT_PTHREADS_ASSERTIONS=yes Cheers! Colin Percival escreveu (sexta, 5/09/2025 à(s) 23:07): > On 9/5/25 14:57, Nuno Teixeira wrote: > > F

Re: git: af60084978a4 - main - Add description for WITH_PTHREADS_ASSERTIONS

2025-09-05 Thread Nuno Teixeira
ll > +++ b/tools/build/options/WITH_PTHREADS_ASSERTIONS > @@ -0,0 +1 @@ > +Enable debugging assertions in pthreads library. > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 8d8a745c456c - main - libutil: Drop auth_getval()

2025-08-04 Thread Nuno Teixeira
util.so.10! > > There is a warning when you run 'make delete-old-libs'. > Have you checked 'pkg shlib -qR libutil.so.9' before removing it? > > Maybe libutil.so.9 will be added to misc/compat14x and ghc needs updated > ghc-xxx-boot for main. > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 8d8a745c456c - main - libutil: Drop auth_getval()

2025-08-02 Thread Nuno Teixeira
; > -} > diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h > index 6d36a0c291c6..d27262e44daf 100644 > --- a/lib/libutil/libutil.h > +++ b/lib/libutil/libutil.h > @@ -86,7 +86,6 @@ struct termios; > struct winsize; > > __BEGIN_DECLS > -char *auth_getval(const char *_name); > void clean_environment(const char * const *_white, > const char * const *_more_white); > intexpand_number(const char *_buf, int64_t *_num); > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: f9cf745a5084 - main - RELNOTES: Document the addition of inotify

2025-07-09 Thread Nuno Teixeira
Hello Mark! I confirm that it builds OK. i3 wm depends on it, so I will have a run test in the next days. Also I will update my main amd64 soon and test it in there too. Thanks, Mark Johnston escreveu (quarta, 9/07/2025 à(s) 13:32): > On Wed, Jul 09, 2025 at 01:13:02PM +0100, Nuno Teixe

Re: git: f9cf745a5084 - main - RELNOTES: Document the addition of inotify

2025-07-09 Thread Nuno Teixeira
inotify(2) family of system calls. > + > 50e733f19b37, 171f66b0c2ca: > These commits helped improve utilization of NFSv4.1/4.2 > delegations. The changes are only used when the NFSv4 > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 3ab34225af39 - main - RELNOTES: Mention sndctl(8)

2025-05-05 Thread Nuno Teixeira
Thanks and sorry for the noise :) Cheers, Christos Margiolis escreveu (segunda, 5/05/2025 à(s) 20:29): > Nuno Teixeira wrote: > > Ok, I installed commit with audio. Next build it will be sdnctl. I will > > have both installed. > > > > Let's wait since I

Re: git: 3ab34225af39 - main - RELNOTES: Mention sndctl(8)

2025-05-05 Thread Nuno Teixeira
Ok, I installed commit with audio. Next build it will be sdnctl. I will have both installed. Let's wait since I'm upgrading again and do that check. I will run `make delete-old delete-old-libs` to make sure. Christos Margiolis escreveu (segunda, 5/05/2025 à(s) 19:53): > Nuno T

Re: git: 3ab34225af39 - main - RELNOTES: Mention sndctl(8)

2025-05-05 Thread Nuno Teixeira
Sorry, typo. I mean audio->sndctl change. I'm using main-n277015-a9425aeb1b8f that includes audio version. Christos Margiolis escreveu (segunda, 5/05/2025 à(s) 19:46): > Nuno Teixeira wrote: > > Hello, > > > > Should ObsoleteFiles.inc include "sound" fil

Re: git: 3ab34225af39 - main - RELNOTES: Mention sndctl(8)

2025-05-05 Thread Nuno Teixeira
interfaces for viewing and manipulating audio device settings > (sysctls, > + /dev/sndstat), into a single utility with a similar control-driven > + interface to that of mixer(8). > 995b690d1398: > ps(1)'s '-U' option has been changed to select

Re: git: 5c74aa3abd4e - main - rtwn: enable reception of BAR frames

2025-04-23 Thread Nuno Teixeira
UBTYPE_BAR >> > + IEEE80211_FC0_SUBTYPE_SHIFT)); > + > /* Enable Rx of data frames. */ > rtwn_write_2(sc, R92C_RXFLTMAP2, 0x); > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: a3a88ed22cb1 - main - vm_page: drop prev and next

2025-04-18 Thread Nuno Teixeira
t m, > void vm_page_launder(vm_page_t m); > vm_page_t vm_page_lookup(vm_object_t, vm_pindex_t); > vm_page_t vm_page_lookup_unlocked(vm_object_t, vm_pindex_t); > -vm_page_t vm_page_next(vm_page_t m); > void vm_page_pqbatch_drain(void); > void vm_page_pqbatch_submit(vm_page_t m, uint8_t queue); > bool vm_page_pqstate_commit(vm_page_t m, vm_page_astate_t *old, > vm_page_astate_t new); > -vm_page_t vm_page_prev(vm_page_t m); > bool vm_page_ps_test(vm_page_t m, int psind, int flags, vm_page_t skip_m); > void vm_page_putfake(vm_page_t m); > void vm_page_readahead_finish(vm_page_t m); > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 84e1eb50dd95 - main - net80211/regdomain: try to sort out TW

2025-04-12 Thread Nuno Teixeira
20 20 > @@ -1925,6 +2126,11 @@ >IEEE80211_CHAN_A > > > + > + 5260 5340 > + 20 20 > + IEEE80211_CHAN_A > + > >5260 5340 >20 20 > @@ -1941,6 +2147,11 @@ >IEEE80211_CHAN_A > > > + > + 5480 5720 > + 20 20 > + IEEE80211_CHAN_A > + > >5480 5700 >20 20 > @@ -1961,7 +2172,38 @@ >160 20 >IEEE80211_CHAN_A > > + > + > + 5500 5720 > + 40 20 > + IEEE80211_CHAN_A > + > + > + 5500 5720 > + 80 20 > + IEEE80211_CHAN_A > + > > + > + 5745 5825 > + 20 20 > + IEEE80211_CHAN_A > + > + > + 5745 5845 > + 20 20 > + IEEE80211_CHAN_A > + > + > + 5745 5845 > + 40 20 > + IEEE80211_CHAN_A > + > + > + 5745 5845 > + 20 20 > + IEEE80211_CHAN_A > + > >5745 5865 >20 20 > @@ -1972,6 +2214,11 @@ >40 20 >IEEE80211_CHAN_A > > + > + 5745 5845 > + 40 20 > + IEEE80211_CHAN_A > + > >5745 5805 >80 20 > @@ -2027,6 +2274,11 @@ >20 20 >IEEE80211_CHAN_A > > + > + 5500 5720 > + 40 20 > + IEEE80211_CHAN_A > + > >5500 5580 >40 20 > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 1cae7121c667 - main - Enable LLVM_BINUTILS by default

2025-03-14 Thread Nuno Teixeira
/share/mk/src.opts.mk > @@ -124,6 +124,7 @@ __DEFAULT_YES_OPTIONS = \ > LLD \ > LLD_BOOTSTRAP \ > LLVM_ASSERTIONS \ > +LLVM_BINUTILS \ > LLVM_COV \ > LLVM_CXXFILT \ > LOADER_BIOS_TEXTONLY \ > @@ -208,7 +209,6 @@ __DEFAULT_NO_OPTIONS = \ > HESIOD \ > LOADER_VERBOSE \ > LOADER_VERIEXEC_PASS_MANIFEST \ > -LLVM_BINUTILS \ > LLVM_FULL_DEBUGINFO \ > MALLOC_PRODUCTION \ > OFED_EXTRA \ > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

Re: git: 71ac745d76c3 - main - Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

2024-12-08 Thread Nuno Teixeira
(...) I'm repeating ports rebuild and everything is building ok with same tree/world. Something went wrong on my system. Sorry for the noise :) Nuno Teixeira escreveu (domingo, 8/12/2024 à(s) 18:29): > OK, I'm redoing interactive testport to get those files on dmidecode port >

Re: git: 71ac745d76c3 - main - Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

2024-12-08 Thread Nuno Teixeira
> -Dimitry > > > On 8 Dec 2024, at 08:49, Nuno Teixeira wrote: > > > > (...) > > > > Full logs: > https://people.freebsd.org/~eduardo/logs/main-n274092-f00fe116dc9d/ > > > > Nuno Teixeira escreveu (domingo, 8/12/2024 à(s) > 07:48): > > H

Re: git: 71ac745d76c3 - main - Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

2024-12-07 Thread Nuno Teixeira
(...) Full logs: https://people.freebsd.org/~eduardo/logs/main-n274092-f00fe116dc9d/ Nuno Teixeira escreveu (domingo, 8/12/2024 à(s) 07:48): > Hello, > > On aarch64 I'v started to see ports failing with illegal instructions on > main-n274092-f00fe116dc9d. > > So far

Re: git: 71ac745d76c3 - main - Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

2024-12-07 Thread Nuno Teixeira
Hello, On aarch64 I'v started to see ports failing with illegal instructions on main-n274092-f00fe116dc9d. So far the following ports are failing: sysutils/dmidecode textproc/docbook2mdoc devel/libpci lang/lua53 Maybe it is worth to take a check on them? Thanks ./types.h:55:25: note: exp

Re: git: 108de784513d - main - Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME

2024-06-02 Thread Nuno Teixeira
; Cy Schubert > FreeBSD UNIX: Web: https://FreeBSD.org > NTP: Web: https://nwtime.org > > e^(i*pi)+1=0 > > > On Sat, 1 Jun 2024 09:37:00 +0100 > Nuno Teixeira wrote: > > > Hello, > > > > Having issues buildi

Re: git: 108de784513d - main - Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME

2024-06-01 Thread Nuno Teixeira
/_clock_id.h > @@ -78,7 +78,7 @@ > * Linux compatible names. > */ > #if __BSD_VISIBLE > -#defineCLOCK_BOOTTIME CLOCK_UPTIME > +#defineCLOCK_BOOTTIME CLOCK_MONOTONIC > #defineCLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST > #defineCLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST > #endif > > -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org

git: e37471440e60 - main - Add myself (eduardo) to the calendar.

2024-03-19 Thread Nuno Teixeira
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/src/commit/?id=e37471440e6000d8ce1dbe079f5862529928afe3 commit e37471440e6000d8ce1dbe079f5862529928afe3 Author: Nuno Teixeira AuthorDate: 2024-03-19 21:21:04 + Commit: Nuno Teixeira CommitDate: 2024-03-19

git: 3732e805b3f7 - stable/13 - sound: add patch for Lenovo Legion 5 Intel

2023-02-05 Thread Nuno Teixeira
The branch stable/13 has been updated by eduardo (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=3732e805b3f75008caf3bfc2a139d2893812457e commit 3732e805b3f75008caf3bfc2a139d2893812457e Author: Nuno Teixeira AuthorDate: 2022-09-16 13:29:30 + Commit: Nuno Teixeira

git: b44869cba1b3 - main - sound: add patch for Lenovo Legion 5 Intel

2022-09-16 Thread Nuno Teixeira
The branch main has been updated by eduardo (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=b44869cba1b391931b831135a9cefcc6ca635103 commit b44869cba1b391931b831135a9cefcc6ca635103 Author: Nuno Teixeira AuthorDate: 2022-09-16 13:29:30 + Commit: Nuno Teixeira