Re: possible regression in 4.17 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 July 2018 at 19:52, DDI Ognian Tschakalov
<ognian.tschakalov@xxxxxxxxxx> wrote:
> Hello,
> I’m reading the health info of a SD card:
>
> using 4.17.6-200.fc28.aarch64 on an rpi3 and rpi3+
>
> with the following code segment
> ----------------------
> struct mmc_ioc_cmd idata;
> char data_out[SD_BLOCK_SIZE];
> memset(&idata, 0, sizeof(idata));
> memset(&data_out[0], 0, sizeof(__u8) * SD_BLOCK_SIZE);
> idata.write_flag = 1;
> idata.opcode = SD_GEN_CMD;
> idata.arg = cmd56_arg;
> idata.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC;
> idata.blksz = SD_BLOCK_SIZE;
> idata.blocks = 1;
> mmc_ioc_cmd_set_data(idata, data_out);
>
> ret = ioctl(fd, MMC_IOC_CMD, &idata);
> ----------------------
>
> leads to
>
> Jul 20 18:23:53 ogi-it-rpi-p kernel: sdhost-bcm2835 3f202000.mmc: timeout waiting for hardware interrupt.
> Jul 20 18:23:53 ogi-it-rpi-p kernel: sdhost-bcm2835 3f202000.mmc: __mmc_blk_ioctl_cmd: data error -110
>
> this was flawlessly working in fc27 which should be the 4.16 kernel i think
>
> Actually this is the first of 2 consecutive commands send to the card; If I ignore the above error and continue with the second command I can successfully read the health data. The problem is that the above command takes 10 seconds (timeout) before it throws the above error…
>
> Actually it is not expected to get any data from the above write command…
> Maybe I have set the wrong flags or did something change between 4.16 and 4.17.6

Thanks for reporting!

Would it be possible for you to run a git-bisect to narrow down the problem?

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux