Re: [PATCH v5 RESEND 1/6] ALSA: compress: Add output rate and output format support

2024-12-05 Thread Vinod Koul
On 04-12-24, 13:33, Shengjiu Wang wrote: > Add 'pcm_format' for struct snd_codec, add 'pcm_formats' for > struct snd_codec_desc, these are used for accelerator usage. > > Current accelerator example is sample rate converter (SRC). > Define struct snd_codec_desc_src for descript minmum and maxmum >

Re: [PATCH 0/4] Add function to constrain rates

2024-12-05 Thread Shengjiu Wang
On Tue, Nov 26, 2024 at 7:55 PM Chancel Liu wrote: > > Platforms like i.MX93/91 only have one audio PLL. Some sample rates are > not supported. If the PLL source is used for 8kHz series rates, then > 11kHz series rates can't be supported. Add common function to constrain > rates according to diffe

Re: [PATCH v2] of: WARN on deprecated #address-cells/#size-cells handling

2024-12-05 Thread Herrenschmidt, Benjamin
On Mon, 2024-12-02 at 16:55 -0600, Rob Herring wrote: >     /* Look for this #address-cells. We have to implement the old linux > * trick of looking for the parent here as some device-trees rely on > it > */ > > Maybe that's from some system long dropped and we don't need it

[PATCH 0/4] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

2024-12-05 Thread Thomas Weißschuh
Most users use this function through the BIN_ATTR_SIMPLE* macros, they can handle the switch transparently. This series is meant to be merged through the driver core tree. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (4): sysfs: constify bin_attribute argument of sysfs_bin_attr_sim

Re: [PATCH v1] perf test expr: Fix system_tsc_freq for only x86

2024-12-05 Thread Namhyung Kim
On Wed, Dec 04, 2024 at 11:09:50PM -0800, Ian Rogers wrote: > On Wed, Dec 4, 2024 at 10:33 PM Ian Rogers wrote: > > > > On Wed, Dec 4, 2024 at 9:47 PM Namhyung Kim wrote: > > > > > > Hi Ian, > > > > > > On Wed, Dec 04, 2024 at 06:23:05PM -0800, Ian Rogers wrote: > > > > The refactoring of tool PM

Re: [RFC PATCH 1/2] sched/fair: introduce new scheduler group type group_parked

2024-12-05 Thread Shrikanth Hegde
On 12/4/24 16:51, Tobias Huschle wrote: A parked CPU is considered to be flagged as unsuitable to process workload at the moment, but might be become usable anytime. Depending on the necessity for additional computation power and/or available capacity of the underlying hardware. A scheduler g

Re: [RFC PATCH 2/2] s390/topology: Add initial implementation for selection of parked CPUs

2024-12-05 Thread Shrikanth Hegde
On 12/4/24 16:51, Tobias Huschle wrote: In this simplified example, vertical low CPUs are parked generally. This will later be adjusted by making the parked state dependent on the overall utilization on the underlying hypervisor. Vertical lows are always bound to the highest CPU IDs. This imp

Re: [PATCH] tools/perf/tests/base_probe: Fix check for the count of existing probes in test_adding_kernel

2024-12-05 Thread Athira Rajeev
> On 14 Nov 2024, at 3:35 PM, Michael Petlan wrote: > > On Sun, 3 Nov 2024, Athira Rajeev wrote: >>> On 17 Oct 2024, at 3:44 PM, Michael Petlan wrote: >>> >>> On Mon, 14 Oct 2024, Athira Rajeev wrote: > [...] >>> >>> I am wondering how it could happen that there were other >>> probes in the

[PATCH 2/4] platform/x86: wmi-bmof: Switch to sysfs_bin_attr_simple_read()

2024-12-05 Thread Thomas Weißschuh
The generic function from the sysfs core can replace the custom one. Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/wmi-bmof.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/platform/x86/wmi-bmof.c b/drivers/platform/x86/wmi-bmof.c index df6f

Re: [PATCH v1] perf test expr: Fix system_tsc_freq for only x86

