Page MenuHomeFreeBSD

br (Ruslan Bukin)
User

Projects

User Details

User Since
Nov 27 2014, 10:57 AM (529 w, 3 d)

Recent Activity

Wed, Jan 15

br updated the diff for D40466: Hardware Trace (HWT) framework.

Resubmit updated patch

Wed, Jan 15, 2:53 PM
br added inline comments to D40466: Hardware Trace (HWT) framework.
Wed, Jan 15, 2:50 PM
br updated the diff for D40466: Hardware Trace (HWT) framework.
  • Remove $FreeBSD$ tags
  • Remove unused include headers
  • Check if HWT hooks are installed before constructing data structures
Wed, Jan 15, 2:49 PM
br added inline comments to D48441: riscv vmm: implement SBI RFNC.
Wed, Jan 15, 1:10 PM
br updated the diff for D48441: riscv vmm: implement SBI RFNC.

Address @jrtc27 and @markj comments (Thanks!)

Wed, Jan 15, 1:10 PM

Tue, Jan 14

br added inline comments to D48441: riscv vmm: implement SBI RFNC.
Tue, Jan 14, 9:31 PM
br updated the diff for D48441: riscv vmm: implement SBI RFNC.

Address @markj comments

Tue, Jan 14, 9:19 PM
br updated the diff for D40728: hwt(8) utility added.

Switch coresight to EL2 otherwise it does not trace CPU mode.

Tue, Jan 14, 8:47 PM
br added a comment to D40466: Hardware Trace (HWT) framework.

How do you handle different conflicting modes? e.g. a user is tracing a pid & another tries to enable thread tracing. The hardware may not be able to perform both operations.

Tue, Jan 14, 8:41 PM
br updated the diff for D40466: Hardware Trace (HWT) framework.

Prevent tracing the same proc by multiple users.

Tue, Jan 14, 8:35 PM
br updated the summary of D40477: HWT: ARM CoreSight support.
Tue, Jan 14, 8:25 PM
br added a comment to D40477: HWT: ARM CoreSight support.

This doesn't build when I add hwt and coresight to my kernel config

Tue, Jan 14, 8:24 PM
br updated the diff for D40477: HWT: ARM CoreSight support.

Due to pipeline design Coresight components could not be used for more than 1 concurrent tracing sessions.
Atomic counter of sessions added and limited to 1.

Tue, Jan 14, 8:22 PM

Mon, Jan 13

br requested review of D48441: riscv vmm: implement SBI RFNC.
Mon, Jan 13, 1:44 PM

Thu, Jan 2

br accepted D48263: vmm.4: Update to mention non-amd64 platforms.
Thu, Jan 2, 4:29 PM
br added inline comments to D48263: vmm.4: Update to mention non-amd64 platforms.
Thu, Jan 2, 4:11 PM
br committed rG9be0058ea0fc: riscv vmm: virtual timer support. (authored by br).
riscv vmm: virtual timer support.
Thu, Jan 2, 4:05 PM
br closed D48133: riscv vmm: SBI timer support.
Thu, Jan 2, 4:05 PM

Sat, Dec 21

br added inline comments to D47867: eswin pcie attachment driver.
Sat, Dec 21, 10:52 PM

Dec 20 2024

br added inline comments to D47867: eswin pcie attachment driver.
Dec 20 2024, 3:29 PM

Dec 19 2024

br updated the diff for D47867: eswin pcie attachment driver.

Use delayed children attach.
It seems the PHY needs extra 500ms to initialize before we probe for devices. Otherwise PCIB could not find a device (Intel NVME in my case).
So instead of waiting for 500ms, postpone the bus enumeration.

Dec 19 2024, 5:48 PM

Dec 18 2024

br added a comment to D48133: riscv vmm: SBI timer support.

Wait so you put up a patch to disable Sstc before an alternative was provided?

Dec 18 2024, 4:20 PM
br requested review of D48133: riscv vmm: SBI timer support.
Dec 18 2024, 4:06 PM

Dec 17 2024

br committed rG4f5845126993: riscv: connect eswin to the build. (authored by br).
riscv: connect eswin to the build.
Dec 17 2024, 5:44 PM
br closed D48119: riscv: connect Eswin to the build.
Dec 17 2024, 5:44 PM
br updated the diff for D48119: riscv: connect Eswin to the build.

