Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-23 Thread Marco Rebhan
On Thursday, 23 September 2021 20:23:57 CEST Alan Mackenzie wrote:
> Where would I find a suitable kernel git repository to clone?  An
> "official" repository, whatever that means?  Ideally, I want one with
> just the various kernel releases, not one containing gigabytes of
> intermediate versions.  Where would I even start searching to find
> this out?

Hey Alan,

The official repository I think is
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/.
What I would do is apply your patch on top of that, and then to update 
it, rebase the patch onto the new upstream commit you want to update to. 
This leads to your patches always being at the tip of the commit history 
and not somewhere buried between commits from upstream.

However, this rewrites git history so you'd have to force push the 
branch to whatever remote you're tracking it in, so keep that in mind.

You could do this though and additionally have another branch where you 
track the patch files themselves that are rebased onto a certain kernel 
commit (you can export them with "git format-patch upstream/master" if 
upstream/master is whatever branch the patch is currently rebased on). 
That of course you don't have to then force push.

I hope this helps :P

-Marco

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-23 Thread Ramon Fischer
If GitHub is preferred, there is also an official GitHub repository of 
the Linux Kernel: https://github.com/torvalds/linux


-Ramon

On 23/09/2021 21:27, Marco Rebhan wrote:

On Thursday, 23 September 2021 20:23:57 CEST Alan Mackenzie wrote:

Where would I find a suitable kernel git repository to clone?  An
"official" repository, whatever that means?  Ideally, I want one with
just the various kernel releases, not one containing gigabytes of
intermediate versions.  Where would I even start searching to find
this out?

Hey Alan,

The official repository I think is
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/.
What I would do is apply your patch on top of that, and then to update
it, rebase the patch onto the new upstream commit you want to update to.
This leads to your patches always being at the tip of the commit history
and not somewhere buried between commits from upstream.

However, this rewrites git history so you'd have to force push the
branch to whatever remote you're tracking it in, so keep that in mind.

You could do this though and additionally have another branch where you
track the patch files themselves that are rebased onto a certain kernel
commit (you can export them with "git format-patch upstream/master" if
upstream/master is whatever branch the patch is currently rebased on).
That of course you don't have to then force push.

I hope this helps :P

-Marco


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF




OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.

2021-09-23 Thread Alan Mackenzie
Hello, Gentoo.

Over the last few months I've posted several versions of my kernel patch
which re-enables soft scrollback.  I thought at the time I could just
keep a few files informally in my home directory.  But I'm already
getting confused about what is where, what applies to which kernel
versions and so on.

Clearly I need to put the patch into a version control system.  I would
appreciate some advice on this.

I think I need to get a clone of the kernel's git repository, and
maintain the patch in it as a branch or several branches.  Or would it be
feasible just to maintain the patch in a VCS?  My feeling is that I
really need the full repository.

Where would I find a suitable kernel git repository to clone?  An
"official" repository, whatever that means?  Ideally, I want one with
just the various kernel releases, not one containing gigabytes of
intermediate versions.  Where would I even start searching to find this
out?

Once I've got this far, I'll need to think about a versioning scheme for
the patch - there are irritating little differences in the console code
between versions of the kernel, as recently pointed out by Jorge Almeida,
so there would be irritating differences between versions of the patch.

Maybe I could put it onto the Gentoo wiki, but that's not in the near
future.

Thanks for the help!

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Michael
On Thursday, 23 September 2021 17:38:15 BST Peter Humphrey wrote:

> I've booted a kernel with no NUMA config, and it seems to run fine on this
> single-socket Ryzen motherboard. I just get the one entry in dmesg:
> 
> $ dmesg | grep -i numa
> [0.297998] pci_bus :00: on NUMA node 0
> 
> That's it. I'm running five BOINC projects, some of which run on vbox, so on
> this motherboard it seems clear that I don't need NUMA.

Out of interest, have you tried booting a NUMA enabled kernel to see what 
dmesg reports?  On an old laptop, which definitely has only a single AMD APU, 
I get:

$ dmesg | grep -i NUMA -A2
[0.002078] No NUMA configuration found
[0.002080] Faking a node at [mem 0x-0x00042eff]
[0.002085] NODE_DATA(0) allocated [mem 0x42effc000-0x42eff]


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Chrome - no system title bar or boarders

2021-09-23 Thread Steve Evans
On Thu, 23 Sep 2021 09:53:57 -0700
Mark Knecht  wrote:

> Sorry to cross post. I put this on the KDE list yesterday but no
> responses. As I run Kubuntu I thought that it would be a better place
> to start.
> 
> Starting yesterday morning both of my KDE machines no longer show a
> system title bar or border for Chrome, and only Chrome. All other
> apps are fine. Right clicking the Chrome tab area has a checkbox for
> 'Use system title bar and borders' but it does nothing. Chrome
> version 94.0.4606.54.
> 
> Losing the title bar means losing (as far as I know) the ability to
> pin an instance of Chrome to all virtual desktops which I use for
> browser streamed media - YouTube, Netflix, etc. I've switched that
> window to Firefox for the time being.
> 
> As Gentoo is usually a bit further forward I wondered if anyone here
> using Chrome and KDE has seen this issue?
> 

Mine is also missing the title bar. However the "Use system
title bar and borders" /does/ restore the normal title bar for me. This
is also version 94.0.4606.54 on KDE.

Steve
-- 

Steve EvansE-mail: mailto:ste...@gorbag.com
Registered Linux user #217906: http://counter.li.org
Public Encryption Key: http://www.gorbag.com/public-key.html


5.10.61-gentoo Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GNU/Linux

 19:04:28 up 3 days,  8:44,  5 users,  load average: 3.91, 2.21, 1.25

No matter how cynical you get, it's impossible to keep up.



Re: [gentoo-user] console scrollback (kernel 5.14)

2021-09-23 Thread Alan Mackenzie
Hello, Jorge.

On Wed, Sep 22, 2021 at 22:40:11 +0100, Jorge Almeida wrote:
> On Wed, Sep 22, 2021 at 9:29 PM Alan Mackenzie  wrote:

> Hi Alan, thanks for the reply

> > I must confess that somebody told me by private email that it fails on
> > systems which change their screen geometry during boot-up.  For example,
> > a system which first boots into 80x25, then changes to a frame buffer.
> > I know why this is happening, but I don't have a machine to debug it on,
> > so the debugging is happening slowly, with the help of my correspondent.

> > It also doesn't seem to work on machines with kernel parameters such as
> > vga=791.

> OK, I don't know much about this kind of stuff, but I don't think
> there's a problem there. I have an integrated GPU (intel), driver
> i915, resolution 1920x1080. It boots (via Refind) with the proper
> resolution, and that's it. All the VTs show the same resolution and
> font. I don't use a login manager. No problems, no change is supposed
> to happen. I start an X session from a login shell, in any VT except
> tty1, which I like to keep as console.

Sounds pretty much like my setup.  :-)

> > I'm assuming that the patch you tried to apply was
> > 5.10.49-scroll.20210715.diff.  If so, please leave it applied (with the
> > one failed hunk), and additionally apply this:

> I may have missed some announcement from you, I'm using
> diff.20210405.diff. I wasn't aware of newer versions. Is there an URL
> to download it? I would try it before trying to apply the patch
> included in your message.

I'm currently discovering what version control systems are for.  :-(
Even though I've only posted two or three versions of my patch, I'm
already having difficulty keeping track of it.  I no longer believe
keeping the patch informally is going to work.  I think I'm going to
have to clone the git repository of the kernel (about which I'm going to
ask on another thread).

Anyhow, back to the topic.  There's no URL with my patch; it's purely
posted on gentoo-users.  Maybe I should put it into the Gentoo wiki.
But first, I must get it into a proper VCS.

As for the two(?) versions of my patch, they differed mainly in the
aesthetics - diff.20210405.diff had lots of ugly maintainer comments in
it.  So, could I ask you please to try that 1-hunk patch I posted
yesterday on top of the version you have.  Please then tell me whether
or not it works.

I am going to get this unsystematic muddle sorted out.

> Thanks,

> Jorge Almeida

-- 
Alan Mackenzie (Nuremberg, Germany).



[gentoo-user] Chrome - no system title bar or boarders

2021-09-23 Thread Mark Knecht
Sorry to cross post. I put this on the KDE list yesterday but no responses.
As I run Kubuntu I thought that it would be a better place to start.

