Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1798775imm; Sat, 15 Sep 2018 03:22:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbnilQhBYeYlIYlVn8AE/v3TRQzIcJW6+UY4fJ5HLQx1aY0zbiLm4PAgasQsUHZ0089Wl6g X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr16033735pll.321.1537006954459; Sat, 15 Sep 2018 03:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537006954; cv=none; d=google.com; s=arc-20160816; b=jd1gBoygFj/aB9p5XlA07N/8OmsWyyhpirS97/j5/1rd/U1rxAyQG34OGE/v6Ty55V iEcRZZM1ZPSuyujuVqBIEAgxjr7CVpWY7HGHzxoxhBq7DaEhzzCqfc84dh15gD6jD851 Z7dwSanOINaxRt6AGfYyl1qXov2Q7tUL2m2R3V6KwpnlphdKeRZ1HrdOzqZ7rHIvjxgg 2d1wQLN4vVSYnQ3Pz/3tlVCgfLvGs4aH75TH1RTSrUaAGM0sEne+Uky2Ox8lboiyL5b+ ydlqwZezRdA1bEvVw7UrIrQZYkg3/5bAOCkPZ0NA6SJbw6ekT3FVXnDUpwmxIwzDq8h1 spqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=XOz+XoAhwnsgV//3cXYFQlcALbtXwX2p6yAMHODNDHE=; b=RL29itwK2oTkbzpDDNRUbVi+Qo1pNp2Z88pJ8dng0PUP4YeoCs9X5ipu4DjPmjXJrk BazdVV5o4kVzBY2FLw48DebKWb/VvLa0nf1RKUPAg8SWBCFgPr1NcRvqU7IUMliyUjrI OMIxtxMrnR6JuP3OIq6UwgGW0IG83iuTTo56BYXyZBngQhke3kIb/Mnj4yPzLB5NclR0 fR7wBf4m13mI9+1r1O+tLZ0yX2zQT7CzxRNZytr4H4htOOTSZ05rf2JozvbrgNQWDVsO B+5bi9ti61RtcadoUbkz0ti0lIdnb7yIyhpHONmB6tkW9G09BMBvss6yY0VtQqViRBpj 3uMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si7920618plr.138.2018.09.15.03.22.18; Sat, 15 Sep 2018 03:22:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727147AbeIOPkl (ORCPT + 99 others); Sat, 15 Sep 2018 11:40:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51611 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbeIOPkl (ORCPT ); Sat, 15 Sep 2018 11:40:41 -0400 Received: from p4fea45ac.dip0.t-ipconnect.de ([79.234.69.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g17iG-0005wk-C7; Sat, 15 Sep 2018 12:22:04 +0200 Date: Sat, 15 Sep 2018 12:22:03 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: Ingo Molnar , H Peter Anvin , Tony Luck , "Chatre, Reinette" , Xiaochen Shen , Chen Yu , linux-kernel , x86 Subject: Re: [PATCH 4/9] x86/intel_rdt: Fix invalid mode warning when In-Reply-To: <1536957129-70380-5-git-send-email-fenghua.yu@intel.com> Message-ID: References: <1536957129-70380-1-git-send-email-fenghua.yu@intel.com> <1536957129-70380-5-git-send-email-fenghua.yu@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Sep 2018, Fenghua Yu wrote: > If information for a cache instance with more CLOSIDs than another is > being generated we thus encounter a warning like: > > [ 130.010591] ------------[ cut here ]------------ > [ 130.016680] invalid mode for closid 8 > [ 130.021791] WARNING: CPU: 88 PID: 1791 at [SNIP]/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > :827 rdt_bit_usage_show+0x221/0x2b0 > [ 130.037974] Modules linked in: intel_rapl x86_pkg_temp_thermal kvm ipmi_ssif iTCO_wdt vfat fat iTCO_vendor_support pcspkr irqbyp > ass lpc_ich ipmi_si ioatdma joydev i2c_i801 mfd_core ipmi_devintf dca wmi ipmi_msghandler acpi_pad i40e crct10dif_pclmul crc32_pclm > ul nvme crc32c_intel nvme_core sunrpc scsi_transport_iscsi > [ 130.067581] CPU: 88 PID: 1791 Comm: grep Not tainted 4.18.0-rc1+ #18 > [ 130.075065] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.01.00.0833.051120182255 05/11/2018 > [ 130.087022] RIP: 0010:rdt_bit_usage_show+0x221/0x2b0 > [ 130.093365] Code: 45 84 c0 75 58 84 c0 74 42 be 50 00 00 00 4c 89 e7 e8 53 18 26 00 e9 30 ff ff ff 44 89 fe 48 c7 c7 ed f6 e4 95 > e8 4f d4 06 00 <0f> 0b e9 e3 fe ff ff 41 8b 45 00 09 44 24 08 e9 d6 fe ff ff 41 8b > [ 130.113872] RSP: 0018:ffffa7874f147d88 EFLAGS: 00010286 > [ 130.120347] RAX: 0000000000000000 RBX: ffff8975434e0400 RCX: 0000000000000000 > [ 130.128963] RDX: ffff898d5f41dbd8 RSI: ffff898d5f415c78 RDI: ffff898d5f415c78 > [ 130.137562] RBP: ffffffff960285a0 R08: 00000000000005a4 R09: 0000000000aaaaaa > [ 130.146158] R10: ffff898d3e040600 R11: 00000000ffffffff R12: ffff898d4b592000 > [ 130.154755] R13: ffff897543e62de0 R14: 0000000000000001 R15: 0000000000000008 > [ 130.163355] FS: 00007ff6f43dd740(0000) GS:ffff898d5f400000(0000) knlGS:0000000000000000 > [ 130.172920] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 130.180093] CR2: 000055b84a20f4d8 CR3: 0000002fcb5c6003 CR4: 00000000007606e0 > [ 130.187846] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 130.195091] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > [ 130.202336] PKRU: 55555554 > [ 130.205093] Call Trace: > [ 130.207588] seq_read+0xee/0x460 > [ 130.210866] __vfs_read+0x36/0x170 > [ 130.214324] vfs_read+0x89/0x130 > [ 130.217605] ksys_read+0x52/0xc0 > [ 130.220885] do_syscall_64+0x5b/0x180 > [ 130.224609] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > [ 130.229733] RIP: 0033:0x7ff6f3c88701 Can you please condense all these backtraces to the absolute minimum? In this case the only interresting part is: invalid mode for closid 8 WARNING: CPU: 88 PID: 1791 at [SNIP]/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c:827 rdt_bit_usage_show and if at all a stripped stack trace: seq_read __vfs_read vfs_read ksys_read do_syscall_64 But think about it whether the stack trace provides actually useful information or not. It's a well defined call chain. The rest of the stuff I stripped is really completely irrelevant for describing the problem. It just occupies space and distracts. Thanks, tglx