make reset driver optional
remove dtbs build

Dec 17 2024, 2:14 PM
br requested review of D48119: riscv: connect Eswin to the build.
Dec 17 2024, 2:10 PM
br committed rG56816e687557: riscv: Eswin hwreset support added. (authored by br).
riscv: Eswin hwreset support added.
Dec 17 2024, 11:47 AM
br closed D47853: eswin reset driver.
Dec 17 2024, 11:47 AM
br committed rG6766e8ceb5c6: riscv: Add SiFive CCache driver. (authored by br).
riscv: Add SiFive CCache driver.
Dec 17 2024, 11:29 AM
br closed D47831: sifive ccache driver.
Dec 17 2024, 11:29 AM
br committed rGa7bf553d175a: riscv vmm: add SSTC extension check. (authored by br).
riscv vmm: add SSTC extension check.
Dec 17 2024, 11:20 AM
br closed D48058: riscv vmm: add SSTC check.
Dec 17 2024, 11:20 AM

Dec 16 2024

br updated the diff for D48058: riscv vmm: add SSTC check.

remove extra retval check

Dec 16 2024, 5:24 PM
br updated the diff for D48058: riscv vmm: add SSTC check.

use snprintf() to ensure we don't overwrite buffer available

Dec 16 2024, 5:22 PM
br updated the diff for D47831: sifive ccache driver.

Per @mhorne suggestion, add device_get_unit() check;
Get virtual address of memory resource using rman_get_virtual().

Dec 16 2024, 5:15 PM
br updated the diff for D48058: riscv vmm: add SSTC check.

add const qualifier to char *isa

Dec 16 2024, 4:58 PM
br updated the diff for D48058: riscv vmm: add SSTC check.

Per @markj suggestion, construct the ISA string in the bhyve_init_platform() and then pass ready-to-use string to FDT code

Dec 16 2024, 4:42 PM

Dec 12 2024

br added a comment to D48058: riscv vmm: add SSTC check.

Do we really want one vm_cap_type entry per extension?

Dec 12 2024, 5:03 PM
br updated the diff for D48058: riscv vmm: add SSTC check.

Add missing context!

Dec 12 2024, 5:02 PM
br requested review of D48058: riscv vmm: add SSTC check.
Dec 12 2024, 4:52 PM

Dec 4 2024

br added reviewers for D47905: eswin clk driver: mhorne, jrtc27.
Dec 4 2024, 11:39 AM
br requested review of D47905: eswin clk driver.
Dec 4 2024, 11:39 AM

Dec 3 2024

br committed rG49a7f2b31329: snd_hdspe(4): Add sysctls to select analog signal levels. (authored by dev_submerge.ch).
snd_hdspe(4): Add sysctls to select analog signal levels.
Dec 3 2024, 10:33 PM
br closed D47412: snd_hdspe(4): Add sysctls to select analog signal levels..
Dec 3 2024, 10:32 PM
br updated the diff for D47831: sifive ccache driver.

I managed to convert the driver to newbus but noticed slower performance of NVME when flushing cache using bus_write_8().

  • direct access to pointer: 97.5MB/s
  • using bus_write_8(): 93.3MB/s

So I provided another mapping for a faster access. WDYT?
another idea is to extract the mapping from sc->res and access it directly?

Dec 3 2024, 8:38 PM
br requested review of D47883: eswin sdhci driver.
Dec 3 2024, 5:35 PM

Dec 2 2024

br added a comment to D47831: sifive ccache driver.
In D47831#1091595, @br wrote:

I strongly think this should be a newbus device driver. Unless there is some urgent need that it should be set up at SI_SUB_CPU?

This driver needed before threadinit() otherwise tid_alloc() won't work. It is needed even all cache ways in ccache driver are disabled (however the way 0 is always enabled). May be it flushes other L1/L2/L3 caches I am not sure, but from I saw the freebsd could not use memory that was just allocated in tid_alloc() without a flush. So this should go anywhere before SI_SUB_INTRINSIC.

Dec 2 2024, 10:19 PM
br added a comment to D47831: sifive ccache driver.

I strongly think this should be a newbus device driver. Unless there is some urgent need that it should be set up at SI_SUB_CPU?

