Displaying 5 results from an estimated 5 matches for "nv50_get_block_off".
2024 Sep 13
1
[PATCH v3 2/2] drm/nouveau: Add drm_panic support for nv50+
...DTH (NV_TILE_GOB_SIZE / 4) /* For 32 bits pixel */
+
+/* Only used by drm_panic get_scanout_buffer() and set_pixel(), so it is
+ * protected by the drm panic spinlock
+ */
+static u32 nv50_panic_blk_h;
+
+/* Return the framebuffer offset of the start of the block where pixel(x,y) is */
+static u32
+nv50_get_block_off(unsigned int x, unsigned int y, unsigned int width)
+{
+ u32 blk_x, blk_y, blk_columns;
+
+ blk_columns = DIV_ROUND_UP(width, NV_TILE_BLK_WIDTH);
+ blk_x = x / NV_TILE_BLK_WIDTH;
+ blk_y = y / nv50_panic_blk_h;
+
+ return ((blk_y * blk_columns) + blk_x) * NV_TILE_GOB_SIZE * nv50_panic_blk_h;
+}
+
+...
2024 Oct 18
2
[PATCH v3 2/2] drm/nouveau: Add drm_panic support for nv50+
...ere.
> +
> +/* Only used by drm_panic get_scanout_buffer() and set_pixel(), so it is
> + * protected by the drm panic spinlock
> + */
> +static u32 nv50_panic_blk_h;
> +
> +/* Return the framebuffer offset of the start of the block where pixel(x,y) is */
> +static u32
> +nv50_get_block_off(unsigned int x, unsigned int y, unsigned int width)
> +{
> + u32 blk_x, blk_y, blk_columns;
> +
> + blk_columns = DIV_ROUND_UP(width, NV_TILE_BLK_WIDTH);
> + blk_x = x / NV_TILE_BLK_WIDTH;
> + blk_y = y / nv50_panic_blk_h;
> +
> + return ((blk_y * blk_columns) + blk_x) * NV_...
2024 Oct 21
1
[PATCH v3 2/2] drm/nouveau: Add drm_panic support for nv50+
...sed by drm_panic get_scanout_buffer() and set_pixel(), so it is
>> + * protected by the drm panic spinlock
>> + */
>> +static u32 nv50_panic_blk_h;
>> +
>> +/* Return the framebuffer offset of the start of the block where pixel(x,y) is */
>> +static u32
>> +nv50_get_block_off(unsigned int x, unsigned int y, unsigned int width)
>> +{
>> + u32 blk_x, blk_y, blk_columns;
>> +
>> + blk_columns = DIV_ROUND_UP(width, NV_TILE_BLK_WIDTH);
>> + blk_x = x / NV_TILE_BLK_WIDTH;
>> + blk_y = y / nv50_panic_blk_h;
>> +
>> + return ((blk...
2024 Sep 13
3
[PATCH v3 0/2] drm/nouveau: Add drm_panic support for nv50+
This series adds basic drm_panic support for nouveau.
Patches 1 Add ABGR2101010 support in drm_panic.
Patch 2 registers nouveau to drm_panic, and handle tiling.
I've tested on a GTX1650 (Turing) and GF 8800 GT (Tesla), while
running Gnome/Wayland desktop, and in VT.
It should work on other nv50+ cards, but I didn't test them.
To test it, you need to build your kernel with
2024 Oct 22
4
[PATCH v4 0/3] drm/nouveau: Add drm_panic support for nv50+
This series adds basic drm_panic support for nouveau.
I've tested on GTX1650 (Turing), GeForce GT 1030 (Pascal) and
Geforce 8800 GTS (Tesla), running Gnome/Wayland desktop, and in VT.
It should work on other nv50+ cards, but I didn't test them.
To test it, you need to build your kernel with CONFIG_DRM_PANIC=y, and run:
echo c > /proc/sysrq-trigger
or you can enable