Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3464871ybl; Mon, 12 Aug 2019 00:32:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZvU63lKlFpyUBBDEenUoOtifVLyn5VPgHA7jCUlkhwtylJdomgt7Gd5Hp74FBU2b9tJfx X-Received: by 2002:a62:ab13:: with SMTP id p19mr10844360pff.20.1565595153898; Mon, 12 Aug 2019 00:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565595153; cv=none; d=google.com; s=arc-20160816; b=lxk9A29xX5WLjmY2sDaK5q4Octzb/7DZgJXPAmiP8ul+w8zRzFpfkMcG8kIeJgTyhi nUJNeygXbXD0FeChSSmjvvAhCyL0XqqVyIvOBkLIXaQRebxV2oZAEKxRVpG9cEz1tBPs jqguumXcL5cKj+t6Y+NDPLUNSQWS58RB2vcXsdQshvJXHBdlpKUBRwWuXKS8Ebzwwv/H QxYQumIUcGwr8f32owgQLwPP0pwSfxinIFrAT6BpD0CGnZ9TdGYEYQ1XtOVHk1wOezvu IMljiM9xCxXD7cF0b8IPzzr3E9Mh3hc156OzhbQcP4i/sNbIYBkV/V+q7YBcZM1lGeuh 6LLQ== 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:dkim-signature; bh=HIcq0KY0GaLpoIyyj2S96sngcdEQFgKkq4QBqsm3C6Y=; b=zUToAOckmsEtt9nmzRq8+V+vVK0V18Qz/63Olpz2SmMOe3lRymV+cERJTFUPjNZEnP +09mB7/owm7OPXUP6HMZWbtz9QU3szyexxZa+oEe4/bchAgLKImGK2ECbclE1QbtlZor 4s6Tv5Ovaq/gxqd9AdpFJclz0GruKvmIWKg3aQRc7PDFvFVlnIbvGUJF6TAow072tp7+ N8YETPEztiHOKKuMI+EKKIeyyF3FSA5rfoUU+/RI/1Adn4b53UbDIMqvraQGAcWe3m+F dlzhDv9bwWHdFKLXzc1+8Owmxk+jKLO65X8RxiIJMKOE/wsCM+/0e4Xa6ou6Crv3dTiJ Feyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=AjY+bT2p; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f196si9175316pfa.57.2019.08.12.00.32.19; Mon, 12 Aug 2019 00:32:33 -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=@alien8.de header.s=dkim header.b=AjY+bT2p; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbfHLHbj (ORCPT + 99 others); Mon, 12 Aug 2019 03:31:39 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36434 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfHLHbi (ORCPT ); Mon, 12 Aug 2019 03:31:38 -0400 Received: from zn.tnic (p200300EC2F062700705A3C93C863E474.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:2700:705a:3c93:c863:e474]) (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 946DA1EC074B; Mon, 12 Aug 2019 09:31:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1565595097; 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=HIcq0KY0GaLpoIyyj2S96sngcdEQFgKkq4QBqsm3C6Y=; b=AjY+bT2plZ/db4kUCxJOU2w4SzOFhhcVe2D7jcPtKobGvsA6fmc30OW5KpyA8N1Nj4xNtQ Uo0bbyakhNb2EIt04wUfeIvKJLrF1rMvD1LQvjQZZ+1cDAuqDtG1ViWIQQ2820gEYhCof2 t3J2hcehvs5RGEfpXXNpSlNKPRngogs= Date: Mon, 12 Aug 2019 09:32:22 +0200 From: Borislav Petkov To: Robert Richter Cc: James Morse , Mauro Carvalho Chehab , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 02/24] EDAC, ghes: Fix grain calculation Message-ID: <20190812073221.GA23772@zn.tnic> References: <20190624150758.6695-1-rrichter@marvell.com> <20190624150758.6695-3-rrichter@marvell.com> <20190809131559.GF2152@zn.tnic> <20190812064147.5czmkj7e6hxgvje3@rric.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190812064147.5czmkj7e6hxgvje3@rric.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 06:42:00AM +0000, Robert Richter wrote: > I have seen you had actively promoted this style guideline, I even was > not aware of it, thanks for the pointer. It is about time we started writing proper commit messages. How long are we trying, 20 years...? > With the grain_bits calculation the mask is rounded up to the next > power of 2 value. mask = 0xffffffffff00ff00 ~mask = 0x0000000000ff00ff ~mask + 1 = 0x0000000000ff0100 Your "trick" of adding a 1 to get to the most significant bit simply doesn't work here. Thus: "I guess we can leave it like that for now until some "inventive" firmware actually does it." > The reason this is here is because this check will be moved to > edac_raw_mc_handle_error() to unify edac_mc and ghes code (see patch > #4). Ok. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.