Starting yesterday morning both of my KDE machines no longer show a system
title bar or border for Chrome, and only Chrome. All other apps are fine.
Right clicking the Chrome tab area has a checkbox for 'Use system title bar
and borders' but it does nothing. Chrome version 94.0.4606.54.

Losing the title bar means losing (as far as I know) the ability to pin an
instance of Chrome to all virtual desktops which I use for browser streamed
media - YouTube, Netflix, etc. I've switched that window to Firefox for the
time being.

As Gentoo is usually a bit further forward I wondered if anyone here using
Chrome and KDE has seen this issue?

Thanks,
Mark


Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Peter Humphrey
On Thursday, 23 September 2021 17:32:46 BST Charlotte Delenk wrote:
> On 9/23/21 18:30, Grant Taylor wrote:
> 
> > On 9/23/21 4:39 AM, Miles Malone wrote:
> > 
> >> You'd need NUMA if you had a NUMA machine.  In current context, that 
> >> would be either a) a dual socket system, b) an amd threadripper, or 
> >> c) some of the really high core xeons.  If your motherboard doesnt 
> >> have certain memory banks allocated to certain processors or cores, 
> >> you're probably not running a NUMA machine.
> >
> >
> >
> > Will a kernel without NUMA support boot and run on a system that has a 
> > NUMA architecture?
> >
> >
> >
> > If it will boot and run, does it simply do so in a sub-optimal way?
> 
> Pure speculation for this one but if it works it's probably only going 
> to detect part of the memory and some of the devices and one cpu, since 
> the other resources are physically connected to the other cpus.
> 
> >
> >
> > Flipping the coin on the other side, is there any negative effect 
> > (other than kernel size / lines of code / attack surface) for having 
> > NUMA support enabled on a non-NUMA system?
> 
> There is no meaningful downside to leaving it enabled, it's enabled in 
> many distribution kernels for a reason.

I've booted a kernel with no NUMA config, and it seems to run fine on this 
single-socket Ryzen motherboard. I just get the one entry in dmesg:

$ dmesg | grep -i numa
[0.297998] pci_bus :00: on NUMA node 0

That's it. I'm running five BOINC projects, some of which run on vbox, so on 
this motherboard it seems clear that I don't need NUMA.

-- 
Regards,
Peter.






Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Charlotte Delenk

On 9/23/21 18:30, Grant Taylor wrote:

On 9/23/21 4:39 AM, Miles Malone wrote:
You'd need NUMA if you had a NUMA machine.  In current context, that 
would be either a) a dual socket system, b) an amd threadripper, or 
c) some of the really high core xeons.  If your motherboard doesnt 
have certain memory banks allocated to certain processors or cores, 
you're probably not running a NUMA machine.


Will a kernel without NUMA support boot and run on a system that has a 
NUMA architecture?


If it will boot and run, does it simply do so in a sub-optimal way?
Pure speculation for this one but if it works it's probably only going 
to detect part of the memory and some of the devices and one cpu, since 
the other resources are physically connected to the other cpus.


Flipping the coin on the other side, is there any negative effect 
(other than kernel size / lines of code / attack surface) for having 
NUMA support enabled on a non-NUMA system?
There is no meaningful downside to leaving it enabled, it's enabled in 
many distribution kernels for a reason.


OpenPGP_0x3CEF5DDA915AECB0.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Grant Taylor

On 9/23/21 4:39 AM, Miles Malone wrote:
You'd need NUMA if you had a NUMA machine.  In current context, that 
would be either a) a dual socket system, b) an amd threadripper, or 
c) some of the really high core xeons.  If your motherboard doesnt 
have certain memory banks allocated to certain processors or cores, 
you're probably not running a NUMA machine.


Will a kernel without NUMA support boot and run on a system that has a 
NUMA architecture?


If it will boot and run, does it simply do so in a sub-optimal way?

Flipping the coin on the other side, is there any negative effect (other 
than kernel size / lines of code / attack surface) for having NUMA 
support enabled on a non-NUMA system?




--
Grant. . . .
unix || die



RE: [gentoo-user] Re: acrobat reader

