All of lore.kernel.org
 help / color / mirror / Atom feed
* cerryview sd card problem
@ 2016-09-21 20:43 Giacomo Comes
  2016-09-26  8:57 ` Jani Nikula
  0 siblings, 1 reply; 8+ messages in thread
From: Giacomo Comes @ 2016-09-21 20:43 UTC (permalink / raw)
  To: intel-gfx

Hi,
I hope this is the appropriate place to ask what follows.
If not please point me to the right place.

I have a couple of cerryview systems
(Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
I run linux (openSUSE 42.1) with a 4.7 kernel.

I have a problem though with the sd card reader:
in normal condition the kernel does not see the card reader.
The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
loaded but the sd device is missing.

Following the suggestion found here:
https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
I "fixed" the problem by adding the module pinctrl-cherryview
in the initrd.

I was wondering if the necessity to put pinctrl-cherryview in
the initrd is due to a bug in the kernel driver or it is a distro
issue.

Giacomo
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-21 20:43 cerryview sd card problem Giacomo Comes
@ 2016-09-26  8:57 ` Jani Nikula
  2016-09-26  9:52   ` Westerberg, Mika
  0 siblings, 1 reply; 8+ messages in thread
From: Jani Nikula @ 2016-09-26  8:57 UTC (permalink / raw)
  To: Giacomo Comes, intel-gfx; +Cc: Westerberg, Mika, Andy Shevchenko

On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
> Hi,
> I hope this is the appropriate place to ask what follows.
> If not please point me to the right place.
>
> I have a couple of cerryview systems
> (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
> I run linux (openSUSE 42.1) with a 4.7 kernel.
>
> I have a problem though with the sd card reader:
> in normal condition the kernel does not see the card reader.
> The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
> loaded but the sd device is missing.
>
> Following the suggestion found here:
> https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
> I "fixed" the problem by adding the module pinctrl-cherryview
> in the initrd.
>
> I was wondering if the necessity to put pinctrl-cherryview in
> the initrd is due to a bug in the kernel driver or it is a distro
> issue.

Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
about SD cards here. ;)

Mika, Andy, could you point Giacomo to the right place please?

Thanks,
Jani.

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-26  8:57 ` Jani Nikula
@ 2016-09-26  9:52   ` Westerberg, Mika
  2016-09-28 21:50     ` Giacomo Comes
  0 siblings, 1 reply; 8+ messages in thread
From: Westerberg, Mika @ 2016-09-26  9:52 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Andy Shevchenko, intel-gfx

On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
> On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
> > Hi,
> > I hope this is the appropriate place to ask what follows.
> > If not please point me to the right place.
> >
> > I have a couple of cerryview systems
> > (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
> > I run linux (openSUSE 42.1) with a 4.7 kernel.
> >
> > I have a problem though with the sd card reader:
> > in normal condition the kernel does not see the card reader.
> > The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
> > loaded but the sd device is missing.
> >
> > Following the suggestion found here:
> > https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
> > I "fixed" the problem by adding the module pinctrl-cherryview
> > in the initrd.
> >
> > I was wondering if the necessity to put pinctrl-cherryview in
> > the initrd is due to a bug in the kernel driver or it is a distro
> > issue.
> 
> Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
> about SD cards here. ;)
> 
> Mika, Andy, could you point Giacomo to the right place please?

If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
driver needs to be there before the SD-card driver is able to detect a
card being inserted.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-26  9:52   ` Westerberg, Mika
@ 2016-09-28 21:50     ` Giacomo Comes
  2016-09-29  6:30       ` Westerberg, Mika
  0 siblings, 1 reply; 8+ messages in thread
From: Giacomo Comes @ 2016-09-28 21:50 UTC (permalink / raw)
  To: Westerberg, Mika; +Cc: Andy Shevchenko, intel-gfx

On Mon, Sep 26, 2016 at 12:52:11PM +0300, Westerberg, Mika wrote:
> On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
> > On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
> > > Hi,
> > > I hope this is the appropriate place to ask what follows.
> > > If not please point me to the right place.
> > >
> > > I have a couple of cerryview systems
> > > (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
> > > I run linux (openSUSE 42.1) with a 4.7 kernel.
> > >
> > > I have a problem though with the sd card reader:
> > > in normal condition the kernel does not see the card reader.
> > > The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
> > > loaded but the sd device is missing.
> > >
> > > Following the suggestion found here:
> > > https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
> > > I "fixed" the problem by adding the module pinctrl-cherryview
> > > in the initrd.
> > >
> > > I was wondering if the necessity to put pinctrl-cherryview in
> > > the initrd is due to a bug in the kernel driver or it is a distro
> > > issue.
> > 
> > Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
> > about SD cards here. ;)
> > 
> > Mika, Andy, could you point Giacomo to the right place please?
> 
> If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
> driver needs to be there before the SD-card driver is able to detect a
> card being inserted.

Ok, then it is the distro that have to take care about that.
For the time being I'll manually force pinctrl-cherryview in the initrd.
However, while the Acer Aspire R11 sd card reader works, the
one in the compute stick STK1AW32SC doesn't.
Every time I insert a sd card I see this message in the journal:
  mmc1: error -84 whilst initialising SD card
Tested with kernel 4.8rc7.
Where can I get help about that?

Giacomo
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-28 21:50     ` Giacomo Comes
@ 2016-09-29  6:30       ` Westerberg, Mika
  2016-09-29  6:46         ` Adrian Hunter
  0 siblings, 1 reply; 8+ messages in thread
