Re: [RFC 4/8] drm/nouveau: scrub the FB memory when scrubber firmware is loaded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



On 1/9/25 11:58 PM, Timur Tabi wrote:
On Fri, 2024-11-22 at 04:57 -0800, Zhi Wang wrote:
+static int
+ad102_execute_scrubber(struct nvkm_gsp *gsp)
+{
+	struct nvkm_falcon_fw fw = {0};
+	struct nvkm_subdev *subdev = &gsp->subdev;
+	struct nvkm_device *device = subdev->device;
+	int ret;
+
+	if (!gsp->fws.scrubber || is_scrubber_completed(gsp))
+		return 0;

Shouldn't it be a bug if fws.scrubber is not defined?  If we need the
scrubber and it doesn't exist, then I don't think it should silently fail.

I think already bail out in ad102_gsp_init_fw_heap() when we failt to load the firmware.

This check seems necessary, since gsp->fb.wpr2.heap.size might be smaller than 256M and then we never load the scrubber fw.



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux