Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: gpu: fix VGLite finish early #174

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions drivers/gpu/vglite/vg_lite_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ int vg_lite_hal_wait_interrupt(u32 timeout, u32 mask, u32 *value)
// FIXME: struct timeval tv;
unsigned long jiffies;
unsigned long result;
#define IGNORE_INTERRUPT 0
#define IGNORE_INTERRUPT 1
#if IGNORE_INTERRUPT
unsigned int int_flag;
#endif
Expand Down Expand Up @@ -378,7 +378,7 @@ int vg_lite_hal_wait_interrupt(u32 timeout, u32 mask, u32 *value)
int_flag = vg_lite_hal_peek(0x10);
if (int_flag)
result = int_flag;
dev_info(device->dev,
dev_vdbg(device->dev,
"vg_lite: waiting... idle: 0x%08X, int: 0x%08X, FE: 0x%08X 0x%08X 0x%08X\n",
vg_lite_hal_peek(0x4), int_flag, vg_lite_hal_peek(0x500),
vg_lite_hal_peek(0x504), vg_lite_hal_peek(0x508)
Expand Down Expand Up @@ -692,7 +692,7 @@ static irqreturn_t irq_handler(int irq, void *context)
struct vg_lite_device *device = context;

/* Read interrupt status. */
u32 flags = *(u32 *)((uint8_t *)device->gpu + VG_LITE_INTR_STATUS);
u32 flags = vg_lite_hal_peek(VG_LITE_INTR_STATUS);

if (flags) {
/* Combine with current interrupt flags. */
Expand Down