From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id v7si153836wmg.3.2016.02.03.03.07.47 for ; Wed, 03 Feb 2016 03:07:47 -0800 (PST) Date: Wed, 3 Feb 2016 12:07:05 +0100 From: Alexandre Belloni To: dirk.behme@gmail.com Cc: rtc-linux , Dirk Behme , Oleksij Rempel Subject: [rtc-linux] Re: rtc: RV8803: BUG: scheduling while atomic Message-ID: <20160203105717.GA20165@piout.net> References: <460eec38-0a09-4faa-b601-de64803ed5f3@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <460eec38-0a09-4faa-b601-de64803ed5f3@googlegroups.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Hi, On 03/02/2016 at 01:31:21 -0800, dirk.behme@gmail.com wrote : > Testing the RV8803 driver [1] we are getting several "BUG: scheduling while > atomic" [2]. > > Having a quick look this might be from rv8803_set_time() holding a spinlock > during the call to i2c_smbus_read_byte_data()? > > Any ideas? > Yes, that is probably the case. As this is already a threaded irq, it can probably be changed into a mutex this would solve the issue. Can you try that? I don't have much time to do it myself right now. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.