Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761445AbbBIWbd (ORCPT ); Mon, 9 Feb 2015 17:31:33 -0500 Received: from pmta1.delivery1.ore.mailhop.org ([54.191.214.3]:51150 "EHLO pmta1.delivery1.ore.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755846AbbBIWbb (ORCPT ); Mon, 9 Feb 2015 17:31:31 -0500 X-Greylist: delayed 600 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Feb 2015 17:31:31 EST X-Mail-Handler: DuoCircle Outbound SMTP X-Originating-IP: 104.193.169.186 X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information) X-MHO-User: U2FsdGVkX18kNLVLj2wJ1Jlb4u8VITO5 Date: Mon, 9 Feb 2015 14:16:35 -0800 From: Tony Lindgren To: Paul Walmsley Cc: Peter Ujfalusi , Peter Zijlstra , linux-omap@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, balbi@ti.com, linux-arm-kernel@lists.infradead.org, Tero Kristo Subject: Re: [PATCH 0/2] ARM: omap2+: omap_hwmod: Fix false lockdep warning Message-ID: <20150209221634.GD2531@atomide.com> References: <1423226916-18804-1-git-send-email-peter.ujfalusi@ti.com> <20150206141346.GP21418@twins.programming.kicks-ass.net> <54D4E64C.7060208@ti.com> <20150206183205.GS21418@twins.programming.kicks-ass.net> <54D5154F.8080208@ti.com> <54D86F74.7070703@ti.com> <20150209173110.GI25235@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3080 Lines: 66 * Paul Walmsley [150209 10:59]: > On Mon, 9 Feb 2015, Tony Lindgren wrote: > > > * Paul Walmsley [150209 08:04]: > > > On Mon, 9 Feb 2015, Peter Ujfalusi wrote: > > > > > > > On 02/06/2015 09:26 PM, Peter Ujfalusi wrote: > > > > >> Yeah, I've never really bothered with data too much, its a debug > > > > >> feature. So lock_class_key is 8 bytes, and strictly speaking you could > > > > >> union them over other fields, all we really need is unique addresses, we > > > > >> don't actually use the storage. > > > > > > > > > > True. our omap2plus defconfig does not have LOCKDEP enabled so it should not > > > > > add anything to the data when running default kernel. > > > > > I'll test the lockdep_set_class() method you suggested on Monday (not > > > > > tomorrow), but still as first thing. > > > > > If it is working as expected I'll send a patch with you as author. > > > > > > > > With omap2plus_defconfig my build produces (vmlinux size): > > > > Base: 99905522 > > > > with my series: 99908385 (base + 2863) > > > > with Peter Zijlstra's patch: 99910625 (base + 5103) > > > > > > > > The reason for this is that we will only have > > > > struct lock_class_key { }; > > > > in case of !CONFIG_LOCKDEP. On ARM however CONFIG_LOCKDEP is enabled by > > > > default, while the CONFIG_DEBUG_LOCKDEP is disabled. > > > > > > > > So it does add more data to our default omap2plus config. > > > > > > > > Tony: do you have preference on the way we fix this issue? > > > > > > > > As I recall there is a plan to remove the hwmod static database and move it or > > > > generate it from DT? Not sure when and how this will be done, but will it > > > > affect the lockdep_set_class() way? > > > > > > Well I guess we could see what Tony says, but you do realize that the > > > difference in sizes that you posted above is about .003% of the total > > > binary size, right? > > > > > > If there's one thing we can say about the last few years of ARM kernel > > > development, it's that those kind of size increases are utterly dwarfed by > > > other changes in the kernel. So I'd say, post a patch based on PeterZ's > > > fix and be done with it... > > > > Well the thing to consider here is what Peter U is saying about > > having struct omap_hwmod allocated based on the data from .dts > > files. If the fix makes the dynamic allocation harder to do later on, > > we should probably avoid it. If it's relatively easy to do later on, > > then I don't have a problem with it. > > The future destination for that code that makes the most sense to me is > for it to become integrated with the OMAP Sonics & Arteris bus drivers and > DT data. So I wouldn't worry too much about it; I don't think the > lockdep fix will affect that at all. OK up to you guys then. Regards, Tony -- 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/