Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4269179imm; Mon, 18 Jun 2018 11:58:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL4zNWxgnCOdlo43pBleEwD+w3en0LjdHsUV/RbdUceTEGy2fcYjBHsN6P1VLV7LwlP28Lt X-Received: by 2002:a63:ae06:: with SMTP id q6-v6mr12125069pgf.255.1529348337914; Mon, 18 Jun 2018 11:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529348337; cv=none; d=google.com; s=arc-20160816; b=PGexemZvXvYn1IeSbfncgvMZr0fPLkklmUKjX18MrqrtB1vzOYWC381CR0+sghb6Fq ckYYI2OTRZF5wM0cApnQvf32Enna0FBX21BH/SfRhmlcZmOMyDasn1LCn/AogDBY+aqV THRgnXlyLukhB/7MxHi7yr4E1cI7dLFQ0HpoA19OfglCCB8f3B0d5L3VblNYXlQqIPoN 4L2AI+OA5h3mnb/HqDeEHktiwvjes3Anw4WyQTh3vjJwHixozwZmNwocSNAEapgB8HLR moncrapAiyXmOb4JnxuuWDM2ETjZSd/3ck9ip52FICXJHbKYd+ISXNrNs2kZp1pKtfPL B8fg== 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=YVxbHyIZlgZ+LS3AZu8dix10Mmaf5D45WfZNDP6SCy8=; b=auXJEUiGiYMVQQh6f9AyXy4atV83TahFKpQftqPg0+ukpr996XPHIDW/0B54GiZz1w AD7LVtu1KE0+bbRb5VtueS207BfYWwspDvuYkHgscSpTCRApzPcC8r2Z7bgvsx1Q/SEU nyW2vUyJzXWXzhbcwUzRWr0K90PVH9BNMM4bAQE7GEOJ0I7zyfYseX2232tCtrP9uk8G NwCuXNRb5sBUmp2dgvgO4WATMZVfClKW5+KDHMrCOy6cG8ckXnGipf03mSysV+lIpzph gJOfuifSTb7b6acHLuCCRUuzYxy3xIkO0ELK0OWksjVn4fCIoS5ICoI8FZgtgPRT8Nya RLtg== 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 c6-v6si2555011pgv.30.2018.06.18.11.58.44; Mon, 18 Jun 2018 11:58:57 -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 S935989AbeFRS5G (ORCPT + 99 others); Mon, 18 Jun 2018 14:57:06 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40098 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935752AbeFRS5E (ORCPT ); Mon, 18 Jun 2018 14:57:04 -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 tYIZSDuT3OEs; Mon, 18 Jun 2018 20:57:03 +0200 (CEST) Received: from zn.tnic (p200300EC2BE29C00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2be2:9c00: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 509D51EC00FD; Mon, 18 Jun 2018 20:57:03 +0200 (CEST) Date: Mon, 18 Jun 2018 20:57:00 +0200 From: Borislav Petkov To: "Suthikulpanit, Suravee" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com Subject: Re: [PATCH] x86/CPU/AMD: Fix LLC ID bit-shift calculation Message-ID: <20180618185654.GG24921@zn.tnic> References: <1528915390-30533-1-git-send-email-suravee.suthikulpanit@amd.com> <20180618172048.GD24921@zn.tnic> <8552af6b-c6c6-82d7-9df9-8b928ff3f1d9@amd.com> <20180618182315.GE24921@zn.tnic> <55a20153-9416-404b-7442-ed851386e2e0@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <55a20153-9416-404b-7442-ed851386e2e0@amd.com> 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 On Mon, Jun 18, 2018 at 01:46:11PM -0500, Suthikulpanit, Suravee wrote: > Your understanding is correct. I was not sure about what you were referring > to earlier. Basically, the number of threads sharing cache is used to > calculate the amount of right-shifting of APIC ID, which results in removing > the core and thread ID bits. Yap, that's exactly what I was hinting at, thanks. I'll add it to the commit message. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.