2024-12-05 Thread Athira Rajeev
> On 5 Dec 2024, at 7:53 AM, Ian Rogers wrote: > > The refactoring of tool PMU events to have a PMU then adding the expr > literals to the tool PMU made it so that the literal system_tsc_freq > was only supported on x86. Update the test expectations to match - > namely the parsing is x86 speci

[PATCH 1/4] sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

2024-12-05 Thread Thomas Weißschuh
Most users use this function through the BIN_ATTR_SIMPLE* macros, they can handle the switch transparently. Also adapt the two non-macro users in the same change. Signed-off-by: Thomas Weißschuh --- arch/powerpc/platforms/powernv/opal.c | 2 +- fs/sysfs/file.c | 2 +- inclu

[PATCH 3/4] btf: Switch vmlinux BTF attribute to sysfs_bin_attr_simple_read()

2024-12-05 Thread Thomas Weißschuh
The generic function from the sysfs core can replace the custom one. Signed-off-by: Thomas Weißschuh --- This is a replacement for [0], as Alexei was not happy about BIN_ATTR_SIMPLE_RO() [0] https://lore.kernel.org/lkml/20241122-sysfs-const-bin_attr-bpf-v1-1-823aea399...@weissschuh.net/ ---

[PATCH 4/4] btf: Switch module BTF attribute to sysfs_bin_attr_simple_read()

2024-12-05 Thread Thomas Weißschuh
The generic function from the sysfs core can replace the custom one. Signed-off-by: Thomas Weißschuh --- kernel/bpf/btf.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index e7a59e6462a9331d0acb17a88a4ebf641509c050..69ca

Re: [PATCH] tools/perf/tests/expr: Make the system_tsc_freq test only for intel

2024-12-05 Thread Athira Rajeev
> On 3 Dec 2024, at 11:46 PM, Namhyung Kim wrote: > > Hello, > > On Fri, Nov 08, 2024 at 10:50:10AM +0530, Athira Rajeev wrote: >> >> >>> On 7 Nov 2024, at 7:26 PM, Leo Yan wrote: >>> >>> Hi Athira, >>> >>> On Wed, Nov 06, 2024 at 03:04:57PM +0530, Athira Rajeev wrote: >>> >>> [...] >>>

Re: [PATCH v2] selftests/ftrace: adjust offset for kprobe syntax error test

2024-12-05 Thread Shuah Khan
On 12/3/24 18:20, Steven Rostedt wrote: On Tue, 3 Dec 2024 18:01:06 -0700 Shuah Khan wrote: On 12/2/24 12:41, Steven Rostedt wrote: On Sat, 30 Nov 2024 01:56:21 +0530 Hari Bathini wrote: In 'NOFENTRY_ARGS' test case for syntax check, any offset X of `vfs_read+X` except function entry of

Re: [PATCH v2] selftests/ftrace: adjust offset for kprobe syntax error test

2024-12-05 Thread Steven Rostedt
On Thu, 5 Dec 2024 09:06:43 -0700 Shuah Khan wrote: > I applied this to linux-kselftest fixes - will send it up for rc2 or rc3 Thanks Shuah, -- Steve

Re: [RFC PATCH 0/2] sched/fair: introduce new scheduler group type group_parked

2024-12-05 Thread Shrikanth Hegde
On 12/4/24 16:51, Tobias Huschle wrote: Adding a new scheduler group type which allows to remove all tasks from certain CPUs through load balancing can help in scenarios where such CPUs are currently unfavorable to use, for example in a virtualized environment. Functionally, this works as int

Re: [PATCH] powerpc: increase MIN RMA size for CAS negotiation

2024-12-05 Thread Madhavan Srinivasan
On 12/5/24 3:40 PM, Avnish Chouhan wrote: > Change RMA size from 512 MB to 768 MB which will result > in more RMA at boot time for PowerPC. When PowerPC LPAR use/uses vTPM, > Secure Boot or FADump, the 512 MB RMA memory is not sufficient for > booting. With this 512 MB RMA, GRUB2 run out of me

[PATCH] powerpc: increase MIN RMA size for CAS negotiation

