Home
last modified time | relevance | path

Searched +full:gfx +full:- +full:mem (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_kms.c58 if (gpu_instance->adev == adev) { in amdgpu_unregister_gpu_instance()
60 mgpu_info.gpu_ins[mgpu_info.num_gpu - 1]; in amdgpu_unregister_gpu_instance()
61 mgpu_info.num_gpu--; in amdgpu_unregister_gpu_instance()
62 if (adev->flags & AMD_IS_APU) in amdgpu_unregister_gpu_instance()
63 mgpu_info.num_apu--; in amdgpu_unregister_gpu_instance()
65 mgpu_info.num_dgpu--; in amdgpu_unregister_gpu_instance()
74 * amdgpu_driver_unload_kms - Main unload function for KMS.
90 if (adev->rmmio == NULL) in amdgpu_driver_unload_kms()
113 gpu_instance->adev = adev; in amdgpu_register_gpu_instance()
114 gpu_instance->mgpu_fan_enabled = 0; in amdgpu_register_gpu_instance()
[all …]
H A Dgfx_v9_4_2.c198 { SOC15_REG_ENTRY(GC, 0, regCOMPUTE_PGM_RSRC3), 0x3F }, /* 63 - accum-offset = 256 */
368 dev_err(adev->dev, "failed to get ib (%d).\n", r); in gfx_v9_4_2_run_shader()
374 ib->ptr[i + (shader_offset / 4)] = shader_ptr[i]; in gfx_v9_4_2_run_shader()
377 ib->length_dw = 0; in gfx_v9_4_2_run_shader()
381 ib->ptr[ib->length_dw++] = PACKET3(PACKET3_SET_SH_REG, 1); in gfx_v9_4_2_run_shader()
382 ib->ptr[ib->length_dw++] = SOC15_REG_ENTRY_OFFSET(init_regs[i]) in gfx_v9_4_2_run_shader()
383 - PACKET3_SET_SH_REG_START; in gfx_v9_4_2_run_shader()
384 ib->ptr[ib->length_dw++] = init_regs[i].reg_value; in gfx_v9_4_2_run_shader()
388 gpu_addr = (ib->gpu_addr + (u64)shader_offset) >> 8; in gfx_v9_4_2_run_shader()
389 ib->ptr[ib->length_dw++] = PACKET3(PACKET3_SET_SH_REG, 2); in gfx_v9_4_2_run_shader()
[all …]
H A Damdgpu_atomfirmware.c48 struct amdgpu_mode_info *mode_info = &adev->mode_info; in amdgpu_atomfirmware_query_firmware_capability()
58 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, in amdgpu_atomfirmware_query_firmware_capability()
63 (mode_info->atom_context->bios + data_offset); in amdgpu_atomfirmware_query_firmware_capability()
64 fw_cap = le32_to_cpu(firmware_info->v31.firmware_capability); in amdgpu_atomfirmware_query_firmware_capability()
82 fw_cap = adev->mode_info.firmware_flags; in amdgpu_atomfirmware_gpu_virtualization_supported()
93 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL, in amdgpu_atomfirmware_scratch_regs_init()
96 (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + in amdgpu_atomfirmware_scratch_regs_init()
99 adev->bios_scratch_reg_offset = in amdgpu_atomfirmware_scratch_regs_init()
100 le32_to_cpu(firmware_info->bios_scratch_reg_startaddr); in amdgpu_atomfirmware_scratch_regs_init()
109 start_addr = le32_to_cpu(fw_usage->start_address_in_kb); in amdgpu_atomfirmware_allocate_fb_v2_1()
[all …]
H A Damdgpu_amdkfd_gpuvm.c1 // SPDX-License-Identifier: MIT
3 * Copyright 2014-2018 Advanced Micro Devices, Inc.
23 #include <linux/dma-buf.h>
72 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1]
77 struct kgd_mem *mem) in kfd_mem_is_attached() argument
81 list_for_each_entry(entry, &mem->attachments, list) in kfd_mem_is_attached()
82 if (entry->bo_va->base.vm == avm) in kfd_mem_is_attached()
89 * reuse_dmamap() - Check whether adev can share the original
103 return (adev->ram_is_direct_mapped && bo_adev->ram_is_direct_mapped) || in reuse_dmamap()
104 (adev->dev->iommu_group == bo_adev->dev->iommu_group); in reuse_dmamap()
[all …]
H A Dgfx_v9_4_3.c34 #include "ivsrcid/gfx/irqsrcs_gfx_9_0.h"
81 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_map_queues()
82 uint64_t mqd_addr = amdgpu_bo_gpu_offset(ring->mqd_obj); in gfx_v9_4_3_kiq_map_queues()
83 uint64_t wptr_addr = adev->wb.gpu_addr + (ring->wptr_offs * 4); in gfx_v9_4_3_kiq_map_queues()
84 uint32_t eng_sel = ring->funcs->type == AMDGPU_RING_TYPE_GFX ? 4 : 0; in gfx_v9_4_3_kiq_map_queues()
91 PACKET3_MAP_QUEUES_QUEUE(ring->queue) | in gfx_v9_4_3_kiq_map_queues()
92 PACKET3_MAP_QUEUES_PIPE(ring->pipe) | in gfx_v9_4_3_kiq_map_queues()
93 PACKET3_MAP_QUEUES_ME((ring->me == 1 ? 0 : 1)) | in gfx_v9_4_3_kiq_map_queues()
102 PACKET3_MAP_QUEUES_DOORBELL_OFFSET(ring->doorbell_index)); in gfx_v9_4_3_kiq_map_queues()
114 uint32_t eng_sel = ring->funcs->type == AMDGPU_RING_TYPE_GFX ? 4 : 0; in gfx_v9_4_3_kiq_unmap_queues()
[all …]
H A Dta_ras_if.h122 enum ta_ras_block block_id; // ras-block. i.e. umc, gfx
124 uint32_t sub_block_index; // mem block. i.e. hbm, sram etc.
H A Damdgpu_vm.c29 #include <linux/dma-fence-array.h>
32 #include <linux/dma-buf.h>
68 * Each GPUVM is represented by a 1-2 or 1-5 level page table, depending
89 #define START(node) ((node)->start)
90 #define LAST(node) ((node)->last)
99 * struct amdgpu_prt_cb - Helper to disable partial resident texture feature from a fence callback
115 * struct amdgpu_vm_tlb_seq_struct - Helper to increment the TLB flush sequence
130 * amdgpu_vm_set_pasid - manage pasid and vm ptr mapping
145 if (vm->pasid == pasid) in amdgpu_vm_set_pasid()
148 if (vm->pasid) { in amdgpu_vm_set_pasid()
[all …]
H A Damdgpu_ras.c60 "gfx",
96 if (ras_block->block >= AMDGPU_RAS_BLOCK_COUNT) in get_ras_block_str()
99 if (ras_block->block == AMDGPU_RAS_BLOCK__MCA) in get_ras_block_str()
100 return ras_mca_block_string[ras_block->sub_block_index]; in get_ras_block_str()
102 return ras_block_string[ras_block->block]; in get_ras_block_str()
142 amdgpu_ras_get_context(adev)->error_query_ready = ready; in amdgpu_ras_set_error_query_ready()
148 return amdgpu_ras_get_context(adev)->error_query_ready; in amdgpu_ras_get_error_query_ready()
158 if ((address >= adev->gmc.mc_vram_size) || in amdgpu_reserve_page_direct()
160 dev_warn(adev->dev, in amdgpu_reserve_page_direct()
163 return -EINVAL; in amdgpu_reserve_page_direct()
[all …]
H A Damdgpu_device.c37 #include <linux/pci-p2pdma.h>
38 #include <linux/apple-gmux.h>
86 #include <asm/intel-family.h>
99 #define AMDGPU_RETRY_SRIOV_RESET(r) ((r) == -EBUSY || (r) == -ETIMEDOUT || (r) == -EINVAL)
174 * amdgpu_device_supports_px - Is the device a dGPU with ATPX power control
185 if ((adev->flags & AMD_IS_PX) && !amdgpu_is_atpx_hybrid()) in amdgpu_device_supports_px()
191 * amdgpu_device_supports_boco - Is the device a dGPU with ACPI power resources
202 if (adev->has_pr3 || in amdgpu_device_supports_boco()
203 ((adev->flags & AMD_IS_PX) && amdgpu_is_atpx_hybrid())) in amdgpu_device_supports_boco()
209 * amdgpu_device_supports_baco - Does the device support BACO
[all …]
/openbmc/qemu/hw/vmapple/
H A Dvmapple.c7 * See the COPYING file in the top-level directory.
9 * SPDX-License-Identifier: GPL-2.0-or-later
11 * VMApple is the device model that the macOS built-in hypervisor called
20 #include "qemu/error-report.h"
21 #include "qemu/guest-random.h"
22 #include "qemu/help-texts.h"
31 #include "hw/qdev-properties.h"
40 #include "hw/pci-host/gpex.h"
41 #include "hw/usb/hcd-xhci-pci.h"
42 #include "hw/virtio/virtio-pci.h"
[all …]
/openbmc/linux/arch/mips/include/asm/sgi/
H A Dmc.h22 #define SGIMC_CCTRL0_EPERRMEM 0x00000040 /* Main mem parity error enable */
32 #define SGIMC_CCTRL0_WRESETPMEM 0x00010000 /* Perform warm reset, preserves mem */
33 #define SGIMC_CCTRL0_LENDIAN 0x00020000 /* Put MC in little-endian mode */
34 #define SGIMC_CCTRL0_WRESETDMEM 0x00040000 /* Warm reset, destroys mem contents */
35 #define SGIMC_CCTRL0_CMEMBADPAR 0x02000000 /* Generate bad perr from cpu to mem */
36 #define SGIMC_CCTRL0_R4KNOCHKPARR 0x04000000 /* Don't chk parity on mem data reads */
64 #define SGIMC_EEPROM_SDATAO 0x00000008 /* Serial EEPROM data-out */
65 #define SGIMC_EEPROM_SDATAI 0x00000010 /* Serial EEPROM data-in */
75 #define SGIMC_GIOPAR_HPC64 0x00000001 /* HPC talks to GIO using 64-bits */
76 #define SGIMC_GIOPAR_GFX64 0x00000002 /* GFX talks to GIO using 64-bits */
[all …]
H A Dheart.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2004-2007 Stanislaw Skowronek <skylark@unaligned.org>
7 * 2007-2015 Joshua Kinard <kumba@gentoo.org>
27 * struct ip30_heart_regs - struct that maps IP30 HEART registers.
28 * @mode: HEART_MODE - Purpose Unknown, machine reset called from here.
29 * @sdram_mode: HEART_SDRAM_MODE - purpose unknown.
30 * @mem_refresh: HEART_MEM_REF - purpose unknown.
31 * @mem_req_arb: HEART_MEM_REQ_ARB - purpose unknown.
32 * @mem_cfg.q: union for 64bit access to HEART_MEMCFG - 4x 64bit registers.
33 * @mem_cfg.l: union for 32bit access to HEART_MEMCFG - 8x 32bit registers.
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_crat.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright 2015-2022 Advanced Micro Devices, Inc.
40 * @total_cu_count - Total CUs present in the GPU including ones
934 dev->node_props.cpu_cores_count = cu->num_cpu_cores; in kfd_populated_cu_info_cpu()
935 dev->node_props.cpu_core_id_base = cu->processor_id_low; in kfd_populated_cu_info_cpu()
936 if (cu->hsa_capability & CRAT_CU_FLAGS_IOMMU_PRESENT) in kfd_populated_cu_info_cpu()
937 dev->node_props.capability |= HSA_CAP_ATS_PRESENT; in kfd_populated_cu_info_cpu()
939 pr_debug("CU CPU: cores=%d id_base=%d\n", cu->num_cpu_cores, in kfd_populated_cu_info_cpu()
940 cu->processor_id_low); in kfd_populated_cu_info_cpu()
946 dev->node_props.simd_id_base = cu->processor_id_low; in kfd_populated_cu_info_gpu()
[all …]
H A Dkfd_topology.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright 2014-2022 Advanced Micro Devices, Inc.
45 /* topology_device_list - Master list of all topology devices */
59 if (top_dev->proximity_domain == proximity_domain) { in kfd_topology_device_by_proximity_domain_no_lock()
89 if (top_dev->gpu_id == gpu_id) { in kfd_topology_device_by_id()
107 return top_dev->gpu; in kfd_device_by_id()
118 if (top_dev->gpu && top_dev->gpu->adev->pdev == pdev) { in kfd_device_by_pci_dev()
119 device = top_dev->gpu; in kfd_device_by_pci_dev()
131 struct kfd_mem_properties *mem; in kfd_release_topology_device() local
137 list_del(&dev->list); in kfd_release_topology_device()
[all …]
H A Dcwsr_trap_handler_gfx8.asm2 * Copyright 2015-2017 Advanced Micro Devices, Inc.
24 * PROJECT=vi ./sp3 cwsr_trap_handler_gfx8.asm -hex tmp.hex
103 …buf_rsrc2 //shared with s_save_buf_rsrc2 (conflict: should not use mem access with s_save_…
170 // ********* Handle non-CWSR traps *******************
191 // ********* End handling of non-CWSR traps *******************
226 …could not get arbit to exec inst, while other waves are stuck into the sleep-loop and waiting for …
237 …s_lshr_b32 s_save_tmp, s_save_tmp, (S_SAVE_SPI_INIT_ATC_SHIFT-SQ_BUF_RSRC_WORD1_ATC_S…
240 …s_lshr_b32 s_save_tmp, s_save_tmp, (S_SAVE_SPI_INIT_MTYPE_SHIFT-SQ_BUF_RSRC_WORD3_MTY…
246 /* global mem offset */
247 … 0x0 //mem offset initial valu…
[all …]
/openbmc/linux/Documentation/devicetree/bindings/display/msm/
H A Dgpu.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Rob Clark <robdclark@gmail.com>
16 - description: |
18 figure out the chip-id.
20- pattern: '^qcom,adreno-[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$'
21 - const: qcom,adreno
22 - description: |
24 figure out the gpu-id and patch level.
[all …]
/openbmc/linux/drivers/gpu/drm/aspeed/
H A Daspeed_gfx_drv.c1 // SPDX-License-Identifier: GPL-2.0+
5 #include <linux/dma-mapping.h>
30 * DOC: ASPEED GFX Driver
32 * This driver is for the ASPEED BMC SoC's 'GFX' display hardware, also called
93 { .compatible = "aspeed,ast2400-gfx", .data = &ast2400_config },
94 { .compatible = "aspeed,ast2500-gfx", .data = &ast2500_config },
95 { .compatible = "aspeed,ast2600-gfx", .data = &ast2600_config },
114 drm->mode_config.min_width = 0; in aspeed_gfx_setup_mode_config()
115 drm->mode_config.min_height = 0; in aspeed_gfx_setup_mode_config()
116 drm->mode_config.max_width = 800; in aspeed_gfx_setup_mode_config()
[all …]
/openbmc/linux/drivers/usb/misc/sisusbvga/
H A Dsisusb.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
3 * sisusb - usb kernel driver for Net2280/SiS315 based USB2VGA dongles
83 p->header = cpu_to_le16(p->header); \
84 p->address = cpu_to_le32(p->address); \
85 p->data = cpu_to_le32(p->data); \
93 struct sisusb_urb_context { /* urb->context for outbound bulk URBs */
140 #define SISUSB_EP_GFX_IN 0x0e /* gfx std packet out(0e)/in(8e) */
143 #define SISUSB_EP_GFX_BULK_OUT 0x01 /* gfx mem bulk out/in */
146 #define SISUSB_EP_GFX_LBULK_OUT 0x03 /* gfx large mem bulk out */
148 #define SISUSB_EP_UNKNOWN_04 0x04 /* ? 4 is "OUT" ? - unused */
[all …]
/openbmc/qemu/hw/display/
H A Dapple-gfx-mmio.m6 * SPDX-License-Identifier: GPL-2.0-or-later
11 * implements support to drive that library from within QEMU as an MMIO-based
17 #include "block/aio-wait.h"
20 #include "apple-gfx.h"
42 -(PGIOSurfaceHostDeviceDescriptor *)init;
49 -(instancetype)initWithDescriptor:(PGIOSurfaceHostDeviceDescriptor *)desc;
50 -(uint32_t)mmioReadAtOffset:(size_t)offset;
51 -(void)mmioWriteAtOffset:(size_t)offset value:(uint32_t)value;
76 job->value = [job->state->pgiosfc mmioReadAtOffset:job->offset];
77 qatomic_set(&job->completed, true);
[all …]
H A Dtrace-events27 vmware_update_rect_delayed_flush(void) "display update FIFO full - forcing flush"
29 # virtio-gpu-base.c
32 # virtio-gpu-3d.c
33 # virtio-gpu.c
56 virtio_gpu_inc_inflight_fences(uint32_t inflight) "in-flight+ %u"
57 virtio_gpu_dec_inflight_fences(uint32_t inflight) "in-flight- %u"
62 …t qid, uint32_t width, uint32_t height, uint64_t mem, uint32_t format, uint32_t position) "%d %ux%…
81 …_t slot_id, uint64_t guest_start, uint64_t guest_end) "%d %u: guest phys 0x%"PRIx64 " - 0x%" PRIx64
121 # qxl-render.c
145 ati_mm_read(unsigned int size, uint64_t addr, const char *name, uint64_t val) "%u 0x%"PRIx64 " %s -
[all …]
/openbmc/u-boot/cmd/x86/
H A Dfsp.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014-2015, Bin Meng <bmeng.cn@gmail.com>
14 "Hand-off",
15 "Mem Alloc",
20 "Mem Pool",
30 u32 img_addr = hdr->img_base; in do_hdr()
31 char *sign = (char *)&hdr->sign; in do_hdr()
37 for (i = 0; i < sizeof(hdr->sign); i++) in do_hdr()
39 printf(", size %d, rev %d\n", hdr->hdr_len, hdr->hdr_rev); in do_hdr()
41 if (hdr->hdr_rev == FSP_HEADER_REVISION_1) { in do_hdr()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dsstfb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/video/sstfb.c -- voodoo graphics frame buffer
5 * Copyright (c) 2000-2002 Ghozlane Toumi <gtoumi@laposte.net>
16 * (enable driver on big-endian machines (hppa), ioctl fixes)
26 * add /sys/class/graphics/fbX/vgapass sysfs-interface
34 * 0x000000 - 0x3fffff : registers (4MB)
35 * 0x400000 - 0x7fffff : linear frame buffer (4MB)
36 * 0x800000 - 0xffffff : texture memory (8MB)
42 -TODO: at one time or another test that the mode is acceptable by the monitor
43 -ASK: Can I choose different ordering for the color bitfields (rgba argb ...)
[all …]
/openbmc/qemu/hw/vfio/
H A Dpci-quirks.c4 * Copyright Red Hat, Inc. 2012-2015
10 * the COPYING file in the top-level directory.
18 #include "qemu/error-report.h"
19 #include "qemu/main-loop.h"
26 #include "hw/qdev-properties.h"
28 #include "pci-quirks.h"
57 trace_vfio_quirk_rom_in_denylist(vdev->vbasedev.name, in vfio_opt_rom_in_denylist()
75 VFIOPCIDevice *vdev = window->vdev; in vfio_generic_window_quirk_address_read()
77 return vfio_region_read(&vdev->bars[window->bar].region, in vfio_generic_window_quirk_address_read()
78 addr + window->address_offset, size); in vfio_generic_window_quirk_address_read()
[all …]
/openbmc/qemu/hw/xen/
H A Dxen_pt.c6 * the COPYING file in the top-level directory.
22 * - Set real Interrupt Disable bit to '1'.
23 * - Set machine_irq and assigned_device->machine_irq to '0'.
28 * - Set real Interrupt Disable bit to '1'.
29 * - Unmap INTx.
30 * - Decrement xen_pt_mapped_machine_irq[machine_irq]
31 * - Set assigned_device->machine_irq to '0'.
35 * - Set real bit to '0' if assigned_device->machine_irq isn't '0'.
38 * - Set real bit to '1'.
44 * - Unmap MSI.
[all …]
/openbmc/linux/arch/x86/kernel/
H A Dsetup.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * This file contains the setup_arch() code, which handles the architecture-dependent
11 #include <linux/dma-map-ops.h>
23 #include <linux/usb/xhci-dbgp.h>
51 #include <asm/pci-direct.h>
175 * copy_edd() - Copy the BIOS EDD information
195 size_t mask = align - 1; in extend_brk()
222 _brk_end - _brk_start); in reserve_brk()
263 /* We need to move the initrd down into directly mapped mem */ in relocate_initrd()
272 printk(KERN_INFO "Allocated new RAMDISK: [mem %#010llx-%#010llx]\n", in relocate_initrd()
[all …]

1234