search for: log_old_value

Displaying 5 results from an estimated 5 matches for "log_old_value".

2009 Aug 20
1
Delays in DRM nouveau_bios.c
...t a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 99f7bd4..13b3fb1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -40,8 +40,6 @@ #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, ##arg) #define LOG_OLD_VALUE(x) //x -#define BIOS_USLEEP(n) mdelay((n)/1000) - #define ROM16(x) le16_to_cpu(*(uint16_t *)&(x)) #define ROM32(x) le32_to_cpu(*(uint32_t *)&(x)) @@ -50,6 +48,15 @@ struct init_exec { bool repeat; }; +static inline void bios_usleep(unsigned usecs) +{ + might_sleep(); + if (usecs...
2024 Jun 11
0
[PATCH 2/6] drm/nouveau: remove unused struct 'init_exec'
...b/drivers/gpu/drm/nouveau/nouveau_bios.c > index 79cfab53f80e..8c3c1f1e01c5 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_bios.c > +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c > @@ -43,11 +43,6 @@ > #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, ##arg) > #define LOG_OLD_VALUE(x) > > -struct init_exec { > - bool execute; > - bool repeat; > -}; > - > static bool nv_cksum(const uint8_t *data, unsigned int length) > { > /*
2024 Jun 11
0
[PATCH 2/6] drm/nouveau: remove unused struct 'init_exec'
...gt; index 79cfab53f80e..8c3c1f1e01c5 100644 >>> --- a/drivers/gpu/drm/nouveau/nouveau_bios.c >>> +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c >>> @@ -43,11 +43,6 @@ >>> #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, ##arg) >>> #define LOG_OLD_VALUE(x) >>> -struct init_exec { >>> - bool execute; >>> - bool repeat; >>> -}; >>> - >>> static bool nv_cksum(const uint8_t *data, unsigned int length) >>> { >>> /* >>
2009 Jun 10
0
[PATCH] Use nanosleep instead of usleep when waiting the hardware.
...00)*1000 }; + + while (nanosleep(&t, &t) && errno == EINTR) {} +} + #endif diff --git a/src/nv_bios.c b/src/nv_bios.c index 182456a..b7490c1 100644 --- a/src/nv_bios.c +++ b/src/nv_bios.c @@ -41,7 +41,7 @@ #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip, fmt, ##arg) #define LOG_OLD_VALUE(x) //x -#define BIOS_USLEEP(n) usleep(n) +#define BIOS_USLEEP(n) nouveau_usleep(n) #define ROM16(x) le16_to_cpu(*(uint16_t *)&(x)) #define ROM32(x) le32_to_cpu(*(uint32_t *)&(x)) diff --git a/src/nv_crtc.c b/src/nv_crtc.c index b8524fb..1ffb267 100644 --- a/src/nv_crtc.c +++ b/src/nv_...
2009 Oct 02
0
Disaster at annarchy
...>> > 99f7bd4..13b3fb1 100644 --- > >> > a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ > >> > b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -40,8 +40,6 @@ > >> > #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, > >> > ##arg) #define LOG_OLD_VALUE(x) //x > >> > > >> > -#define BIOS_USLEEP(n) mdelay((n)/1000) > >> > - > >> > #define ROM16(x) le16_to_cpu(*(uint16_t *)&(x)) > >> > #define ROM32(x) le32_to_cpu(*(uint32_t *)&(x)) > >> > > >> > @@ -50...