linux/drivers/edac/edac_mc_sysfs.c
<<
>>
Prefs
   1/*
   2 * edac_mc kernel module
   3 * (C) 2005-2007 Linux Networx (http://lnxi.com)
   4 *
   5 * This file may be distributed under the terms of the
   6 * GNU General Public License.
   7 *
   8 * Written Doug Thompson <norsk5@xmission.com> www.softwarebitmaker.com
   9 *
  10 * (c) 2012 - Mauro Carvalho Chehab <mchehab@redhat.com>
  11 *      The entire API were re-written, and ported to use struct device
  12 *
  13 */
  14
  15#include <linux/ctype.h>
  16#include <linux/slab.h>
  17#include <linux/edac.h>
  18#include <linux/bug.h>
  19#include <linux/pm_runtime.h>
  20#include <linux/uaccess.h>
  21
  22#include "edac_core.h"
  23#include "edac_module.h"
  24
  25/* MC EDAC Controls, setable by module parameter, and sysfs */
  26static int edac_mc_log_ue = 1;
  27static int edac_mc_log_ce = 1;
  28static int edac_mc_panic_on_ue;
  29static int edac_mc_poll_msec = 1000;
  30
  31/* Getter functions for above */
  32int edac_mc_get_log_ue(void)
  33{
  34        return edac_mc_log_ue;
  35}
  36
  37int edac_mc_get_log_ce(void)
  38{
  39        return edac_mc_log_ce;
  40}
  41
  42int edac_mc_get_panic_on_ue(void)
  43{
  44        return edac_mc_panic_on_ue;
  45}
  46
  47/* this is temporary */
  48int edac_mc_get_poll_msec(void)
  49{
  50        return edac_mc_poll_msec;
  51}
  52
  53static int edac_set_poll_msec(const char *val, struct kernel_param *kp)
  54{
  55        long l;
  56        int ret;
  57
  58        if (!val)
  59                return -EINVAL;
  60
  61        ret = strict_strtol(val, 0, &l);
  62        if (ret == -EINVAL || ((int)l != l))
  63                return -EINVAL;
  64        *((int *)kp->arg) = l;
  65
  66        /* notify edac_mc engine to reset the poll period */
  67        edac_mc_reset_delay_period(l);
  68
  69        return 0;
  70}
  71
  72/* Parameter declarations for above */
  73module_param(edac_mc_panic_on_ue, int, 0644);
  74MODULE_PARM_DESC(edac_mc_panic_on_ue, "Panic on uncorrected error: 0=off 1=on");
  75module_param(edac_mc_log_ue, int, 0644);
  76MODULE_PARM_DESC(edac_mc_log_ue,
  77                 "Log uncorrectable error to console: 0=off 1=on");
  78module_param(edac_mc_log_ce, int, 0644);
  79MODULE_PARM_DESC(edac_mc_log_ce,
  80                 "Log correctable error to console: 0=off 1=on");
  81module_param_call(edac_mc_poll_msec, edac_set_poll_msec, param_get_int,
  82                  &edac_mc_poll_msec, 0644);
  83MODULE_PARM_DESC(edac_mc_poll_msec, "Polling period in milliseconds");
  84
  85static struct device *mci_pdev;
  86
  87/*
  88 * various constants for Memory Controllers
  89 */
  90static const char *mem_types[] = {
  91        [MEM_EMPTY] = "Empty",
  92        [MEM_RESERVED] = "Reserved",
  93        [MEM_UNKNOWN] = "Unknown",
  94        [MEM_FPM] = "FPM",
  95        [MEM_EDO] = "EDO",
  96        [MEM_BEDO] = "BEDO",
  97        [MEM_SDR] = "Unbuffered-SDR",
  98        [MEM_RDR] = "Registered-SDR",
  99        [MEM_DDR] = "Unbuffered-DDR",
 100        [MEM_RDDR] = "Registered-DDR",
 101        [MEM_RMBS] = "RMBS",
 102        [MEM_DDR2] = "Unbuffered-DDR2",
 103        [MEM_FB_DDR2] = "FullyBuffered-DDR2",
 104        [MEM_RDDR2] = "Registered-DDR2",
 105        [MEM_XDR] = "XDR",
 106        [MEM_DDR3] = "Unbuffered-DDR3",
 107        [MEM_RDDR3] = "Registered-DDR3"
 108};
 109
 110static const char *dev_types[] = {
 111        [DEV_UNKNOWN] = "Unknown",
 112        [DEV_X1] = "x1",
 113        [DEV_X2] = "x2",
 114        [DEV_X4] = "x4",
 115        [DEV_X8] = "x8",
 116        [DEV_X16] = "x16",
 117        [DEV_X32] = "x32",
 118        [DEV_X64] = "x64"
 119};
 120
 121static const char *edac_caps[] = {
 122        [EDAC_UNKNOWN] = "Unknown",
 123        [EDAC_NONE] = "None",
 124        [EDAC_RESERVED] = "Reserved",
 125        [EDAC_PARITY] = "PARITY",
 126        [EDAC_EC] = "EC",
 127        [EDAC_SECDED] = "SECDED",
 128        [EDAC_S2ECD2ED] = "S2ECD2ED",
 129        [EDAC_S4ECD4ED] = "S4ECD4ED",
 130        [EDAC_S8ECD8ED] = "S8ECD8ED",
 131        [EDAC_S16ECD16ED] = "S16ECD16ED"
 132};
 133
 134#ifdef CONFIG_EDAC_LEGACY_SYSFS
 135/*
 136 * EDAC sysfs CSROW data structures and methods
 137 */
 138
 139#define to_csrow(k) container_of(k, struct csrow_info, dev)
 140
 141/*
 142 * We need it to avoid namespace conflicts between the legacy API
 143 * and the per-dimm/per-rank one
 144 */
 145#define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \
 146        struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store)
 147
 148struct dev_ch_attribute {
 149        struct device_attribute attr;
 150        int channel;
 151};
 152
 153#define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \
 154        struct dev_ch_attribute dev_attr_legacy_##_name = \
 155                { __ATTR(_name, _mode, _show, _store), (_var) }
 156
 157#define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel)
 158
 159/* Set of more default csrow<id> attribute show/store functions */
 160static ssize_t csrow_ue_count_show(struct device *dev,
 161                                   struct device_attribute *mattr, char *data)
 162{
 163        struct csrow_info *csrow = to_csrow(dev);
 164
 165        return sprintf(data, "%u\n", csrow->ue_count);
 166}
 167
 168static ssize_t csrow_ce_count_show(struct device *dev,
 169                                   struct device_attribute *mattr, char *data)
 170{
 171        struct csrow_info *csrow = to_csrow(dev);
 172
 173        return sprintf(data, "%u\n", csrow->ce_count);
 174}
 175
 176static ssize_t csrow_size_show(struct device *dev,
 177                               struct device_attribute *mattr, char *data)
 178{
 179        struct csrow_info *csrow = to_csrow(dev);
 180        int i;
 181        u32 nr_pages = 0;
 182
 183        for (i = 0; i < csrow->nr_channels; i++)
 184                nr_pages += csrow->channels[i]->dimm->nr_pages;
 185        return sprintf(data, "%u\n", PAGES_TO_MiB(nr_pages));
 186}
 187
 188static ssize_t csrow_mem_type_show(struct device *dev,
 189                                   struct device_attribute *mattr, char *data)
 190{
 191        struct csrow_info *csrow = to_csrow(dev);
 192
 193        return sprintf(data, "%s\n", mem_types[csrow->channels[0]->dimm->mtype]);
 194}
 195
 196static ssize_t csrow_dev_type_show(struct device *dev,
 197                                   struct device_attribute *mattr, char *data)
 198{
 199        struct csrow_info *csrow = to_csrow(dev);
 200
 201        return sprintf(data, "%s\n", dev_types[csrow->channels[0]->dimm->dtype]);
 202}
 203
 204static ssize_t csrow_edac_mode_show(struct device *dev,
 205                                    struct device_attribute *mattr,
 206                                    char *data)
 207{
 208        struct csrow_info *csrow = to_csrow(dev);
 209
 210        return sprintf(data, "%s\n", edac_caps[csrow->channels[0]->dimm->edac_mode]);
 211}
 212
 213/* show/store functions for DIMM Label attributes */
 214static ssize_t channel_dimm_label_show(struct device *dev,
 215                                       struct device_attribute *mattr,
 216                                       char *data)
 217{
 218        struct csrow_info *csrow = to_csrow(dev);
 219        unsigned chan = to_channel(mattr);
 220        struct rank_info *rank = csrow->channels[chan];
 221
 222        /* if field has not been initialized, there is nothing to send */
 223        if (!rank->dimm->label[0])
 224                return 0;
 225
 226        return snprintf(data, EDAC_MC_LABEL_LEN, "%s\n",
 227                        rank->dimm->label);
 228}
 229
 230static ssize_t channel_dimm_label_store(struct device *dev,
 231                                        struct device_attribute *mattr,
 232                                        const char *data, size_t count)
 233{
 234        struct csrow_info *csrow = to_csrow(dev);
 235        unsigned chan = to_channel(mattr);
 236        struct rank_info *rank = csrow->channels[chan];
 237
 238        ssize_t max_size = 0;
 239
 240        max_size = min((ssize_t) count, (ssize_t) EDAC_MC_LABEL_LEN - 1);
 241        strncpy(rank->dimm->label, data, max_size);
 242        rank->dimm->label[max_size] = '\0';
 243
 244        return max_size;
 245}
 246
 247/* show function for dynamic chX_ce_count attribute */
 248static ssize_t channel_ce_count_show(struct device *dev,
 249                                     struct device_attribute *mattr, char *data)
 250{
 251        struct csrow_info *csrow = to_csrow(dev);
 252        unsigned chan = to_channel(mattr);
 253        struct rank_info *rank = csrow->channels[chan];
 254
 255        return sprintf(data, "%u\n", rank->ce_count);
 256}
 257
 258/* cwrow<id>/attribute files */
 259DEVICE_ATTR_LEGACY(size_mb, S_IRUGO, csrow_size_show, NULL);
 260DEVICE_ATTR_LEGACY(dev_type, S_IRUGO, csrow_dev_type_show, NULL);
 261DEVICE_ATTR_LEGACY(mem_type, S_IRUGO, csrow_mem_type_show, NULL);
 262DEVICE_ATTR_LEGACY(edac_mode, S_IRUGO, csrow_edac_mode_show, NULL);
 263DEVICE_ATTR_LEGACY(ue_count, S_IRUGO, csrow_ue_count_show, NULL);
 264DEVICE_ATTR_LEGACY(ce_count, S_IRUGO, csrow_ce_count_show, NULL);
 265
 266/* default attributes of the CSROW<id> object */
 267static struct attribute *csrow_attrs[] = {
 268        &dev_attr_legacy_dev_type.attr,
 269        &dev_attr_legacy_mem_type.attr,
 270        &dev_attr_legacy_edac_mode.attr,
 271        &dev_attr_legacy_size_mb.attr,
 272        &dev_attr_legacy_ue_count.attr,
 273        &dev_attr_legacy_ce_count.attr,
 274        NULL,
 275};
 276
 277static struct attribute_group csrow_attr_grp = {
 278        .attrs  = csrow_attrs,
 279};
 280
 281static const struct attribute_group *csrow_attr_groups[] = {
 282        &csrow_attr_grp,
 283        NULL
 284};
 285
 286static void csrow_attr_release(struct device *dev)
 287{
 288        struct csrow_info *csrow = container_of(dev, struct csrow_info, dev);
 289
 290        edac_dbg(1, "Releasing csrow device %s\n", dev_name(dev));
 291        kfree(csrow);
 292}
 293
 294static struct device_type csrow_attr_type = {
 295        .groups         = csrow_attr_groups,
 296        .release        = csrow_attr_release,
 297};
 298
 299/*
 300 * possible dynamic channel DIMM Label attribute files
 301 *
 302 */
 303
 304#define EDAC_NR_CHANNELS        6
 305
 306DEVICE_CHANNEL(ch0_dimm_label, S_IRUGO | S_IWUSR,
 307        channel_dimm_label_show, channel_dimm_label_store, 0);
 308DEVICE_CHANNEL(ch1_dimm_label, S_IRUGO | S_IWUSR,
 309        channel_dimm_label_show, channel_dimm_label_store, 1);
 310DEVICE_CHANNEL(ch2_dimm_label, S_IRUGO | S_IWUSR,
 311        channel_dimm_label_show, channel_dimm_label_store, 2);
 312DEVICE_CHANNEL(ch3_dimm_label, S_IRUGO | S_IWUSR,
 313        channel_dimm_label_show, channel_dimm_label_store, 3);
 314DEVICE_CHANNEL(ch4_dimm_label, S_IRUGO | S_IWUSR,
 315        channel_dimm_label_show, channel_dimm_label_store, 4);
 316DEVICE_CHANNEL(ch5_dimm_label, S_IRUGO | S_IWUSR,
 317        channel_dimm_label_show, channel_dimm_label_store, 5);
 318
 319/* Total possible dynamic DIMM Label attribute file table */
 320static struct device_attribute *dynamic_csrow_dimm_attr[] = {
 321        &dev_attr_legacy_ch0_dimm_label.attr,
 322        &dev_attr_legacy_ch1_dimm_label.attr,
 323        &dev_attr_legacy_ch2_dimm_label.attr,
 324        &dev_attr_legacy_ch3_dimm_label.attr,
 325        &dev_attr_legacy_ch4_dimm_label.attr,
 326        &dev_attr_legacy_ch5_dimm_label.attr
 327};
 328
 329/* possible dynamic channel ce_count attribute files */
 330DEVICE_CHANNEL(ch0_ce_count, S_IRUGO | S_IWUSR,
 331                   channel_ce_count_show, NULL, 0);
 332DEVICE_CHANNEL(ch1_ce_count, S_IRUGO | S_IWUSR,
 333                   channel_ce_count_show, NULL, 1);
 334DEVICE_CHANNEL(ch2_ce_count, S_IRUGO | S_IWUSR,
 335                   channel_ce_count_show, NULL, 2);
 336DEVICE_CHANNEL(ch3_ce_count, S_IRUGO | S_IWUSR,
 337                   channel_ce_count_show, NULL, 3);
 338DEVICE_CHANNEL(ch4_ce_count, S_IRUGO | S_IWUSR,
 339                   channel_ce_count_show, NULL, 4);
 340DEVICE_CHANNEL(ch5_ce_count, S_IRUGO | S_IWUSR,
 341                   channel_ce_count_show, NULL, 5);
 342
 343/* Total possible dynamic ce_count attribute file table */
 344static struct device_attribute *dynamic_csrow_ce_count_attr[] = {
 345        &dev_attr_legacy_ch0_ce_count.attr,
 346        &dev_attr_legacy_ch1_ce_count.attr,
 347        &dev_attr_legacy_ch2_ce_count.attr,
 348        &dev_attr_legacy_ch3_ce_count.attr,
 349        &dev_attr_legacy_ch4_ce_count.attr,
 350        &dev_attr_legacy_ch5_ce_count.attr
 351};
 352
 353static inline int nr_pages_per_csrow(struct csrow_info *csrow)
 354{
 355        int chan, nr_pages = 0;
 356
 357        for (chan = 0; chan < csrow->nr_channels; chan++)
 358                nr_pages += csrow->channels[chan]->dimm->nr_pages;
 359
 360        return nr_pages;
 361}
 362
 363/* Create a CSROW object under specifed edac_mc_device */
 364static int edac_create_csrow_object(struct mem_ctl_info *mci,
 365                                    struct csrow_info *csrow, int index)
 366{
 367        int err, chan;
 368
 369        if (csrow->nr_channels >= EDAC_NR_CHANNELS)
 370                return -ENODEV;
 371
 372        csrow->dev.type = &csrow_attr_type;
 373        csrow->dev.bus = &mci->bus;
 374        device_initialize(&csrow->dev);
 375        csrow->dev.parent = &mci->dev;
 376        dev_set_name(&csrow->dev, "csrow%d", index);
 377        dev_set_drvdata(&csrow->dev, csrow);
 378
 379        edac_dbg(0, "creating (virtual) csrow node %s\n",
 380                 dev_name(&csrow->dev));
 381
 382        err = device_add(&csrow->dev);
 383        if (err < 0)
 384                return err;
 385
 386        for (chan = 0; chan < csrow->nr_channels; chan++) {
 387                /* Only expose populated DIMMs */
 388                if (!csrow->channels[chan]->dimm->nr_pages)
 389                        continue;
 390                err = device_create_file(&csrow->dev,
 391                                         dynamic_csrow_dimm_attr[chan]);
 392                if (err < 0)
 393                        goto error;
 394                err = device_create_file(&csrow->dev,
 395                                         dynamic_csrow_ce_count_attr[chan]);
 396                if (err < 0) {
 397                        device_remove_file(&csrow->dev,
 398                                           dynamic_csrow_dimm_attr[chan]);
 399                        goto error;
 400                }
 401        }
 402
 403        return 0;
 404
 405error:
 406        for (--chan; chan >= 0; chan--) {
 407                device_remove_file(&csrow->dev,
 408                                        dynamic_csrow_dimm_attr[chan]);
 409                device_remove_file(&csrow->dev,
 410                                           dynamic_csrow_ce_count_attr[chan]);
 411        }
 412        put_device(&csrow->dev);
 413
 414        return err;
 415}
 416
 417/* Create a CSROW object under specifed edac_mc_device */
 418static int edac_create_csrow_objects(struct mem_ctl_info *mci)
 419{
 420        int err, i, chan;
 421        struct csrow_info *csrow;
 422
 423        for (i = 0; i < mci->nr_csrows; i++) {
 424                csrow = mci->csrows[i];
 425                if (!nr_pages_per_csrow(csrow))
 426                        continue;
 427                err = edac_create_csrow_object(mci, mci->csrows[i], i);
 428                if (err < 0)
 429                        goto error;
 430        }
 431        return 0;
 432
 433error:
 434        for (--i; i >= 0; i--) {
 435                csrow = mci->csrows[i];
 436                if (!nr_pages_per_csrow(csrow))
 437                        continue;
 438                for (chan = csrow->nr_channels - 1; chan >= 0; chan--) {
 439                        if (!csrow->channels[chan]->dimm->nr_pages)
 440                                continue;
 441                        device_remove_file(&csrow->dev,
 442                                                dynamic_csrow_dimm_attr[chan]);
 443                        device_remove_file(&csrow->dev,
 444                                                dynamic_csrow_ce_count_attr[chan]);
 445                }
 446                put_device(&mci->csrows[i]->dev);
 447        }
 448
 449        return err;
 450}
 451
 452static void edac_delete_csrow_objects(struct mem_ctl_info *mci)
 453{
 454        int i, chan;
 455        struct csrow_info *csrow;
 456
 457        for (i = mci->nr_csrows - 1; i >= 0; i--) {
 458                csrow = mci->csrows[i];
 459                if (!nr_pages_per_csrow(csrow))
 460                        continue;
 461                for (chan = csrow->nr_channels - 1; chan >= 0; chan--) {
 462                        if (!csrow->channels[chan]->dimm->nr_pages)
 463                                continue;
 464                        edac_dbg(1, "Removing csrow %d channel %d sysfs nodes\n",
 465                                 i, chan);
 466                        device_remove_file(&csrow->dev,
 467                                                dynamic_csrow_dimm_attr[chan]);
 468                        device_remove_file(&csrow->dev,
 469                                                dynamic_csrow_ce_count_attr[chan]);
 470                }
 471                put_device(&mci->csrows[i]->dev);
 472                device_del(&mci->csrows[i]->dev);
 473        }
 474}
 475#endif
 476
 477/*
 478 * Per-dimm (or per-rank) devices
 479 */
 480
 481#define to_dimm(k) container_of(k, struct dimm_info, dev)
 482
 483/* show/store functions for DIMM Label attributes */
 484static ssize_t dimmdev_location_show(struct device *dev,
 485                                     struct device_attribute *mattr, char *data)
 486{
 487        struct dimm_info *dimm = to_dimm(dev);
 488
 489        return edac_dimm_info_location(dimm, data, PAGE_SIZE);
 490}
 491
 492static ssize_t dimmdev_label_show(struct device *dev,
 493                                  struct device_attribute *mattr, char *data)
 494{
 495        struct dimm_info *dimm = to_dimm(dev);
 496
 497        /* if field has not been initialized, there is nothing to send */
 498        if (!dimm->label[0])
 499                return 0;
 500
 501        return snprintf(data, EDAC_MC_LABEL_LEN, "%s\n", dimm->label);
 502}
 503
 504static ssize_t dimmdev_label_store(struct device *dev,
 505                                   struct device_attribute *mattr,
 506                                   const char *data,
 507                                   size_t count)
 508{
 509        struct dimm_info *dimm = to_dimm(dev);
 510
 511        ssize_t max_size = 0;
 512
 513        max_size = min((ssize_t) count, (ssize_t) EDAC_MC_LABEL_LEN - 1);
 514        strncpy(dimm->label, data, max_size);
 515        dimm->label[max_size] = '\0';
 516
 517        return max_size;
 518}
 519
 520static ssize_t dimmdev_size_show(struct device *dev,
 521                                 struct device_attribute *mattr, char *data)
 522{
 523        struct dimm_info *dimm = to_dimm(dev);
 524
 525        return sprintf(data, "%u\n", PAGES_TO_MiB(dimm->nr_pages));
 526}
 527
 528static ssize_t dimmdev_mem_type_show(struct device *dev,
 529                                     struct device_attribute *mattr, char *data)
 530{
 531        struct dimm_info *dimm = to_dimm(dev);
 532
 533        return sprintf(data, "%s\n", mem_types[dimm->mtype]);
 534}
 535
 536static ssize_t dimmdev_dev_type_show(struct device *dev,
 537                                     struct device_attribute *mattr, char *data)
 538{
 539        struct dimm_info *dimm = to_dimm(dev);
 540
 541        return sprintf(data, "%s\n", dev_types[dimm->dtype]);
 542}
 543
 544static ssize_t dimmdev_edac_mode_show(struct device *dev,
 545                                      struct device_attribute *mattr,
 546                                      char *data)
 547{
 548        struct dimm_info *dimm = to_dimm(dev);
 549
 550        return sprintf(data, "%s\n", edac_caps[dimm->edac_mode]);
 551}
 552
 553/* dimm/rank attribute files */
 554static max_size);