From: Westerberg, Mika @ 2016-09-29  6:30 UTC (permalink / raw)
  To: Giacomo Comes; +Cc: intel-gfx, Andy Shevchenko, Adrian Hunter

On Wed, Sep 28, 2016 at 05:50:00PM -0400, Giacomo Comes wrote:
> On Mon, Sep 26, 2016 at 12:52:11PM +0300, Westerberg, Mika wrote:
> > On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
> > > On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
> > > > Hi,
> > > > I hope this is the appropriate place to ask what follows.
> > > > If not please point me to the right place.
> > > >
> > > > I have a couple of cerryview systems
> > > > (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
> > > > I run linux (openSUSE 42.1) with a 4.7 kernel.
> > > >
> > > > I have a problem though with the sd card reader:
> > > > in normal condition the kernel does not see the card reader.
> > > > The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
> > > > loaded but the sd device is missing.
> > > >
> > > > Following the suggestion found here:
> > > > https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
> > > > I "fixed" the problem by adding the module pinctrl-cherryview
> > > > in the initrd.
> > > >
> > > > I was wondering if the necessity to put pinctrl-cherryview in
> > > > the initrd is due to a bug in the kernel driver or it is a distro
> > > > issue.
> > > 
> > > Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
> > > about SD cards here. ;)
> > > 
> > > Mika, Andy, could you point Giacomo to the right place please?
> > 
> > If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
> > driver needs to be there before the SD-card driver is able to detect a
> > card being inserted.
> 
> Ok, then it is the distro that have to take care about that.
> For the time being I'll manually force pinctrl-cherryview in the initrd.
> However, while the Acer Aspire R11 sd card reader works, the
> one in the compute stick STK1AW32SC doesn't.
> Every time I insert a sd card I see this message in the journal:
>   mmc1: error -84 whilst initialising SD card
> Tested with kernel 4.8rc7.
> Where can I get help about that?

Please provide full dmesg. I've CC'd Adrian who knows lot about the
SC-card driver.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-29  6:30       ` Westerberg, Mika
@ 2016-09-29  6:46         ` Adrian Hunter
  2016-09-29 15:37           ` Giacomo Comes
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian Hunter @ 2016-09-29  6:46 UTC (permalink / raw)
  To: Westerberg, Mika, Giacomo Comes; +Cc: intel-gfx, Andy Shevchenko

On 29/09/16 09:30, Westerberg, Mika wrote:
> On Wed, Sep 28, 2016 at 05:50:00PM -0400, Giacomo Comes wrote:
>> On Mon, Sep 26, 2016 at 12:52:11PM +0300, Westerberg, Mika wrote:
>>> On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
>>>> On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
>>>>> Hi,
>>>>> I hope this is the appropriate place to ask what follows.
>>>>> If not please point me to the right place.
>>>>>
>>>>> I have a couple of cerryview systems
>>>>> (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
>>>>> I run linux (openSUSE 42.1) with a 4.7 kernel.
>>>>>
>>>>> I have a problem though with the sd card reader:
>>>>> in normal condition the kernel does not see the card reader.
>>>>> The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
>>>>> loaded but the sd device is missing.
>>>>>
>>>>> Following the suggestion found here:
>>>>> https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
>>>>> I "fixed" the problem by adding the module pinctrl-cherryview
>>>>> in the initrd.
>>>>>
>>>>> I was wondering if the necessity to put pinctrl-cherryview in
>>>>> the initrd is due to a bug in the kernel driver or it is a distro
>>>>> issue.
>>>>
>>>> Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
>>>> about SD cards here. ;)
>>>>
>>>> Mika, Andy, could you point Giacomo to the right place please?
>>>
>>> If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
>>> driver needs to be there before the SD-card driver is able to detect a
>>> card being inserted.
>>
>> Ok, then it is the distro that have to take care about that.
>> For the time being I'll manually force pinctrl-cherryview in the initrd.
>> However, while the Acer Aspire R11 sd card reader works, the
>> one in the compute stick STK1AW32SC doesn't.
>> Every time I insert a sd card I see this message in the journal:
>>   mmc1: error -84 whilst initialising SD card
>> Tested with kernel 4.8rc7.
>> Where can I get help about that?
> 
> Please provide full dmesg. I've CC'd Adrian who knows lot about the
> SC-card driver.
> 

Also enabling CONFIG_MMC_DEBUG in the kernel config will give a lot more
information.

Have different SD cards been tried? Does it work if the SD card is already
inserted at boot?

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-29  6:46         ` Adrian Hunter
@ 2016-09-29 15:37           ` Giacomo Comes
  2016-09-30  8:30             ` Adrian Hunter
  0 siblings, 1 reply; 8+ messages in thread
