Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2225741imm; Mon, 28 May 2018 04:18:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoz/NgY1vglTyeVclIRkIXLyadBPVOVb75LYN5MDt90Ib4nBqSN0Otj6ntKi+KbVzVKPjmx X-Received: by 2002:a65:648a:: with SMTP id e10-v6mr10336995pgv.34.1527506302913; Mon, 28 May 2018 04:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527506302; cv=none; d=google.com; s=arc-20160816; b=rBATddjen1TFdoZFfpiRnM0qJMK0bNn+ZUJuBIR1LzhvndjDyOQ9UYNWmsZJL6SP6G iSyWkasbUP/5H8HptI5cQMW+CgEdvwxaf65rphKLZybfUPJZFmvnGb1pXmWNRGAOto28 7he1SryB6INWQSabgipXLyU4HyCkQDXUnbKZHrlkT6XqHpnvh98Eh6JVJ00VxD4+kwVx hX8d16X+oceuzo5OmH/frV5yRUaj4wBgwU2uaPIL95dmi5FLsxwJaU+NtH7vOXYkW6yQ L5VPHZahIi+6C/bCngCJUSuont3yQArR+SlGY2iAhrsTh7Nv8LxoTZn4Q38Kd3FfUbm1 Hsuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=ek8kPYdl6U6qiXyZOy3xtHruuhj3UHWV7dtIu4RqRws=; b=F6q8OsPEZ2Ax1M8HMgWB3B5HbU6exMNpeNc9hfEW4F6K7TeHzMxkGOlRd505sUh/Ig up5rTOSDM7YCHCu8wWUkYKIolyBVyWKURQJcMEkOCp7p5ZopKkQP9JlUX3D1Ip7SUNVN oygLFQR9rQxsNuXGJ6ScTDbjQKCxqbHZCGT/FsQMYHERtrdi3sDu7k5XZYaeh7ZKqFjt IGpi1a1ckuPzUkLl3PqsCgr66I9Tu6bkO/rMbqMie3U5oDfNKOklH1PQBzLYfv/+d9nl JHB4sjmTAtfPWP9+RMJAPndcjnwsE4qTf9d2v+7GQxU0rqgcz2uLLfWFRXB1dx+TOEO5 kp+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=KD2FaMfz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21-v6si391258pfh.33.2018.05.28.04.18.08; Mon, 28 May 2018 04:18:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=KD2FaMfz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424360AbeE1LRV (ORCPT + 99 others); Mon, 28 May 2018 07:17:21 -0400 Received: from mail-db5eur01on0082.outbound.protection.outlook.com ([104.47.2.82]:29588 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1424613AbeE1LRI (ORCPT ); Mon, 28 May 2018 07:17:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ek8kPYdl6U6qiXyZOy3xtHruuhj3UHWV7dtIu4RqRws=; b=KD2FaMfzBjptatiEqvgtCk7IlYEBP8UGWM1vmSByqSe/j4eYR0Pcc2CoBcK/1Vl7DJHfSRMtiaYK6sKA7py1wkdloEup5hUEiJBTKSMMLgP/8zae9cc2I3ASWAp7FTL2Z4C1E1l6WosksC0YoanrK47whi6zrrb2rokY0jsAkTQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tariqt@mellanox.com; Received: from [10.8.18.44] (193.47.165.251) by DB6PR05MB3256.eurprd05.prod.outlook.com (2603:10a6:6:1b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.11; Mon, 28 May 2018 11:17:05 +0000 Subject: Re: WARNING and PANIC in irq_matrix_free To: Thomas Gleixner , Song Liu Cc: Dmitry Safonov <0x7f454c46@gmail.com>, open list , Maor Gottlieb , kernel-team@fb.com References: <16f47fa4-1555-cddb-3dfb-7d56fb992ea1@mellanox.com> From: Tariq Toukan Message-ID: <1b4ded38-f217-fafa-d920-cddf980a685c@mellanox.com> Date: Mon, 28 May 2018 14:17:00 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: CWLP265CA0018.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:10::30) To DB6PR05MB3256.eurprd05.prod.outlook.com (2603:10a6:6:1b::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB6PR05MB3256; X-Microsoft-Exchange-Diagnostics: 1;DB6PR05MB3256;3:fEnWgoQkCNDPp2/3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Uc3E9MN65xyutvYwwabFHvQsq/dCIqcPfTg0J+niX6kYHnlC30ijwdqGZ2Bcy5zQcmVUM8VC3iioSAWUybanPreo/8quVMykAciDSvFLKFDcRRkV+XgdMbQmSmXgFD1FvxOZ2y9dSBgYI6QdgeuABqPfhn9XFfyHUno6ouyuv1z7f/feL2dHTD6Xuc4bvnGtHFZGucS0XvAGNUd+p3YUEVMnXKcHWS96ObGPJmWqCMrV9+P4E9MVt8rKTCoe78ygM7AygYpoKB08vqe4ThcF+U1PbxnMg/4CYE8d5+FzprLncHeaROdI903dGb7eM+SQ0HXvxrxoSv;4:nOfx6+m3A9dwl4MX1iO9bO47kikqiDvR8DRuq8J6BQFzbPdaCo7v3/olMYHo4cJ7fhpoVbC7jJJ63ptxxxJAqNImpI6w3qxtwb9XUma3QwQO+yWxLB5OBw8/OiKXTpqJd0doaNQc1sUZIt2+b0x9b8n/E5dpaR0BF/1LfePzwfxXV5mW7+9SFnT0M2Hvp/REF7XTici9lJz/2AXthS5NO6ijrWeSqbdNSuO+ssOZnltGpwH98m4nL7gC/IlFpuundmF7d9v+55TFY+9KWRsEBg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:DB6PR05MB3256;BCL:0;PCL:0;RULEID:;SRVR:DB6PR05MB3256; X-Forefront-PRVS: 06860EDC7B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(376002)(396003)(346002)(39380400002)(39860400002)(199004)(189003)(36756003)(6666003)(68736007)(86362001)(8676002)(97736004)(8936002)(65826007)(229853002)(31696002)(81166006)(81156014)(65956001)(11346002)(956004)(64126003)(47776003)(2616005)(93886005)(476003)(25786009)(106356001)(105586002)(446003)(486006)(65806001)(16526019)(305945005)(53936002)(39060400002)(31686004)(230700001)(59450400001)(186003)(50466002)(66066001)(26005)(478600001)(77096007)(67846002)(52146003)(23676004)(2486003)(54906003)(316002)(6486002)(58126008)(5660300001)(6116002)(6246003)(53546011)(3846002)(76176011)(52116002)(16576012)(4326008)(7736002)(2906002)(386003)(110136005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR05MB3256;H:[10.8.18.44];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA1TUIzMjU2OzIzOitaMzAxb3RrdTZSOGJLcDJwUzJNck5TdVpw?= =?utf-8?B?RDJXWmFFRmcvbU1NN3VCMTEwZ0lydUkycEp3WExqUUd0U1NoWGFnQkZkc21i?= =?utf-8?B?T0JRSWsxSUY3a3dxS01EcXYzUlZpOHMwWWZiOXVrNHYyRnp2ZUVuSm4vTTBV?= =?utf-8?B?alZwWkFuTzFOTTJOdTBYVjVqNEdORHdXNk9SeWVrcy9ERFUyTU45N2F3NnUw?= =?utf-8?B?ZDNJM1RVZnM5Yi84eDQxaU0rM0E5UUpBL1FHbFYzUTVwZzlrVm90cGY0Rkts?= =?utf-8?B?ZmRHeGI3T0JNYkNRZVoxeGpENThRcno2V1hQb0o1a3h5QmxIOXhwQWFQdjJ4?= =?utf-8?B?VGpBMU5IWlRJVnUxY0xZdnVyRkpyay9RY3QwbkJzZStpcC9uNC9tM051VTdH?= =?utf-8?B?QjBZZ2JjVmhGMExpUy9uc1dRdVBqTFg2VW1qOGtmVFdjY2gweGwrckdqZ2c5?= =?utf-8?B?YlNnU1U3ck12am82Nm9semkxbyt1U0Jaek96RGZHMTFkQUtVZm02SXQ3bHla?= =?utf-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jghiuedjR/rtjEzDcA9H/62NvjFqf94SItpfJJHvufNELV9YC0DBTDkI4E8poMaSiqsrt63gnN98QIKfenU/EOID9dJOTdR0kVYIX3BFxNYM75vX6KjSHF8eH+3+xrgq+KZcgO+KYVrf6nvNzrjb9wZ8XqGW43BcHiMzmwPimFzdrS7icn2BEqw2ZJgXsObtW35p1SEvEhesGf68tEUMsXL+AtPmBoVaJaeuylkg+55Oi8rlqrZOXU1fXP2E04xWioZWRLljBowMpgWYkdkoIXufRn8BZ0FHXTUuNMadTAmcuw/mqu4v2VwGFoTSCah2VoHcW4PXBte2fRM+WMqOT+2wNrJUTKkkpaJA1O7a9nDD9oXoEEFq7bZ5/NkDlWUBGhRlSAuBAl6TXZBow0ibc2r8V3Mfwxehmov79fg==;5:70Vb9u/7WdVlZnXOr4BzvDM+lFez3QRb+aQ6DlhYRtszf4YfArpajymSu9wwL0BDo/BjNggJHUE5Pt2KHXqX93aCqqiIBVBxGrHakKsAvKmKbF4iKDBW4n8DRq4gVPqME8XgWjp0lPfYREFmWdU8Sus5rXNmKv6AR9StPE2qlLI=;24:30+8U9BHgCxz/b3jn3zEqDBSCxOFgkhrSPFIaxVwIqwgiJ8KCM9ZNs4dhP2Nyb3BAgoRuv2Wi7vMAG5ZARd6/qcMax67ed5z4HL3fBsdB9k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR05MB3256;7:Jlpz3QldfX4dNwZtf8om2VV4OtHIe0rZyPxihIfIr/Q9qsqjt5UCpAwXmSDCDd+Nau3qblHjr5SQ9HG05Ev06+XhlG/S9q52Wxqx0gadO1QsnqXKY9K8O0Bxtq0NZRwy4kXeB0OVx3m362ac6oOcAxouKv4/2YTITbPNl73Asi1NvXLj7KVsRFsl80DjcVeStw1xpPor41hGcSGcwq6sv+CMdinfmtWkOSRrOi1JUpIpPek9lHBoXqD1nN06h5TQ X-MS-Office365-Filtering-Correlation-Id: aaa2b9a7-99ee-496e-9197-08d5c48c8bac X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2018 11:17:05.3882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aaa2b9a7-99ee-496e-9197-08d5c48c8bac X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/05/2018 1:53 PM, Thomas Gleixner wrote: > On Fri, 25 May 2018, Song Liu wrote: >> On Wed, May 23, 2018 at 1:49 AM, Thomas Gleixner wrote: >>> On Wed, 23 May 2018, Tariq Toukan wrote: >>>> I have your patch merged into my internal branch, it prints the following: >>>> >>>> [ 4898.226258] Trying to clear prev_vector: 0 >>>> [ 4898.226439] Trying to clear prev_vector: 0 >>>> >>>> i.e. vector(0) is lower than FIRST_EXTERNAL_VECTOR. >>> >>> Could you please enable the vector and irq matrix trace points and capture >>> the trace when this happens? > > Does the patch below fix it? > > Thanks, > > tglx > > 8<------------------- > diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c > index bb6f7a2148d7..54af3d4884b1 100644 > --- a/arch/x86/kernel/apic/vector.c > +++ b/arch/x86/kernel/apic/vector.c > @@ -148,6 +148,7 @@ static void apic_update_vector(struct irq_data *irqd, unsigned int newvec, > * prev_vector for this and the offlined target case. > */ > apicd->prev_vector = 0; > + apicd->move_in_progress = false; > if (!apicd->vector || apicd->vector == MANAGED_IRQ_SHUTDOWN_VECTOR) > goto setnew; > /* > I took it into my internal branch. Will let you know. Tariq