Displaying 9 results from an estimated 9 matches for "init_exec".
2009 Dec 15
2
[PATCH 1/2] drm/nouveau: Kill global state in NvShadowBIOS
---
drivers/gpu/drm/nouveau/nouveau_bios.c | 47 ++++++++++++++-----------------
1 files changed, 21 insertions(+), 26 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 5eec5ed..04ac564 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -181,43 +181,42 @@ struct methods {
const char
2024 Jun 11
0
[PATCH 2/6] drm/nouveau: remove unused struct 'init_exec'
On 5/18/24 01:26, linux at treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux at treblig.org>
>
> 'init_exec' is unused since
> commit cb75d97e9c77 ("drm/nouveau: implement devinit subdev, and new
> init table parser")
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux at treblig.org>
Acked-by: Danilo Krummrich <dakr at redhat.com>
To which series doe...
2024 Jun 11
0
[PATCH 2/6] drm/nouveau: remove unused struct 'init_exec'
On 6/11/24 12:37, Dr. David Alan Gilbert wrote:
> * Danilo Krummrich (dakr at redhat.com) wrote:
>> On 5/18/24 01:26, linux at treblig.org wrote:
>>> From: "Dr. David Alan Gilbert" <linux at treblig.org>
>>>
>>> 'init_exec' is unused since
>>> commit cb75d97e9c77 ("drm/nouveau: implement devinit subdev, and new
>>> init table parser")
>>> Remove it.
>>>
>>> Signed-off-by: Dr. David Alan Gilbert <linux at treblig.org>
>>
>> Acked-by: Danilo K...
2009 Aug 20
1
Delays in DRM nouveau_bios.c
...s.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 < 1000 * MAX_UDELAY_MS)
+ udelay(usecs);
+ else
+ msleep(usecs / 1000 + 1);
+}
+
static bool nv_cksum(const uint8_t *data, unsigned int length)
{
/* there's a few checksums in the BIO...
2009 Oct 02
0
Disaster at annarchy
...; >
> >> > -#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 < 1000 * MAX_UDELAY_MS)
> >> > + udelay(usecs);...
2017 Oct 16
0
[PATCH] drm/nouveau/bios/init: use ARRAY_SIZE
...6,8 @@
#include <subdev/i2c.h>
#include <subdev/vga.h>
+#include <linux/kernel.h>
+
#define bioslog(lvl, fmt, args...) do { \
nvkm_printk(init->subdev, lvl, info, "0x%08x[%c]: "fmt, \
init->offset, init_exec(init) ? \
@@ -2271,8 +2273,6 @@ static struct nvbios_init_opcode {
[0xaa] = { init_reserved },
};
-#define init_opcode_nr (sizeof(init_opcode) / sizeof(init_opcode[0]))
-
int
nvbios_exec(struct nvbios_init *init)
{
@@ -2281,7 +2281,8 @@ nvbios_exec(struct nvbios_i...
2010 Jun 17
0
[PATCH] drm/nouveau: Don't clear AGPCMD completely on INIT_RESET.
...ions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index ee36f8f..903e72b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -2126,7 +2126,8 @@ init_reset(struct nvbios *bios, uint16_t offset, struct init_exec *iexec)
/* no iexec->execute check by design */
pci_nv_19 = bios_rd32(bios, NV_PBUS_PCI_NV_19);
- bios_wr32(bios, NV_PBUS_PCI_NV_19, 0);
+ bios_wr32(bios, NV_PBUS_PCI_NV_19, pci_nv_19 & ~0xf00);
+
bios_wr32(bios, reg, value1);
udelay(10);
--
1.6.4.4
2017 Oct 01
0
[PATCH 06/18] drm: use ARRAY_SIZE
...6,8 @@
#include <subdev/i2c.h>
#include <subdev/vga.h>
+#include <linux/kernel.h>
+
#define bioslog(lvl, fmt, args...) do { \
nvkm_printk(init->subdev, lvl, info, "0x%08x[%c]: "fmt, \
init->offset, init_exec(init) ? \
@@ -2271,8 +2273,6 @@ static struct nvbios_init_opcode {
[0xaa] = { init_reserved },
};
-#define init_opcode_nr (sizeof(init_opcode) / sizeof(init_opcode[0]))
-
int
nvbios_exec(struct nvbios_init *init)
{
@@ -2281,7 +2281,8 @@ nvbios_exec(struct nvbios_i...
2017 Oct 01
6
[PATCH 00/18] use ARRAY_SIZE macro
Hi everyone,
Using ARRAY_SIZE improves the code readability. I used coccinelle (I
made a change to the array_size.cocci file [1]) to find several places
where ARRAY_SIZE could be used instead of other macros or sizeof
division.
I tried to divide the changes into a patch per subsystem (excepted for
staging). If one of the patch should be split into several patches, let
me know.
In order to reduce