Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341AbbBZCJE (ORCPT ); Wed, 25 Feb 2015 21:09:04 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:34464 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbbBZCJC (ORCPT ); Wed, 25 Feb 2015 21:09:02 -0500 MIME-Version: 1.0 In-Reply-To: <54EC2F4E.1080606@plexistor.com> References: <54EB1D33.3050107@plexistor.com> <54EB1E03.4010306@plexistor.com> <1424751767.9050.4.camel@intel.com> <54EC2F4E.1080606@plexistor.com> Date: Wed, 25 Feb 2015 18:09:01 -0800 Message-ID: Subject: Re: [PATCH 1/3] e820: Don't let unknown DIMM type come out BUSY From: Dan Williams To: Boaz Harrosh Cc: Ingo Molnar , Ross Zwisler , X86 ML , linux-kernel , "Roger C. Pao" , Thomas Gleixner , Linus Torvalds , linux-nvdimm , "H. Peter Anvin" , Matthew Wilcox , Andy Lutomirski , Christoph Hellwig Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 33 On Mon, Feb 23, 2015 at 11:59 PM, Boaz Harrosh wrote: > No, this is a complete HACK, since when do we hard code specific (GLOBAL) > ARCHs strings in common code. Please look at linux/ioport.h see the richness > of options for all kind of buses and systems. The flag system works perfectly > and I just continue this here. > > And really DAN, you prefer a global string that's dead garbage in 99% of arches > to a simple bit flag definition that costs nothing? I don't think so. Glad we're moving ahead with the IORESOURCE_MEM_WARN solution rather than this or the 64-bit-limited IORESOURCE_WARN approach. > >> + add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK); > > NACK!! > I disagree. Ultimately what goes into kernel/resource.c is not up to me, but firmware/driver combinations that subvert standards should be flagged by the kernel. Stepping back from the original motivation, in the general case, an unknown memory type is indiscernible from a BIOS bug. TAINT_FIRMWARE_WORKAROUND is simply a notification that firmware needs to be updated, and I believe a driver attaching to unknown memory is such an event. It does not block a user from using that memory however he or she sees fit. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/