[Intel-gfx] [PATCH 3/6] drm/i915: Always call i915_globals_exit() from i915_exit()
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Tue Jul 20 15:30:08 UTC 2021
Now you confused me with two replies I forgot to reply to all... :))
On 20/07/2021 15:53, Jason Ekstrand wrote:
> On Tue, Jul 20, 2021 at 3:25 AM Tvrtko Ursulin
> <tvrtko.ursulin at linux.intel.com> wrote:
[snip]
>>> +
>>> static int __init i915_init(void)
>>> {
>>> bool use_kms = true;
>>> int err;
>>>
>>> + i915_fully_loaded = false;
>>
>> Ditto.
>
> So, this is something I'm unclear on. I know that static memory gets
> auto-initialized to zero but what happens if you unload and reload a
> module? Is it re-initialized to zero? If it is then we can drop
> this.
Well it's not in memory after it is unloaded so clearly it has to get
initialised by the module loader every time it loads it.
Regards,
Tvrtko
More information about the Intel-gfx
mailing list