S_IRUGOe=max_size" claS_IRUGOntf" |>max_size);
S_IWUSAf="drivers/edacS_IWUSAsfs.c#L546" id="L546" class="line" name="L546"> 4555       struct dimmdev_e_show(struct (struct  546 ssize_t (max_size);
S_IRUGOe=max_size" claS_IRUGOntf"mm-> 547{       for (ssize_t max_size);
S_IRUGOe=max_size" claS_IRUGOntf"mm-> 548                ssize_t max_size);
S_IRUGOe=max_size" claS_IRUGOntf"mm-> 549
               if (!ssize_t max_size);
S_IRUGOe=max_size" claS_IRUGOntf"mm-> 4605                       c5ntinu56ass="sref">ssize_t max_size);
S_IRUGOe=max_size" claS_IRUGOntf"mm-> 551}               for (
 4635                        5     5continsref">s="sref">dimm_info te *mattr,
dimm/spac#L548" id="L548" class="line" name="L548"> 4645                       <5 href5"+code=edac_dbmci->dimm_info te 4655                        5     5 (dimm_info te 546                        <5 href5"+code=device_mci-> 547{                        5     5              mci->(dimm_info te 548                        <5 href5"+code=device_mci->(dimm_info te 549
                        5     5              mci-> 4705               }
->(struct  551}                4725                4735       }
s="sref">dimm_info te *<_groupa href="+code=mlass="sre_groupshow" class="sref">dimmdoref"_grpa href="+code=mimmdoref"_grpsref">tc#L548" id="L548" class="line" name="L548"> 4745
dim ">to_dimm(dimc#L546" id="L546" class="line" name="L546"> 4655endif
 546 /*<5span>57ass="sref">s="sref="sref">dimm_info te *<_groupa href="+code=mlass="sre_groupshow"ttr,
dimm/spac#L548" id="L548" class="line" name="L548"> 4785span class="comment"> * 5er-di57+code=device_mci-> 549
span class="comment"> */5/span579/edac/edac_m->(struct  4805 4815define device *dev,
 4835span class="comment">/* 5how/s58ysfs.c#L454" id="L454" class="line" name="L4545> 4845tatic dimm_info *dimm = to_dimm((k, struct dimm_info, dev)
 4655                        5     58sfs.c#L536" id="L536" class="line" name="L536"> 4865
"Removing csrow %d channel %d sysleas/edass="edac_mc dev_types" class="sref">dev_types[ 4775       struct );
dimm-> 4785 4895       return  4905
s" class="sref">device_attribusref(dimmdoref"_sref(tc#L548" id="L548" class="line" name="L548"> 4915dimhref="+co>to_dimm(dimc#L546" id="L546" class="line" name="L546"> 4925tatic to_dimm( 4835                        5     5  stru}c#L551" id="L551" class="line" name="L551"> 4945
 4955       struct  4965sa>, device * *mci)
 4775       /59    struct dimm_info *dimm =  4785       if (!,  4995               return 0;5, ssize_t mtype]);
->max_size = f="+code=dtype" class="sref">dtype]);
dimm_info sref(tmci->(strncpy(dtype]);
dimm_info bu"+code=dimm" clabu"sref">tmci->csrows[device_attribu*/
(->dtype]);
);
dtype]);
dimm_info pare+code=ssize_t" clpare+csref">tmci->csrows[dima>->csrows[dtype]);
dev_types[cndexde=to_dimm" clacndexsfs.cc#L551" id="L551" class="line" name="L5516> 5106put_device->dtype]);
dev_types[cndexde=to_dimm" clacndexsfs.cc#L551" id="L551" class="line" name="L5516>25016device_attosethdrvss="string">"&#ttosethdrvss="ss="smci->dtype]);
->max_size = pm_runtime_forbidode=ssize_t" clpm_runtime_forbidss="smci->csrows[dimm->ts="sref">device_attributddode=ssize_t" clattributddss="smci->dtype]);
);
"Removing0csrow %d channel %d srreat/eda="dr/ss="edac_mc dev_types" class="sref">dev_types[dtype]);
evers/edac/edac_mc_sysfs.c#L450" id="L450" class="line" name="L4506> 5206tatic  * Memorymc_syroller dac_mcsysfs.c#L554" id="L554" class="line" name="L5546>45036to_dimm(dimm->container_of(k, struct dimm_info,o *mci)
ssize_t di"+c_resethass="8" re(struct ss="sref">device *dev,
device_attribute *mattr,
data,
count)
device * *mci)
to_dimm(dimm->>dimm_info rw(struct dev_types[cde=to_dimm" clacsfs.c#L450" id="L450" class="line" name="L4506> 5346
strncpy(csrows[t.c#L512" id="L512" class="line" name="L5126> 5356dimm->csrows[t.c#L512" id="L512" class="line" name="L5126> 5266tatic ->csrows[t.c#L512" id="L512" class="line" name="L5126> 5276                        6     63m_info" classa>);
csrows[t.c#L512" id="L512" class="line" name="L5126> 5286
->(struct t.c>>dimm_info rw(struct csrows[device *mci)
->csrows[)
csrows[t.c#L512" id="L512" class="line" name="L5126> 5436)
csrows[t.c#L512" id="L512" class="line" name="L5126> 5346tatic ->t.c>>dimm_info ="drivers/edac/edac_mc_sysf"sysfsa>);
csrows[)
csrows[csrows[t.c#L512" id="L512" class="line" name="L5126> 5276
->t1c#L512" id="L512" class="line" name="L5126> 5506       return t.c>>dimm_info cde=to_dimm" clacsfs."sysfsa>);
csrows[>dimm_info cde=to_dimm" clacsfs.++)tc#L548" id="L548" class="line" name="L5486> 5516
put_device->csrows[->dimm_info ef="drivers/edac/edc_sysfs.c#L512" id="L512" class="line" name="L5126> 5426dimm->csrows[->->->/* 6imm/r65 struct dimm->csrows[->->->->csrows[->max_size;
<="drivers/edac/edac_mc_sysfs.c#L512" id="L512" class="line" name="L5126> 5486               
"* A MC "L480" cutelimit hreascrubb/edabandwidthabased on hreaCPU sref.sysfs.c#L480" id="L480" class="line" name="L4806> 5536                        6     66k attribute files */ * The" iore, f">cssethsdram_scrub_rate should be made to="sref">hreaactualsysfs.c#L480" id="L480" class="line" name="L4806> 5346                       <6 href66sfs.cef="drivers/edac/edac_mcabandwidthathat isaaccepted or 0 whenmscrubb/edais to=bea hsabled.sysfs.c#L480" id="L480" class="line" name="L4806> 4556                        6     66m_infribute files */mcsysfs.c#L480" id="L480" class="line" name="L4806> 5466                       <6 href6"+codeef="drivers/edac/edac_mcaNegat480 value still meansathat "drerror has occurred while sett/edsysfs.c#L480" id="L480" class="line" name="L4806> 5276                        6     6      ef="drivers/edac/edac_mcahreascrub rate.sysfs.c#L480" id="L480" class="line" name="L4806> 5486                       <6 href6"+codeef="drivers/edac/edac_mc_sysfs.c#L480" id="L480" class="line" name="L4806> 5496                        6     66de=nrsref">ssize_t di"+c_sdram_scrub_ratere(struct ss="sref">device *dev,
device_attribute *mattr,
data,
count)
dimm_info o *mci)
to_dimm(dimm->->t.c#L512" id="L512" class="line" name="L5126> 4656endif
(struct t.c#L512" id="L512" class="line" name="L5126> 5466/*<6span>67_size" class=>dim!->csrows[ * 6er-di67+code=device_remove_f"sref">-rows[ */6/span67sfs.c#L550" id="L550" class="line" name="L5506> 4806dimrows[dimm->->-rows[(struct /* 6how/s68class="sref">max_size = new_b(struct t->csrows[->dimrows[(struct [-> (struct PAGES_TO_Mibandwidthers/edac/edac_mbandwidthsfs.)c#L512" id="L512" class="line" name="L5126> 4776       struct -rows[(struct sprintf(csgethsdram_scrub_rate()"sref">svalue semantics seda as above.sysfs.c#L480" id="L480" class="line" name="L4806> 4956       struct ssize_t di"+c_sdram_scrub_ratereow(struct device *dev,
/69    struct device_attribute *mattr,
data)
dimm_info o *mci)
to_dimm(dimm->sa>, t.c#L512" id="L512" class="line" name="L5127>25017 atic >dim!->csrows[s href="+"sref">-rows[t->csrows[->dim->[-> (struct sprintf(sprintf(data, "%s\n", PAGES_TO_Mibandwidthers/edac/edac_mbandwidthsfs.)c#L512" id="L512" class="line" name="L5127> 5137       dimc#L5ded6"sref">-rows[-rub MCIanc_sysfs.c#L554" id="L554" class="line" name="L554"> 4637/a>6ssize_t di"+c_sdram_risfs.">a>(struct a>(stef">device *dev,
device_attribute *mattr,
)
dimm_info o *mci)
to_dimm(dimm->sprintf(data, "%s\n", PAGES_TO_Mibandwi=csrows" class="sref">csrows[t.c#1" id="L551" class="line" name="L5517> 5017       struct  di"+c_sdram_cisfs.">a>(struct a>(stef">device *dev,
device_attribute *mattr,
" id="L548" class="line" name="L5487> 5006mci)
to_dimm(dimm->sprintf(data, "%s\n", PAGES_TO_Mibandwi=csrows" class="sref">csrows[t.c#1" id="L551" class="line" name="L5517> 5016
 di"+c_sdram_ciss="dris>(struct device *dev,
device_attribute *mattr,
)
mci)
to_dimm(dimm->sprintf(data, "%s\n", PAGES_TO_Mibandwi=csrows" class="sref">csrows[t.c#1" id="L551" class="line" name="L5517> 5016     7 return  di"+c_sdram_uiss="dris>(struct device *dev,
s href="+"sref"datef="row &#uuuuus="sref">device_attribute *mattr,
dimm_info o *mci)
to_dimm(dimm->-&sprintf(data, "%s\n", PAGES_TO_Mibandwi=csrows" class="sref">csrows[t.c#1" id="L551" class="line" name="L5517> 5016     7 return  di"+c_sdram_secondsa>(struct (stef">device *dev,
/* 6imm/r75 str7ct device_attribute *mattr,
s href="+"sref"datef="row &#uuu)
-&">dimm_info o *mci)
to_dimm(dimm->-&sprintf(data, "%s\n", PA csrows[-) />di"+c_sdram_c">mh6efs>(struct mh6efs>(stef">device *dev,
device_attribute *mattr,
)
)
dimm_info o *mci)
to_dimm(dimm->max_size;
<="drivcode=data" class="sref">data, "%s\n", dev_types[csrows[mh6efdac/edac_ceeno c">mh6ef#L551" id="L551" class="line" name="L5517> 5016     7                 <6 href7"+cod76#L519" id="L519" class="line" name="L5196> 5497/a>6     7                  6     76de=n76L550" id="L550" class="line" name="L5506> 4907/a>6     7         }
 di"+c_sdram_sow" mba>(struct (stef">device *dev,
device_attribute *mattr,
)
)
dimm_info o *mci)
to_dimm(dimm->, ->mcd_dimm" clacndexss hr>mcd_ot;/*<6span>77_siz7" class=>dim!->mcd_ot;<>dimm_info ="drive hr>mcd_dimm" clacndexss hr>mcd_ot;<>>);
csrows[mcd_ot; * 6er-di77+cod7=device_remove_f"sref"evice *mci)
to_dimm(csrows[mcd_ot;<2" id="L512" class="line" name="L5126> 5417/a>6span 7lass="comment"> */6/span77sfs.7#L550" id="L550" class="line" name="L5506> 4807/a>6ode=mci" csrlato_dows[device_attribuimmf="+code=mci" csrla,
dtypimm(ode=mci" csrlato_dows[dtyp" id="L512" class="line" name="L5126> 5417/a>6/* 6how/s78clas78t (dtype]);
s href="+"sref"" id="L519" class="line" name="L5196> 5497/a>6     7                  6     78    7struct max_size;
<="drivcode=data" class="sref">data, "%s\n", PAGES_TO_MibandwiPAGES_TO_MiB">"%s\PAGES_TO_MiB/a>,  di"+c_sdram_max_locizeona>(struct (stef">device *dev,
device_attribute *mattr,
)
)
dimm_info o *mci)
to_dimm(dimm->, -&)
(/79    79L528" id="L528" class="line" name="L5286> 5287/a>6     7 if (!t.c>>dimm_info cde=to_dimm" clacsfs."sysfsa>);
csrows[>dimm_info cde=to_dimm" clacsfs.++)tc#L548" id="L548" class="line" name="L5286> 5287/a>6     7         return 0;6(data, , P id="L548" class="line" name="L5286> 5288/a>7->csrows[->dimm_info ef="drysfsrows" claref"+c>sfs>dimmP id="L548" class="line" name="L5286> 5288/1>7csrows[->dimm_info ef="drivers/edac/edc_sysfs.c#L512 - 11" id="L551" class="line" name="L5517> 5018/a>7 atic8s href=>max_size;
<="drivpdimm" clacsfs.cpto_di-> di"+c_sd namefakemci_sys_wrief="+code=mattr"  namefakemci_sys_wriefef">device *)
)
P id="L548" class="line" name="L5286> 5288/9>7     8         return 0;6>>>>>>>>>>>>>>>>>>>>>>">data, href="drivers/__us/edac/edac_ueeass__us/ea>,
"%s\n" 5288/a>7 ef="driverount" class="sref">count)
evice *dev,
)
ows[davw"%s\>davwdimm_info o *mci)
to_dimm(dimm->ize_tenumm(sfs>dim" id="L551" class="line" name="L5516> 4748/a>7<    8 , ="sref">di"+c_sd rrers/edac/edac_mc_sys rrers/eto_dimm(csrows[dim" id="L551" class="line" name="L5516> 4748/6>7<    8f="drivers/edac/ed6c_mc_8ysfs.81L477" id="L477" class="line" name="L4776> 4778/a>6     8 return di"+c_sd rrers/edac/edac_mc_sys rrers/eto_dimm1" id="L551" class="line" name="L5516> 4748/9>7     8f="drivers/edac/ed6c_mc_81c_di81L550" id="L550" class="line" name="L5506> 4908/a>6tatic8sfs>dimimm(csrows[dimi?>max_size = new_b<+code=dimm_info"line"sfs.m->s href="+"srefpan>, P id="L553" class="line" name="L5536> 4838/a>7<    8 return [sfs>dimimmm(, e:&gan>, P id="L553" class="line" name="L5536> 4838/a>6     8f="drivers/edac/ed6c_mc_8ysfs.82ruct di"+c_sd rrers/edac/edac_mc_sys rrers/eto_diws, e:&gan>, P id="L553" class="line" name="L5536> 4838/8>7     8di"+c_sd=csrows" class="sref">csrows[-&0mP id="L548" class="line" name="L5286> 5288/a>6csrows[-&1mP id="L548" class="line" name="L5286> 5288/a>6
csrows[-&2] id="L548" class="line" name="L5286> 5288/a>7     8 struct max_size = new_b< name="Lhandee_has o="+code=mattr"  name="Lhandee_has o/a>, sfs>dim_types[csr_types[-&>-&>- id="L551" class="line" name="L5516> 4748/a>7     8 return )
di"+c_sd=csrows" class="sref">csrows[-&0mP id="L548" class="line" name="L5286> 5288/a>6s href="+"sref"datef="row &#csrows[-&1mP id="L548" class="line" name="L5286> 5288/a>7<    8f="drivers/edac/ed6c_mc_83s="s83truct csrows[-&2]P id="L548" class="line" name="L5286> 5288/6>7<    8, PAGan>, -&sprintf(device *dimm_info o sRre="+code=mattr" sRrea>)
)
" id="L547" class="line" name="L5476> 4998/a>6
max_size = new_b)
ows[davw"%s\>davw(davwdavws href=>max_si2" id="L512" class="line" name="L5127>25018/a>6     8                  6     8     84L536"" id="L519" class="line" name="L5196> 5498/a>6     8                  6     8     84L477" id="L477" class="line" name="L4776> 4778/a>6
data">dimm_info o sRre_operizeon=dimm" clalaye""sRre_operizeon=ef">="sref">di"+c_sdscbugefakemci_sys_fop=dimm" clalaye""scbugefakemci_sys_fop=L547imm" id="L548" class="line" name="L5286> 5288/a>6
imm(P id="L548" class="line" name="L5286> 5288/a>6imm(P id="L548" class="line" name="L5286> 5288/a>6     8 return imm(P id="L548" class="line" name="L5286> 5288/a>6     8ef="drivers/edac/e6ac_mc85t_de85L492"}" id="L512" class="line" name="L5127>25018/a>6/* 6imm/r85 str85class id="L552" class="line" name="L5527>45038/a>6tatic86"sref">-roControl_sRrefs.c#L554" id="L554" class="line" name="L554"> 4638/a>6     8 struct (, csr_types[csr_types[dim_types[6"sref">-roAs[ 4638/a>6
, dim_types[mh6efs>(struct mh6efs>(stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>6(, coumb>csr_types[dim_types[(struct (stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>6     8                 c6ntinu86ass=86/edac(, ince_reses>csr_types[dim_types[(struct (stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>6     8         for ((, t.c#_types[dim_types[(struct _types[dim1" id="L551" class="line" name="L5516> 4748/a>6(, t.c#_types[dim_types[(struct _types[dim1" id="L551" class="line" name="L5516> 4748/a>6(, t.c#_types[dim_types[a>(struct a>(stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>6tatic8                 <6 href86sfs.8ef="dr(, t.c#_types[dim_types[a>(struct a>(stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>6     8                  6     86m_in86L536"(, [dim_types[(struct (stef">_types[dim1" id="L551" class="line" name="L5516> 4748/a>66"smemory rateTberows[ 4638/a>6     8                 <6 href8"+cod868edac(, [dim |types[csr_types[(struct (stef">P id="L548" class="line" name="L5286> 5288/a>6     8                  6     86de=n86/edac_m-&ypes[torf="+code=mattr" =cs_sdram_rateT_rwtorf>dim1" id="L551" class="line" name="L5516> 4748/a>6     8         }
dimm_info o  *mattr,
-&]imm" id="L548" class="line" name="L5286> 5288/a>6     8          ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8 }
 ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6tatic8ef="drivers/edac/e6ac_mc87+cod8=edac_dbunsign&/a>[ ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8ince_resesnt" class="srefeev_sref_secondsa>ince_resesedac_info ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6 ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8lass="comment">/*<6span>87_siz8" class=>dim!<&/a>[ ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8lass="comment"> * 6er-di87+cod8=device_remove&/a>[ */6/span87sfs.879class=>dim!<&/a>[[ ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8  ef="drrs/edac/edac_mc_syss.c#L546" id="L546" class="line" name="L5466> 4788/a>6     8f="drivers/edac/ed6c_mc_88sfs.882sref">max_size = new_bdim id="L546" class="line" name="L5466> 4788/a>6     8lass="comment">/* 6how/s88clas88t dimm_info o  *="sref">di"+c_sdecs_sref_grpdimm" clacsfs.cecs_sref_grpL547imm" id="L548" class="line" name="L5286> 5288/a>6     8ef="drivers/edac/e6ac_mc88    886ruct ,  ef="drrs/e=dimm" clalaye""sref=/a>- imm(-" id="L546" class="line" name="L5466> 4788/a>6     8 struct data">dimm_info o  *=>,
-&]imm" id="L548" class="line" name="L5286> 5288/a>6
di"+c_sdecs_sref_releasf="+code=mattr" =cs_sref_releasf/a>, evice *dev,
-&">dimm_info o *mci)
to_dimm(dtadacr_oata" class="sref">dtadacr_oa/a>, dimm_info o *mci)
_types[/89    89L528" id="L528" class="line" name="L5286> 5288/a>6     8 if (! >devdev_types[-&ypes[, to_d1" id="L551" class="line" name="L5516> 4749/a>7device_attributetsfsrows" claref"+cutetsfsef">="sref">di"+c_sdecs_sref_tsfsrows" claref"+cecs_sref_tsfsL547imm" id="L548" class="line" name="L5286> 5289/a>7-_mc_sysfimm(-" id="L546" class="line" name="L5466> 4789/a>7<s href=_info ef="drreleasf="+code=mattr" releasf/a>,mc_sysfimm(," id="L546" class="line" name="L5466> 4789/5>7<device_attributntryrows" claref"+cutntrya>)
="sref">di"+c_sd namedcbugfsmciiedac/edac_ceeno  namedcbugfsmciie/a>, void" id="L547" class="line" name="L5476> 4999/a>7     9 max_size = new_b< namedcbugfsac/edac_mc_sysf namedcbugfsa>)
imm(, , dev_types[dim1" id="L551" class="line" name="L5516> 4749/a>7     9 )
)48" id="L548" class="line" name="L5286> 5289/a>7     9 s href="+"sref"ze = new_b< namedcbugfsac/edac_mc_sysf namedcbugfsa>)
imm(dim" id="L551" class="line" name="L5516> 4749/5>7<, max_si-(dim" id="L551" class="line" name="L5516> 4749/6>7<max_si2" id="L512" class="line" name="L5127>25019/8>7     9ef="drivers/edac/e6ac_mc91sfs.91#L519" id="L519" class="line" name="L5196> 5499/9>7     9f="drivers/edac/ed6c_mc_91c_di91L550" id="L550" class="line" name="L5506> 4909/a>6tatic9di"+c_sd__exiedac/edac_ceeno _mexieef">="sref">di"+c_sd namedcbugfsmexiedac/edac_ceeno  namedcbugfsmexie/a>, void" id="L547" class="line" name="L5476> 4999/a>7     9                  6     92sfs.92L492"" id="L548" class="line" name="L5286> 5289/a>6
max_size = new_b, mci)
to_d" id="L547" class="line" name="L5476> 4999/6>7<device_attributntryrows" claref"+cutntrya>)
)
_ta href="drivers/pare/edac/edac_ceeno pare/e>dim" id="L551" class="line" name="L5516> 4749/8>7     9, href="drivers/h6efdac/edac_ceeno h6efedac[802" id="L512" class="line" name="L5126> 5419/a>6)
) id="L551" class="line" name="L5517> 5019/a>6
max_siaaaaaaaa>max_si-(s href= href="drivers/drows" claref"+cua>)
imm(, to_dows[ ef="drh6efdac/edac_ceeno h6efedac_types[)
)" id="L512" class="line" name="L5127>25019/a>7<    9f="drivers/edac/ed6c_mc_93s="s93truct ->)
) id="L551" class="line" name="L5517> 5019/6>7<dim" id="L551" class="line" name="L5516> 4749/a>6     9                  6     93m_in937ref">s href= href="drivers/pare/edac/edac_ceeno pare/e>dimimm()
" id="L551" class="line" name="L5516> 4749/8>7     9ef="drivers/edac/e6ac_mc93sfs.93L489" id="L489" class="line" name="L4896> 5499/a>6t.c>>dimm_info cde=to_dimm" clacsfs."sysfsa>);
csrows[>dimm_info cde=to_dimm" clacsfs.++)tc#L548" id="L548" class="line" name="L4896> 5499/a>6data, P id="L553" class="line" name="L5536> 4839/a>6     9 return csrows[->dimm_info ef="drysfsrows" claref"+c>sfs>dimm)" id="L512" class="line" name="L5127>25019/a>6
max_siaaaaaaaa href="drivers/drows" claref"+cua>)
imm(, dim |types[csr_types[dimP id="L553" class="line" name="L5536> 4839/a>7     9f="drivers/edac/ed6c_mc_94 str94t [csrows[->dimm)" id="L512" class="line" name="L5127>25019/a>6s href="+"sref"/a>->)
) id="L551" class="line" name="L5517> 5019/a>6     9                  6     9     94truct )
" id="L551" class="line" name="L5516> 4749/a>6     9                  6     9     94/edac_m-&" id="L491" class="line" name="L4916> 5219/a>6
[)
imm(, , dev_types[dim |types[csr_types[dimP id="L553" class="line" name="L5536> 4839/a>6[csrows[dim)" id="L512" class="line" name="L5127>25019/a>6     9 return )
) id="L551" class="line" name="L5517> 5019/a>6     9ef="drivers/edac/e6ac_mc95t_de95 )
" id="L551" class="line" name="L5516> 4749/a>6/* 6imm/r95 str95"sref">max_size = new_b)
imm(, , dev_types[dim |types[csr_types[dimP id="L553" class="line" name="L5536> 4839/a>6tatic9s href="+"sref"datef="row &#uuu&/a>[csrows[dim)" id="L512" class="line" name="L5127>25019/a>6     9 struct )
) id="L551" class="line" name="L5517> 5019/a>6)
" id="L551" class="line" name="L5516> 4749/a>6
[)
imm(, , dev_types[csr_types[dimP id="L553" class="line" name="L5536> 4839/a>6[csrows[)
) id="L551" class="line" name="L5517> 5019/a>6max_siaaaaaaaagoto, href="drivers/ho"srdac/edac_ceeno ho"sra>)
" id="L551" class="line" name="L5516> 4749/a>6s href= href="drivers/ecsrows" class="sref">csrows[)
imm(dim" id="L551" class="line" name="L5516> 4749/a>6     9                  6     96m_in96truct max_si2" id="L512" class="line" name="L5127>25019/a>6)
: id="L512" class="line" name="L5127>25019/a>6
s href= href="drivers/dcbugfsmremovsrows" claref"+cutbugfsmremovs/a>, csrows[)
)" id="L512" class="line" name="L5127>25019/a>6
-&sprintf-(dim" id="L551" class="line" name="L5516> 4749/a>6     9                  6     96de=n96L550"" id="L491" class="line" name="L4916> 5219/a>6     9         }
6"c#L554" id="L554" class="line" name="L554"> 4639/a>6     9 }
 * Crew 4639/a>6tatic9ef="drivers/edac/e6ac_mc97+cod97f="drivers/edac/edac_mcaf"> *      mc>);
idwsTO9; dirsysorya>L554" id="L554" class="line" name="L554"> 4639/a>6     9 *a>L554" id="L554" class="line" name="L554"> 4639/a>6 * Rprint:a>L554" id="L554" class="line" name="L554"> 4639/a>6
/*<6span>97_siz97L528"ivers/edac/edac_mcaf"> *      0m-&Successa>L554" id="L554" class="line" name="L554"> 4639/a>6
 * 6er-di97+cod9=devicivers/edac/edac_mcaf"> *      !0m-Failurf>dL554" id="L554" class="line" name="L554"> 4639/a>6     9lass="comment"> */6/span97sfs.979clasivers/edac/edac_mcaf"> *.c#L554" id="L554" class="line" name="L554"> 4639/a>6_=cs_ode=dev" class="sref" namecrew_=cs_ode=de/a>, evice *mci)
to_d" id="L547" class="line" name="L5476> 4999/a>6     9 max_si href="+code=new_b<_dimm" clacsfs.c#L450_types[dim" id="L551" class="line" name="L5516> 4749/a>6     9lass="comment">/* 6how/s98clas98class id="L552" class="line" name="L5527>45039/a>6
s href= vers/edac/edac_mcaf">6"c#L554" id="L554" class="line" name="L554"> 4639/a>6     9                  6     98    98tructivers/edac/edac_mcaf">         * Tub memory controller needs its own bus,i h order ro avoidc#L554" id="L554" class="line" name="L554"> 4639/a>6         * e6acverce conflicts at /554/bus" nam.c#L554" id="L554" class="line" name="L554"> 4639/a>6
         *.c#L554" id="L554" class="line" name="L554"> 4639/a>6
csrows[(, dev_types[csrows[->csrows[(dim" id="L551" class="line" name="L5516> 4749/a>6 = new_b< namedbgac/edac_mc_sysf namedbg/a>, 0_tyan>, dev_types[csrows[max_size = new_b< rrv" class="sref" rr>dimimm(, &/a>[csrows[dimi>);
<0" id="L547" class="line" name="L5476> 4999/a>6
s href="+"sref"sprintf(dim" id="L551" class="line" name="L5516> 4749/a>6     9 struct -&ivers/edac/edac_mcaf">6"sgetarub /554/ode=des/554tem" nam sub554"spference 4639/a>6     9 /99    997ref">s href= href="drivers/edac/edac_mc_sysfs.">to_dows[sfs>dimimf&/a>[[ciieializsrows" claref"+cuteciieializs/a>, &/a>[csrows[s href= href="drivers/edac/edac_mc_sysfs.">to_dows[dimimm(>id="L550" class="line" name="L5506> 49010/1>710/ to_dows[csrows[10/2sref">max_size = new_b, &/a>[csrows[, dev_types[csrows[max_size = new_b"%s\dev_ses_drveing/a>, &/a>[csrows[to_d"" id="L512" class="line" name="L5127>250110/4>7s href= href="drivers/pm_runtime_forbidrows" claref"+cpm_runtime_forbid/a>, &/a>[csrows[10/L536" id="L551" class="line" name="L5516> 47410/6>710/6ref">s href= href="drivers/ namedbgac/edac_mc_sysf namedbg/a>, 0_tyan>, dev_types[[csrows[/10/10/7ref">s href= href="drivers/ rrv" class="sref" rr>dimimm(addrows" claref"+cuteadd/a>, &/a>[csrows[10/device_remove/a>-ypes[dimi>);
<0"8" id="L548" class="line" name="L4896> 54910/9>710//edac_m-&(, &/a>[csrows[(, to_dows[10f dim" id="L551" class="line" name="L5516> 47410f2>710f2sref">max_si" id="L491" class="line" name="L4916> 52110f3>710fsref">s href= vers/edac/edac_mcaf">6"c#L554" id="L554" class="line" name="L554"> 46310f5>7         * CrewdevL554" id="L554" class="line" name="L554"> 46310f6>710f6ructivers/edac/edac_mcaf">         *.c#L554" id="L554" class="line" name="L554"> 46310f7>7s href=/a>->t.c>>dimm_info cde=to_dimm" clacsfs."sysfsa>);
csrows[ cde=to_dimm" clacsfs.++)tc#L548" id="L548" class="line" name="L4896> 54910f8>7device_attribuimmf="+code=mci" class=uimmf="+ca>)
dimimm(csrows[dimm" id="L551" class="line" name="L5516> 47410f9>710f/edac_m-&6"sOnly expose populw 463102a>710-&-ypes[dimows[dimim=<0" id="L547" class="line" name="L5476> 49910<1>710< 10<2sref#ifdef>10, 1PAGan>, dev_types[dim"" id="L551" class="line" name="L5516> 4741024>710s href="+"sref"/a>- href="drivers/ namedcbugeleveldac/edac_mc_sys namedcbugelevelysfsa>s 5491025>7dim" id="L551" class="line" name="L5516> 4741026>7->dim>dimm_info cde=tolayrows" claref"+clay>dim>>);
csrows[>dimm_info cde=tolayrows" claref"+clay>dimL54 id="L551" class="line" name="L5516> 4741027>710<7ar *, , P id="L553" class="line" name="L5536> 48310<8>710<8)
csrows[->dimm_info ef="drysfsrows" claref"+c>sfs>dimmP id="L553" class="line" name="L5536> 48310<9>710-&)
dimows[dimm"" id="L551" class="line" name="L5516> 474103a>7, , dev"" id="L551" class="line" name="L5516> 4741031>710et dimimm(, to_d_types[dim_types[dim"" id="L551" class="line" name="L5516> 4741034>7s href="+"sref"/a>- href="drivers/ rrv" class="sref" rr>dim48" id="L548" class="line" name="L4896> 5491035>710etruct imm TO_Mid ob"lass="sref">dev_types[dim"" id="L551" class="line" name="L5516> 4741036>710ehar *dim" id="L551" class="line" name="L5516> 4741037>710e7ar *10e810eL550" id="L550" class="line" name="L5506> 490104a>710f=sref#ifdef>10f dimimm(fob"syssac/edac_mc_sysf namecrewfob"syss/a>, to_d"" id="L551" class="line" name="L5516> 4741042>7max_si a>-ypes[dimi>);
<0" id="L547" class="line" name="L5476> 49910f3>710ft dim" id="L551" class="line" name="L5516> 4741044>710f4sref#endif id="L512" class="line" name="L5127>25011045>710fL536" id="L551" class="line" name="L5516> 4741046>710f6sref#ifdef>10f7ref">s href= href="drivers/ namecrewto_d"" id="L551" class="line" name="L5516> 4741048>710 r477" id="L477" class="line" name="L4776> 4771051>7dim: id="L512" class="line" name="L5127>250110 2>710 2sref">max_si/a>->t.c>--m_info cde=to_dimm" clacsfs."sysfsa>s cde=to_dimm" clacsfs."sysfs--48" id="L548" class="line" name="L4896> 5491053>7/* 6imm/r10las>10 t device_attribuimmf="+code=mci" class=uimmf="+ca>)
dimimm(csrows[dimm" id="L551" class="line" name="L4896> 5491054>710 sref">s href="+"sref"/a>- href="drivers/uimmode=mci" class=uimm>dimows[dimim=<0" id="L547" class="line" name="L5476> 4991055>7, &/a>[dimows[10 7ar *deldac/edac_mc_sysutedel/a>, &/a>[dimows[10 810 /edac_m-&ypes[, &/a>[csrows[csrows[10  , &/a>[csrows[max_size = new_b, to_dows[(dim" id="L551" class="line" name="L5516> 4741064>710 sref"" id="L491" class="line" name="L4916> 5211065>710 L536" id="L551" class="line" name="L5516> 4741066>710 6ructivers/edac/edac_mcaf">6"c#L554" id="L554" class="line" name="L554"> 4631067>710 L528"ivers/edac/edac_mcaf"> * removs a Memory Controller instancec#L554" id="L554" class="line" name="L554"> 4631068>710 devicivers/edac/edac_mcaf"> *.c#L554" id="L554" class="line" name="L554"> 4631069>710 /edacvoid="sref">di"+c_sd nameremovss554">_=cs_ode=dev" class="sref" nameremovss554">_=cs_ode=de/a>, evice *mci)
to_d" id="L547" class="line" name="L5476> 499107a>710  to_d" id="L548" class="line" name="L4896> 5491071>710 L553" id="L553" class="line" name="L5536> 48310 3>7max_size = new_b< namedbgac/edac_mc_sysf namedbg/a>, 0_tyan>, dev"" id="L551" class="line" name="L5516> 4741074>710 5sref#ifdef>s href= href="drivers/dcbugfsmremovsrows" claref"+cutbugfsmremovs/a>, csrows[)
)" id="L512" class="line" name="L5127>250110 7>7/*<6span>10las>10 7sref#endif id="L512" class="line" name="L5127>25011078>7 * 6er-di10las>10 8sref#ifdef> */6/span10las>10 /edac_m-&ypes[fob"syssac/edac_mc_sysf namedclefob"syss/a>, to_d"" id="L551" class="line" name="L5516> 474108a>710f=sref#endif id="L512" class="line" name="L5127>25011081>710fL492" id="L492" class="line" name="L4926> 52210f2>710f2sref">max_si/a>->t.c>>dimm_info cde=to_dimm" clacsfs."sysfsa>);
csrows[ cde=to_dimm" clacsfs.++)tc#L548" id="L548" class="line" name="L4896> 5491083>7/* 6how/s10las>10ft device_attribuimmf="+code=mci" class=uimmf="+ca>)
dimimm(csrows[dimm" id="L548" class="line" name="L4896> 5491084>710fsref">s href="+"sref"/a>- href="drivers/uimmode=mci" class=uimm>dimows[dimim=<0" id="L547" class="line" name="L5476> 4991085>710ftruct 10fhar *, 0_tyan>, dev_types[[dimows[10f7ar *, &/a>[dimows[(deldac/edac_mc_sysutedel/a>, &/a>[dimows[10f/edac_m-&" id="L491" class="line" name="L4916> 521109a>710e2edacvoid="sref">di"+c_sd nameunregist.mL4926>ac/edac_mc_sysf nameunregist.mL4926>/a>, evice *mci)
to_d" id="L547" class="line" name="L5476> 4991093>710e3to_d" id="L548" class="line" name="L4896> 5491094>7s href= href="drivers/ namedbgac/edac_mc_sysf namedbg/a>, 1PAGan>, dev_types[[csrows[10e5ref">s href= href="drivers/out_ode=dev" class="sref"out_ode=de/a>, &/a>[csrows[s href= href="drivers/dcedeldac/edac_mc_sysutedel/a>, &/a>[csrows[/10 10e7ref">s href= href="drivers/bus_unregist.m="+code=mattr" bus_unregist.m/a>, &/a>[csrows[10edevice_removeypes[, to_dows[11/ di"+c_sd="Lsref_releasfdac/edac_ceeno ="Lsref_releasf/a>, evice *,11/2sref" id="L548" class="line" name="L4896> 54911/3>711/"sref">max_sizvers/edac/edac_mcaf">6"c#L554" id="L554" class="line" name="L554"> 46311/4>7         * Tubre>TO9;s norcontaedaras="sreure ubre, as this is justarub .">toL554" id="L554" class="line" name="L554"> 46311/5>7         * pare/e >dev n="+.c#L554" id="L554" class="line" name="L554"> 4631106>71106ructivers/edac/edac_mcaf">         * So, rubre are norsrefibutes on it.c#L554" id="L554" class="line" name="L554"> 4631107>7/11/110L528"ivers/edac/edac_mcaf">         *.c#L554" id="L554" class="line" name="L554"> 4631108>7devdev_types[[111L492" id="L492" class="line" name="L4926> 52211f2>711f2srefstatic evice *di"+c_sd="Lsref_tsfsrows" claref"+cec_sref_tsfsL547 =8" id="L548" class="line" name="L4896> 54911f3>7max_si_info ef="drreleasfdac/edac_ceeno releasf/a>,">max_simm(11fsref"}" id="L551" class="line" name="L5516> 4741115>76"c#L554" id="L554" class="line" name="L554"> 46311f6>711f6ructivers/edac/edac_mcaf"> * Init/exit ef"+i/a>-rub .odule. Basrcally, crew 46311f7>7 *.c#L554" id="L554" class="line" name="L554"> 46311f8>7ciiedac/edac_ceeno _>ciieedac_"sref">di"+c_sd name="L554">>ciiedac/edac_ceeno  name="L554">>ciie/a>, void1 id="L477" class="line" name="L4776> 47711f9>711f/edac" id="L548" class="line" name="L4896> 549112a>711-&evice *,dim" id="L551" class="line" name="L5516> 4741122>7112"sref">max_sizvers/edac/edac_mcaf">6"sgetarub /554/ode=des/554tem" nam sub554"spference 4631124>7112sref">s href= href="drivers/ namesub554dac/edac_ceeno  namesub554L450imm(>sub554dac/edac_ceeno  namegetL554">>sub554/a>, 1" id="L551" class="line" name="L5516> 4741125>7(11dev"" id="L551" class="line" name="L5516> 4741127>711<7ar *dim" id="L551" class="line" name="L5516> 4741128>71128113aref">s href= href="drivers/eda_peedac/edac_mc_sysfecs_peedL547imm(, eizeof(a href="drivers/eda_peedac/edac_mc_sysfecs_peedL547)_types[113L492" id="L492" class="line" name="L4926> 5221132>71132sref">max_size = new_b[113"sref">max_size = new_b[sfs>dimimf&/a>[113sref">s href= href="drivers/uteciieializsrows" claref"+cuteciieializs/a>,  href="drivers/eda_peedac/edac_mc_sysfecs_peedL547)" id="L450" class="line" name="L4506> 53411e5>71135ref">s href= href="drivers/dcv_ses_h6efdac/edac_ceeno eev_ses_h6ef/a>,  href="drivers/eda_peedac/edac_mc_sysfecs_peedL547_tyan>, dev"" id="L551" class="line" name="L5516> 4741136>711ehar * id="L551" class="line" name="L5516> 4741137>71137ref">s href= href="drivers/ rrv" class="sref" rr>dimimm(addrows" claref"+cuteadd/a>,  href="drivers/eda_peedac/edac_mc_sysfecs_peedL547)" id="L450" class="line" name="L4506> 53411e8>7dimi>);
<0" id="L450" class="line" name="L4506> 53411e9>7(dim" id="L551" class="line" name="L5516> 474114a>7114r477" id="L477" class="line" name="L4776> 4771141>7 = new_b< namedbgac/edac_mc_sysf namedbg/a>, 0_tyan>, dev_types[[114L553" id="L553" class="line" name="L5536> 48311f3>7114t 114sref"" id="L491" class="line" name="L4916> 5211145>711fL536" id="L551" class="line" name="L5516> 4741146>711f6srefvoid="sref">di"+c_sd__exitdac/edac_ceeno _>exitedac_"sref">di"+c_sd name="L554">>exitdac/edac_ceeno  name="L554">>exit/a>, void1 id="L477" class="line" name="L4776> 4771147>7114device_removeypes[,  href="drivers/eda_peedac/edac_mc_sysfecs_peedL547)" id="L450" class="line" name="L4506> 5341149>7114/edac_m-&ypes[deldac/edac_mc_sysutedel/a>,  href="drivers/eda_peedac/edac_mc_sysfecs_peedL547)" id="L450" class="line" name="L4506> 534115a>7s href= href="drivers/ nameout_554">>sub554dac/edac_ceeno  nameout_554">>sub554/a>, 1" id="L551" class="line" name="L5516> 4741151>7LXR ac_muiieyL547_tthis experimcafal ass=ion byaid="L491"mailto:lxm@edaux.no">lxm@edaux.no#L55_
lxm.edaux.no kindly hoszsd byaid="L491"http://www.redpill-edapro.no">Redpill Ldapro ASL547_tprovider of Ldauxrconsul