RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1699438 - add_timer_on on remote CPUs not firing
Summary: add_timer_on on remote CPUs not firing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel-rt
Version: 7.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.8
Assignee: Luis Claudio R. Goncalves
QA Contact: Qiao Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1715542
TreeView+ depends on / blocked
 
Reported: 2019-04-12 17:25 UTC by Marcelo Tosatti
Modified: 2020-03-31 19:49 UTC (History)
6 users (show)

Fixed In Version: kernel-rt-3.10.0-1063.rt56.1023.el7
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:48:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1070 0 None None None 2020-03-31 19:49:55 UTC

Description Marcelo Tosatti 2019-04-12 17:25:24 UTC
The following patch 

commit 11cd96866fe5b5d02f53fe2fcf7e3d554a4fe5da
Author: Daniel Bristot de Oliveira <bristot>
Date:   Tue May 26 12:07:54 2015 -0400

    tick: sched: Remove hrtimer_active() checks

breaks add_timer_on on remote CPUs, because it stops 
tick_nohz_activate from calling timers_update_migration,
which in turn results in base->nohz_active to remain false.

Fix is to revert this hunk:

hrtimer_forward(&ts->sched_timer, now, tick_period);
hrtimer_start_expires(&ts->sched_timer,
HRTIMER_MODE_ABS_PINNED);
-   tick_nohz_activate(ts, NOHZ_MODE_HIGHRES);
+
+#ifdef CONFIG_NO_HZ_COMMON
+   if (tick_nohz_enabled) {
+           ts->nohz_mode = NOHZ_MODE_HIGHRES;
+           tick_nohz_active = 1;
+   }
+#endif

Sending patch to rt list shortly.

Comment 1 Juri Lelli 2019-04-15 07:16:23 UTC
Hi Marcelo,

I couldn't find the patch you mention in the 8.x trees,
only 7.7 (I didn't check others 7.x) seems to have it.

8.x however have the upstream corresponding patch
afc08b15cc2a ("tick: sched: Remove hrtimer_active() checks", 2015-04-14).

What am I missing?

Thanks!

Comment 4 Marcelo Tosatti 2019-08-27 12:58:01 UTC
(In reply to Juri Lelli from comment #1)
> Hi Marcelo,
> 
> I couldn't find the patch you mention in the 8.x trees,
> only 7.7 (I didn't check others 7.x) seems to have it.
> 
> 8.x however have the upstream corresponding patch
> afc08b15cc2a ("tick: sched: Remove hrtimer_active() checks", 2015-04-14).
> 
> What am I missing?
> 
> Thanks!

This issue is a mismerge (only present in RHEL-RT 7.x tree).

Comment 5 Marcelo Tosatti 2019-08-27 13:01:57 UTC
Fix posted and integrated to RHEL-7 RT kernel tree:

commit 2ac7a754416a079fb54188ca975c68f117fe0cdc
Author: Marcelo Tosatti <mtosatti>
Date:   Fri Jun 28 09:14:43 2019 -0300

    Revert "tick: sched: Remove hrtimer_active() checks"
    
    The following patch
    
    commit 11cd96866fe5b5d02f53fe2fcf7e3d554a4fe5da
    Author: Daniel Bristot de Oliveira <bristot>
    Date:   Tue May 26 12:07:54 2015 -0400
    
        tick: sched: Remove hrtimer_active() checks
    
    breaks add_timer_on on remote CPUs, because it stops
    tick_nohz_activate from calling timers_update_migration,
    which in turn results in base->nohz_active to remain false.
    
    BZ: 1699438
    BZ: 1690543
    BZ: 1550584
    
    Acked-by: Daniel Bristot de Oliveira <bristot>
    Acked-by: Juri Lelli <juri.lelli>
    Acked-by: Luis Claudio R. Goncalves <lgoncalv>
    Signed-off-by: Marcelo Tosatti <mtosatti>

Comment 6 Beth Uptagrafft 2019-08-27 15:20:15 UTC
(In reply to Marcelo Tosatti from comment #4)
> (In reply to Juri Lelli from comment #1)
> > Hi Marcelo,
> > 
> > I couldn't find the patch you mention in the 8.x trees,
> > only 7.7 (I didn't check others 7.x) seems to have it.
> > 
> > 8.x however have the upstream corresponding patch
> > afc08b15cc2a ("tick: sched: Remove hrtimer_active() checks", 2015-04-14).
> > 
> > What am I missing?
> > 
> > Thanks!
> 
> This issue is a mismerge (only present in RHEL-RT 7.x tree).

This is a RHEL8 BZ, so if this issue only affects RHEL7, then I assume we can close this issue?

Comment 14 errata-xmlrpc 2020-03-31 19:48:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1070


Note You need to log in before you can comment on or make changes to this bug.