WARN
WARN(!mem->invalid, "Invalid BO not marked invalid");
WARN(1, "Valid BO is marked invalid");
WARN(1, "User pages unexpectedly invalid");
if (WARN(amdgpu_ttm_tt_get_usermm(bo->tbo.ttm),
WARN(1, "Invalid indirect register space");
WARN(1, "Invalid indirect register space");
WARN(1, "Invalid context priority %d\n", ctx_prio);
WARN(ret, "Pinning the GART table failed");
WARN(AMDGPU_RAS_GET_FEATURES(con->features), "Feature mask is not cleared");
WARN(1, "Invalid context priority %d\n", args->in.priority);
WARN(debug_evictions && fence_owner == AMDGPU_FENCE_OWNER_KFD,
WARN(1, "nothing to bind %u pages for mreg %p back %p!\n",
WARN(1, "NAVI10 PCIE GART already initialized\n");
WARN(1, "PCIE GART already initialized\n");
WARN(1, "PCIE GART already initialized\n");
WARN(1, "R600 PCIE GART already initialized\n");
WARN(1, "R600 PCIE GART already initialized\n");
WARN(1, "VEGA10 PCIE GART already initialized\n");
WARN(debug_evictions, "Evicting pid %d", p->lead_thread->pid);
WARN(debug_evictions, "Scheduling eviction of pid %d in %ld jiffies",
if (WARN(q->process->mm != current->mm,
WARN(1, "Invalid queue type %d", queue_type);
WARN(!mqd, "No hiq sdma mqd trunk to free");
WARN(1, "Unexpected ASIC family %u",
WARN(debug_evictions, "Evicting pid %d", p->lead_thread->pid);
if (WARN(q->process->mm != current->mm,
WARN(((unsigned long)db & 7) != 0,
WARN(1, "Unexpected ASIC family %u",
WARN(1, "Invalid queue type %d\n", type);
WARN(1, "Unexpected ASIC family %u",
WARN((temp * sizeof(uint32_t)) > buffer_size_bytes,
WARN(1, "queue type %d", q->properties.type);
WARN(1, "filter %d", filter);
WARN(1, "queue type %d", q->properties.type);
WARN(1, "filter %d", filter);
WARN(debug_evictions, "Evicting all processes");
WARN(1, "Invalid queue type %d", type);
WARN(1, "Overlap with prev node and page fault addr\n");
WARN(1, "CPU node not found");
WARN(1, "Unexpected ASIC family %u",
WARN(result, "%s(0x%04x, %#x) timed out after %lld us\n",
WARN(endpoint, "unknown DCP endpoint %hhu\n", endpoint);
if (WARN(index + 1 >= tbl_size, "invalid index %zu for brightness %u\n", index, val))
WARN(1, "Missing case %d\n", vsc->bpc);
WARN(!state->allow_modeset, "adding CRTC not allowed without modesets: requested 0x%x, affected 0x%0x\n",
WARN(!ret, "[CRTC:%d:%s] vblank wait timed out\n",
if (WARN(bridge->hpd_cb, "Hot plug detection already enabled\n"))
WARN(1, "EDID block %d unknown edid block status code %d\n",
WARN(ret, "atomic remove_fb failed with %i\n", ret);
if (WARN(!drm_mm_clean(mm),
WARN(!!(encoder->possible_clones & drm_encoder_mask(other)) !=
WARN((encoder->possible_clones & drm_encoder_mask(encoder)) == 0 ||
WARN((encoder->possible_crtcs & crtc_mask) == 0 ||
WARN(!crtc->primary, "Missing primary plane on [CRTC:%d:%s]\n",
WARN(crtc->cursor && crtc->funcs->cursor_set,
WARN(crtc->cursor && crtc->funcs->cursor_set2,
WARN(crtc->cursor && crtc->funcs->cursor_move,
WARN(!(crtc->primary->possible_crtcs & drm_crtc_mask(crtc)),
WARN(primary_with_crtc & drm_plane_mask(crtc->primary),
WARN(!(crtc->cursor->possible_crtcs & drm_crtc_mask(crtc)),
WARN(cursor_with_crtc & drm_plane_mask(crtc->cursor),
WARN(num_primary != dev->mode_config.num_crtc,
WARN(1, "Failed to attach object property (type: 0x%x). Please "
WARN(1, "Invalid aspect ratio (0%x) on mode\n",
} else if (WARN(ret < 0, "Invalid return value %i for connector detection\n", ret))
WARN(1, "Bad infoframe type %d\n", frame->any.type);
WARN(1, "Bad infoframe type %d\n", frame->any.type);
WARN(1, "Incorrect PDiv\n");
WARN(1, "Incorrect KDiv\n");
WARN(1, "Incorrect KDiv\n");
WARN(1, "Incorrect PDiv\n");
if (WARN(num_entries > max_entries,
if (WARN(num_entries > max_entries,
if (WARN(num_entries > max_entries,
WARN(1, "Unexpected GuC event received while CT disabled!\n");
WARN(!uc->reset_in_progress, "Unexpected send: action=%#x\n", *action);
WARN(se->type == GTT_TYPE_PPGTT_PTE_64K_ENTRY,
WARN(oos_page, "shadow PPGTT page has already has a oos page\n");
if (WARN(!oos_page, "shadow PPGTT page should have a oos page\n"))
WARN(!list_empty(>t->oos_page_use_list_head),
if (WARN(!gtt_type_is_entry(e->type), "invalid entry type\n"))
if (WARN(!gtt_type_is_entry(e->type), "invalid entry type\n"))
WARN(1, "suspicious 64K gtt entry\n");
WARN(1, "GVT doesn't support 1GB page\n");
WARN(1, "assign a handler to a non-tracked mmio %x\n",
WARN(1, "dup mmio definition offset %x\n", i);
WARN(1, "fail to assign handlers to mmio block %x\n",
if (WARN(control & GENMASK(15, 1), "only support one MSI format\n"))
if (WARN(!p, "gfn: 0x%llx\n", gfn))
if (WARN(!pre && !next, "switch ring %s from host to HOST\n",
WARN(1, "%s:%d GEM_BUG_ON(%s)\n", __func__, __LINE__, __stringify(cond))
#define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \
if (WARN(err > 0 || err == -ENOTTY,
if (!WARN((gpusvm)->lock_dep_map, \
WARN(condition, "%s %s: [drm] " format, \
WARN(1, "drm:pid%d:%s *WARNING* " fmt, curproc->p_p->ps_pid, \
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(1, "R100 PCI GART already initialized\n");
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(1, "RV370 PCIE GART already initialized\n");
WARN(1, "R600 PCIE GART already initialized\n");
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(1, "trying to unbind memory from uninitialized GART !\n");
WARN(1, "trying to bind memory to uninitialized GART !\n");
WARN(1, "nothing to bind %u pages for mreg %p back %p!\n",
WARN(1, "RS400 GART already initialized\n");
WARN(1, "RS600 GART already initialized\n");
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(1, "Can't enable IRQ/MSI because no handler is installed\n");
WARN(ret == -EMULTIHOP,
if (WARN(!chan || !chan->qh,
if (WARN(!qtd,
WARN(("open %s", fname ? fname : "<default>"));
WARN(("read header"));
WARN(("%s", fname ? fname : "<default>"));
WARN(("lseek text"));
WARN(("read text"));
WARN(("lseek section headers"));
WARN(("read section headers"));
WARN(("lseek section header string table"));
WARN(("read section header string table"));
WARN(("lseek symbols"));
WARN(("read symbols"));
WARN(("lseek phdr"));
WARN(("read program headers"));
WARN("%s: unreadable directory", ent->fts_path);
WARN("%s", ent->fts_path);
WARN("%s: could not stat", ent->fts_path);