2021-09-23 Thread Laurence Perkins
The fact that the form is completely unsupported on mobile coupled with the way 
many people are moving exclusively to tablet/phone platforms these days might 
be enough to convince them that it's time for an update if you sent them a 
message about it.  They generally like to preserve the illusion that they're 
competent.

The next version may or may not be worse than this one...

LMP

-Original Message-
From: Grant Edwards  
Sent: Wednesday, September 22, 2021 1:13 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: acrobat reader

On 2021-09-22, the...@sys-concept.com  wrote:

> This is the form I'm trying to open:
>
> https://cfr.forms.gov.ab.ca/Form/AHC0102.pdf

That's an abomination that use Javascript and dynamic XFA content:

   https://kbpdfstudio.qoppa.com/livecycle-dynamic-xfa-forms/

Whoever designed something like that for use by the general public needs to 
have thier career terminated before they cause any more damage.

--
Grant








Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Peter Humphrey
On Thursday, 23 September 2021 11:39:39 BST Miles Malone wrote:
> You'd need NUMA if you had a NUMA machine.  In current context, that
> would be either a) a dual socket system, b) an amd threadripper, or c)
> some of the really high core xeons.  If your motherboard doesnt have
> certain memory banks allocated to certain processors or cores, you're
> probably not running a NUMA machine.
> 
> NUMA stands for non-uniform memory access, it means that certain
> processor cores have more direct access to certain parts of memory
> than others do (e.g. to access the other memory they need the other
> cpu core to pass it through)
> 
> On Thu, 23 Sept 2021 at 19:39, Charlotte Delenk  
wrote:
> > Hi Peter,
> > 
> > On 9/23/21 10:59, Peter Humphrey wrote:
> > > Hello list,
> > > 
> > > I see "[0.003162] No NUMA configuration found" in dmesg. Does that
> > > mean I should, or can, remove the NUMA settings from the kernel? This
> > > is a Ryzen M9 5900X machine.
> > 
> > I have CONFIG_NUMA unset on both of my AMD Ryzen machines (Zen+ and
> > Zen2) with no issues

Thank you both. I'll try removing it and see what happens.

-- 
Regards,
Peter.






Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Miles Malone
You'd need NUMA if you had a NUMA machine.  In current context, that
would be either a) a dual socket system, b) an amd threadripper, or c)
some of the really high core xeons.  If your motherboard doesnt have
certain memory banks allocated to certain processors or cores, you're
probably not running a NUMA machine.

NUMA stands for non-uniform memory access, it means that certain
processor cores have more direct access to certain parts of memory
than others do (e.g. to access the other memory they need the other
cpu core to pass it through)

On Thu, 23 Sept 2021 at 19:39, Charlotte Delenk  wrote:
>
> Hi Peter,
>
> On 9/23/21 10:59, Peter Humphrey wrote:
> > Hello list,
> >
> > I see "[0.003162] No NUMA configuration found" in dmesg. Does that mean 
> > I
> > should, or can, remove the NUMA settings from the kernel? This is a Ryzen M9
> > 5900X machine.
>
> I have CONFIG_NUMA unset on both of my AMD Ryzen machines (Zen+ and
> Zen2) with no issues
>
>



Re: [gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Charlotte Delenk

Hi Peter,

On 9/23/21 10:59, Peter Humphrey wrote:

Hello list,

I see "[0.003162] No NUMA configuration found" in dmesg. Does that mean I
should, or can, remove the NUMA settings from the kernel? This is a Ryzen M9
5900X machine.


I have CONFIG_NUMA unset on both of my AMD Ryzen machines (Zen+ and 
Zen2) with no issues





OpenPGP_0x3CEF5DDA915AECB0.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-user] Do I need NUMA set up in my kernel?

2021-09-23 Thread Peter Humphrey
Hello list,

I see "[0.003162] No NUMA configuration found" in dmesg. Does that mean I 
should, or can, remove the NUMA settings from the kernel? This is a Ryzen M9 
5900X machine.

I have this at the moment:

$ grep NUMA /usr/src/linux/.config
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
# CONFIG_NUMA_BALANCING is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
# CONFIG_NUMA_EMU is not set
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_ACPI_NUMA=y
CONFIG_NUMA_KEEP_MEMINFO=y

-- 
Regards,
Peter.