Re: what do I do when git cherry-pick works, but results are bogus?

2023-05-19 Thread Pat Maddox
On Wed, May 17, 2023, at 9:44 AM, Rick Macklem wrote:
> So, the subject line basically says it.
> I do a git cherry-pick to MFC. It works, but the resultant file(s) are not
> correct. What do I do to fix this?
> (If the merge fails, then it's easy, but there doesn't seem to be an option
>  on cherry-pick that forces it into "merge failed", so you can edit/add the 
> file
>  and then "git cherry-pick --continue".)

git cherry-pick --no-commit

?



Re: RFC: MFC'ng a change to struct mount

2023-05-19 Thread Brooks Davis
On Fri, May 19, 2023 at 08:00:02AM -0700, Rick Macklem wrote:
> Hi,
> 
> Since there seemed to be interest in it, I have MFC'd most of
> the changes needed to run nfsd(8) in a vnet jail to stable/13.
> 
> However, there is one change that *might* affect the VFS KAPI.
> 
> I need to add a pointer called mnt_exjail to struct mount.
> 
> There is a field called mnt_pad0. It is 32bits, but is followed
> by a field that is a structure.  As such, replacing it with the pointer
> does not change the offsets of subsequent fields for amd64.
> --> Since mnt_exjail is only used in generic code, this should
>  not break the VFS KAPI for amd64, I think?
> I will check i386, but since it will be replacing a 32bit field with a
> 32bit pointer, I suspect it will be ok.
> 
> Does anyone think some other architecture will be broken by this
> or know an easy way I can check all arches?

Replacing mnt_pad0 with a pointer should be ok.  It's proceeded by a
pointer and thus properly aligned and followed by struct statfs which
contains uint64_t's so there is indeed a gap after mnt_pad0 on 64-bit
systems.

-- Brooks



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Ivan Quitschal






Btw. freebsd-questions list is better place for this kind of
questions. freebsd-current is specific for CURRENT branch development
related discussions :-)



that was precisely my question, if it is possible to do *on current* at all. 
because as i pointed out, i havent found almost anyone saying it does on my 
searches.


what i know is that it works with the linux framebuffer sdl directfb. thats it

example, mpv on ports doesnt even seem to have sdl support, neither sdl from 
ports support to drm.


thanks

--tzk



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Ivan Quitschal




On Fri, 19 May 2023, Alastair Hogge wrote:


On 2023-05-19 12:51, Ivan Quitschal wrote:

hi Alastair


Hey Ivan,


could you please tell us how did you do to make mpv working ?

when i try to run it, i get something like this:

$ mpv --vo=drm video.mp4
 (+) Video --vid=1 (*) (h264 424x240 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/drm] No primary DRM device could be picked!
[vo/drm] Failed to find a usable DRM primary node!
[vo/drm] Failed to create KMS.
Error opening/initializing the selected video_out (--vo) device.
Video: no video

Exiting... (Errors when loading file)


thats what i should use correct ? --vo=drm ?


What video card are you using? Have you loaded the kernel driver for it?

To health and anarchy,
Alastair



yes i do. intel hd graphics

 71 0x82f26000   19c948 i915kms.ko

drm.ko is already loaded on the kernel


thats the reason of my question, if bsd can do it to begin with. the zgv app 
that i mentioned for example. the closest thing i found for current vt newcons 
is /usr/ports/graphics/viu (which is not what im after of course)


thanks

--tzk





RFC: MFC'ng a change to struct mount

2023-05-19 Thread Rick Macklem
Hi,

Since there seemed to be interest in it, I have MFC'd most of
the changes needed to run nfsd(8) in a vnet jail to stable/13.

However, there is one change that *might* affect the VFS KAPI.

I need to add a pointer called mnt_exjail to struct mount.

There is a field called mnt_pad0. It is 32bits, but is followed
by a field that is a structure.  As such, replacing it with the pointer
does not change the offsets of subsequent fields for amd64.
--> Since mnt_exjail is only used in generic code, this should
 not break the VFS KAPI for amd64, I think?
I will check i386, but since it will be replacing a 32bit field with a
32bit pointer, I suspect it will be ok.

Does anyone think some other architecture will be broken by this
or know an easy way I can check all arches?

Thanks for any input, rick



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Alastair Hogge
On 2023-05-19 12:51, Ivan Quitschal wrote:
> hi Alastair

Hey Ivan,
 
> could you please tell us how did you do to make mpv working ?
> 
> when i try to run it, i get something like this:
> 
> $ mpv --vo=drm video.mp4
>  (+) Video --vid=1 (*) (h264 424x240 30.000fps)
>  (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
> [vo/drm] No primary DRM device could be picked!
> [vo/drm] Failed to find a usable DRM primary node!
> [vo/drm] Failed to create KMS.
> Error opening/initializing the selected video_out (--vo) device.
> Video: no video
> 
> Exiting... (Errors when loading file)
> 
> 
> thats what i should use correct ? --vo=drm ?

What video card are you using? Have you loaded the kernel driver for it?

To health and anarchy,
Alastair



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Tomek CEDRO
On Fri, May 19, 2023 at 2:51 PM Ivan Quitschal wrote:
> could you please tell us how did you do to make mpv working ?
>
> when i try to run it, i get something like this:
> $ mpv --vo=drm video.mp4
>   (+) Video --vid=1 (*) (h264 424x240 30.000fps)
>   (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
> [vo/drm] No primary DRM device could be picked!
> [vo/drm] Failed to find a usable DRM primary node!
> [vo/drm] Failed to create KMS.
> Error opening/initializing the selected video_out (--vo) device.
> Video: no video

I have it working just with mpv file. Do you have drm kernel module installed?

Btw. freebsd-questions list is better place for this kind of
questions. freebsd-current is specific for CURRENT branch development
related discussions :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Ivan Quitschal



On Fri, 19 May 2023, Alastair Hogge wrote:


On 2023-05-19 11:04, Ivan Quitschal wrote:

Hi all

i have a question. searched everywhere and found nothing about.

Is it possible to visualize photos on tty console like we used to on old 
SYSCONS by using zgv or something?

Or watching videos with mpv/mplayer + sdl 2.0/openGL or something?


As long as those packages support DRMKMS and does your GPU, you can to a
degree. I noticed video works for mpv and games/sdl, tho, I cannot get
input working. I tried the Doom 3 port, and watched movies with mpv all
from the vty just a couple of months ago.

To health and anarchy,
Alastair



hi Alastair

could you please tell us how did you do to make mpv working ?

when i try to run it, i get something like this:

$ mpv --vo=drm video.mp4
 (+) Video --vid=1 (*) (h264 424x240 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/drm] No primary DRM device could be picked!
[vo/drm] Failed to find a usable DRM primary node!
[vo/drm] Failed to create KMS.
Error opening/initializing the selected video_out (--vo) device.
Video: no video

Exiting... (Errors when loading file)


thats what i should use correct ? --vo=drm ?


thanks

--tzk



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Tomek CEDRO
On Fri, May 19, 2023 at 2:29 PM Yuri wrote:
> Tomek CEDRO wrote:
> > On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote:
> >> On 2023-05-19 11:30, Tomek CEDRO wrote:
> >>> On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote:
>  As long as those packages support DRMKMS and does your GPU, you can to a
>  degree. I noticed video works for mpv and games/sdl, tho, I cannot get
>  input working. I tried the Doom 3 port, and watched movies with mpv all
>  from the vty just a couple of months ago.
> >>>
> >>> Yeah, I have input problem too, maybe worth investigating as this is
> >>> really neat feature to have gfx with no Xorg :-)
> >>
> >> It is worth investigating! In a long dead ago project, the input,
> >> events, and displays were all integrated into the vty and mux'd from
> >> there. The kernel provides evdev devices now, and there is a library,
> >> tho I do not know how to get vt(4) to integrate with evdev, or if the
> >> library is the way to do it? Any other ideas?
> >
> > Hey there Niclas :-) Do you know how to enable input devices
> > (keyboard/mouse) in the console graphical applications? Is it
> > possible? :-)
> Wayland something?

We have graphical applications (i.e. SDL) working on a DRM KMS console
with no Xorg nor Wayland.. but no input.. looking for a solution :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Yuri
Tomek CEDRO wrote:
> On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote:
>> On 2023-05-19 11:30, Tomek CEDRO wrote:
>>> On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote:
 As long as those packages support DRMKMS and does your GPU, you can to a
 degree. I noticed video works for mpv and games/sdl, tho, I cannot get
 input working. I tried the Doom 3 port, and watched movies with mpv all
 from the vty just a couple of months ago.
>>>
>>> Yeah, I have input problem too, maybe worth investigating as this is
>>> really neat feature to have gfx with no Xorg :-)
>>
>> It is worth investigating! In a long dead ago project, the input,
>> events, and displays were all integrated into the vty and mux'd from
>> there. The kernel provides evdev devices now, and there is a library,
>> tho I do not know how to get vt(4) to integrate with evdev, or if the
>> library is the way to do it? Any other ideas?
> 
> Hey there Niclas :-) Do you know how to enable input devices
> (keyboard/mouse) in the console graphical applications? Is it
> possible? :-)
Wayland something?



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Tomek CEDRO
On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote:
> On 2023-05-19 11:30, Tomek CEDRO wrote:
> > On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote:
> >> As long as those packages support DRMKMS and does your GPU, you can to a
> >> degree. I noticed video works for mpv and games/sdl, tho, I cannot get
> >> input working. I tried the Doom 3 port, and watched movies with mpv all
> >> from the vty just a couple of months ago.
> >
> > Yeah, I have input problem too, maybe worth investigating as this is
> > really neat feature to have gfx with no Xorg :-)
>
> It is worth investigating! In a long dead ago project, the input,
> events, and displays were all integrated into the vty and mux'd from
> there. The kernel provides evdev devices now, and there is a library,
> tho I do not know how to get vt(4) to integrate with evdev, or if the
> library is the way to do it? Any other ideas?

Hey there Niclas :-) Do you know how to enable input devices
(keyboard/mouse) in the console graphical applications? Is it
possible? :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Alastair Hogge
On 2023-05-19 11:30, Tomek CEDRO wrote:
> On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote:
>> As long as those packages support DRMKMS and does your GPU, you can to a
>> degree. I noticed video works for mpv and games/sdl, tho, I cannot get
>> input working. I tried the Doom 3 port, and watched movies with mpv all
>> from the vty just a couple of months ago.
> 
> Yeah, I have input problem too, maybe worth investigating as this is
> really neat feature to have gfx with no Xorg :-)

It is worth investigating! In a long dead ago project, the input,
events, and displays were all integrated into the vty and mux'd from
there. The kernel provides evdev devices now, and there is a library,
tho I do not know how to get vt(4) to integrate with evdev, or if the
library is the way to do it? Any other ideas?



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Tomek CEDRO
On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote:
> As long as those packages support DRMKMS and does your GPU, you can to a
> degree. I noticed video works for mpv and games/sdl, tho, I cannot get
> input working. I tried the Doom 3 port, and watched movies with mpv all
> from the vty just a couple of months ago.

Yeah, I have input problem too, maybe worth investigating as this is
really neat feature to have gfx with no Xorg :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Re: photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Alastair Hogge
On 2023-05-19 11:04, Ivan Quitschal wrote:
> Hi all
> 
> i have a question. searched everywhere and found nothing about.
> 
> Is it possible to visualize photos on tty console like we used to on old 
> SYSCONS by using zgv or something?
> 
> Or watching videos with mpv/mplayer + sdl 2.0/openGL or something?

As long as those packages support DRMKMS and does your GPU, you can to a
degree. I noticed video works for mpv and games/sdl, tho, I cannot get
input working. I tried the Doom 3 port, and watched movies with mpv all
from the vty just a couple of months ago.

To health and anarchy,
Alastair



photo/video on tty console with the new VT/framebuffer

2023-05-19 Thread Ivan Quitschal

Hi all

i have a question. searched everywhere and found nothing about.

Is it possible to visualize photos on tty console like we used to on old 
SYSCONS by using zgv or something?

Or watching videos with mpv/mplayer + sdl 2.0/openGL or something?

Or seeing pictures on w3m-img like unix does ?


thanks all

--tzk