Re: [PATCH rcu] configs/debug: make sure PROVE_RCU_LIST=y takes effect

2024-10-15 Thread Joel Fernandes
_LIST=y. Make sure CIs take advantage > of CONFIG_PROVE_RCU_LIST=y, recent fixes in networking > indicate that it does catch bugs. > > Signed-off-by: Jakub Kicinski Reviewed-by: Joel Fernandes (Google) thanks, - Joel > --- > I'd be slightly tempted to still send it to

Re: [PATCH rcu 0/3] RCU CPU stall-warning changes for v6.13

2024-10-15 Thread Joel Fernandes
On Tue, Oct 15, 2024 at 04:02:37PM -0700, Paul E. McKenney wrote: > On Tue, Oct 15, 2024 at 02:49:06PM -0400, Joel Fernandes wrote: > > On Wed, Oct 09, 2024 at 11:05:02AM -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > This series contains RCU

Re: [PATCH rcu 0/3] RCU CPU stall-warning changes for v6.13

2024-10-15 Thread Joel Fernandes
nds. > > 3.Finer-grained grace-period-end checks in rcu_dump_cpu_stacks(). > Other than small nit in 2/3, Reviewed-by: Joel Fernandes (Google) I was curious if you're seeing perf or other improvements with the finer-grained rnp locking. thanks, - Joel >

Re: [PATCH rcu 2/3] rcu: Stop stall warning from dumping stacks if grace period ends

2024-10-15 Thread Joel Fernandes
if (gp_seq != rcu_state.gp_seq) { > + pr_err("INFO: Stall ended during stack backtracing.\n"); > + return; > + } small nit, this also needs data_race() like you did in next patch? Although you did delete this code in

Re: [PATCH 3/3] rcu: Report callbacks enqueued on offline CPU blind spot

2024-10-10 Thread Joel Fernandes
san_record_aux_stack_noalloc(head); > > > > + > > > > local_irq_save(flags); > > > > rdp = this_cpu_ptr(&rcu_data); > > > > + RCU_LOCKDEP_WARN(rcu_rdp_cpu_online(rdp), "Callback enqueued on > > > > offline > > > > CPU!"); > > > > > > This should be !rcu_rdp_cpu_online(rdp) > > > > > > Sigh... > > > > I am pulling this in for testing with this change, thank you! > > And: > > Tested-by: Paul E. McKenney With the correction, Reviewed-by: Joel Fernandes (Google) thanks, - Joel

Re: [PATCH 2/3] rcu/nocb: Fix rcuog wake-up from offline softirq

