Lines Matching +full:zap +full:- +full:shader

1 /* SPDX-License-Identifier: GPL-2.0-only */
33 * @enum adreno_family: identify generation and possibly sub-generation
35 * In some cases there are distinct sub-generations within a major revision
37 * necessary sub-generation.
90 * @chipids: Table of matching chip-ids
119 * -----+---------
146 * of gpu firmware to linux-firmware, the fw files were
148 * android kernel. But linux-firmware preferred they be
202 int __ret = -ETIMEDOUT; \
219 WARN_ON_ONCE(gpu->info->family >= ADRENO_6XX_GEN1); in adreno_patchid()
220 return gpu->chip_id & 0xff; in adreno_patchid()
225 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_revn()
227 return gpu->info->revn == revn; in adreno_is_revn()
232 return gpu->gmu_is_wrapper; in adreno_has_gmu_wrapper()
237 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a2xx()
239 return gpu->info->family <= ADRENO_2XX_GEN2; in adreno_is_a2xx()
244 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a20x()
246 return gpu->info->family == ADRENO_2XX_GEN1; in adreno_is_a20x()
367 return gpu->info->chip_ids[0] == 0x06030500; in adreno_is_7c3()
382 return gpu->info->chip_ids[0] == 0x06090000; in adreno_is_a690()
388 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a630_family()
390 return gpu->info->family == ADRENO_6XX_GEN1; in adreno_is_a630_family()
395 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a660_family()
397 return gpu->info->family == ADRENO_6XX_GEN4; in adreno_is_a660_family()
403 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a650_family()
405 return gpu->info->family == ADRENO_6XX_GEN3 || in adreno_is_a650_family()
406 gpu->info->family == ADRENO_6XX_GEN4; in adreno_is_a650_family()
411 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a640_family()
413 return gpu->info->family == ADRENO_6XX_GEN2; in adreno_is_a640_family()
418 return gpu->info->chip_ids[0] == 0x07030001; in adreno_is_a730()
423 return gpu->info->chip_ids[0] == 0x43050a01; in adreno_is_a740()
429 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a740_family()
431 return gpu->info->family == ADRENO_7XX_GEN2; in adreno_is_a740_family()
436 /* Update with non-fake (i.e. non-A702) Gen 7 GPUs */ in adreno_is_a7xx()
437 return gpu->info->family == ADRENO_7XX_GEN1 || in adreno_is_a7xx()
481 * Common helper function to initialize the default address space for arm-smmu
500 * For a5xx and a6xx targets load the zap shader that is used to pull the GPU
511 OUT_RING(ring, CP_TYPE0_PKT | ((cnt-1) << 16) | (regindx & 0x7FFF)); in OUT_PKT0()
514 /* no-op packet: */
526 OUT_RING(ring, CP_TYPE3_PKT | ((cnt-1) << 16) | ((opcode & 0xFF) << 8)); in OUT_PKT3()
567 return (ring->cur - ring->start) % (MSM_GPU_RINGBUFFER_SZ >> 2); in get_wptr()
572 * REG_CP_PROTECT_REG(n) - this will block both reads and writes for _len
578 * (0x07-0x0A) the hardware will actually protect (0x04-0x07) which might
596 readl_poll_timeout((gpu)->mmio + ((addr) << 2), val, cond, \