lkml.org 
[lkml]   [2022]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n
From


On 3/4/22 01:07, Maciej W. Rozycki wrote:
> On Thu, 3 Mar 2022, Randy Dunlap wrote:
>
>> Include the DECstation interrupt handler in opting out of
>> FPU support.
>>
>> Fixes a linker error:
>>
>> mips-linux-ld: arch/mips/dec/int-handler.o: in function `fpu':
>> (.text+0x148): undefined reference to `handle_fpe_int'
>>
>> Fixes: 183b40f992c8 ("MIPS: Allow FP support to be disabled")
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Cc: Paul Burton <paulburton@kernel.org>
>> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
>> Cc: "Maciej W. Rozycki" <macro@orcam.me.uk>
>> Cc: linux-mips@vger.kernel.org
>> ---
>> This builds OK. Is it enough for runtime interrupt handling?
>
> There's:
>
> #ifdef CONFIG_32BIT
> lw t2,cpu_fpu_mask
> #endif
>
> earlier on that needs to go too, and code in arch/mips/dec/setup.c below:
>
> /* Register board interrupts: FPU and cascade. */
>
> (we don't want an unhandled interrupt unmasked). Are you happy to do such
> an update or shall I?
>
> I cannot verify that change at run time, because any program that does FP
> will then crash. Maybe init(8) and sulogin(8) won't. I can check that.
>
> Thanks for doing this stuff!

I'll update the patch and send v2.

thanks.

--
~Randy

\
 
 \ /
  Last update: 2022-03-04 16:35    [W:0.053 / U:1.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site