2024-10-09 Thread Joel Fernandes
; alternative fix be (pseudocode): > > > > Change the following in the "if (was_alldone)" block: > > > >if (!irqs_disabled_flags(flags)) { > > > > to: > >if (!irqs_disabled_flags(flags) && !in_softirq()) > > > > ? > > > > That way perhaps an additional RCU_NOCB flag is not needed. > > > > Or does that not work for some reason? > > It works but this forces the wake-up through the timer when a callback is > enqueued from softirqs. And waking up from the timer is a bit more overhead > and also added GP delay. It could be this though: > > if (!irqs_disabled_flags(flags) && cpu_online(smp_processor_id())) > This makes sense to me and also will future-proof this code path from potential users who end up here. I think it will work. Feel free to add to this and the next patch: Reviewed-by: Joel Fernandes (Google) thanks, - Joel

Re: [PATCH 2/3] rcu/nocb: Fix rcuog wake-up from offline softirq

2024-10-09 Thread Joel Fernandes
NE, > + TPS("WakeEmptyIsDeferredOffline")); > + } else if (lazy_len && bypass_len == lazy_len) { Since the call stack is when softirqs are disabled, would an alternative fix be (pseudocode): Change the following in the "if (was_alldone)" block: if (!irqs_disabled_flags(flags)) { to: if (!irqs_disabled_flags(flags) && !in_softirq()) ? That way perhaps an additional RCU_NOCB flag is not needed. Or does that not work for some reason? thanks, - Joel

Re: [RFC PATCH v3 4/4] sched+mm: Use hazard pointers to track lazy active mm existence

2024-10-08 Thread Joel Fernandes
he mm_struct object because direct access to mm_struct should require a proper mmgrab(), not a lazy_tlb flavored one? -- correct me if I'm wrong though. Also, isn't it that on x86, now with this patch there will be more IPIs, whereas previously the global refcount was not requiring that as the last kthread switching out would no longer access the old mm? Might it be worth checking the performance of fork/exit and if that scales? thanks, - Joel

Re: [RFC PATCH v2 3/4] hp: Implement Hazard Pointers

2024-10-04 Thread Joel Fernandes
xtract the AST for superior code browsing/completion. Also have you looked at the benefits of inlining for hp.h? hp_dereference_allocate() seems large enough that inlining may not matter much, but I haven't compiled it and looked at the asm myself. Will continue staring at the code. thanks, - J

Re: [RFC PATCH v2 2/4] Documentation: RCU: Refer to ptr_eq()

2024-10-04 Thread Joel Fernandes
Cc: Boqun Feng > Cc: Alan Stern > Cc: John Stultz > Cc: Neeraj Upadhyay > Cc: Linus Torvalds > Cc: Boqun Feng > Cc: Frederic Weisbecker > Cc: Joel Fernandes Reviewed-by: Joel Fernandes (Google) thanks, - Joel

Re: [RFC PATCH 1/4] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-03 Thread Joel Fernandes
On Thu, Oct 3, 2024 at 10:21 AM Mathieu Desnoyers wrote: > > > > Reviewed-by: Joel Fernandes (Google) > > Please double-check with -O2, and let me know if you still agree with > the patch :) > You are quite right, with -O2 I can indeed see that the optimize hide var fi

Re: [RFC PATCH 1/4] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-02 Thread Joel Fernandes
a and b stored on the stack through a washing machine:         ldr     x0, [sp, 8]         str     x0, [sp, 8]         ldr     x0, [sp]         str     x0, [sp] And here I thought the "" in OPTIMIZER_HIDE_VAR was not supposed to generate any code but I guess it is still a NOOP. Anyway, as such this LGTM since whether OPTIMIZER_HIDE_VAR() used or not, it does fix the problem. Reviewed-by: Joel Fernandes (Google) thanks, - Joel

Re: [PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-11 Thread Joel Granados
On Tue, Oct 10, 2023 at 03:22:34PM -0700, Luis Chamberlain wrote: > On Mon, Oct 02, 2023 at 01:30:35PM +0200, Joel Granados via B4 Relay wrote: > > V3: > > * Removed the ia64 patch to avoid conflicts with the ia64 removal > > * Rebased onto v6.6-rc4 > > * Kept/added

[PATCH v3 2/7] arm: Remove now superfluous sentinel elem from ctl_table arrays

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 7/7] c-sky: Remove now superfluous sentinel element from ctl_talbe array

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 0/7] sysctl: Remove sentinel elements from arch

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados What? These commits remove the sentinel element (last empty element) from the sysctl arrays of all the files under the "arch/" directory that use a sysctl array for registration. The merging of the preparation patches (in https://lore.kernel.org/all/zo5yx

[PATCH v3 6/7] powerpc: Remove now superfluous sentinel element from ctl_table arrays

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 3/7] arch/x86: Remove now superfluous sentinel elem from ctl_table arrays

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 1/7] S390: Remove now superfluous sentinel elem from ctl_table arrays

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 4/7] x86/vdso: Remove now superfluous sentinel element from ctl_table array

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v3 5/7] riscv: Remove now superfluous sentinel element from ctl_table array

2023-10-02 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 4/8] x86/vdso: Remove now superfluous sentinel element from ctl_table array

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 7/8] ia64: Remove now superfluous sentinel element from ctl_table array

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 8/8] c-sky: Remove now superfluous sentinel element from ctl_talbe array

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 6/8] powerpc: Remove now superfluous sentinel element from ctl_table arrays

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 3/8] arch/x86: Remove now superfluous sentinel elem from ctl_table arrays

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 2/8] arm: Remove now superfluous sentinel elem from ctl_table arrays

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 0/8] sysctl: Remove sentinel elements from arch

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados What? These commits remove the sentinel element (last empty element) from the sysctl arrays of all the files under the "arch/" directory that use a sysctl array for registration. The merging of the preparation patches (in https://lore.kernel.org/all/zo5yx

[PATCH v2 5/8] riscv: Remove now superfluous sentinel element from ctl_table array

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

[PATCH v2 1/8] S390: Remove now superfluous sentinel elem from ctl_table arrays

2023-09-13 Thread Joel Granados via B4 Relay
From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https

Re: [PATCH 5/9] sched: prctl() core-scheduling interface

2021-04-17 Thread Joel Fernandes
ow the prctl(2). This has the nice design that the security is enforced on entering the sandbox, and prior to entering the sandbox, no permissions need be given. Let me know if that makes sense and if you had any other questions. thanks, -Joel

Re: [PATCH 0/9] sched: Core scheduling interfaces

2021-04-17 Thread Joel Fernandes
On Tue, Apr 06, 2021 at 10:16:12AM -0400, Tejun Heo wrote: > Hello, > > On Mon, Apr 05, 2021 at 02:46:09PM -0400, Joel Fernandes wrote: > > Yeah, its at http://lore.kernel.org/r/20200822030155.ga414...@google.com > > as mentioned above, let me know if you need any more deta

Re: [PATCH v1] ARM: dts: Fix 64MiB OpenBMC flash layout and aspeed-ast2600-evb.dts

2021-04-15 Thread Joel Stanley
On Tue, 16 Mar 2021 at 08:59, Troy Lee wrote: > > Aspeed AST2600 u-boot requires 600KiB+ flash space. Sharing the same > openbmc-flash-layout-64.dtsi requires to resize the flash partition. > > The updated flash layout as follows: > - u-boot: 896 KiB > - u-boot-env: 128 KiB > - kernel: 9MiB > - ro

Re: [PATCH] arm: dts: aspeed: tiogapass: add hotplug controller

2021-04-15 Thread Joel Stanley
On Thu, 15 Apr 2021 at 14:05, Paul Fertser wrote: > > The ADM1278 IC is accessible on I2C bus and on both Wiwynn and Quanta > Tioga Pass implementations a pair of parallel 0.5 mOhm resistors is used > for current measurement. > > Signed-off-by: Paul Fertser Thanks, applied. > --- > arch/arm/bo

Re: [PATCH] ARM: dts: aspeed: amd-ethanolx: Enable all used I2C busses

2021-04-15 Thread Joel Stanley
On Thu, 15 Apr 2021 at 15:53, Konstantin Aladyshev wrote: > > Enable all I2C busses that are used in AMD EthanolX CRB: > i2c0 - APML P0 > i2c1 - APML P1 > i2c2 - FPGA > i2c3 - 24LC128 EEPROM > i2c4 - P0 Power regulators > i2c5 - P1 Power regulators > i2c6 - P0/P1 Thermal diode > i2c7 - The

Re: [PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread Joel Stanley
s/1000, which are microseconds. I think the existing test is correct? As far as integer overflow is concerned, max_hw_heartbeat_ms is an unsigned int. We set it to 4294967, which *1000 = 0xfed8. This should be fine. > + wdd->timeout = actual; This might be the correct t

Re: [PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-04-11 Thread Joel Stanley
merged (both to mainline for v5.13 and in openbmc), so any fixups need to come as patches on top of the existing code. Cheers, Joel

Re: [PATCH] spi: Fix use-after-free with devm_spi_alloc_*

2021-04-08 Thread Joel Stanley
ices registered with devm_spi_alloc_{master,slave}() to be > mistakenly identified as legacy, non-devm managed devices and have their > reference counters decremented below 0. Thanks for spending the time to track down the bug and sending a fix for it. I appreciate it! Reviewed-by: Jo

Re: [PATCH v2 00/10] Initial support for Nuvoton WPCM450 BMC SoC

2021-04-08 Thread Joel Stanley
gt; > It appears these patches are doing roughly the right thing, and we may still > > be able to get them into v5.13, but I'm not sure what your plan for > > maintaining > > them is. The two options are that you either send your patches to be picked > > up >

Re: [PATCH v2 00/21] ipmi: Allow raw access to KCS devices

2021-04-08 Thread Joel Stanley
er job of communicating > that :) I'll merge the first five through the aspeed tree this coming merge window. We have acks from the relevant maintainers. Arnd: would you prefer that this come as it's own pull request, or as part of the device tree branch? Andrew, Corey: once I've got my pull requests out I'll look at reviewing the rest of the series. Perhaps it would pay to re-send that hunk of patches Andrew with the nits fixed? Cheers, Joel

Re: [PATCH v2 05/21] soc: aspeed: Adapt to new LPC device tree layout

2021-04-08 Thread Joel Stanley
f-by: Chia-Wei Wang > Reviewed-by: Andrew Jeffery Reviewed-by: Joel Stanley

Re: [PATCH v2 04/21] pinctrl: aspeed-g5: Adapt to new LPC device tree layout

2021-04-08 Thread Joel Stanley
f-by: Chia-Wei Wang > Reviewed-by: Andrew Jeffery > Acked-by: Linus Walleij Reviewed-by: Joel Stanley

Re: [PATCH v2 03/21] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2021-04-08 Thread Joel Stanley
f-by: Chia-Wei Wang > Reviewed-by: Andrew Jeffery > Acked-by: Haiyue Wang Reviewed-by: Joel Stanley

Re: [PATCH v2 01/21] dt-bindings: aspeed-lpc: Remove LPC partitioning

2021-04-08 Thread Joel Stanley
ted in the DTS node examples > are also fixed to adapt to the LPC DTS change. Is this accurate: The node examples change their reg address to be an offset from the LPC HC to be an offset from the base of the LPC region. Reviewed-by: Joel Stanley > > Signed-off-by: Chia-Wei Wang >

[RESEND PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add audio support

2021-04-07 Thread Joel Selvaraj
This patch adds audio support for Xiaomi Poco F1 phone. Phone's primary Mic and 3.5mm Headphone jack are handled through the SDM845 sound card and WCD9340 codec. Tested-by: Amit Pundir Signed-off-by: Joel Selvaraj --- .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 117

Re: [PATCH 0/4] occ: fsi and hwmon: Fixes for polling un-initialized OCC

2021-04-06 Thread Joel Stanley
t; error > > condition unless there is no valid response before the timeout > > expires. So > > change the starting sequence number and check for the un-initialized > > OCC > > state before returning the response in order to detect this condition > > and > >

Re: [PATCH 2/4] fsi: occ: Log error for checksum failure

2021-04-06 Thread Joel Stanley
On Tue, 9 Feb 2021 at 17:13, Eddie James wrote: > > Log an error if the response checksum doesn't match the > calculated checksum. Reviewed-by: Joel Stanley > > Signed-off-by: Eddie James > --- > drivers/fsi/fsi-occ.c | 10 +++--- > 1 file changed,

Re: [PATCH 1/4] fsi: occ: Don't accept response from un-initialized OCC

2021-04-06 Thread Joel Stanley
On Tue, 9 Feb 2021 at 17:12, Eddie James wrote: > > If the OCC is not initialized and responds as such, the driver > should continue waiting for a valid response until the timeout > expires. > > Signed-off-by: Eddie James Reviewed-by: Joel Stanley I guess we should ad

Re: [PATCH 0/9] sched: Core scheduling interfaces

2021-04-05 Thread Joel Fernandes
oper > interface but that's the least of concerns here. > > Can someone point me to a realistic and concrete usage scenario for this > feature? Yeah, its at http://lore.kernel.org/r/20200822030155.ga414...@google.com as mentioned above, let me know if you need any more details about usecase. About the file name, how about kernel/sched/smt.c ? That definitely provides more information than 'core_sched.c'. Thanks, - Joel

Re: [PATCH v2 2/3] drivers/tty/serial/8250: add DT property for aspeed vuart sirq polarity

2021-03-31 Thread Joel Stanley
On Thu, 1 Apr 2021 at 00:57, Zev Weiss wrote: > > This provides a simple boolean to use instead of the deprecated > aspeed,sirq-polarity-sense property. > > Signed-off-by: Zev Weiss > --- > drivers/tty/serial/8250/8250_aspeed_vuart.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/dr

Re: [PATCH v2 1/3] dt-bindings: serial: 8250: deprecate aspeed,sirq-polarity-sense

2021-03-31 Thread Joel Stanley
Zev Weiss Reviewed-by: Joel Stanley > --- > Documentation/devicetree/bindings/serial/8250.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/serial/8250.yaml > b/Documentation/devicetree/bindings/serial/8250.yaml > index f54cae9ff7b

Re: [PATCH] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-31 Thread Joel Stanley
intainers to apply a patch directly without going through another maintainer. In this case the patch should go through the aspeed maintainer's tree (me), so you don't need to cc that address. > Signed-off-by: Zev Weiss > Reviewed-by: Joel Stanley > --- This spot just here is where

Re: [PATCH v2] ARM: dts: nuvoton: Fix flash layout

2021-03-31 Thread Joel Stanley
Signed-off-by: Anton D. Kachalov I believe you discussed what approach to take and this was agreed upon. Can I get an ack from some other nuvoton people before I apply? Cheers, Joel > > --- > > arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 38 +++ > > 1 file

Re: [PATCH 3/3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-31 Thread Joel Stanley
On Wed, 31 Mar 2021 at 07:41, Joel Stanley wrote: > > On Tue, 30 Mar 2021 at 00:25, Zev Weiss wrote: > > > > This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series > > mini-ITX board that we hope can provide a decent platform for OpenBMC > > dev

Re: [PATCH 3/3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-31 Thread Joel Stanley
On Wed, 31 Mar 2021 at 07:41, Joel Stanley wrote: > > On Tue, 30 Mar 2021 at 00:25, Zev Weiss wrote: > > > > This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series > > mini-ITX board that we hope can provide a decent platform for OpenBMC > > dev

Re: [PATCH 3/3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-31 Thread Joel Stanley
on for > basic BMC functionality such as host power control, serial console and > KVM support, and POST code snooping. > > Signed-off-by: Zev Weiss Reviewed-by: Joel Stanley > --- > .../boot/dts/aspeed-bmc-asrock-e3c246d4i.dts | 188 ++ > 1 file changed, 188 inser

Re: [PATCH linux dev-5.2 v1] ARM-dts-aspeed-Add-Mihawk-GPIO-Line-Names

2021-03-31 Thread Joel Stanley
the lines more obvious. > > Signed-off-by: Nichole Wang Thanks for the patch. The syntax is good, and I will assume the information is correct. I will apply it to the tree. Reviewed-by: Joel Stanley Cheers, Joel > --- > arch/arm/boot/dts/asp

Re: [PATCH v1 2/3] drivers: char: ipmi: Add Aspeed SSIF BMC driver

2021-03-31 Thread Joel Stanley
On Mon, 29 Mar 2021 at 12:18, Quan Nguyen wrote: > > The SMBus system interface (SSIF) IPMI BMC driver can be used to perform > in-band IPMI communication with their host in management (BMC) side. > > This commits adds support specifically for Aspeed AST2500 which commonly > used as Board Manageme

Re: [PATCH] usb: gadget: aspeed: fix dma map failure

2021-03-30 Thread Joel Stanley
1d30 > [<7f00deb8>] ast_vhub_ep0_handle_setup+0xa4/0x1bc > [<7f02ee94>] ast_vhub_dev_irq+0x58/0x84 > [<7f0309e0>] ast_vhub_irq+0xb0/0x1c8 > [<7f02e118>] __handle_irq_event_percpu+0x50/0x19c > [<8015e5bc>] handle_irq_event_percpu+0x38/0x8c > [<8015e758

Re: [PATCH 2/3] dt-bindings: serial: 8250: update for aspeed,sirq-active-high

2021-03-30 Thread Joel Stanley
https://lore.kernel.org/lkml/20200812112400.2406734-1-j...@jms.id.au/ The intent is to remove it from both the bindings and the code. There's already no users of it in any device tree. How would you like Zev to go about doing this? Cheers, Joel > > > > > Signed-off-by: Zev

[PATCH] jffs2: Hook up splice_write callback

2021-03-30 Thread Joel Stanley
n_unsupported that should trigger was not displaying any output). Adding this patch resolved the issue and the test now passes. Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") Signed-off-by: Joel Stanley --- fs/jffs2/file.c | 1 + 1 file change

Re: [PATCH] spi: fsi: Remove multiple sequenced ops for restricted chips

2021-03-24 Thread Joel Stanley
On Wed, 24 Mar 2021 at 22:05, Eddie James wrote: > > Updated restricted chips have trouble processing multiple sequenced > operations. So remove the capability to sequence multiple operations and > reduce the maximum transfer size to 8 bytes. > > Signed-off-by: Eddie James

[PATCH resend 7/8] Documentation: Add core scheduling documentation

2021-03-24 Thread Joel Fernandes (Google)
Signed-off-by: Joel Fernandes (Google) --- .../admin-guide/hw-vuln/core-scheduling.rst | 460 ++ Documentation/admin-guide/hw-vuln/index.rst | 1 + 2 files changed, 461 insertions(+) create mode 100644 Documentation/admin-guide/hw-vuln/core-scheduling.rst diff --git a

[PATCH resend 3/8] sched: prctl() cookie manipulation for core scheduling

2021-03-24 Thread Joel Fernandes (Google)
From: chris hyser This patch provides support for setting, clearing and copying core scheduling 'task cookies' between threads (PID), processes (TGID), and process groups (PGID). The value of core scheduling isn't that tasks don't share a core, 'nosmt' can do that. The value lies in exploiting a

[PATCH resend 6/8] kselftest: Add tests for core-sched interface

2021-03-24 Thread Joel Fernandes (Google)
Add a kselftest test to ensure that the core-sched interface is working correctly. Co-developed-by: Chris Hyser Signed-off-by: Chris Hyser Co-developed-by: Josh Don Signed-off-by: Josh Don Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) Signed-off-by: chris hyser

[PATCH resend 8/8] sched: Debug bits...

2021-03-24 Thread Joel Fernandes (Google)
Tested-by: Julien Desfossez Not-Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c | 40 +++- kernel/sched/fair.c | 12 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a7338

[PATCH resend 5/8] sched: cgroup cookie API for core scheduling

2021-03-24 Thread Joel Fernandes (Google)
From: Josh Don This adds the API to set/get the cookie for a given cgroup. This interface lives at cgroup/cpu.core_tag. The cgroup interface can be used to toggle a unique cookie value for all descendent tasks, preventing these tasks from sharing with any others. See Documentation/admin-guide/hw

[PATCH resend 1/8] sched: migration changes for core scheduling

2021-03-24 Thread Joel Fernandes (Google)
sk wakeup, find the idlest CPU whose core cookie matches with task's cookie Signed-off-by: Aubrey Li Signed-off-by: Tim Chen Signed-off-by: Vineeth Remanan Pillai Signed-off-by: Joel Fernandes (Google) --- kernel/sched/fair.c | 29 ++ kerne

[PATCH resend 2/8] sched: core scheduling tagging infrastructure

2021-03-24 Thread Joel Fernandes (Google)
. Core scheduler has extra overhead. Enable it only for machines with more than one SMT hardware thread. Co-developed-by: Chris Hyser Signed-off-by: Chris Hyser Co-developed-by: Joel Fernandes (Google) Signed-off-by: Joel Fernandes (Google) Tested-by: Julien Desfossez Signed-off-by: Julien

[PATCH resend 4/8] kselftest: Add test for core sched prctl interface

2021-03-24 Thread Joel Fernandes (Google)
From: chris hyser Provides a selftest and examples of using the interface. Signed-off-by: Chris Hyser Signed-off-by: Josh Don --- tools/testing/selftests/sched/.gitignore | 1 + tools/testing/selftests/sched/Makefile| 14 + tools/testing/selftests/sched/config | 1 +

[PATCH resend 0/8] Core sched remaining patches rebased

2021-03-24 Thread Joel Fernandes (Google)
snapshotting of min_vruntime for CGroups - Disable coresched on certain AMD HW. Changes in v8 = - New interface/API implementation - Joel - Revised kernel protection patch - Joel - Revised Hotplug fixes - Joel - Minor bug fixes and address review comments - Vineeth

Re: [PATCH 0/6] Core scheduling remaining patches

2021-03-22 Thread Joel Fernandes
On Sat, Mar 20, 2021 at 04:40:20PM +0100, Peter Zijlstra wrote: > On Fri, Mar 19, 2021 at 04:32:47PM -0400, Joel Fernandes (Google) wrote: > > Enclosed is interface related core scheduling patches and one for migration. > > The main core scheduling patches were already pulled i

[PATCH 1/6] sched: migration changes for core scheduling

2021-03-19 Thread Joel Fernandes (Google)
ed-off-by: Aubrey Li Signed-off-by: Tim Chen Signed-off-by: Vineeth Remanan Pillai Signed-off-by: Joel Fernandes (Google) --- kernel/sched/fair.c | 33 +--- kernel/sched/sched.h | 72 2 files changed, 101 insertions(+), 4 deletions(-)

[PATCH 2/6] sched: tagging interface for core scheduling

2021-03-19 Thread Joel Fernandes (Google)
more than one SMT hardware thread. Co-developed-by: Chris Hyser Signed-off-by: Chris Hyser Co-developed-by: Joel Fernandes (Google) Signed-off-by: Joel Fernandes (Google) Tested-by: Julien Desfossez Signed-off-by: Julien Desfossez Signed-off-by: Tim Chen Signed-off-by: Peter Zijlstra (Intel

[PATCH 3/6] sched: prctl() cookie manipulation for core scheduling.

2021-03-19 Thread Joel Fernandes (Google)
From: chris hyser This patch provides support for setting, clearing and copying core scheduling 'task cookies' between threads (PID), processes (TGID), and process groups (PGID). The value of core scheduling isn't that tasks don't share a core, 'nosmt' can do that. The value lies in exploiting a

[PATCH 4/6] kselftest: Add tests for core-sched interface

2021-03-19 Thread Joel Fernandes (Google)
Add a kselftest test to ensure that the core-sched interface is working correctly. Co-developed-by: Chris Hyser Signed-off-by: Chris Hyser Co-developed-by: Josh Don Signed-off-by: Josh Don Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- tools/testing/selftests/sched

[PATCH 5/6] Documentation: Add core scheduling documentation

2021-03-19 Thread Joel Fernandes (Google)
Signed-off-by: Joel Fernandes (Google) --- .../admin-guide/hw-vuln/core-scheduling.rst | 460 ++ Documentation/admin-guide/hw-vuln/index.rst | 1 + 2 files changed, 461 insertions(+) create mode 100644 Documentation/admin-guide/hw-vuln/core-scheduling.rst diff --git a

[PATCH 6/6] sched: Debug bits...

2021-03-19 Thread Joel Fernandes (Google)
Tested-by: Julien Desfossez Not-Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c | 40 +++- kernel/sched/fair.c | 9 + 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a62e8ad5

[PATCH 0/6] Core scheduling remaining patches

2021-03-19 Thread Joel Fernandes (Google)
From: Joel Fernandes Core-Scheduling === Enclosed is interface related core scheduling patches and one for migration. The main core scheduling patches were already pulled in by Peter with these bits left. Main changes are the simplification of the core cookie scheme, new prctl code

[PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add audio support

2021-03-14 Thread Joel Selvaraj
This patch adds audio support for Xiaomi Poco F1 phone. Phone's primary Mic and 3.5mm Headphone jack are handled through the SDM845 sound card and WCD9340 codec. Signed-off-by: Joel Selvaraj --- .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 117 ++ 1 file changed

Re: [PATCH 4/4] ftgmac100: Restart MAC HW once

2021-03-11 Thread Joel Stanley
On Tue, 20 Oct 2020 at 04:14, Joel Stanley wrote: > > On Mon, 19 Oct 2020 at 08:57, Dylan Hung wrote: > > > > The interrupt handler may set the flag to reset the mac in the future, > > but that flag is not cleared once the reset has occured. > > > > Fixes: 1

Re: [PATCH 4.19 055/247] soc: aspeed: snoop: Add clock control logic

2021-03-04 Thread Joel Stanley
On Thu, 4 Mar 2021 at 08:12, Greg Kroah-Hartman wrote: > > On Tue, Mar 02, 2021 at 12:09:21AM +, Yoo, Jae Hyun wrote: > > > From: Joel Stanley > > > Jae, John; with this backported do we need to also provide a corresponding > > > device tree change fo

Re: [PATCH 4.19 055/247] soc: aspeed: snoop: Add clock control logic

2021-03-01 Thread Joel Stanley
o longer probe? > > Fixes: 3772e5da4454 ("drivers/misc: Aspeed LPC snoop output using misc > chardev") > Signed-off-by: Jae Hyun Yoo > Signed-off-by: Vernon Mauery > Signed-off-by: John Wang > Reviewed-by: Joel Stanley > Link: > https://lore.kernel.org/r/202012

Re: [PATCH] i2c/busses:remove unneeded variable: "ret"

2021-02-23 Thread Joel Stanley
On Tue, 23 Feb 2021 at 08:04, wrote: > > From: dingsenjie > > remove unneeded variable: "ret". > > Signed-off-by: dingsenjie Thanks for the patch. Instead of removing the unused variable, I think the code could be improved to return error codes when the re

Re: [PATCH v5 1/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2021-02-16 Thread Joel Stanley
his support for your changes. I will take time to closely review your proposal this week. We will set the goal of having this rework merged for the next merge window. Cheers, Joel > Thanks. > > Chiawei > > > -Original Message- > > From: Andrew Jeffery > &g

[tip: core/rcu] rcu/tree: Make rcu_do_batch count how many callbacks were executed

2021-02-15 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 6bc335828056f3b301a3deadda782de4e8f0db08 Gitweb: https://git.kernel.org/tip/6bc335828056f3b301a3deadda782de4e8f0db08 Author:Joel Fernandes (Google) AuthorDate:Tue, 03 Nov 2020 09:25:57 -05:00

[tip: core/rcu] rcu/segcblist: Add additional comments to explain smp_mb()

2021-02-12 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: c2e13112e830c06825339cbadf0b3bc2bdb9a716 Gitweb: https://git.kernel.org/tip/c2e13112e830c06825339cbadf0b3bc2bdb9a716 Author:Joel Fernandes (Google) AuthorDate:Tue, 03 Nov 2020 09:26:03 -05:00

[tip: core/rcu] rcu/segcblist: Add counters to segcblist datastructure

2021-02-12 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: ae5c2341ed3987bd434ed495bd4f3d8b2bc3e623 Gitweb: https://git.kernel.org/tip/ae5c2341ed3987bd434ed495bd4f3d8b2bc3e623 Author:Joel Fernandes (Google) AuthorDate:Wed, 23 Sep 2020 11:22:09 -04:00

[tip: core/rcu] rcu/segcblist: Add debug checks for segment lengths

2021-02-12 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: b4e6039e8af8c20dfbbdfcaebfcbd7c9d9ffe713 Gitweb: https://git.kernel.org/tip/b4e6039e8af8c20dfbbdfcaebfcbd7c9d9ffe713 Author:Joel Fernandes (Google) AuthorDate:Wed, 18 Nov 2020 11:15:41 -05:00

[tip: core/rcu] rcu/tree: segcblist: Remove redundant smp_mb()s

2021-02-12 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 68804cf1c905ce227e4e1d0bc252c216811c59fd Gitweb: https://git.kernel.org/tip/68804cf1c905ce227e4e1d0bc252c216811c59fd Author:Joel Fernandes (Google) AuthorDate:Wed, 14 Oct 2020 18:21:53 -04:00

[tip: core/rcu] rcu/trace: Add tracing for how segcb list changes

2021-02-12 Thread tip-bot2 for Joel Fernandes (Google)
The following commit has been merged into the core/rcu branch of tip: Commit-ID: 3afe7fa535491ecd0382c3968dc2349602bff8a2 Gitweb: https://git.kernel.org/tip/3afe7fa535491ecd0382c3968dc2349602bff8a2 Author:Joel Fernandes (Google) AuthorDate:Sat, 14 Nov 2020 14:31:32 -05:00

[PATCH] ARM: kexec: Remove unused kexec_reinit callback

2021-02-10 Thread Joel Stanley
The last (only?) user of this was removed in commit ba364fc752da ("ARM: Kirkwood: Remove mach-kirkwood"), back in v3.17. Signed-off-by: Joel Stanley --- arch/arm/include/asm/kexec.h| 3 --- arch/arm/kernel/machine_kexec.c | 8 2 files changed, 11 deletions(-) diff --git

Re: [PATCH v2 1/2] misc: Add clock control logic into Aspeed LPC SNOOP driver

2021-02-10 Thread Joel Stanley
or wait for a combined pull > > > request > > > with other work. > > > > Hello Arnd, > > Thanks your update. > > > > >Joel, please let me know what you prefer. > > > > > Hello Joel, > > Could you help check on this patch?

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Joel Fernandes
On Thu, Feb 04, 2021 at 03:52:53PM +0100, Peter Zijlstra wrote: > On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > > +static void sched_core_update_cookie(struct task_struct *p, unsigned long > > cookie, > > +enum s

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Joel Fernandes
Hi Peter, On Thu, Feb 04, 2021 at 02:59:58PM +0100, Peter Zijlstra wrote: > On Wed, Feb 03, 2021 at 05:51:15PM +0100, Peter Zijlstra wrote: > > > > I'm slowly starting to go through this... > > > > On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (G

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-02-03 Thread Joel Fernandes
h the patch and it looks correct to me, I will further review it and await further reviews from others as well, and then backport the patch to our kernels. Thanks Vince and everyone! Tested-by: Joel Fernandes (Google) thanks, - Joel > --- > kernel/sched/fair.c | 32 +++---

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-02-01 Thread Joel Fernandes
t I agree with, is that running > update_blocked_averages with preempt and irq off is not a good thing > because we don't manage the number of csf_rq to update and I'm going > to provide a patchset for this That's fine, as long as we agree on this problem ;-) Thanks for providing the patches and I will try them once they are ready. > > for this. > > > > > Also update_blocked_averages was supposed called in newlyidle_balance > > > when the coming idle duration is expected to be long enough > > > > No, we do not want the schedule loop to take half a millisecond. > > keep in mind that you are scaling frequency so everything takes time > at lowest frequency/capacity ... Agreed, I was also thinking the same. But that doesn't change the fact that there is room for improvement and I'm grateful to you for trying to improve it! thanks, - Joel

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-28 Thread Joel Fernandes
Hi Vincent, On Thu, Jan 28, 2021 at 8:57 AM Vincent Guittot wrote: > > On Mon, Jan 25, 2021 at 03:42:41PM +0100, Vincent Guittot wrote: > > > On Fri, 22 Jan 2021 at 20:10, Joel Fernandes > > > wrote: > > > > On Fri, Jan 22, 2021 at 05:56:22PM +0100, Vincent

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-27 Thread Joel Fernandes
Hi Vincent, On Mon, Jan 25, 2021 at 03:42:41PM +0100, Vincent Guittot wrote: > On Fri, 22 Jan 2021 at 20:10, Joel Fernandes wrote: > > On Fri, Jan 22, 2021 at 05:56:22PM +0100, Vincent Guittot wrote: > > > On Fri, 22 Jan 2021 at 16:46, Joel Fernandes (Google) > > > w

[PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-01-22 Thread Joel Fernandes (Google)
chine mechanism for now that avoids such complications. Core scheduler has extra overhead. Enable it only for core with more than one SMT hardware threads. Co-developed-by: Josh Don Co-developed-by: Chris Hyser Co-developed-by: Joel Fernandes (Google) Tested-by: Julien Desfossez Signed-o

  1   2   3   4   5   6   7   8   9   10   >