From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754984AbcANUQS (ORCPT ); Thu, 14 Jan 2016 15:16:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:50198 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753649AbcANUQQ (ORCPT ); Thu, 14 Jan 2016 15:16:16 -0500 Date: Thu, 14 Jan 2016 21:16:12 +0100 From: Jean Delvare To: One Thousand Gnomes Cc: Andy Lutomirski , Pali =?UTF-8?B?Um9ow6Fy?= , Jean Delvare , Andy Lutomirski , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dell-wmi: Stop storing pointers to DMI tables Message-ID: <20160114211612.5c253e32@endymion.delvare> In-Reply-To: <20160114140731.0b324e92@lxorguk.ukuu.org.uk> References: <119170b95d373bc943eb4f16818239bac9fa6c59.1451832667.git.luto@kernel.org> <20160112142538.GB11560@pali> <20160114140731.0b324e92@lxorguk.ukuu.org.uk> Organization: SUSE Linux X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On Thu, 14 Jan 2016 14:07:31 +0000, One Thousand Gnomes wrote: > > Jean, am I right that drivers must not store pointers to DMI tables > > that they find through dmi_walk? Is there any alternative interface > > that could be used to get a longer-lived pointer to DMI tables, or > > should drivers just parse them and copy out any info needed from the > > dmi_walk callback? > > The easiest long term solution might be to just map the dmi buffer once > and keep it. It's not that huge so it's not a big address space hog. Please note that SMBIOS specification version 3.0 allows for 32-bit length for DMI tables, suggesting that 64k tables were not large enough for everyone. Just saying. I have no strong opinion on the matter. -- Jean Delvare SUSE L3 Support