This driver needed before threadinit() otherwise tid_alloc() won't work. It is needed even all cache ways in ccache driver are disabled (however the way 0 is always enabled). May be it flushes other L1/L2/L3 caches I am not sure, but from I saw the freebsd could not use memory that was just allocated in tid_alloc() without a flush. So this should go anywhere before SI_SUB_INTRINSIC.

Dec 2 2024, 10:06 PM
br requested review of D47871: eswin ahci attachment driver.
Dec 2 2024, 8:21 PM
br added reviewers for D47867: eswin pcie attachment driver: mhorne, jrtc27.
Dec 2 2024, 5:08 PM
br requested review of D47867: eswin pcie attachment driver.
Dec 2 2024, 5:08 PM

Nov 30 2024

br updated the diff for D47853: eswin reset driver.

Right, sorry:)

Nov 30 2024, 10:22 PM
br updated the diff for D47853: eswin reset driver.

store both reg and bit in the hwreset *id

Nov 30 2024, 9:55 PM
br requested review of D47854: hwreset: fix clk_id type.
Nov 30 2024, 8:49 PM
br requested review of D47853: eswin reset driver.
Nov 30 2024, 8:46 PM

Nov 29 2024

br updated the diff for D47831: sifive ccache driver.

copyright and style(9)

Nov 29 2024, 1:02 PM
br updated the summary of D47831: sifive ccache driver.
Nov 29 2024, 12:58 PM
br added inline comments to D47831: sifive ccache driver.
Nov 29 2024, 12:18 PM
br updated the diff for D47831: sifive ccache driver.

extract paddr on each page assuming the range is not contiguous

Nov 29 2024, 12:18 PM

Nov 28 2024

br updated the test plan for D47831: sifive ccache driver.
Nov 28 2024, 7:42 PM
br requested review of D47831: sifive ccache driver.
Nov 28 2024, 7:41 PM
br added inline comments to rG4ab2a84e0924: riscv: dcache flush hooks.
Nov 28 2024, 2:00 PM
br added inline comments to D47455: riscv: add custom T-HEAD dcache ops.
Nov 28 2024, 1:56 PM
br added inline comments to D47455: riscv: add custom T-HEAD dcache ops.
Nov 28 2024, 1:54 PM

Nov 25 2024

br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

Also I suspect the input signal levels to be backwards now, please report your findings. The recorded signal should be loudest for "-10dBV" and quietest with "LowGain".

Nov 25 2024, 9:04 PM

Nov 24 2024

br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

On the Input front, I have inserted Shure SM7B into External card Input 1, and I barely hear myself in Audacity. Slighly more loud on LowGain compare to +4dBu, but still very low on both. I could not set -10dBV because of off-by-one error somewhere (I guess).

Nov 24 2024, 9:36 PM
br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..
In D47412#1086254, @br wrote:

On the "-10dbV" problem I could suggest to rename this to "minus10dbv" (and "plus4dbu as well).

Now that I think of it, we also have negative integer values in sysctl. Given that, it should be acceptable to use "-10dBV". It is quite a bit more readable and closer to RME / standard signal level terminology.

Could you please try to set "-10dBV" in a su -l session, to check whether this is a sudo problem? I read through the code again and didn't find any possible cause.

Nov 24 2024, 9:14 PM

Nov 21 2024

br added a comment to D47688: riscv: Permit spurious faults in kernel mode.

Perhaps worth mentioning in the commit message that RISC-V is unusual in allowing the TLB to cache invalid PTEs

I'm not sure that that's exactly what's happening - it might be that the core is caching translation structures (and this is certainly not specific to riscv) and requires a sfence.vma for PTE updates to be visible.

In fact, we might still want to issue a local sfence.vma when overwriting an invalid PTE in pmap_enter(), to avoid the overhead of spurious faults on first access. It's hard to say without some data on how common such faults are.

Nov 21 2024, 7:28 PM
br accepted D47688: riscv: Permit spurious faults in kernel mode.

Works to me on SiFive Premier P550 (no hacky TLB flush needed anymore). Thanks!

Nov 21 2024, 10:08 AM

Nov 16 2024

br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

On the "-10dbV" problem I could suggest to rename this to "minus10dbv" (and "plus4dbu as well).

Nov 16 2024, 10:16 PM
br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

(Note that default setting (-10dBV) is loudest, then +4dbU is lower, and HighGain is lowest volume)

Interesting, should be the other way round. The linux code doesn't seem to label these explicitly, which is why I expected the 0 value to be safe (quiet) similar to HDSP 9632. Chances are the input and output levels work the same and are in wrong order too, could you check them?

Nov 16 2024, 10:13 PM

Nov 13 2024

br accepted D47477: riscv: Add support for building vmm as a kernel module.
Nov 13 2024, 10:52 AM

Nov 7 2024

br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

On travel currently -- will look next week.

Nov 7 2024, 6:51 PM

Nov 3 2024

br added a comment to D47412: snd_hdspe(4): Add sysctls to select analog signal levels..

Great work, thanks!

Nov 3 2024, 2:47 PM

Oct 31 2024

br committed rGd3916eace506: riscv/vmm: Initial import. (authored by br).
riscv/vmm: Initial import.
Oct 31 2024, 8:26 PM
br committed rG7ab1a32cd43c: bhyve/riscv: Initial import. (authored by br).
bhyve/riscv: Initial import.
Oct 31 2024, 8:26 PM
br closed D45512: bhyve/riscv userspace part.
Oct 31 2024, 8:26 PM
br closed D45553: bhyve/riscv kernel part.
Oct 31 2024, 8:26 PM
br updated the diff for D45512: bhyve/riscv userspace part.

Regenerate

Oct 31 2024, 3:30 PM
br updated the diff for D45553: bhyve/riscv kernel part.

fix shift value of a register and remove bogus ones

Oct 31 2024, 2:34 PM

Oct 30 2024

br updated the diff for D45553: bhyve/riscv kernel part.

unlock spin mutex when no interrupts found during APLIC CLAIM request

Oct 30 2024, 3:47 PM

Oct 29 2024

br closed D47306: vmm: fix vcpu atomic load.
Oct 29 2024, 4:24 PM
br committed rG72ae04c73347: vmm: fix vcpu atomic load (authored by br).
vmm: fix vcpu atomic load
Oct 29 2024, 4:23 PM
br committed rG14457cf7d6fe: snd_hdsp(4): Add sysctls to select analog signal levels. (authored by dev_submerge.ch).
snd_hdsp(4): Add sysctls to select analog signal levels.
Oct 29 2024, 4:18 PM
br closed D47330: snd_hdsp(4): Add sysctls to select analog signal levels..
Oct 29 2024, 4:18 PM
br added a comment to D47330: snd_hdsp(4): Add sysctls to select analog signal levels..

great idea, and happy to test (and actually use) if you can adopt to hdspe!

Oct 29 2024, 4:05 PM
br accepted D47330: snd_hdsp(4): Add sysctls to select analog signal levels..
Oct 29 2024, 3:54 PM

Oct 28 2024

br updated the diff for D40477: HWT: ARM CoreSight support.

Regenerate

Oct 28 2024, 7:17 PM
br updated the diff for D45512: bhyve/riscv userspace part.

Instead of using static address for device tree blob, locate it just after bootrom image dynamically.

Oct 28 2024, 5:29 PM
br added inline comments to D45512: bhyve/riscv userspace part.
Oct 28 2024, 4:00 PM
br updated the diff for D45512: bhyve/riscv userspace part.

Address comments

Oct 28 2024, 4:00 PM
br removed reviewers for D45553: bhyve/riscv kernel part: andrew, manu.
Oct 28 2024, 2:38 PM
br updated the diff for D45553: bhyve/riscv kernel part.

Remove unrelated arm64/amd64 changes

Oct 28 2024, 2:37 PM
br added inline comments to D45553: bhyve/riscv kernel part.
Oct 28 2024, 2:32 PM
br updated the diff for D45553: bhyve/riscv kernel part.

Address markj@ comments, Thanks Mark

Oct 28 2024, 2:32 PM
br requested review of D47306: vmm: fix vcpu atomic load.
Oct 28 2024, 1:16 PM

Oct 24 2024

br accepted D47134: plic, aplic: handle all pending interrupts for hart.
Oct 24 2024, 6:13 PM
br added inline comments to D47135: plic: handling for interrupt-cells == 2.
Oct 24 2024, 6:10 PM
br accepted D47135: plic: handling for interrupt-cells == 2.
Oct 24 2024, 6:09 PM