2024-12-05 Thread Avnish Chouhan
Change RMA size from 512 MB to 768 MB which will result in more RMA at boot time for PowerPC. When PowerPC LPAR use/uses vTPM, Secure Boot or FADump, the 512 MB RMA memory is not sufficient for booting. With this 512 MB RMA, GRUB2 run out of memory and unable to load the necessary. Sometimes eve

Re: [PATCH] powerpc/pseries: Add papr-platform-dump character driver for dump retrieval

2024-12-05 Thread Michal Suchánek
On Wed, Dec 04, 2024 at 06:14:06PM -0800, Haren Myneni wrote: > On Wed, 2024-12-04 at 17:57 +0100, Michal Suchánek wrote: > > On Mon, Dec 02, 2024 at 08:40:05PM -0800, Haren Myneni wrote: > > > On Wed, 2024-11-27 at 10:11 +0100, Michal Suchánek wrote: > > > > On Tue, Nov 26, 2024 at 12:40:20PM -080

Re: (subset) [PATCH treewide 00/11] ASoC: Clean up {hp,mic}-det-gpio handling

2024-12-05 Thread Krzysztof Kozlowski
On Fri, 27 Sep 2024 14:42:15 +0200, Geert Uytterhoeven wrote: > Hi all, > > The "gpio" suffix for GPIO consumers was deprecated a while ago, in > favor of the "gpios" suffix. However, there are still several users of > the "hp-det-gpio" and "mic-det-gpio" properties, in DT bindings, > dri

Re: [PATCH 3/5] powerpc/powernv/flash: Use BIN_ATTR_ADMIN_WO() for bin_attribute definition

2024-12-05 Thread Tzung-Bi Shih
On Mon, Dec 02, 2024 at 08:00:38PM +0100, Thomas Weißschuh wrote: > Using the macro saves some lines of code and prepares the attribute for > the general constifications of struct bin_attributes. > > While at it also constify the callback parameter. > > Signed-off-by: Thomas Weißschuh Reviewed-

Re: [PATCH 1/5] sysfs: add macro BIN_ATTR_ADMIN_WO()

2024-12-05 Thread Tzung-Bi Shih
On Mon, Dec 02, 2024 at 08:00:36PM +0100, Thomas Weißschuh wrote: > The macros BIN_ATTR_RO/BIN_ATTR_WO/BIN_ATTR_WR and > BIN_ATTR_ADMIN_RO/BIN_ATTR_ADMIN_RW already exist. > To complete the collection also add BIN_ATTR_ADMIN_WO. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Tzung-Bi Shih

Re: [PATCH 4/5] firmware: google: gsmi: Use BIN_ATTR_ADMIN_WO() for bin_attribute definition

2024-12-05 Thread Tzung-Bi Shih
On Mon, Dec 02, 2024 at 08:00:39PM +0100, Thomas Weißschuh wrote: > Using the macro saves some lines of code and prepares the attribute for > the general constifications of struct bin_attributes. > > While at it also constify the callback parameter. > > Signed-off-by: Thomas Weißschuh Acked-by:

Re: [PATCH 5/5] scsi: arcmsr: Use BIN_ATTR_ADMIN_WO() for bin_attribute definitions

2024-12-05 Thread Tzung-Bi Shih
On Mon, Dec 02, 2024 at 08:00:40PM +0100, Thomas Weißschuh wrote: > Using the macro saves some lines of code and prepares the attributes for > the general constifications of struct bin_attributes. > > While at it also constify the callback parameters. > > Signed-off-by: Thomas Weißschuh Reviewe

Re: [PATCH 2/5] s390/sclp_config: use BIN_ATTR_ADMIN_WO() for bin_attribute definition

2024-12-05 Thread Tzung-Bi Shih
On Mon, Dec 02, 2024 at 08:00:37PM +0100, Thomas Weißschuh wrote: > Using the macro saves some lines of code and prepares the attribute for > the general constifications of struct bin_attributes. > > While at it also constify the callback parameter. > > Signed-off-by: Thomas Weißschuh Reviewed-