Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp149425pxm; Tue, 22 Feb 2022 07:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyJrpB0i+5oUwVmRsx7g/4zjJHA/zcABdmZ/3xIuUMuXefmFFlv+20e0DSepK530wOB1vI X-Received: by 2002:a17:903:204c:b0:14f:9a60:1d38 with SMTP id q12-20020a170903204c00b0014f9a601d38mr13584593pla.92.1645545556402; Tue, 22 Feb 2022 07:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645545556; cv=none; d=google.com; s=arc-20160816; b=U0fB86Beoaxfq9EwbZKEvRtEvQBMxkd1+1Nnk7ynJDs9VxUUEEW8/vB/hfQkDj/UB9 KtbNj7d7yR2QTK8ubEDzOMOR303ZE8hLKXIOIW6RbhFfOxxtzxXhPsppBRDmybEgmOhv 1N9+KWZxFWxZYjzhsfDPsuaau08VQB9IsGitrD4Yl9dOT6QHSgOvVAgKfYIORI6sp3WZ GNjF9Dxb8AlZMo4dXxqq4/4+/aB2Q4Y1CxoxUFkdAgOHkTaupxb8ZVHMXlvotuoz0s82 MTrcpSZTXAs1q2Ae3J4qOMTENvxH03tJrH97tN904s/UQbnZYqpjUcFAy009g/e75Pll BMHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aij7NjY9ZQjgmVDgEW1KRwEwnwbxjt+LJNVGVugfzBg=; b=HJX24ArTnrwNaTZakaTV1iQbflSFMpiTouLycaYY2L9SiwGaH+OdlLIzddi4vx0i+d PkaCCksiwnwBy6fL0Z5B0PvnbbkdSn3IX0lV1lwREtVX3c8qCdny4vPki11YcMlfsobh +FH+GwpGnZ3YyAMgp07jpglpz+TFEBg8ptKK+1tl5NKMj/erMw662nF4n8OsgobIyzUA FYIZuAc7BX467T1UVZqYyOt1Cdc531a0rTNksESniajJ6vyQRmdDhMEjZtU1sl2tnhou CPbc3/n4/xSFT0bm1ILjuKeXHBYjaA+E//5yIIvCU8CwsZ4Qdja+FiM+wjOVuEeYmTiQ ZSBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mVLxeE0T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18si18805pje.39.2022.02.22.07.58.56; Tue, 22 Feb 2022 07:59:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mVLxeE0T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbiBVPhl (ORCPT + 99 others); Tue, 22 Feb 2022 10:37:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233394AbiBVPhW (ORCPT ); Tue, 22 Feb 2022 10:37:22 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14D90163D5A; Tue, 22 Feb 2022 07:36:23 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 8A88A1EC0478; Tue, 22 Feb 2022 16:36:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645544177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=aij7NjY9ZQjgmVDgEW1KRwEwnwbxjt+LJNVGVugfzBg=; b=mVLxeE0TUg9Jlj9JbMpInhMy0w0ftP1W3XN+a4MG+VO4BtBq0a5upSYITit3RuUFiEgFao 0uQAQckBp4+TLx2ACyGqLWfoZ9H4QPUkuLy5Gn15czprfb1SZOjWc0ipqFyFSDXfDtdtWG EQVeCJIu9PeLyP6E3uWJ/JB5ijiquxU= Date: Tue, 22 Feb 2022 16:36:25 +0100 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , Dave Hansen , "H . Peter Anvin" , James Morse , Robert Richter , Yazen Ghannam Subject: Re: [PATCH v3 4/4] x86/mce: Avoid unnecessary padding in struct mce_bank Message-ID: References: <20220211223442.254489-1-Smita.KoralahalliChannabasappa@amd.com> <20220211223442.254489-5-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220211223442.254489-5-Smita.KoralahalliChannabasappa@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 11, 2022 at 04:34:42PM -0600, Smita Koralahalli wrote: > Include struct mce_bank member "init" in the bitfield by changing its type > from bool to get rid of unnecessary padding and to reduce the overall > struct size. > > Outputs collected before and after the change. > > $ pahole -C mce_bank arch/x86/kernel/cpu/mce/core.o > > before: > > /* size: 24, cachelines: 1, members: 5 */ > /* bit holes: 1, sum bit holes: 62 bits */ > /* bit_padding: 2 bits */ > /* last cacheline: 24 bytes */ > > after: > > /* size: 16, cachelines: 1, members: 5 */ > /* last cacheline: 16 bytes */ I don't mind cleanups like that but when you send them as part of a set adding new functionality, the usual rule is to put bug fixes, cleanups, improvements, etc to the existing code *first*, and then, ontop you add your new code. IOW, this patch should be first in your set. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette