Linux Sound subsystem development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: joakim.zhang@cixtech.com, lgirdwood@gmail.com,
	broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com,
	linux-sound@vger.kernel.org, devicetree@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	cix-kernel-upstream@cixtech.com,
	Joakim Zhang <joakim.zhang@cixtech.com>
Subject: Re: [PATCH v3 3/3] ALSA: hda: add CIX IPBLOQ HDA controller support
Date: Tue, 2 Dec 2025 10:10:51 +0800	[thread overview]
Message-ID: <202512020919.sEEAZ5w1-lkp@intel.com> (raw)
In-Reply-To: <20251201105700.832715-4-joakim.zhang@cixtech.com>

Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tiwai-sound/for-next]
[also build test WARNING on tiwai-sound/for-linus linus/master v6.18 next-20251201]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/joakim-zhang-cixtech-com/ALSA-hda-dt-bindings-add-CIX-IPBLOQ-HDA-controller-support/20251201-185859
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
patch link:    https://lore.kernel.org/r/20251201105700.832715-4-joakim.zhang%40cixtech.com
patch subject: [PATCH v3 3/3] ALSA: hda: add CIX IPBLOQ HDA controller support
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20251202/202512020919.sEEAZ5w1-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512020919.sEEAZ5w1-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/202512020919.sEEAZ5w1-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> sound/hda/controllers/cix-ipbloq.c:224:31: warning: implicit conversion from 'unsigned long long' to 'dma_addr_t' (aka 'unsigned int') changes value from 18446744071293632512 to 1879048192 [-Wconstant-conversion]
     224 |         chip->bus.core.addr_offset = CIX_IPBLOQ_SKY1_ADDR_HOST_TO_HDAC_OFFSET;
         |                                    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/hda/controllers/cix-ipbloq.c:23:51: note: expanded from macro 'CIX_IPBLOQ_SKY1_ADDR_HOST_TO_HDAC_OFFSET'
      23 | #define CIX_IPBLOQ_SKY1_ADDR_HOST_TO_HDAC_OFFSET        (-0x90000000ULL)
         |                                                          ^~~~~~~~~~~~~~
   1 warning generated.


vim +224 sound/hda/controllers/cix-ipbloq.c

   180	
   181	static int cix_ipbloq_hda_create(struct cix_ipbloq_hda *hda,
   182					 struct snd_card *card,
   183					 unsigned int driver_caps)
   184	{
   185		static const struct snd_device_ops ops = {
   186			.dev_disconnect = cix_ipbloq_hda_dev_disconnect,
   187			.dev_free = cix_ipbloq_hda_dev_free,
   188		};
   189		struct azx *chip;
   190		int err;
   191	
   192		chip = &hda->chip;
   193		chip->card = card;
   194		chip->ops = &cix_ipbloq_hda_ops;
   195		chip->driver_caps = driver_caps;
   196		chip->driver_type = driver_caps & 0xff;
   197		chip->dev_index = 0;
   198		chip->single_cmd = 0;
   199		chip->codec_probe_mask = -1;
   200		chip->align_buffer_size = 1;
   201		chip->jackpoll_interval = msecs_to_jiffies(CIX_IPBLOQ_JACKPOLL_DEFAULT_TIME_MS);
   202		mutex_init(&chip->open_mutex);
   203		INIT_LIST_HEAD(&chip->pcm_list);
   204	
   205		/*
   206		 * HD-audio controllers appear pretty inaccurate about the update-IRQ timing.
   207		 * The IRQ is issued before actually the data is processed. So use stream
   208		 * link position by default instead of dma position buffer.
   209		 */
   210		chip->get_position[0] = chip->get_position[1] = azx_get_pos_lpib;
   211	
   212		err = azx_bus_init(chip, NULL);
   213		if (err < 0) {
   214			dev_err(hda->dev, "failed to init bus, err = %d\n", err);
   215			return err;
   216		}
   217	
   218		/* RIRBSTS.RINTFL cannot be cleared, cause interrupt storm */
   219		chip->bus.core.polling_mode = 1;
   220		chip->bus.core.not_use_interrupts = 1;
   221	
   222		chip->bus.core.aligned_mmio = 1;
   223		chip->bus.core.dma_stop_delay = 100;
 > 224		chip->bus.core.addr_offset = CIX_IPBLOQ_SKY1_ADDR_HOST_TO_HDAC_OFFSET;
   225	
   226		chip->bus.jackpoll_in_suspend = 1;
   227	
   228		err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
   229		if (err < 0) {
   230			dev_err(card->dev, "failed to create device, err = %d\n", err);
   231			return err;
   232		}
   233	
   234		return 0;
   235	}
   236	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      parent reply	other threads:[~2025-12-02  2:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-01 10:56 [PATCH v3 0/3] ALSA: hda: add CIX IPBLOQ HDA controller support joakim.zhang
2025-12-01 10:56 ` [PATCH v3 1/3] ALSA: hda: dt-bindings: " joakim.zhang
2025-12-01 10:56 ` [PATCH v3 2/3] ALSA: hda/core: add addr_offset field for bus address translation joakim.zhang
2025-12-01 10:57 ` [PATCH v3 3/3] ALSA: hda: add CIX IPBLOQ HDA controller support joakim.zhang
2025-12-01 12:53   ` Takashi Iwai
2025-12-02  9:45     ` Joakim  Zhang
2025-12-02  0:44   ` kernel test robot
2025-12-02  2:10   ` kernel test robot [this message]

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=202512020919.sEEAZ5w1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=joakim.zhang@cixtech.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=tiwai@suse.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox