[Intel-gfx] linux-4.15-rc1/drivers/gpu/drm/i915/gvt/cmd_parser.c:1640: poor error checking ?

2017-11-27 Thread David Binderman
t static int find_bb_size(struct parser_exec_state *s) so the code isn't properly checking the return value. Suggest code rework. Regards David Binderman ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mail

[Intel-gfx] drivers/gpu/drm/i915/intel_pm.c:4467: bad comparison ?

2017-07-18 Thread David Binderman
Hello there, drivers/gpu/drm/i915/intel_pm.c:4467]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. Source code is else if ((ddb_allocation && ddb_allocation / fixed_16_16_to_u32_round_up(plane_blocks_per_line)) >= 1) Reg

[Intel-gfx] include/drm/i915_drm.h:96: possible bad bitmask ?

2016-08-08 Thread David Binderman
TEL_BSM_MASK (0xUL<< 20) might be better. Regards David Binderman ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] drivers/gpu/drm/i915/i915_reg.h:90:shift-overflow problem ?

2016-06-02 Thread David Binderman
< 20) Regards David Binderman ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] linux-4.2-rc1/drivers/gpu/drm/i915/intel_csr.c:353: bad if statement ?

2015-07-07 Thread David Binderman
mmioaddr[i]> CSR_MMIO_END_RANGE) { Maybe better code   if (dmc_header->mmioaddr[i] < CSR_MMIO_START_RANGE ||     dmc_header->mmioaddr[i]> CSR_MMIO_END_RANGE) { Regards David Binderman __