Powerpc: Kernel warn_on when enabling IOMMU_API

Alexey Kardashevskiy aik at ozlabs.ru
Tue Aug 13 10:11:18 EST 2013


On 08/13/2013 02:14 AM, Bhushan Bharat-R65777 wrote:
> 
> 
>> -----Original Message-----
>> From: Alexey Kardashevskiy [mailto:aik at ozlabs.ru]
>> Sent: Monday, August 12, 2013 7:44 PM
>> To: Bhushan Bharat-R65777
>> Cc: benh at kernel.crashing.org; linuxppc-dev at lists.ozlabs.org
>> Subject: Re: Powerpc: Kernel warn_on when enabling IOMMU_API
>>
>> On 08/12/2013 08:20 PM, Bhushan Bharat-R65777 wrote:
>>> And this simple fix work for me
>>> diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
>>> index b20ff17..8869b0d 100644
>>> --- a/arch/powerpc/kernel/iommu.c
>>> +++ b/arch/powerpc/kernel/iommu.c
>>> @@ -48,6 +48,8 @@
>>>  #include <asm/vio.h>
>>>  #include <asm/tce.h>
>>>
>>> +#define DEBUG
>>> +
>>>  #define DBG(...)
>>>
>>>  static int novmerge;
>>> @@ -871,7 +873,7 @@ void iommu_free_coherent(struct iommu_table *tbl, size_t
>> size,
>>>         }
>>>  }
>>>
>>> -#ifdef CONFIG_IOMMU_API
>>> +#ifdef SPAPR_TCE_IOMMU
>>>  /*
>>>   * SPAPR TCE API
>>>   */
>>> ----------------------
>>
>>
>> And with this fix, what does "ls -laR /sys/kernel/iommu_groups/" print?
> 
> It shows the list of group id and respective devices:
> 

Is it vanilla 3.11-rc1 kernel? Wow. What does "lspci" show there?


-- 
Alexey


More information about the Linuxppc-dev mailing list