Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp808334ima; Wed, 6 Feb 2019 08:40:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IavVKEBbTT+6lW96ERkzo+o1sVVRW7gMRWFvFbijWnNYhdLvzHVY5Nq3OGSBbEjRQE7o5mz X-Received: by 2002:a62:1d8f:: with SMTP id d137mr11276060pfd.11.1549471251714; Wed, 06 Feb 2019 08:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549471251; cv=none; d=google.com; s=arc-20160816; b=ijgmLXJ5pPdgK0eZyok/cgvuyT8yPOWTrFJUfXPfKsE9JoRlog3ZM80H3Ao/cN4W4b EbLddp2jv6MFSSkThz8aSJiD8TBUl6fautx3hvk9ohBVbvua19gjYGcysDwmS89FUTf2 p7A/Svy6IGW7txTaxFaIwCFLmQO76EAquYZk5dJQmMLXuwBK/avRT8RJ73YKnwQOJBbl jTyx/cJ/KK9pDL6bUPYk080YlSeQfYzGhHtM8S+csrKardSFczgrHkJPaB/1anQqx+Ed lXqbxnVqOWQ1hmYh23zFcvRcxiU09KZNv3tgizmG+vCNUL3X/5uqJ9twZErxNUGESdeb cL8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=GZJyKT2Xc6EBYR2Q4b1eBzQlyYZwbgNKsEvkGJExk2o=; b=c6l22NsUF2xkF40nduvrDY5+YRX5hlEHHfhL3MrmAtSWMjBY4hqCnieCcdwbUpdXmJ ItW84k4JQZ/LVVp6N20RXzrRTMdMySIi7LVldgsoVtDmijHkuPr94WLjmmTP3oxj7trJ 2goCa831MWSG6GkL7zT6d+GUMGs+3Wsl1mIG/kSmKSgK4nh0UCWZLiNWcQusrM82MFjA D8rh/iVMVrUrENYJizgYDxVR7n7iOYsAElEL1gok6pCVxAet5IDoi0zJlMAdLz72s160 yMXYEQJaXj9uaJY8R/7UHT7rBh7NEhueoI7IGFSDqgK2Y4mpvLDFn6Lq5lkcopugZV1z PvlA== 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 u18si2583432plq.268.2019.02.06.08.40.34; Wed, 06 Feb 2019 08:40:51 -0800 (PST) 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 S1731325AbfBFQjw (ORCPT + 99 others); Wed, 6 Feb 2019 11:39:52 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3183 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730520AbfBFQjw (ORCPT ); Wed, 6 Feb 2019 11:39:52 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4130AF3CCF7C76F780C3; Thu, 7 Feb 2019 00:39:49 +0800 (CST) Received: from localhost (10.202.226.61) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Thu, 7 Feb 2019 00:39:43 +0800 Date: Wed, 6 Feb 2019 16:39:29 +0000 From: Jonathan Cameron To: Keith Busch CC: , , , Greg Kroah-Hartman , "Rafael Wysocki" , Dave Hansen , "Dan Williams" Subject: Re: [PATCHv5 03/10] acpi/hmat: Parse and report heterogeneous memory Message-ID: <20190206163929.0000394a@huawei.com> In-Reply-To: <20190206160613.GG28064@localhost.localdomain> References: <20190124230724.10022-1-keith.busch@intel.com> <20190124230724.10022-4-keith.busch@intel.com> <20190206122814.00000127@huawei.com> <20190206160613.GG28064@localhost.localdomain> Organization: Huawei X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ... > > > + > > > + return 0; > > > +} > > > + > > > +static int __init hmat_parse_address_range(union acpi_subtable_headers *header, > > > + const unsigned long end) > > > +{ > > > + struct acpi_hmat_address_range *spa = (void *)header; > > > + > > > + if (spa->header.length != sizeof(*spa)) { > > > + pr_debug("HMAT: Unexpected address range header length: %d\n", > > > + spa->header.length); > > > > My gut feeling is that it's much more useful to make this always print rather > > than debug. Same with other error paths above. Given the number of times > > broken ACPI tables show up, it's nice to complain really loudly! > > > > Perhaps others prefer to not do so though so I'll defer to subsystem norms. > > Yeah, I demoted these to debug based on earlier feedback. We should > still be operational even with broken HMAT, so I don't want to create > unnecessary panic if its broken, but I agree something should be > immediately noticable if the firmware tables are incorrect. Maybe like > what bad_srat() provides. Agreed. Something general like that would be great. Let's people know they should turn debug on. Thanks, Jonathan