From: Giacomo Comes @ 2016-09-29 15:37 UTC (permalink / raw)
  To: Adrian Hunter; +Cc: Westerberg, Mika, Andy Shevchenko, intel-gfx

[-- Attachment #1: Type: text/plain, Size: 2817 bytes --]

On Thu, Sep 29, 2016 at 09:46:40AM +0300, Adrian Hunter wrote:
> On 29/09/16 09:30, Westerberg, Mika wrote:
> > On Wed, Sep 28, 2016 at 05:50:00PM -0400, Giacomo Comes wrote:
> >> On Mon, Sep 26, 2016 at 12:52:11PM +0300, Westerberg, Mika wrote:
> >>> On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
> >>>> On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
> >>>>> Hi,
> >>>>> I hope this is the appropriate place to ask what follows.
> >>>>> If not please point me to the right place.
> >>>>>
> >>>>> I have a couple of cerryview systems
> >>>>> (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
> >>>>> I run linux (openSUSE 42.1) with a 4.7 kernel.
> >>>>>
> >>>>> I have a problem though with the sd card reader:
> >>>>> in normal condition the kernel does not see the card reader.
> >>>>> The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
> >>>>> loaded but the sd device is missing.
> >>>>>
> >>>>> Following the suggestion found here:
> >>>>> https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
> >>>>> I "fixed" the problem by adding the module pinctrl-cherryview
> >>>>> in the initrd.
> >>>>>
> >>>>> I was wondering if the necessity to put pinctrl-cherryview in
> >>>>> the initrd is due to a bug in the kernel driver or it is a distro
> >>>>> issue.
> >>>>
> >>>> Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
> >>>> about SD cards here. ;)
> >>>>
> >>>> Mika, Andy, could you point Giacomo to the right place please?
> >>>
> >>> If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
> >>> driver needs to be there before the SD-card driver is able to detect a
> >>> card being inserted.
> >>
> >> Ok, then it is the distro that have to take care about that.
> >> For the time being I'll manually force pinctrl-cherryview in the initrd.
> >> However, while the Acer Aspire R11 sd card reader works, the
> >> one in the compute stick STK1AW32SC doesn't.
> >> Every time I insert a sd card I see this message in the journal:
> >>   mmc1: error -84 whilst initialising SD card
> >> Tested with kernel 4.8rc7.
> >> Where can I get help about that?
> > 
> > Please provide full dmesg. I've CC'd Adrian who knows lot about the
> > SC-card driver.
> > 
> 
> Also enabling CONFIG_MMC_DEBUG in the kernel config will give a lot more
> information.
> 
> Have different SD cards been tried? Does it work if the SD card is already
> inserted at boot?

The problem exists with different SD cards and also if it is already inserted at boot.

I have enabled CONFIG_MMC_DEBUG in kernel 4.8rc8 and booted the compute stick.
There are a lot of messages about mmc0, that's the eMMC internal storage 
which works. The sd card reader is mmc1. The sd card is inserted at time 10:20:13.
Please see the attached journal log.

Giacomo

[-- Attachment #2: journal-4.8rc8.bz2 --]
[-- Type: application/x-bzip, Size: 56723 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: cerryview sd card problem
  2016-09-29 15:37           ` Giacomo Comes
@ 2016-09-30  8:30             ` Adrian Hunter
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Hunter @ 2016-09-30  8:30 UTC (permalink / raw)
  To: Giacomo Comes; +Cc: Westerberg, Mika, Andy Shevchenko, intel-gfx

On 29/09/16 18:37, Giacomo Comes wrote:
> On Thu, Sep 29, 2016 at 09:46:40AM +0300, Adrian Hunter wrote:
>> On 29/09/16 09:30, Westerberg, Mika wrote:
>>> On Wed, Sep 28, 2016 at 05:50:00PM -0400, Giacomo Comes wrote:
>>>> On Mon, Sep 26, 2016 at 12:52:11PM +0300, Westerberg, Mika wrote:
>>>>> On Mon, Sep 26, 2016 at 11:57:04AM +0300, Jani Nikula wrote:
>>>>>> On Wed, 21 Sep 2016, Giacomo Comes <comes@naic.edu> wrote:
>>>>>>> Hi,
>>>>>>> I hope this is the appropriate place to ask what follows.
>>>>>>> If not please point me to the right place.
>>>>>>>
>>>>>>> I have a couple of cerryview systems
>>>>>>> (Acer Aspire R11 and Intel compute stick STK1AW32SC) on which
>>>>>>> I run linux (openSUSE 42.1) with a 4.7 kernel.
>>>>>>>
>>>>>>> I have a problem though with the sd card reader:
>>>>>>> in normal condition the kernel does not see the card reader.
>>>>>>> The modules pinctrl-cherryview.ko and sdhci-pci.ko are both 
>>>>>>> loaded but the sd device is missing.
>>>>>>>
>>>>>>> Following the suggestion found here:
>>>>>>> https://bugzilla.opensuse.org/show_bug.cgi?id=954532#c24
>>>>>>> I "fixed" the problem by adding the module pinctrl-cherryview
>>>>>>> in the initrd.
>>>>>>>
>>>>>>> I was wondering if the necessity to put pinctrl-cherryview in
>>>>>>> the initrd is due to a bug in the kernel driver or it is a distro
>>>>>>> issue.
>>>>>>
>>>>>> Hi Giacomo, intel-gfx is about Intel *graphics*. We are mostly clueless
>>>>>> about SD cards here. ;)
>>>>>>
>>>>>> Mika, Andy, could you point Giacomo to the right place please?
>>>>>
>>>>> If the SD-card card detection is implemented as a GPIO, the GPIO/pinctrl
>>>>> driver needs to be there before the SD-card driver is able to detect a
>>>>> card being inserted.
>>>>
>>>> Ok, then it is the distro that have to take care about that.
>>>> For the time being I'll manually force pinctrl-cherryview in the initrd.
>>>> However, while the Acer Aspire R11 sd card reader works, the
>>>> one in the compute stick STK1AW32SC doesn't.
>>>> Every time I insert a sd card I see this message in the journal:
>>>>   mmc1: error -84 whilst initialising SD card
>>>> Tested with kernel 4.8rc7.
>>>> Where can I get help about that?
>>>
>>> Please provide full dmesg. I've CC'd Adrian who knows lot about the
>>> SC-card driver.
>>>
>>
>> Also enabling CONFIG_MMC_DEBUG in the kernel config will give a lot more
>> information.
>>
>> Have different SD cards been tried? Does it work if the SD card is already
>> inserted at boot?
> 
> The problem exists with different SD cards and also if it is already inserted at boot.
> 
> I have enabled CONFIG_MMC_DEBUG in kernel 4.8rc8 and booted the compute stick.
> There are a lot of messages about mmc0, that's the eMMC internal storage 
> which works. The sd card reader is mmc1. The sd card is inserted at time 10:20:13.
> Please see the attached journal log.

Thanks for the log.

Do we know if anyone else if experiencing this problem?

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-30  8:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21 20:43 cerryview sd card problem Giacomo Comes
2016-09-26  8:57 ` Jani Nikula
2016-09-26  9:52   ` Westerberg, Mika
2016-09-28 21:50     ` Giacomo Comes
2016-09-29  6:30       ` Westerberg, Mika
2016-09-29  6:46         ` Adrian Hunter
2016-09-29 15:37           ` Giacomo Comes
2016-09-30  8:30             ` Adrian Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.