* [PATCH] watchdog: dw_wdt: dont build for avr32 @ 2016-04-12 5:51 Sudip Mukherjee [not found] ` <1460440303-20640-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Sudip Mukherjee @ 2016-04-12 5:51 UTC (permalink / raw) To: Wim Van Sebroeck, Guenter Roeck, Haavard Skinnemoen, Hans-Christian Egtvedt Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Sudip Mukherjee The build of avr32 allmodconfig fails with the error: ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! Exclude this driver from the build of avr32. Signed-off-by: Sudip Mukherjee <sudip.mukherjee-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> --- avr32 build log is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/122158665 drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index fb94765..61041ba 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -981,7 +981,7 @@ config HP_WATCHDOG config KEMPLD_WDT tristate "Kontron COM Watchdog Timer" - depends on MFD_KEMPLD + depends on MFD_KEMPLD && !AVR32 select WATCHDOG_CORE help Support for the PLD watchdog on some Kontron ETX and COMexpress -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1460440303-20640-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <1460440303-20640-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-04-12 13:06 ` Guenter Roeck [not found] ` <570CF2CB.2050200-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-04-12 13:07 ` Guenter Roeck 1 sibling, 1 reply; 15+ messages in thread From: Guenter Roeck @ 2016-04-12 13:06 UTC (permalink / raw) To: Sudip Mukherjee, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > The build of avr32 allmodconfig fails with the error: > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > This means there is a direct 64 bit divide operation in the driver, which we should identify and fix. Guenter > Exclude this driver from the build of avr32. > > Signed-off-by: Sudip Mukherjee <sudip.mukherjee-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> > --- > > avr32 build log is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/122158665 > > drivers/watchdog/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index fb94765..61041ba 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -981,7 +981,7 @@ config HP_WATCHDOG > > config KEMPLD_WDT > tristate "Kontron COM Watchdog Timer" > - depends on MFD_KEMPLD > + depends on MFD_KEMPLD && !AVR32 > select WATCHDOG_CORE > help > Support for the PLD watchdog on some Kontron ETX and COMexpress > ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <570CF2CB.2050200-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <570CF2CB.2050200-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> @ 2016-04-12 13:39 ` Sudip Mukherjee [not found] ` <570CFA90.4060100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Sudip Mukherjee @ 2016-04-12 13:39 UTC (permalink / raw) To: Guenter Roeck, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: > On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >> The build of avr32 allmodconfig fails with the error: >> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >> > This means there is a direct 64 bit divide operation in the driver, > which we should identify and fix. yes, there is. in function: kempld_wdt_set_stage_timeout() remainder = do_div(stage_timeout64, prescaler); Any idea how to fix it? regards sudip ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <570CFA90.4060100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <570CFA90.4060100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-04-12 14:58 ` Andy Shevchenko 2016-04-12 15:29 ` Sudip Mukherjee [not found] ` <CAHp75VcrmiP0GWR-zCBmqc7zA6uiC4dD8-HDikmWZxyEwXkRLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 2 replies; 15+ messages in thread From: Andy Shevchenko @ 2016-04-12 14:58 UTC (permalink / raw) To: Sudip Mukherjee Cc: Guenter Roeck, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >> >> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>> >>> The build of avr32 allmodconfig fails with the error: >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>> >> This means there is a direct 64 bit divide operation in the driver, >> which we should identify and fix. This driver will quite likely never be used on AVR32. Do we need to fix this due to some other architectures? > yes, there is. > > in function: kempld_wdt_set_stage_timeout() > remainder = do_div(stage_timeout64, prescaler); > Any idea how to fix it? Not easy, however, prescaler value is ((1 << 21) - 1) which someone might consider as (1 << 21) with lost in precision. Thus, shift on 20 bits right, add last bit to the value and shift on 1 bit right more. -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 2016-04-12 14:58 ` Andy Shevchenko @ 2016-04-12 15:29 ` Sudip Mukherjee [not found] ` <CAHp75VcrmiP0GWR-zCBmqc7zA6uiC4dD8-HDikmWZxyEwXkRLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 0 replies; 15+ messages in thread From: Sudip Mukherjee @ 2016-04-12 15:29 UTC (permalink / raw) To: Andy Shevchenko Cc: Guenter Roeck, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel@vger.kernel.org, kernel-testers, linux-watchdog On Tuesday 12 April 2016 08:28 PM, Andy Shevchenko wrote: > On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee > <sudipm.mukherjee@gmail.com> wrote: >> On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >>> >>> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>>> >>>> The build of avr32 allmodconfig fails with the error: >>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>> >>> This means there is a direct 64 bit divide operation in the driver, >>> which we should identify and fix. > > This driver will quite likely never be used on AVR32. Do we need to > fix this due to some other architectures? I have not seen failure in the architecture builds I monitor. And since no one reported anything so I guess its only avr32. regards sudip ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CAHp75VcrmiP0GWR-zCBmqc7zA6uiC4dD8-HDikmWZxyEwXkRLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <CAHp75VcrmiP0GWR-zCBmqc7zA6uiC4dD8-HDikmWZxyEwXkRLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-04-12 18:01 ` Guenter Roeck [not found] ` <20160412180128.GA6965-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Guenter Roeck @ 2016-04-12 18:01 UTC (permalink / raw) To: Andy Shevchenko Cc: Sudip Mukherjee, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: > On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee > <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: > >> > >> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > >>> > >>> The build of avr32 allmodconfig fails with the error: > >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > >>> > >> This means there is a direct 64 bit divide operation in the driver, > >> which we should identify and fix. > > This driver will quite likely never be used on AVR32. Do we need to > fix this due to some other architectures? > > > yes, there is. > > > > in function: kempld_wdt_set_stage_timeout() > > remainder = do_div(stage_timeout64, prescaler); > > > Any idea how to fix it? > > Not easy, however, prescaler value is ((1 << 21) - 1) which someone > might consider as (1 << 21) with lost in precision. > > Thus, shift on 20 bits right, add last bit to the value and shift on 1 > bit right more. > Sorry, I am missing something. do_div() should work fine with any 32 bit value as divisor, no matter what that value is. Why does it fail here ? And why does it work if I pass 0x1fffff as second parameter to do_div() directly ? Thanks, Guenter > -- > With Best Regards, > Andy Shevchenko > -- > To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <20160412180128.GA6965-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <20160412180128.GA6965-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> @ 2016-04-12 18:17 ` Andy Shevchenko 2016-04-30 18:38 ` Sudip Mukherjee 1 sibling, 0 replies; 15+ messages in thread From: Andy Shevchenko @ 2016-04-12 18:17 UTC (permalink / raw) To: Guenter Roeck Cc: Sudip Mukherjee, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Tue, Apr 12, 2016 at 9:01 PM, Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> wrote: > On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >> <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >> >> > Sorry, I am missing something. do_div() should work fine with any 32 bit value > as divisor, no matter what that value is. Why does it fail here ? And why does > it work if I pass 0x1fffff as second parameter to do_div() directly ? Perhaps compare assembly code in both cases? -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <20160412180128.GA6965-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-04-12 18:17 ` Andy Shevchenko @ 2016-04-30 18:38 ` Sudip Mukherjee 2016-05-01 0:04 ` Guenter Roeck 2016-05-01 0:36 ` Guenter Roeck 1 sibling, 2 replies; 15+ messages in thread From: Sudip Mukherjee @ 2016-04-30 18:38 UTC (permalink / raw) To: Guenter Roeck Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: > On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: > > On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee > > <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: > > >> > > >> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > > >>> > > >>> The build of avr32 allmodconfig fails with the error: > > >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > >>> > > >> This means there is a direct 64 bit divide operation in the driver, > > >> which we should identify and fix. > > > > This driver will quite likely never be used on AVR32. Do we need to > > fix this due to some other architectures? > > > > > yes, there is. > > > > > > in function: kempld_wdt_set_stage_timeout() > > > remainder = do_div(stage_timeout64, prescaler); > > > > > Any idea how to fix it? > > > > Not easy, however, prescaler value is ((1 << 21) - 1) which someone > > might consider as (1 << 21) with lost in precision. > > > > Thus, shift on 20 bits right, add last bit to the value and shift on 1 > > bit right more. > > > Sorry, I am missing something. do_div() should work fine with any 32 bit value > as divisor, no matter what that value is. Why does it fail here ? And why does > it work if I pass 0x1fffff as second parameter to do_div() directly ? Please let me know what i can do here to help solve the problem. linux-next continues to fail for avr32, and to make matters worse we also have the similar problem in btrfs. ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! Adding Chris to CC if he has some idea how to solve this error for btrfs. Build log for next-20160429 is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 2016-04-30 18:38 ` Sudip Mukherjee @ 2016-05-01 0:04 ` Guenter Roeck 2016-05-01 0:36 ` Guenter Roeck 1 sibling, 0 replies; 15+ messages in thread From: Guenter Roeck @ 2016-05-01 0:04 UTC (permalink / raw) To: Sudip Mukherjee Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On 04/30/2016 11:38 AM, Sudip Mukherjee wrote: > On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: >> On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >>> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >>> <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >>>>> >>>>> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>>>>> >>>>>> The build of avr32 allmodconfig fails with the error: >>>>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>>>> >>>>> This means there is a direct 64 bit divide operation in the driver, >>>>> which we should identify and fix. >>> >>> This driver will quite likely never be used on AVR32. Do we need to >>> fix this due to some other architectures? >>> >>>> yes, there is. >>>> >>>> in function: kempld_wdt_set_stage_timeout() >>>> remainder = do_div(stage_timeout64, prescaler); >>> >>>> Any idea how to fix it? >>> >>> Not easy, however, prescaler value is ((1 << 21) - 1) which someone >>> might consider as (1 << 21) with lost in precision. >>> >>> Thus, shift on 20 bits right, add last bit to the value and shift on 1 >>> bit right more. >>> >> Sorry, I am missing something. do_div() should work fine with any 32 bit value >> as divisor, no matter what that value is. Why does it fail here ? And why does >> it work if I pass 0x1fffff as second parameter to do_div() directly ? > > Please let me know what i can do here to help solve the problem. > linux-next continues to fail for avr32, and to make matters worse we > also have the similar problem in btrfs. > > ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > Pretty much what I suspected would happen. Oddly enough, the symbol was defined in early avr32 patch sets [1], but dropped in the final commit after some discussion [2]. Makes me wonder if the problem was always known. Guenter > Adding Chris to CC if he has some idea how to solve this error for btrfs. > Build log for next-20160429 is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 > > regards > sudip > --- [1] https://kldp.org/files/linux-2.6.16.11-avr32-20060626.patch_.txt [2] http://fa.linux.kernel.narkive.com/4UhaxiM4/avr32-architecture-patch-against-linux-2-6-18-rc1-available ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 2016-04-30 18:38 ` Sudip Mukherjee 2016-05-01 0:04 ` Guenter Roeck @ 2016-05-01 0:36 ` Guenter Roeck [not found] ` <20160501003651.GA28804-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 1 sibling, 1 reply; 15+ messages in thread From: Guenter Roeck @ 2016-05-01 0:36 UTC (permalink / raw) To: Sudip Mukherjee Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On Sat, Apr 30, 2016 at 07:38:28PM +0100, Sudip Mukherjee wrote: > On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: > > On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: > > > On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee > > > <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: > > > >> > > > >> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > > > >>> > > > >>> The build of avr32 allmodconfig fails with the error: > > > >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > > >>> > > > >> This means there is a direct 64 bit divide operation in the driver, > > > >> which we should identify and fix. > > > > > > This driver will quite likely never be used on AVR32. Do we need to > > > fix this due to some other architectures? > > > > > > > yes, there is. > > > > > > > > in function: kempld_wdt_set_stage_timeout() > > > > remainder = do_div(stage_timeout64, prescaler); > > > > > > > Any idea how to fix it? > > > > > > Not easy, however, prescaler value is ((1 << 21) - 1) which someone > > > might consider as (1 << 21) with lost in precision. > > > > > > Thus, shift on 20 bits right, add last bit to the value and shift on 1 > > > bit right more. > > > > > Sorry, I am missing something. do_div() should work fine with any 32 bit value > > as divisor, no matter what that value is. Why does it fail here ? And why does > > it work if I pass 0x1fffff as second parameter to do_div() directly ? > > Please let me know what i can do here to help solve the problem. > linux-next continues to fail for avr32, and to make matters worse we > also have the similar problem in btrfs. > > ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > Adding Chris to CC if he has some idea how to solve this error for btrfs. > Build log for next-20160429 is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 > Try the patch below. Guenter --- From d2f541c46ae2bf599d9aa3be0682cfac76742ebf Mon Sep 17 00:00:00 2001 From: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> Date: Sat, 30 Apr 2016 17:29:14 -0700 Subject: [PATCH] avr32: __div64_const32 is not ok Building avr32 images may fail with errors such as ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! gcc for avr32 generates those symbols for certain constants used as divisor in do_div(). The problem can be avoided by setting __div64_const32_is_OK to false for the architecture. Cc: Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> --- arch/avr32/include/asm/div64.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 arch/avr32/include/asm/div64.h diff --git a/arch/avr32/include/asm/div64.h b/arch/avr32/include/asm/div64.h new file mode 100644 index 000000000000..1f3328e178df --- /dev/null +++ b/arch/avr32/include/asm/div64.h @@ -0,0 +1,3 @@ +#define __div64_const32_is_OK false + +#include <asm-generic/div64.h> -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <20160501003651.GA28804-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <20160501003651.GA28804-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> @ 2016-05-01 1:13 ` Guenter Roeck 2016-05-01 9:04 ` Sudip Mukherjee 0 siblings, 1 reply; 15+ messages in thread From: Guenter Roeck @ 2016-05-01 1:13 UTC (permalink / raw) To: Sudip Mukherjee Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On Sat, Apr 30, 2016 at 05:36:51PM -0700, Guenter Roeck wrote: > On Sat, Apr 30, 2016 at 07:38:28PM +0100, Sudip Mukherjee wrote: > > On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: > > > On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: > > > > On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee > > > > <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: > > > > >> > > > > >> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > > > > >>> > > > > >>> The build of avr32 allmodconfig fails with the error: > > > > >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > > > >>> > > > > >> This means there is a direct 64 bit divide operation in the driver, > > > > >> which we should identify and fix. > > > > > > > > This driver will quite likely never be used on AVR32. Do we need to > > > > fix this due to some other architectures? > > > > > > > > > yes, there is. > > > > > > > > > > in function: kempld_wdt_set_stage_timeout() > > > > > remainder = do_div(stage_timeout64, prescaler); > > > > > > > > > Any idea how to fix it? > > > > > > > > Not easy, however, prescaler value is ((1 << 21) - 1) which someone > > > > might consider as (1 << 21) with lost in precision. > > > > > > > > Thus, shift on 20 bits right, add last bit to the value and shift on 1 > > > > bit right more. > > > > > > > Sorry, I am missing something. do_div() should work fine with any 32 bit value > > > as divisor, no matter what that value is. Why does it fail here ? And why does > > > it work if I pass 0x1fffff as second parameter to do_div() directly ? > > > > Please let me know what i can do here to help solve the problem. > > linux-next continues to fail for avr32, and to make matters worse we > > also have the similar problem in btrfs. > > > > ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! > > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > > > Adding Chris to CC if he has some idea how to solve this error for btrfs. > > Build log for next-20160429 is at: > > https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 > > > > Try the patch below. > > Guenter > Sorry, patch wasn't complete. Guenter --- From c684f2cf54ecb256007288af23c24bfcdb2bbace Mon Sep 17 00:00:00 2001 From: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> Date: Sat, 30 Apr 2016 17:29:14 -0700 Subject: [PATCH] avr32: __div64_const32 is not ok Building avr32 images may fail with errors such as ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! gcc for avr32 generates those symbols for certain constants used as divisor in do_div(). The problem can be avoided by setting __div64_const32_is_OK to false for the architecture. Cc: Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> --- arch/avr32/include/asm/Kbuild | 1 - arch/avr32/include/asm/div64.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 arch/avr32/include/asm/div64.h diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild index 241b9b9729d8..d2be4688ac7b 100644 --- a/arch/avr32/include/asm/Kbuild +++ b/arch/avr32/include/asm/Kbuild @@ -3,7 +3,6 @@ generic-y += clkdev.h generic-y += cputime.h generic-y += delay.h generic-y += device.h -generic-y += div64.h generic-y += emergency-restart.h generic-y += exec.h generic-y += futex.h diff --git a/arch/avr32/include/asm/div64.h b/arch/avr32/include/asm/div64.h new file mode 100644 index 000000000000..1f3328e178df --- /dev/null +++ b/arch/avr32/include/asm/div64.h @@ -0,0 +1,3 @@ +#define __div64_const32_is_OK false + +#include <asm-generic/div64.h> -- 2.5.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 2016-05-01 1:13 ` Guenter Roeck @ 2016-05-01 9:04 ` Sudip Mukherjee [not found] ` <5725C698.1090504-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Sudip Mukherjee @ 2016-05-01 9:04 UTC (permalink / raw) To: Guenter Roeck Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel@vger.kernel.org, kernel-testers, linux-watchdog, Chris Mason On Sunday 01 May 2016 02:13 AM, Guenter Roeck wrote: > On Sat, Apr 30, 2016 at 05:36:51PM -0700, Guenter Roeck wrote: >> On Sat, Apr 30, 2016 at 07:38:28PM +0100, Sudip Mukherjee wrote: >>> On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: >>>> On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >>>>> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >>>>> <sudipm.mukherjee@gmail.com> wrote: >>>>>> On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >>>>>>> >>>>>>> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>>>>>>> >>>>>>>> The build of avr32 allmodconfig fails with the error: >>>>>>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>>>>>> >>>>>>> This means there is a direct 64 bit divide operation in the driver, >>>>>>> which we should identify and fix. >>>>> >>>>> This driver will quite likely never be used on AVR32. Do we need to >>>>> fix this due to some other architectures? >>>>> >>>>>> yes, there is. >>>>>> >>>>>> in function: kempld_wdt_set_stage_timeout() >>>>>> remainder = do_div(stage_timeout64, prescaler); >>>>> >>>>>> Any idea how to fix it? >>>>> >>>>> Not easy, however, prescaler value is ((1 << 21) - 1) which someone >>>>> might consider as (1 << 21) with lost in precision. >>>>> >>>>> Thus, shift on 20 bits right, add last bit to the value and shift on 1 >>>>> bit right more. >>>>> >>>> Sorry, I am missing something. do_div() should work fine with any 32 bit value >>>> as divisor, no matter what that value is. Why does it fail here ? And why does >>>> it work if I pass 0x1fffff as second parameter to do_div() directly ? >>> >>> Please let me know what i can do here to help solve the problem. >>> linux-next continues to fail for avr32, and to make matters worse we >>> also have the similar problem in btrfs. >>> >>> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>> >>> Adding Chris to CC if he has some idea how to solve this error for btrfs. >>> Build log for next-20160429 is at: >>> https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 >>> >> >> Try the patch below. >> >> Guenter >> > Sorry, patch wasn't complete. > > Guenter > > --- > From c684f2cf54ecb256007288af23c24bfcdb2bbace Mon Sep 17 00:00:00 2001 > From: Guenter Roeck <linux@roeck-us.net> > Date: Sat, 30 Apr 2016 17:29:14 -0700 > Subject: [PATCH] avr32: __div64_const32 is not ok > > Building avr32 images may fail with errors such as > > ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > gcc for avr32 generates those symbols for certain constants used > as divisor in do_div(). The problem can be avoided by setting > __div64_const32_is_OK to false for the architecture. > > Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> > Signed-off-by: Guenter Roeck <linux@roeck-us.net> > --- > arch/avr32/include/asm/Kbuild | 1 - > arch/avr32/include/asm/div64.h | 3 +++ > 2 files changed, 3 insertions(+), 1 deletion(-) > create mode 100644 arch/avr32/include/asm/div64.h > > diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild > index 241b9b9729d8..d2be4688ac7b 100644 > --- a/arch/avr32/include/asm/Kbuild > +++ b/arch/avr32/include/asm/Kbuild > @@ -3,7 +3,6 @@ generic-y += clkdev.h > generic-y += cputime.h > generic-y += delay.h > generic-y += device.h > -generic-y += div64.h > generic-y += emergency-restart.h > generic-y += exec.h > generic-y += futex.h > diff --git a/arch/avr32/include/asm/div64.h b/arch/avr32/include/asm/div64.h > new file mode 100644 > index 000000000000..1f3328e178df > --- /dev/null > +++ b/arch/avr32/include/asm/div64.h > @@ -0,0 +1,3 @@ > +#define __div64_const32_is_OK false > + > +#include <asm-generic/div64.h> > It looks like this patch has fixed about the error about the watchdog but for some reason I am still getting the error about the btrfs. ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! regards sudip ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <5725C698.1090504-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <5725C698.1090504-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-05-01 14:09 ` Guenter Roeck [not found] ` <57260E10.5050601-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Guenter Roeck @ 2016-05-01 14:09 UTC (permalink / raw) To: Sudip Mukherjee Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On 05/01/2016 02:04 AM, Sudip Mukherjee wrote: > On Sunday 01 May 2016 02:13 AM, Guenter Roeck wrote: >> On Sat, Apr 30, 2016 at 05:36:51PM -0700, Guenter Roeck wrote: >>> On Sat, Apr 30, 2016 at 07:38:28PM +0100, Sudip Mukherjee wrote: >>>> On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: >>>>> On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >>>>>> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >>>>>> <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>>>>> On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >>>>>>>> >>>>>>>> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>>>>>>>> >>>>>>>>> The build of avr32 allmodconfig fails with the error: >>>>>>>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>>>>>>> >>>>>>>> This means there is a direct 64 bit divide operation in the driver, >>>>>>>> which we should identify and fix. >>>>>> >>>>>> This driver will quite likely never be used on AVR32. Do we need to >>>>>> fix this due to some other architectures? >>>>>> >>>>>>> yes, there is. >>>>>>> >>>>>>> in function: kempld_wdt_set_stage_timeout() >>>>>>> remainder = do_div(stage_timeout64, prescaler); >>>>>> >>>>>>> Any idea how to fix it? >>>>>> >>>>>> Not easy, however, prescaler value is ((1 << 21) - 1) which someone >>>>>> might consider as (1 << 21) with lost in precision. >>>>>> >>>>>> Thus, shift on 20 bits right, add last bit to the value and shift on 1 >>>>>> bit right more. >>>>>> >>>>> Sorry, I am missing something. do_div() should work fine with any 32 bit value >>>>> as divisor, no matter what that value is. Why does it fail here ? And why does >>>>> it work if I pass 0x1fffff as second parameter to do_div() directly ? >>>> >>>> Please let me know what i can do here to help solve the problem. >>>> linux-next continues to fail for avr32, and to make matters worse we >>>> also have the similar problem in btrfs. >>>> >>>> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>> >>>> Adding Chris to CC if he has some idea how to solve this error for btrfs. >>>> Build log for next-20160429 is at: >>>> https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 >>>> >>> >>> Try the patch below. >>> >>> Guenter >>> >> Sorry, patch wasn't complete. >> >> Guenter >> >> --- >> From c684f2cf54ecb256007288af23c24bfcdb2bbace Mon Sep 17 00:00:00 2001 >> From: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> >> Date: Sat, 30 Apr 2016 17:29:14 -0700 >> Subject: [PATCH] avr32: __div64_const32 is not ok >> >> Building avr32 images may fail with errors such as >> >> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >> >> gcc for avr32 generates those symbols for certain constants used >> as divisor in do_div(). The problem can be avoided by setting >> __div64_const32_is_OK to false for the architecture. >> >> Cc: Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> >> --- >> arch/avr32/include/asm/Kbuild | 1 - >> arch/avr32/include/asm/div64.h | 3 +++ >> 2 files changed, 3 insertions(+), 1 deletion(-) >> create mode 100644 arch/avr32/include/asm/div64.h >> >> diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild >> index 241b9b9729d8..d2be4688ac7b 100644 >> --- a/arch/avr32/include/asm/Kbuild >> +++ b/arch/avr32/include/asm/Kbuild >> @@ -3,7 +3,6 @@ generic-y += clkdev.h >> generic-y += cputime.h >> generic-y += delay.h >> generic-y += device.h >> -generic-y += div64.h >> generic-y += emergency-restart.h >> generic-y += exec.h >> generic-y += futex.h >> diff --git a/arch/avr32/include/asm/div64.h b/arch/avr32/include/asm/div64.h >> new file mode 100644 >> index 000000000000..1f3328e178df >> --- /dev/null >> +++ b/arch/avr32/include/asm/div64.h >> @@ -0,0 +1,3 @@ >> +#define __div64_const32_is_OK false >> + >> +#include <asm-generic/div64.h> >> > > It looks like this patch has fixed about the error about the watchdog but for some reason I am still getting the error about the btrfs. > > ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! > Are you sure that this failure is limited to avr32 ? Bisect for that problem points to commit "Btrfs: fix divide error upon chunk's stripe_len", which modified stripe_len in struct map_lookup to 64 bit. map->stripe_length is used at least once in a 64-bit divide operation, so I would expect to see more build failures. A quick check shows that i386:allmodconfig now fails to build as well due to a 64-bit divide operation in brtfs. Guenter ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <57260E10.5050601-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>]
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <57260E10.5050601-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> @ 2016-05-01 16:30 ` Sudip Mukherjee 0 siblings, 0 replies; 15+ messages in thread From: Sudip Mukherjee @ 2016-05-01 16:30 UTC (permalink / raw) To: Guenter Roeck Cc: Andy Shevchenko, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, Chris Mason On Sunday 01 May 2016 03:09 PM, Guenter Roeck wrote: > On 05/01/2016 02:04 AM, Sudip Mukherjee wrote: >> On Sunday 01 May 2016 02:13 AM, Guenter Roeck wrote: >>> On Sat, Apr 30, 2016 at 05:36:51PM -0700, Guenter Roeck wrote: >>>> On Sat, Apr 30, 2016 at 07:38:28PM +0100, Sudip Mukherjee wrote: >>>>> On Tue, Apr 12, 2016 at 11:01:28AM -0700, Guenter Roeck wrote: >>>>>> On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote: >>>>>>> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee >>>>>>> <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>>>>>> On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote: >>>>>>>>> >>>>>>>>> On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: >>>>>>>>>> >>>>>>>>>> The build of avr32 allmodconfig fails with the error: >>>>>>>>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] >>>>>>>>>> undefined! >>>>>>>>>> >>>>>>>>> This means there is a direct 64 bit divide operation in the >>>>>>>>> driver, >>>>>>>>> which we should identify and fix. >>>>>>> >>>>>>> This driver will quite likely never be used on AVR32. Do we need to >>>>>>> fix this due to some other architectures? >>>>>>> >>>>>>>> yes, there is. >>>>>>>> >>>>>>>> in function: kempld_wdt_set_stage_timeout() >>>>>>>> remainder = do_div(stage_timeout64, prescaler); >>>>>>> >>>>>>>> Any idea how to fix it? >>>>>>> >>>>>>> Not easy, however, prescaler value is ((1 << 21) - 1) which someone >>>>>>> might consider as (1 << 21) with lost in precision. >>>>>>> >>>>>>> Thus, shift on 20 bits right, add last bit to the value and shift >>>>>>> on 1 >>>>>>> bit right more. >>>>>>> >>>>>> Sorry, I am missing something. do_div() should work fine with any >>>>>> 32 bit value >>>>>> as divisor, no matter what that value is. Why does it fail here ? >>>>>> And why does >>>>>> it work if I pass 0x1fffff as second parameter to do_div() directly ? >>>>> >>>>> Please let me know what i can do here to help solve the problem. >>>>> linux-next continues to fail for avr32, and to make matters worse we >>>>> also have the similar problem in btrfs. >>>>> >>>>> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >>>>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>>>> >>>>> Adding Chris to CC if he has some idea how to solve this error for >>>>> btrfs. >>>>> Build log for next-20160429 is at: >>>>> https://travis-ci.org/sudipm-mukherjee/parport/jobs/126581065 >>>>> >>>> >>>> Try the patch below. >>>> >>>> Guenter >>>> >>> Sorry, patch wasn't complete. >>> >>> Guenter >>> >>> --- >>> From c684f2cf54ecb256007288af23c24bfcdb2bbace Mon Sep 17 00:00:00 2001 >>> From: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> >>> Date: Sat, 30 Apr 2016 17:29:14 -0700 >>> Subject: [PATCH] avr32: __div64_const32 is not ok >>> >>> Building avr32 images may fail with errors such as >>> >>> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >>> ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! >>> >>> gcc for avr32 generates those symbols for certain constants used >>> as divisor in do_div(). The problem can be avoided by setting >>> __div64_const32_is_OK to false for the architecture. >>> >>> Cc: Sudip Mukherjee <sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> >>> --- >>> arch/avr32/include/asm/Kbuild | 1 - >>> arch/avr32/include/asm/div64.h | 3 +++ >>> 2 files changed, 3 insertions(+), 1 deletion(-) >>> create mode 100644 arch/avr32/include/asm/div64.h >>> >>> diff --git a/arch/avr32/include/asm/Kbuild >>> b/arch/avr32/include/asm/Kbuild >>> index 241b9b9729d8..d2be4688ac7b 100644 >>> --- a/arch/avr32/include/asm/Kbuild >>> +++ b/arch/avr32/include/asm/Kbuild >>> @@ -3,7 +3,6 @@ generic-y += clkdev.h >>> generic-y += cputime.h >>> generic-y += delay.h >>> generic-y += device.h >>> -generic-y += div64.h >>> generic-y += emergency-restart.h >>> generic-y += exec.h >>> generic-y += futex.h >>> diff --git a/arch/avr32/include/asm/div64.h >>> b/arch/avr32/include/asm/div64.h >>> new file mode 100644 >>> index 000000000000..1f3328e178df >>> --- /dev/null >>> +++ b/arch/avr32/include/asm/div64.h >>> @@ -0,0 +1,3 @@ >>> +#define __div64_const32_is_OK false >>> + >>> +#include <asm-generic/div64.h> >>> >> >> It looks like this patch has fixed about the error about the watchdog >> but for some reason I am still getting the error about the btrfs. >> >> ERROR: "__avr32_udiv64" [fs/btrfs/btrfs.ko] undefined! >> > > Are you sure that this failure is limited to avr32 ? > > Bisect for that problem points to commit "Btrfs: fix divide error upon > chunk's stripe_len", > which modified stripe_len in struct map_lookup to 64 bit. > map->stripe_length is used > at least once in a 64-bit divide operation, so I would expect to see > more build failures. > > A quick check shows that i386:allmodconfig now fails to build as well > due to a 64-bit > divide operation in brtfs. yes, i didn't get the time to monitor my build bot for last one week. But now that i go and see the results: i386, m68k, mips allmodconfig failed with: ERROR: "__udivdi3" [fs/btrfs/btrfs.ko] undefined! regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] watchdog: dw_wdt: dont build for avr32 [not found] ` <1460440303-20640-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-04-12 13:06 ` Guenter Roeck @ 2016-04-12 13:07 ` Guenter Roeck 1 sibling, 0 replies; 15+ messages in thread From: Guenter Roeck @ 2016-04-12 13:07 UTC (permalink / raw) To: Sudip Mukherjee, Wim Van Sebroeck, Haavard Skinnemoen, Hans-Christian Egtvedt Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, kernel-testers-u79uwXL29TY76Z2rM5mHXA, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 04/11/2016 10:51 PM, Sudip Mukherjee wrote: > The build of avr32 allmodconfig fails with the error: > ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined! > > Exclude this driver from the build of avr32. Also, the subject line is wrong. Guenter > > Signed-off-by: Sudip Mukherjee <sudip.mukherjee-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> > --- > > avr32 build log is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/122158665 > > drivers/watchdog/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index fb94765..61041ba 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -981,7 +981,7 @@ config HP_WATCHDOG > > config KEMPLD_WDT > tristate "Kontron COM Watchdog Timer" > - depends on MFD_KEMPLD > + depends on MFD_KEMPLD && !AVR32 > select WATCHDOG_CORE > help > Support for the PLD watchdog on some Kontron ETX and COMexpress > ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2016-05-01 16:30 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-04-12 5:51 [PATCH] watchdog: dw_wdt: dont build for avr32 Sudip Mukherjee [not found] ` <1460440303-20640-1-git-send-email-sudipm.mukherjee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-04-12 13:06 ` Guenter Roeck [not found] ` <570CF2CB.2050200-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-04-12 13:39 ` Sudip Mukherjee [not found] ` <570CFA90.4060100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-04-12 14:58 ` Andy Shevchenko 2016-04-12 15:29 ` Sudip Mukherjee [not found] ` <CAHp75VcrmiP0GWR-zCBmqc7zA6uiC4dD8-HDikmWZxyEwXkRLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-04-12 18:01 ` Guenter Roeck [not found] ` <20160412180128.GA6965-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-04-12 18:17 ` Andy Shevchenko 2016-04-30 18:38 ` Sudip Mukherjee 2016-05-01 0:04 ` Guenter Roeck 2016-05-01 0:36 ` Guenter Roeck [not found] ` <20160501003651.GA28804-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-05-01 1:13 ` Guenter Roeck 2016-05-01 9:04 ` Sudip Mukherjee [not found] ` <5725C698.1090504-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2016-05-01 14:09 ` Guenter Roeck [not found] ` <57260E10.5050601-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> 2016-05-01 16:30 ` Sudip Mukherjee 2016-04-12 13:07 ` Guenter Roeck
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).