Re: [PATCH v7 1/9] drm_print: condense enum drm_debug_category

2022-09-13 Thread jim . cromie
On Mon, Sep 12, 2022 at 4:17 AM Jani Nikula wrote: > > On Sun, 11 Sep 2022, Jim Cromie wrote: > > enum drm_debug_category has 10 categories, but is initialized with > > bitmasks which require 10 bits of underlying storage. By using > > natural enumeration, and moving the BIT(cat) into

Re: [PATCH v7 1/9] drm_print: condense enum drm_debug_category

2022-09-12 Thread Jani Nikula
On Sun, 11 Sep 2022, Jim Cromie wrote: > enum drm_debug_category has 10 categories, but is initialized with > bitmasks which require 10 bits of underlying storage. By using > natural enumeration, and moving the BIT(cat) into drm_debug_enabled(), > the enum fits in 4 bits, allowing the category

[PATCH v7 1/9] drm_print: condense enum drm_debug_category

2022-09-11 Thread Jim Cromie
enum drm_debug_category has 10 categories, but is initialized with bitmasks which require 10 bits of underlying storage. By using natural enumeration, and moving the BIT(cat) into drm_debug_enabled(), the enum fits in 4 bits, allowing the category to be represented directly in pr_debug callsites,