From: kernel test robot <lkp@intel.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 34/36] mmc: sunxi: Use devm_mmc_alloc_host() helper
Date: Wed, 21 May 2025 08:51:55 +0800 [thread overview]
Message-ID: <202505210851.GG2RNi84-lkp@intel.com> (raw)
In-Reply-To: <e6aa4f46c471bb0178ba9b8bdf285a38f2684d56.1747739323.git.zhoubinbin@loongson.cn>
Hi Binbin,
kernel test robot noticed the following build errors:
[auto build test ERROR on eb68ba4af6da720caaf752b5618220efd5cf31dc]
url: https://github.com/intel-lab-lkp/linux/commits/Binbin-Zhou/mmc-alcor-Use-devm_mmc_alloc_host-helper/20250520-194815
base: eb68ba4af6da720caaf752b5618220efd5cf31dc
patch link: https://lore.kernel.org/r/e6aa4f46c471bb0178ba9b8bdf285a38f2684d56.1747739323.git.zhoubinbin%40loongson.cn
patch subject: [PATCH 34/36] mmc: sunxi: Use devm_mmc_alloc_host() helper
config: x86_64-buildonly-randconfig-004-20250521 (https://download.01.org/0day-ci/archive/20250521/202505210851.GG2RNi84-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250521/202505210851.GG2RNi84-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505210851.GG2RNi84-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/mmc/host/sunxi-mmc.c: In function 'sunxi_mmc_probe':
>> drivers/mmc/host/sunxi-mmc.c:1391:38: error: stray '`' in program
1391 | `"Failed to allocate DMA descriptor mem\n");
| ^
vim +1391 drivers/mmc/host/sunxi-mmc.c
1365
1366 static int sunxi_mmc_probe(struct platform_device *pdev)
1367 {
1368 struct sunxi_mmc_host *host;
1369 struct mmc_host *mmc;
1370 int ret;
1371
1372 mmc = devm_mmc_alloc_host(&pdev->dev, sizeof(*host));
1373 if (!mmc)
1374 return dev_err_probe(&pdev->dev, -ENOMEM,
1375 "mmc alloc host failed\n");
1376 platform_set_drvdata(pdev, mmc);
1377
1378 host = mmc_priv(mmc);
1379 host->dev = &pdev->dev;
1380 host->mmc = mmc;
1381 spin_lock_init(&host->lock);
1382
1383 ret = sunxi_mmc_resource_request(host, pdev);
1384 if (ret)
1385 return ret;
1386
1387 host->sg_cpu = dma_alloc_coherent(&pdev->dev, PAGE_SIZE,
1388 &host->sg_dma, GFP_KERNEL);
1389 if (!host->sg_cpu)
1390 return dev_err_probe(&pdev->dev, -ENOMEM,
> 1391 `"Failed to allocate DMA descriptor mem\n");
1392
1393 if (host->cfg->ccu_has_timings_switch) {
1394 /*
1395 * Supports both old and new timing modes.
1396 * Try setting the clk to new timing mode.
1397 */
1398 sunxi_ccu_set_mmc_timing_mode(host->clk_mmc, true);
1399
1400 /* And check the result */
1401 ret = sunxi_ccu_get_mmc_timing_mode(host->clk_mmc);
1402 if (ret < 0) {
1403 /*
1404 * For whatever reason we were not able to get
1405 * the current active mode. Default to old mode.
1406 */
1407 dev_warn(&pdev->dev, "MMC clk timing mode unknown\n");
1408 host->use_new_timings = false;
1409 } else {
1410 host->use_new_timings = !!ret;
1411 }
1412 } else if (host->cfg->needs_new_timings) {
1413 /* Supports new timing mode only */
1414 host->use_new_timings = true;
1415 }
1416
1417 mmc->ops = &sunxi_mmc_ops;
1418 mmc->max_blk_count = 8192;
1419 mmc->max_blk_size = 4096;
1420 mmc->max_segs = PAGE_SIZE / sizeof(struct sunxi_idma_des);
1421 mmc->max_seg_size = (1 << host->cfg->idma_des_size_bits);
1422 mmc->max_req_size = mmc->max_seg_size * mmc->max_segs;
1423 /* 400kHz ~ 52MHz */
1424 mmc->f_min = 400000;
1425 mmc->f_max = 52000000;
1426 mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
1427 MMC_CAP_SDIO_IRQ;
1428
1429 /*
1430 * Some H5 devices do not have signal traces precise enough to
1431 * use HS DDR mode for their eMMC chips.
1432 *
1433 * We still enable HS DDR modes for all the other controller
1434 * variants that support them.
1435 */
1436 if ((host->cfg->clk_delays || host->use_new_timings) &&
1437 !of_device_is_compatible(pdev->dev.of_node,
1438 "allwinner,sun50i-h5-emmc"))
1439 mmc->caps |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR;
1440
1441 ret = mmc_of_parse(mmc);
1442 if (ret)
1443 goto error_free_dma;
1444
1445 /*
1446 * If we don't support delay chains in the SoC, we can't use any
1447 * of the higher speed modes. Mask them out in case the device
1448 * tree specifies the properties for them, which gets added to
1449 * the caps by mmc_of_parse() above.
1450 */
1451 if (!(host->cfg->clk_delays || host->use_new_timings)) {
1452 mmc->caps &= ~(MMC_CAP_3_3V_DDR | MMC_CAP_1_8V_DDR |
1453 MMC_CAP_1_2V_DDR | MMC_CAP_UHS);
1454 mmc->caps2 &= ~MMC_CAP2_HS200;
1455 }
1456
1457 /* TODO: This driver doesn't support HS400 mode yet */
1458 mmc->caps2 &= ~MMC_CAP2_HS400;
1459
1460 ret = sunxi_mmc_init_host(host);
1461 if (ret)
1462 goto error_free_dma;
1463
1464 pm_runtime_set_active(&pdev->dev);
1465 pm_runtime_set_autosuspend_delay(&pdev->dev, 50);
1466 pm_runtime_use_autosuspend(&pdev->dev);
1467 pm_runtime_enable(&pdev->dev);
1468
1469 ret = mmc_add_host(mmc);
1470 if (ret)
1471 goto error_free_dma;
1472
1473 dev_info(&pdev->dev, "initialized, max. request size: %u KB%s\n",
1474 mmc->max_req_size >> 10,
1475 host->use_new_timings ? ", uses new timings mode" : "");
1476
1477 return 0;
1478
1479 error_free_dma:
1480 dma_free_coherent(&pdev->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma);
1481 return ret;
1482 }
1483
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-05-21 0:52 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 11:44 [PATCH 00/36] mmc: Cleanup mmc_alloc_host() usage Binbin Zhou
2025-05-20 11:44 ` [PATCH 01/36] mmc: alcor: Use devm_mmc_alloc_host() helper Binbin Zhou
2025-05-20 11:44 ` [PATCH 02/36] mmc: atmel: " Binbin Zhou
2025-05-20 11:44 ` [PATCH 03/36] mmc: au1xmmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 04/36] mmc: bcm2835: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 05/36] mmc: cavium: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 06/36] mmc: cb710: " Binbin Zhou
2025-05-21 9:48 ` Michał Mirosław
2025-05-20 11:45 ` [PATCH 07/36] mmc: davinci_mmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 08/36] mmc: dw_mmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 09/36] mmc: jz4740: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 10/36] mmc: litex_mmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 11/36] mmc: meson-mx-sdhc: " Binbin Zhou
2025-05-20 11:45 ` Binbin Zhou
2025-05-20 11:45 ` [PATCH 12/36] mmc: mmci: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 13/36] mmc: moxart-mmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 14/36] mmc: mvsdio: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 15/36] mmc: mxcmmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 16/36] mmc: mxs-mmc: " Binbin Zhou
2025-05-20 11:45 ` [PATCH 17/36] mmc: omap: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 18/36] mmc: omap_hsmmc: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 19/36] mmc: owl-mmc: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 20/36] mmc: pxamci: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 21/36] mmc: rtsx_pci: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 22/36] mmc: rtsx_usb_sdmmc: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 23/36] mmc: sdricoh_cs: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 24/36] mmc: ish_mmicf: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 25/36] mmc: tifm_sd: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 26/36] mmc: toshsd: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 27/36] mmc: usdhi6ro10: " Binbin Zhou
2025-05-22 7:48 ` Jesper Nilsson
2025-05-20 11:46 ` [PATCH 28/36] mmc: ushc: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 29/36] mmc: via-sdmmc: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 30/36] mmc: vub300: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 31/36] mmc: wbsd: " Binbin Zhou
2025-05-20 11:46 ` [PATCH 32/36] mmc: wmt-sdmmc: " Binbin Zhou
2025-05-20 20:23 ` Alexey Charkov
2025-05-20 11:47 ` [PATCH 33/36] mmc: tmio: " Binbin Zhou
2025-05-20 11:47 ` [PATCH 34/36] mmc: sunxi: " Binbin Zhou
2025-05-21 0:51 ` kernel test robot [this message]
2025-05-20 11:47 ` [PATCH 35/36] mmc: mmc_spi: " Binbin Zhou
2025-05-20 11:47 ` [PATCH 36/36] mmc: meson-mx-sdio: " Binbin Zhou
2025-05-20 11:47 ` Binbin Zhou
2025-05-20 19:46 ` Martin Blumenstingl
2025-05-20 19:46 ` Martin Blumenstingl
2025-05-20 12:42 ` [PATCH 00/36] mmc: Cleanup mmc_alloc_host() usage Ulf Hansson
2025-05-20 12:58 ` Huacai Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202505210851.GG2RNi84-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zhoubinbin@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.