linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EDAC polling
@ 2018-09-11 13:09 Sodagudi Prasad
  2018-09-12  8:34 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: Sodagudi Prasad @ 2018-09-11 13:09 UTC (permalink / raw)
  To: bp, mchehab, linux-edac; +Cc: linux-kernel


Hi All,

While adding edac_device control info using edac_device_add_device(), 
changed the poll_msec at client driver level.
For example -.
https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/drivers/edac/qcom_llcc_edac.c?h=msm-4.9#n385


I see that client driver request is not considered and always default 
value(1 second) is considered. During the initialization
edac_device_workq_setup sets poll_msed to 1 second.

int edac_device_add_device(struct edac_device_ctl_info *edac_dev)
{
...
...
         /* If there IS a check routine, then we are running POLLED */
         if (edac_dev->edac_check != NULL) {
                 /* This instance is NOW RUNNING */
                 edac_dev->op_state = OP_RUNNING_POLL;

                 /*
                  * enable workq processing on this instance,
                  * default = 1000 msec
                  */
                 edac_device_workq_setup(edac_dev, 1000);
         } else {
                 edac_dev->op_state = OP_RUNNING_INTERRUPT;
         }


May I know why client edev_ctl->poll_msec settings is not considered?


-Thanks, Prasad

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora 
Forum,
Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: EDAC polling
  2018-09-11 13:09 EDAC polling Sodagudi Prasad
@ 2018-09-12  8:34 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2018-09-12  8:34 UTC (permalink / raw)
  To: Sodagudi Prasad; +Cc: mchehab, linux-edac, linux-kernel

On Tue, Sep 11, 2018 at 06:09:01AM -0700, Sodagudi Prasad wrote:
> May I know why client edev_ctl->poll_msec settings is not considered?

Looks like it has been like this since it was added. But, I take patches :)

Make sure to sanity-check ->poll_msec too, before accepting it. I.e.,
something like < 1sec doesn't make sense, for example.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-12  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11 13:09 EDAC polling Sodagudi Prasad
2018-09-12  8:34 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).