Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1531354imm; Mon, 3 Sep 2018 02:57:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZYzGdmjS4eiTcqjj0KNaFaaa+urhhpkE4kVkeO/QsPoCyCgrRDe75kcyS7fd7DR29Sqf6f X-Received: by 2002:a65:60cf:: with SMTP id r15-v6mr23857655pgv.41.1535968670957; Mon, 03 Sep 2018 02:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968670; cv=none; d=google.com; s=arc-20160816; b=lTDXBpbj2dZoQeSfHJx6GlWYrt9qJq3JRda9FtOWYOD9c/YhIbbgg/pserbnag+vp5 cS41bNTZQmXQFHlDfvWZQXXUNmgwMgEXGIhA08kn4isk77etwuJBkJZLx74n/p5TI92m dxG+6E1n3DICkpkoN3M9g6lHfC7Wk8BUJo4bAjmdSVcf2VC0bKyT5UR7CdI5hBS6292u eW/n47IGRuQVeUi5ErrMi24XRGxoIh2eCMt2Ce7FlJH1spvRuiVedPkyIbT/O6t9Zv/X HgPSbCTIqvtgADcMNTromJEgfNKL95TUFlpAUzrqnc4nvf5OUqUK2a5xlzoY2YtM22GJ EuDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=8exhABgWQRVE2nGmsZVq+RpLOuyv//LZXGVtf34F9w0=; b=X1ICpi4HmxA1ws4P1/06gmvclKXuu2zZlAsev3VpZ68FaTM0n9GUIOtLEf3PTJNRNg wk8P/ysI6nHs4B8Yhberp4DVe609boIqGqy8ISapK4NAFsmrZPS+wFj/See3JuSWIfIL V4C/xu8xVyc1qwjHaDa/4LfQ9YniIZPR0kvO6mKF0IQHIDBQ1+jf7ouPQ0aGmaa+w5d4 CpTIL+5IWFwQi6UJBRbQiqIWnApfopc4LQLMDXZ/nU03e6N8HZbWriR3KpuZ/00rQqtk q4RWd5WMRExTnT5R7akXhiXYZJN0IOA/DwnJZeZMCn6Irk2XT8fS4gSJX4Fl5FckqZg3 J29Q== 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 n85-v6si18883857pfj.251.2018.09.03.02.57.35; Mon, 03 Sep 2018 02:57:50 -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 S1727480AbeICOPs (ORCPT + 99 others); Mon, 3 Sep 2018 10:15:48 -0400 Received: from mail.skyhub.de ([5.9.137.197]:43330 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbeICOPr (ORCPT ); Mon, 3 Sep 2018 10:15:47 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ln5GSBWC5Eev; Mon, 3 Sep 2018 11:56:05 +0200 (CEST) Received: from zn.tnic (p200300EC2BCF4100329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bcf:4100:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E6D761EC00E8; Mon, 3 Sep 2018 11:56:04 +0200 (CEST) Date: Mon, 3 Sep 2018 11:57:11 +0200 From: Borislav Petkov To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v5 02/16] x86/cache: get cache size/leaves and setup cache cpumap for Dhyana Message-ID: <20180903095711.GC10249@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch subject needs to be of the format: : Sentence starting with a capital letter and describing concisely the patch Fix all your subjects pls. On Wed, Aug 29, 2018 at 08:43:10PM +0800, Pu Wen wrote: > Hygon Dhyana processor has the topology extensions bit in CPUID. > With this bit kernel can get the cache info. So add support "With this bit, the kernel... " > in cpuid4_cache_lookup_regs() to get the correct cache size. > > Dhyana also find num_cache_leaves via CPUID leaf 0x8000001d, so "... also discovers num_cache_leaves ..." > add Hygon support in find_num_cache_leaves(). > > Also add cacheinfo_hygon_init_llc_id() and init_hygon_cacheinfo() > functions to initialize Dhyana cache info. Setup cache cpumap in > the same way as AMD does. > > Signed-off-by: Pu Wen > --- > arch/x86/include/asm/cacheinfo.h | 1 + > arch/x86/kernel/cpu/cacheinfo.c | 31 +++++++++++++++++++++++++++++-- > arch/x86/kernel/cpu/cpu.h | 1 + > arch/x86/kernel/cpu/hygon.c | 3 +++ > 4 files changed, 34 insertions(+), 2 deletions(-) With that: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.