Lines Matching refs:log

19 log = logging.getLogger("cavs-fw")  variable
56 log.info(f"Mapping registers for hda stream {self.stream_id} at base {self.base:x}")
96 log.info(f"Configuring stream {self.stream_id}")
98 log.info("Allocating huge page and setting up buffers")
101 log.info("Setting buffer list, length, and stream id and traffic priority bit")
109 log.info(f"Configured stream {self.stream_id}")
114log.info(f"Writing data to stream {self.stream_id}, len {bufl}, SPBFCTL {self.hda.SPBFCTL:x}, SPIB…
119log.info(f"Wrote data to stream {self.stream_id}, SPBFCTL {self.hda.SPBFCTL:x}, SPIB {self.hda.SPI…
122 log.info(f"Starting stream {self.stream_id}, CTL {self.regs.CTL:x}")
124 log.info(f"Started stream {self.stream_id}, CTL {self.regs.CTL:x}")
127 log.info(f"Stopping stream {self.stream_id}, CTL {self.regs.CTL:x}")
131 log.info(f"Stopped stream {self.stream_id}, CTL {self.regs.CTL:x}")
136 log.info(f"Mapped 2M huge page at 0x{phys_addr:x} for buf size ({buf_len})")
155 log.info("Filled the buffer descriptor list (BDL) for DMA.")
159 log.debug("HDA %d: PPROC %d, CTL 0x%x, LPIB 0x%x, BDPU 0x%x, BDPL 0x%x, CBL 0x%x, LVI 0x%x",
162 log.debug(" FIFOW %d, FIFOS %d, FMT %x, FIFOL %d, DPIB %d, EFIFOS %d",
164 log.debug(" status: FIFORDY %d, DESE %d, FIFOE %d, BCIS %d",
175 log.info(f"Resetting stream {self.stream_id}")
186 log.info(f"Disable SPIB and set position 0 of stream {self.stream_id}")
194 log.info(f"Enabling dsp capture (PROCEN) of stream {self.stream_id}")
198 log.info(f"Reset stream {self.stream_id}")
231 log.info(found_msg)
233 log.warning(found_msg + ", unloading module")
236 log.info(f"Forcing {pcidir}/power/control to always 'on'")
257 log.info(f"Selected output stream {hda_ostream_id} (GCAP = 0x{hda.GCAP:x})")
308 log.info("Mapped 2M huge page at 0x%x to contain %d bytes of firmware"
321 log.info("Filled the buffer descriptor list (BDL) for DMA.")
344 log.info("type of mem is %s", str(type(mem)))
366 log.info("Mapped PCI bar %d of length %d bytes."
400 log.error(f"Could not read firmware file: `{fw_file}'")
401 log.error(e)
406 log.info(f"Trimming {sz} bytes of extended manifest")
412 log.info("Resetting HDA device")
418 log.info(f"Stalling and Resetting DSP cores, ADSPCS = 0x{dsp.ADSPCS:x}")
423 log.info(f"Powering down DSP cores, ADSPCS = 0x{dsp.ADSPCS:x}")
427 log.info(f"Configuring HDA stream {hda_ostream_id} to transfer firmware image")
448 log.info(f"Starting DSP, ADSPCS = 0x{dsp.ADSPCS:x}")
452 log.info(f"Unresetting DSP cores, ADSPCS = 0x{dsp.ADSPCS:x}")
456 log.info(f"Running DSP cores, ADSPCS = 0x{dsp.ADSPCS:x}")
463 log.info(f"Wait for ROM startup, ADSPCS = 0x{dsp.ADSPCS:x}")
476 log.info(f"Sending IPC command, HIPIDR = 0x{ipcval:x}")
479 log.info(f"Starting DMA, FW_STATUS = 0x{dsp.SRAM_FW_STATUS:x}")
494 log.info(f"cAVS firmware load complete")
503 log.error(f"Could not read firmware file: `{fw_file}'")
504 log.error(e)
509 log.info(f"Trimming {sz} bytes of extended manifest")
515 log.info("Resetting HDA device")
521 log.info("Turning of DSP subsystem")
526 log.info("Waiting for DSP subsystem power off")
529 log.info("Turning on DSP subsystem")
534 log.info("Waiting for DSP subsystem power on")
537 log.info("Turning on Domain0")
542 log.info("Waiting for DSP domain0 power on")
545 log.info("Turning off Primary Core")
549 log.info("Waiting for DSP primary core power off")
552 log.info(f"Configuring HDA stream {hda_ostream_id} to transfer firmware image")
582 log.info(f"Sending IPC command, HFIPCXIDR = 0x{ipcval:x}")
585 log.info("Turning on Primary Core")
589 log.info("Waiting for DSP primary core power on")
592 log.info("Waiting for IPC acceptance")
594 log.info("Waiting for IPC busy bit clear")
597 log.info("ACK IPC")
600 log.info(f"Starting DMA, FW_STATUS = 0x{dsp.ROM_STATUS:x}")
615 log.info(f"ACE firmware load complete")
621 log.info("Waiting %s for firmware handoff, ROM_STATUS = 0x%x",
637 log.warning("Load failed? ROM_STATUS = 0x%x", dsp.ROM_STATUS)
639 log.info("FW alive, ROM_STATUS = 0x%x", dsp.ROM_STATUS)
654 log.error("IndexError in bar4_mmap[%d + %d]", base, start)
655 log.error("bar4_mmap.size()=%d", bar4_mmap.size())
677 log.debug("DSP powered off at winstream_read")
713 log.debug("DSP powered off at winstream_write")
759 log.info("found desc %u resource_id 0x%08x type_id 0x%08x vma 0x%08x",
762 log.debug("not found, %u attempts left", attempts)
786 log.info(f"shell PTY at: {name}")
810 log.debug ("ipc data %d, ext_data %x", data, ext_data)
861 log.info("Is ramp data? " + str(is_ramp_data))
863 log.info(f"Ext data to send back on ramp status {ext_data}")
896 log.warning(f"cavstool: Unrecognized IPC command 0x{data:x} ext 0x{ext_data:x}")
899 log.info("DSP power seems off")
902 log.warning("DSP power seems off?!")
912 log.debug("ipc: sending msg 0x%08x" % ext_data)
926 log.debug("ipc: Ack DSP reply with IDA_DONE")
944 log.error("Could not map device in sysfs; run as root?")
945 log.error(e)
948 log.info(f"Detected a supported cAVS/ACE hardware version")
954 log.error("Firmware file argument missing")
1002 log.setLevel(logging.WARN)
1004 log.setLevel(logging.DEBUG)